From 2ff94fe6b4ed478791ad77d88d7250b00320fe70 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Fri, 2 Jan 2015 19:53:46 +0100 Subject: [PATCH] Check for inet_aton in libresolv --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index daad9ad65..8234cf30f 100644 --- a/configure.ac +++ b/configure.ac @@ -47,6 +47,10 @@ 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"]) +]) + m4_ifndef([LT_INIT],[ AC_PROG_LIBTOOL([disable-static]) ],[ -- 2.40.0