]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
No c++ or F77 for libtool, get socket libraries
authorHarlan Stenn <stenn@ntp.org>
Thu, 11 Sep 2008 04:35:34 +0000 (00:35 -0400)
committerHarlan Stenn <stenn@ntp.org>
Thu, 11 Sep 2008 04:35:34 +0000 (00:35 -0400)
bk: 48c8a016ZlLQxUW0FXSsufDiW1FElA

gsoc_sntp/configure.ac

index eaf69fab0c63ccd362a123fedba3837e7640c3aa..c9941a2b3806c5d5a9c2f3f96e7d932ac28020ad 100644 (file)
@@ -32,10 +32,23 @@ case "${enable_libopts_install+set}" in
 esac
 LIBOPTS_CHECK(libopts)
 
+m4_defun([_LT_AC_LANG_CXX_CONFIG], [:])
+m4_defun([_LT_AC_LANG_F77_CONFIG], [:])
+
 AC_PROG_LIBTOOL
 
 # Checks for libraries.
 
+AC_CHECK_FUNC(gethostent, ,
+  AC_CHECK_LIB(nsl, gethostent, , , $libxnet -lsocket))
+AC_CHECK_FUNC(openlog, , 
+  AC_CHECK_LIB(gen, openlog, , 
+  AC_CHECK_LIB(syslog, openlog, , , $libxnet -lsocket)))
+
+AC_CHECK_FUNC(setsockopt, ,
+       [AC_CHECK_LIB(socket, setsockopt)
+        AC_CHECK_LIB(xnet, setsockopt)])
+
 # Checks for header files.
 AC_HEADER_STDC
 AC_CHECK_HEADERS([netdb.h netinet/in.h stdlib.h string.h strings.h sys/socket.h syslog.h])