]> granicus.if.org Git - pdns/commitdiff
Use AC_SEARCH_LIBS
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 2 Jan 2015 19:05:39 +0000 (20:05 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 2 Jan 2015 19:05:39 +0000 (20:05 +0100)
configure.ac

index 27d4abe94e00ffed7dd6d0a0416ae3bafee5ee8a..606b5092d03b9ea307f0d6d88073054a8cdfe0d9 100644 (file)
@@ -39,17 +39,9 @@ AC_CC_STACK_PROTECTOR
 AC_CC_PARAM_SSP_BUFFER_SIZE([4])
 AC_CC_D_FORTIFY_SOURCE
 
-AC_CHECK_FUNC([socket], [], [
-  AC_CHECK_LIB([socket], [socket], [LIBS="-lsocket $LIBS"])
-])
-
-AC_CHECK_FUNC([gethostent], [], [
-  AC_CHECK_LIB([nsl], [gethostent], [LIBS="-lnsl $LIBS"])
-])
-
-AC_CHECK_FUNC([inet_aton], [], [
-  AC_CHECK_LIB([resolv], [inet_aton], [LIBS="-lresolv $LIBS"])
-])
+AC_SEARCH_LIBS([socket], [socket])
+AC_SEARCH_LIBS([gethostent], [nsl])
+AC_SEARCH_LIBS([inet_aton], [resolv])
 
 m4_ifndef([LT_INIT],[
 AC_PROG_LIBTOOL([disable-static])