Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
522c49b5
Commit
522c49b5
authored
Mar 02, 2006
by
Rémi Denis-Courmont
Browse files
Fix getaddrinfo check failure because of autoconf's cache
parent
dd10370f
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
522c49b5
...
...
@@ -429,6 +429,7 @@ fi
AC_CHECK_FUNCS(connect,,[
AC_CHECK_LIB(socket,connect,[
VLC_ADD_LDFLAGS([vlc ipv4 ipv6 cdda cddax],-lsocket)
LIBS_socket="-lsocket"
])
])
...
...
@@ -484,16 +485,8 @@ dnl getaddrinfo, getnameinfo and gai_strerror check
dnl -lnsl and -lsocket are needed on Solaris;
dnl we purposedly make the test fail on Windows
LIBS_save="${LIBS}"
AC_CHECK_FUNCS([getaddrinfo], [
LIBS_gai="${LIBS}"
], [
LIBS="${LIBS} -lnsl -lsocket"
AC_CHECK_FUNCS([getaddrinfo], [
LIBS_gai="${LIBS}"
], [
LIBS_gai="${LIBS_save}"
])
])
AH_TEMPLATE(HAVE_GETADDRINFO, [Define to 1 if you have the `getaddrinfo' function.])
AC_SEARCH_LIBS([getaddrinfo], [-lnsl], [AC_DEFINE(HAVE_GETADDRINFO)],, [${LIBS_socket}])
dnl NOTE: we assume getaddrinfo will be present if getnameinfo or gai_strerro
dnl are
...
...
@@ -501,7 +494,7 @@ LIBS="${LIBS_gai}"
AC_CHECK_FUNCS([getnameinfo gai_strerror])
LIBS="${LIBS_save}"
AH_TEMPLATE(HAVE_ADDRINFO, [Define to
`1'
if <netdb.h> defines struct addrinfo.])
AH_TEMPLATE(HAVE_ADDRINFO, [Define to
1
if <netdb.h> defines
`
struct addrinfo
'
.])
AC_CHECK_TYPES([struct addrinfo],[AC_DEFINE(HAVE_ADDRINFO)],,
[#include <sys/types.h>
#if defined( WIN32 ) || defined( UNDER_CE )
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment