diff options
author | Fabian Groffen <grobian@gentoo.org> | 2012-08-16 11:17:22 +0300 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2012-08-16 11:17:22 +0300 |
commit | aec4a16e80a695dfd5c5bd62d9ab1f4d7062b18c (patch) | |
tree | 02868098bc20036037ad2dfb99514b050bf74507 | |
parent | df23903cc50e630ba1273b5fd5468ae83ab2fddf (diff) | |
download | xine-lib-aec4a16e80a695dfd5c5bd62d9ab1f4d7062b18c.tar.gz xine-lib-aec4a16e80a695dfd5c5bd62d9ab1f4d7062b18c.tar.bz2 |
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
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
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 <netdb.h>]], [[hstrerror(0)]])], [AC_DEFINE([HAVE_HSTRERROR], 1, [Define to 1 if you have 'hstrerror' in <netdb.h>])], [AC_LIBOBJ([hstrerror])]) +LIBS="${saveLIBS}" AC_LIBSOURCE([dirent_msvc.c]) AC_CHECK_FUNC([opendir], |