]> git.sesse.net Git - vlc/commitdiff
configure: remove freeaddrinfo test
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 24 Nov 2014 16:26:05 +0000 (18:26 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 24 Nov 2014 16:27:54 +0000 (18:27 +0200)
Assume that freeaddrinfo() is missing if and only if targetting OS/2.
That is not particularly clean but <vlc_network.h> already makes that
same assumption anyhow.

configure.ac

index b7a4c741ceb6de0da54ea1b2f8f71642795f44db..b8ccc8adddcb5fa174b0c2fff993c4a130b79d0f 100644 (file)
@@ -298,6 +298,7 @@ case "${host_os}" in
   *os2*)
     SYS=os2
     LDFLAGS="${LDFLAGS} -Zomf -Zbin-files -Zargs-wild -Zhigh-mem"
+    AC_LIBOBJ([freeaddrinfo])
     ;;
   *)
     SYS="${host_os}"
@@ -556,7 +557,7 @@ need_libc=false
 dnl Check for usual libc functions
 AC_CHECK_DECLS([nanosleep],,,[#include <time.h>])
 AC_CHECK_FUNCS([daemon fcntl fstatvfs fork getenv getpwuid_r isatty lstat memalign mmap open_memstream openat pread posix_fadvise posix_madvise setlocale stricmp strnicmp strptime uselocale pthread_cond_timedwait_monotonic_np pthread_condattr_setclock])
-AC_REPLACE_FUNCS([atof atoll dirfd fdopendir flockfile freeaddrinfo fsync getdelim getpid gmtime_r lldiv localtime_r nrand48 poll posix_memalign rewind setenv strcasecmp strcasestr strdup strlcpy strndup strnlen strsep strtof strtok_r strtoll swab tdestroy strverscmp])
+AC_REPLACE_FUNCS([atof atoll dirfd fdopendir flockfile fsync getdelim getpid gmtime_r lldiv localtime_r nrand48 poll posix_memalign rewind setenv strcasecmp strcasestr strdup strlcpy strndup strnlen strsep strtof strtok_r strtoll swab tdestroy strverscmp])
 AC_CHECK_FUNCS(fdatasync,,
   [AC_DEFINE(fdatasync, fsync, [Alias fdatasync() to fsync() if missing.])
 ])