commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r822149 - /commons/sandbox/runtime/trunk/src/main/native/configure
Date Tue, 06 Oct 2009 07:15:59 GMT
Author: mturk
Date: Tue Oct  6 07:15:59 2009
New Revision: 822149

URL: http://svn.apache.org/viewvc?rev=822149&view=rev
Log:
No need to check for functions on windows. There isn't none present anyhow

Modified:
    commons/sandbox/runtime/trunk/src/main/native/configure

Modified: commons/sandbox/runtime/trunk/src/main/native/configure
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/configure?rev=822149&r1=822148&r2=822149&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/configure (original)
+++ commons/sandbox/runtime/trunk/src/main/native/configure Tue Oct  6 07:15:59 2009
@@ -753,12 +753,17 @@
 have_function()
 {
     printf "Checking for %-32s" "$1" 1>&2
-    rc=`have_function_body $1 $2`
-    test ".$rc" = .0 && rc=`have_function_body __$1 $2`
-    if [ $rc = 1 ]; then
-        echo ok 1>&2
+    if [ ".$host" = .windows ]; then
+        echo "not supported" 1>&2
+        rc="0"
     else
-        echo "not found" 1>&2
+        rc=`have_function_body $1 $2`
+        test ".$rc" = .0 && rc=`have_function_body __$1 $2`
+        if [ $rc = 1 ]; then
+            echo ok 1>&2
+        else
+            echo "not found" 1>&2
+        fi
     fi
     echo $rc
 }
@@ -962,11 +967,16 @@
 #define HAVE_SYS_TYPES_H      `have_include sys/types`
 #define HAVE_SYS_CDEFS_H      `have_include sys/cdefs`
 #define HAVE_SYS_RESOURCE_H   `have_include sys/resource`
+#define HAVE_SYS_SELECT_H     `have_include sys/select`
 #define HAVE_SYS_SOCKET_H     `have_include sys/socket`
 #define HAVE_SYS_WAIT_H       `have_include sys/wait`
 #define HAVE_SYS_SYSLIMITS_H  `have_include sys/syslimits`
 #define HAVE_SYS_UIO_H        `have_include sys/uio`
 #define HAVE_SYS_MMAN_H       `have_include sys/mman`
+#define HAVE_SYS_EPOLL_H      `have_include sys/epoll`
+#define HAVE_SYS_EVENTFD_H    `have_include sys/eventfd`
+#define HAVE_SYS_EVENT_H      `have_include sys/event`
+#define HAVE_SYS_INOTIFY_H    `have_include sys/inotify`
 #define HAVE_LIMITS_H         `have_include limits`
 #define HAVE_NETDB_H          `have_include netdb`
 #define HAVE_NETINET_IN_H     `have_include netinet/in`
@@ -978,8 +988,12 @@
 #define HAVE_MMAP64           $have_mmap64
 #define HAVE_FDATASYNC        $have_fdatasync
 #define HAVE_ACCEPT4          `have_function accept4`
+#define HAVE_CLOCK_GETTIME    `have_function clock_gettime`
 #define HAVE_DUP3             `have_function dup3`
 #define HAVE_EPOLL_CREATE1    `have_function epoll_create1`
+#define HAVE_KQUEUE           `have_function kqueue`
+#define HAVE_INOTIFY_INIT     `have_function inotify_init`
+#define HAVE_NANOSLEEP        `have_function nanosleep`
 #define HAVE_SIGSETJMP        `have_function sigsetjmp`
 #define HAVE_SIGACTION        `have_function sigaction`
 #define HAVE_SOCK_CLOEXEC     `have_flag_defined SOCK_CLOEXEC`



Mime
View raw message