Author: mturk Date: Tue Jun 16 09:51:12 2009 New Revision: 785132 URL: http://svn.apache.org/viewvc?rev=785132&view=rev Log: Check for long long and long double and crete presence defines
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=785132&r1=785131&r2=785132&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/src/main/native/configure (original) +++ commons/sandbox/runtime/trunk/src/main/native/configure Tue Jun 16 09:51:12 2009 @@ -508,16 +508,11 @@ { printf "Checking for %-32s" "$1" 1>&2 cat > $test.c << EOF -#define $1 innocuous_$1 #ifdef __STDC__ #include <limits.h> #else #include <assert.h> #endif -#undef $1 -#ifdef __cplusplus -extern "C" -#endif char $1 (); #if defined __stub_$1 || defined __stub___$1 choke me @@ -537,7 +532,7 @@ if [ $rc = 1 ]; then echo ok 1>&2 else - echo "no" 1>&2 + echo "not found" 1>&2 fi echo $rc } @@ -564,7 +559,7 @@ if [ $rc = 1 ]; then echo ok 1>&2 else - echo "no" 1>&2 + echo "not found" 1>&2 fi echo $rc } @@ -603,6 +598,17 @@ exit 1 fi +have_long_long=1 +have_long_double=1 +sizeof_long_long=`test_csizeof 'long long'` +if [ ".$sizeof_long_long" = ".0" ]; then + have_long_long=0 +fi +sizeof_long_double=`test_csizeof 'long double'` +if [ ".$sizeof_long_double" = ".0" ]; then + have_long_double=0 +fi + if [ ".$host" = ".windows" ]; then have_fileextd=`have_include fileextd '#include <windows.h>'` have_ktmw32=`have_include ktmw32 '#include <windows.h>'` @@ -679,12 +685,14 @@ #define HAVE_DUP3 `have_function dup3` #define HAVE_EPOLL_CREATE1 `have_function epoll_create1` #define HAVE_SOCK_CLOEXEC `have_sock_cloexec` +#define HAVE_LONG_LONG $have_long_long +#define HAVE_LONG_DOUBLE $have_long_double #define CC_SIZEOF_INT $sizeof_int #define CC_SIZEOF_WCHAR_T $sizeof_wchar - #define CC_SIZEOF_LONG `test_csizeof long` -#define CC_SIZEOF_LONG_LONG `test_csizeof 'long long'` +#define CC_SIZEOF_LONG_LONG $sizeof_long_long +#define CC_SIZEOF_LONG_DOUBLE $sizeof_long_double #define CC_SIZEOF_VOIDP `test_csizeof 'void *'` #define CC_SIZEOF_SIZE_T `test_csizeof size_t` #define CC_SIZEOF_OFF64_T `test_csizeof off64_t`