Author: mturk
Date: Tue Apr 21 15:48:59 2009
New Revision: 767194
URL: http://svn.apache.org/viewvc?rev=767194&view=rev
Log:
configure is getting larger and larger :(
Find uuid library
Modified:
commons/sandbox/runtime/trunk/src/main/native/configure
commons/sandbox/runtime/trunk/src/main/native/test/testcase.c
Modified: commons/sandbox/runtime/trunk/src/main/native/configure
URL:
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/configure?rev=767194&r1=767193&r2=767194&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/configure (original)
+++ commons/sandbox/runtime/trunk/src/main/native/configure Tue Apr 21 15:48:59
2009
@@ -414,6 +414,32 @@
echo $rc
}
+have_library()
+{
+ printf "Checking for %-32s" "$1 library" 1>&2
+ cat > $test.c << EOF
+#include <stdlib.h>
+$2
+int main() {return 0;}
+EOF
+ rc=0
+ co="`$cc $ccflags $cppopts $test.c -l$1 -o $test$exe 2>&1`"
+ if [ ".$co" = "." ]; then
+ rc=1
+ else
+ if [ -x $test$exe ]; then
+ rc=1
+ fi
+ fi
+ rm -rf $test.* $test *.pdb >/dev/null 2>&1 || true
+ if [ $rc = 1 ]; then
+ echo ok 1>&2
+ else
+ echo "not found" 1>&2
+ fi
+ echo $rc
+}
+
have_strerror_r()
{
printf "Checking for %-32s" "strerror_r" 1>&2
@@ -478,10 +504,19 @@
have_aio=0
have_libaio=0
have_windows=1
+ have_uuid_uuid=0
else
+ have_fileextd=0
have_aio=`have_include aio`
have_libaio=`have_include libaio`
have_windows=0
+ have_uuid_uuid=`have_include uuid/uuid`
+ if [ ".$have_uuid_uuid" = ".1" ]; then
+ ok=`have_library uuid`
+ if [ ".ok" = ".1" ]; then
+ varadds ldflags "-luuid"
+ fi
+ fi
fi
if [ ".$have_libaio" = ".1" ]; then
Modified: commons/sandbox/runtime/trunk/src/main/native/test/testcase.c
URL:
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/test/testcase.c?rev=767194&r1=767193&r2=767194&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/test/testcase.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/test/testcase.c Tue Apr 21
15:48:59 2009
@@ -27,7 +27,6 @@
#include "acr_descriptor.h"
#include "acr_file.h"
-
/**
* Test cases
*/