PATCH: fix configure.ac to find functions on Solaris
Ben Taylor
sol11x86 at comcast.net
Mon Apr 23 06:41:52 CDT 2007
[resent since my mail headers were missing information]
This patch allows configure.ac to generate a configure script which will
properly find some network functions that require Solaris to include -lsocket
on. The first AC_CHECK_FUNCS tests connect, and if it's not found in
"libc", then the existing code just adds -lsocket to the list of libraries.
Once that occurs,the rest of the get X by Y functions are found for a
solaris host.
Prior to this patch, mozilla.exe would start, but would fail when looking up a
host. When applied, this patch allows mozilla.exe to actually resolve a host
on Solaris and render the page.
Ben
---
configure.ac | 24 ++++++++++++++++--------
1 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/configure.ac b/configure.ac
index 5f718c7..7895ec5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1141,6 +1141,9 @@ fi
dnl **** Check for functions ****
+dnl **** connect, gethostbyname and inet_aton are not actually
+dnl **** used, but are included to help identify the right
+dnl **** libraries to use.
AC_CHECK_FUNCS(\
_pclose \
@@ -1165,22 +1168,15 @@ AC_CHECK_FUNCS(\
ftruncate \
futimes \
futimesat \
- getaddrinfo \
getdirentries \
gethostbyname \
- getnameinfo \
- getnetbyname \
getopt_long \
getpagesize \
- getprotobyname \
- getprotobynumber \
getpwuid \
- getservbyport \
gettid \
gettimeofday \
getuid \
inet_aton \
- inet_network \
kqueue \
lstat \
memmove \
@@ -1195,7 +1191,6 @@ AC_CHECK_FUNCS(\
rfork \
sched_yield \
select \
- sendmsg \
setrlimit \
settimeofday \
sigaltstack \
@@ -1247,6 +1242,19 @@ then
AC_CHECK_LIB(resolv,inet_aton)
fi
+dnl **** Check for functions which may rely on -lsocket on Solaris.
+dnl **** If connect is found in libc, then it's all good anyway.
+AC_CHECK_FUNCS(
+ getaddrinfo \
+ getnameinfo \
+ getnetbyname \
+ getprotobyname \
+ getprotobynumber \
+ getservbyport \
+ inet_network \
+ sendmsg \
+)
+
dnl **** Check for types ****
AC_C_CONST
--
1.5.1.1
More information about the wine-patches
mailing list