From aec4a16e80a695dfd5c5bd62d9ab1f4d7062b18c Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Thu, 16 Aug 2012 11:17:22 +0300 Subject: configure.ac: hstrerror check needs NET_LIBS to check if hstrerror is in netdb.h, we need NETLIBS (as determined before) on platforms where NETLIBS != "", such as Solaris --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 341127c1b..f5cb7685f 100644 --- a/configure.ac +++ b/configure.ac @@ -915,9 +915,12 @@ AC_FUNC_FSEEKO AC_REPLACE_FUNCS([asprintf basename gettimeofday setenv strcasestr strndup strpbrk strsep strtok_r timegm unsetenv memmem]) AC_LIBSOURCE([hstrerror.c]) +saveLIBS="${LIBS}" +LIBS="${LIBS} ${NET_LIBS}" AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[hstrerror(0)]])], [AC_DEFINE([HAVE_HSTRERROR], 1, [Define to 1 if you have 'hstrerror' in ])], [AC_LIBOBJ([hstrerror])]) +LIBS="${saveLIBS}" AC_LIBSOURCE([dirent_msvc.c]) AC_CHECK_FUNC([opendir], -- cgit v1.2.3