summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChristian Thalinger <twisti@complang.tuwien.ac.at>2008-07-07 09:19:34 +0000
committerChristian Thalinger <twisti@complang.tuwien.ac.at>2008-07-07 09:19:34 +0000
commit0485d9699242e3c74c5fbca0cd25a33bc213a718 (patch)
tree1237fb5bcdd4c960c4ba65a05f1bbd4eed1cc829 /configure.ac
parent112b91abbfe3459c2286610f6f7fd28f7bdac930 (diff)
downloadclasspath-0485d9699242e3c74c5fbca0cd25a33bc213a718.tar.gz
2008-07-07 Christian Thalinger <twisti@complang.tuwien.ac.at>
* configure.ac (AC_CHECK_HEADERS): Added sys/sockio.h, required for Solaris. (AC_CHECK_LIB): Check for socket. * native/jni/java-net/java_net_VMNetworkInterface.c (unistd.h): Added. [HAVE_SYS_SOCKIO_H] (sys/sockio.h): Likewise.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index b9eab87e3..c5176481f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -398,6 +398,7 @@ if test "x${COMPILE_JNI}" = xyes; then
dnl Check for crt_externs.h on Darwin.
dnl Check for netinet/in_systm.h, netinet/ip.h and net/if.h for Windows CE.
dnl Check for sys/loadavg.h for getloadavg() on Solaris 9.
+ dnl Check for sys/sockio.h for SIOCGIFFLAGS on OpenSolaris.
AC_CHECK_HEADERS([unistd.h sys/types.h sys/config.h sys/ioctl.h \
asm/ioctls.h \
inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
@@ -410,14 +411,15 @@ if test "x${COMPILE_JNI}" = xyes; then
sys/event.h sys/epoll.h \
ifaddrs.h \
netinet/in_systm.h netinet/ip.h net/if.h \
- sys/loadavg.h])
+ sys/loadavg.h sys/sockio.h])
AC_EGREP_HEADER(uint32_t, stdint.h, AC_DEFINE(HAVE_INT32_DEFINED, 1, [Define to 1 if you have uint32_t]))
AC_EGREP_HEADER(uint32_t, inttypes.h, AC_DEFINE(HAVE_INT32_DEFINED, 1, [Define to 1 if you have uint32_t]))
AC_EGREP_HEADER(u_int32_t, sys/types.h, AC_DEFINE(HAVE_BSD_INT32_DEFINED, 1, [Define to 1 if you have BSD u_int32_t]))
AC_EGREP_HEADER(u_int32_t, sys/config.h, AC_DEFINE(HAVE_BSD_INT32_DEFINED, 1, [Define to 1 if you have BSD u_int32_t]))
- AC_SEARCH_LIBS([inet_pton],[nsl])
+ AC_SEARCH_LIBS([inet_pton],[nsl])
+ AC_CHECK_LIB([socket], [gethostname])
AC_CHECK_FUNCS([ftruncate fsync select \
gethostname socket strerror fork pipe execve open close \
lseek fstat read readv write writev htonl memset htons connect \