Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link against socket and nsl libs when building on SunOS #398

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ AC_CANONICAL_HOST
os_win32="false"
os_cygwin="false"
os_qnx="false"
os_sunos="false"
case "${host_os}" in
*mingw32*)
os_win32="true"
Expand All @@ -68,6 +69,9 @@ case "${host_os}" in
;;
*cygwin*)
os_cygwin="true"
;;
*solaris*)
os_sunos="true"
;;
esac
AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "true")
Expand Down Expand Up @@ -132,6 +136,11 @@ if test "$os_cygwin" = "false"; then
fi
fi

if test "$os_sunos" = "true"; then
LIBS="$LIBS -lnsl -lsocket"
AC_SUBST(LIBS)
fi

# Check for RS485 support (Linux kernel version 2.6.28+)
AC_CHECK_DECLS([TIOCSRS485], [], [], [[#include <sys/ioctl.h>]])
# Check for RTS flags
Expand Down