summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorPekka Pessi <Pekka.Pessi@nokia.com>2010-09-10 15:11:23 +0300
committerMarcel Holtmann <marcel@holtmann.org>2010-09-14 07:40:46 +0900
commit2cd82e9e66a5d37389327aa3bd3413e1af60d93f (patch)
treee23c2b129586f4b39a73d1ac15b719c5d33cac85 /configure.ac
parent39deefcac116a8979a439024f3e5a1c41e4b9c13 (diff)
downloadconnman-2cd82e9e66a5d37389327aa3bd3413e1af60d93f.tar.gz
connman-2cd82e9e66a5d37389327aa3bd3413e1af60d93f.tar.bz2
connman-2cd82e9e66a5d37389327aa3bd3413e1af60d93f.zip
Check harder for -lresolv
Older Debians and friends expose __ns_initparse and their resolv.h defines ns_initparse is __ns_initparse.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index baeff4ac..0906b51e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -172,8 +172,9 @@ AM_CONDITIONAL(MEEGO_BUILTIN, test "${enable_meego}" = "builtin")
AC_CHECK_HEADERS(resolv.h, dummy=yes,
AC_MSG_ERROR(resolver header files are required))
-AC_CHECK_LIB(resolv, ns_initparse, dummy=yes,
- AC_MSG_ERROR(resolver library support is required))
+AC_CHECK_LIB(resolv, ns_initparse, dummy=yes,[
+ AC_CHECK_LIB(resolv, __ns_initparse, dummy=yes,
+ AC_MSG_ERROR(resolver library support is required))])
AC_CHECK_LIB(dl, dlopen, dummy=yes,
AC_MSG_ERROR(dynamic linking loader is required))