You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/06/12 19:16:45 UTC

svn commit: r784204 - /commons/sandbox/runtime/trunk/src/main/native/configure

Author: mturk
Date: Fri Jun 12 17:16:45 2009
New Revision: 784204

URL: http://svn.apache.org/viewvc?rev=784204&view=rev
Log:
Extend configure --help

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=784204&r1=784203&r2=784204&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/configure (original)
+++ commons/sandbox/runtime/trunk/src/main/native/configure Fri Jun 12 17:16:45 2009
@@ -44,7 +44,7 @@
 cc="${CC:=gcc}"
 cxx="${CXX:=g++}"
 ar="${AR:=ar}"
-arflags="${SRFLAGS:=ru}"
+arflags="${ARFLAGS:=ru}"
 ranlib="${RANLIB:=ranlib}"
 topdir="${TOPDIR:=.}"
 cpp="${CPP:=$cc -E}"
@@ -158,11 +158,10 @@
 Usage: configure [options]
 
 Installation directories:
-  --prefix=PREFIX    install architecture-independent files in PREFIX
-                          [/usr/local]
-  --libdir=LPREFIX   install architecture-dependent files in LPREFIX
-                          [PREFIX/lib]
-
+  --prefix=PREFIX         Install architecture-independent files in PREFIX
+                              [/usr/local]
+  --libdir=LPREFIX        Install architecture-dependent files in LPREFIX
+                              [PREFIX/lib]
 
 Some influential environment variables:
   CC          C compiler command
@@ -172,10 +171,31 @@
   CPP         C preprocessor
   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
               headers in a nonstandard directory <include dir>
-  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
+  LDFLAGS     Linker flags, e.g. -L<lib dir> if you have libraries in a
               nonstandard directory <lib dir>
   SHFLAGS     Linker command flags
 
+Compiler options:
+  --with-cc=C             Use C compiler instead default one
+                              [gcc]
+  --with-cpp=CPP          Use CPP preprocessor instead default one
+                              [gcc -E]
+  --with-cxx=CC           Use C++ compiler instead default one
+                              [g++]
+Optional features:
+  --enable-test           Enables test code compilation
+                              [disabled]
+  --with-java-home=DIR    Path to the Java SDK
+                              [\$JAVA_HOME environment variable]
+  --with-java-platorm=DIR Path to the Java platform include
+                              [\$JAVA_HOME/include/platform]
+
+Optional packages:
+  --enable-openssl        Enable compilation of OpenSSL SSL/TLS module
+                              [disabled]
+  --with-openssl=DIR      Path to the  OpenSSL toolkit headers
+  --with-openssl-lib=DIR  Path to the  OpenSSL toolkit libraries
+
 EOH
         exit 1
         ;;
@@ -398,7 +418,7 @@
         varadds sslflags "-lssl -lcrypto"
     else
         if [ -n "$openssl_lib" ]; then
-            varadds sslflags "/libpath:\"openssl_lib\""
+            varadds sslflags "/libpath:\"$openssl_lib\""
         fi
         varadds sslflags "libeay32.lib ssleay32.lib"
     fi
@@ -517,7 +537,7 @@
     if [ $rc = 1 ]; then
         echo ok 1>&2
     else
-        echo "not found" 1>&2
+        echo "no" 1>&2
     fi
     echo $rc
 }
@@ -544,7 +564,7 @@
     if [ $rc = 1 ]; then
         echo ok 1>&2
     else
-        echo "not found" 1>&2
+        echo "no" 1>&2
     fi
     echo $rc
 }
@@ -655,6 +675,8 @@
 #define HAVE_ARPA_INET_H      `have_include arpa/inet`
 #define HAVE_SYS_UN_H         `have_include sys/un`
 #define HAVE_STRERROR_R       `have_function strerror_r`
+#define HAVE_ACCEPT4          `have_function accept4`
+#define HAVE_DUP3             `have_function dup3`
 #define HAVE_EPOLL_CREATE1    `have_function epoll_create1`
 #define HAVE_SOCK_CLOEXEC     `have_sock_cloexec`