commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r804098 - /commons/sandbox/runtime/trunk/src/main/native/configure
Date Fri, 14 Aug 2009 07:12:10 GMT
Author: mturk
Date: Fri Aug 14 07:12:10 2009
New Revision: 804098

URL: http://svn.apache.org/viewvc?rev=804098&view=rev
Log:
Provide additional include with have_flag

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=804098&r1=804097&r2=804098&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/configure (original)
+++ commons/sandbox/runtime/trunk/src/main/native/configure Fri Aug 14 07:12:10 2009
@@ -606,7 +606,7 @@
 #include <stdlib.h>
 #include <$cccinc.h>
 EOF
-    if [ -n "$2" ]; then
+    if [ ".$2" != . ]; then
         cat >> $test.c << EOF
 #include <$2.h>
 EOF
@@ -675,11 +675,17 @@
     printf "Checking for %-32s" "$1" 1>&2
     cat > $test.c << EOF
 #include <stdlib.h>
-#include <signal.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/socket.h>
 #include <fcntl.h>
+EOF
+    if [ ".$2" != . ]; then
+        cat >> $test.c << EOF
+#include <$2.h>
+EOF
+    fi
+    cat >> $test.c << EOF
 int main() {return (int)($1);}
 EOF
     rc=0
@@ -854,7 +860,7 @@
 #define HAVE_SIGSETJMP        `have_function sigsetjmp`
 #define HAVE_SOCK_CLOEXEC     `have_flag_defined SOCK_CLOEXEC`
 #define HAVE_FILE_CLOEXEC     `have_flag_defined O_CLOEXEC`
-#define HAVE_SYS_SIGLIST      `have_flag_defined sys_siglist`
+#define HAVE_SYS_SIGLIST      `have_flag_defined sys_siglist signal`
 #define HAVE_OFF64_T          $have_off64t
 #define HAVE_LONG_LONG        $have_long_long
 #define HAVE_LONG_DOUBLE      $have_long_double



Mime
View raw message