Changeset 354:bcf8d9c3317d in roaraudio
Legend:
- Unmodified
- Added
- Removed
-
configure
r353 r354 4 4 5 5 TF_C=testit.c 6 TF_E= testit6 TF_E=./testit 7 7 CC=cc 8 8 … … 86 86 fi 87 87 88 echo -n 'checking for save 32 bit integer overflow... ' 89 90 cat > $TF_C << EOF 91 #include <stdio.h> 92 #include <stdint.h> 93 #define TYPE uint32_t 94 #define MAX ((TYPE)4294967295U) 95 96 int main (void) { 97 TYPE a = MAX; 98 99 a += 2; 100 101 if ( a == 1 ) { 102 printf("#define ROAR_HAVE_SAFE_OVERFLOW\n"); 103 return 0; 104 } 105 106 return 1; 107 } 108 EOF 109 110 if $CCTF 2> /dev/null; 111 then 112 $TF_E >&3 113 if [ "$?" = '0' ] 114 then 115 echo yes 116 else 117 echo no 118 fi 119 else 120 echo 'no (can not compile!, no stdint.h?)' 121 fi 122 88 123 cat >&3 << EOF 89 124 … … 93 128 EOF 94 129 95 #rm -f $TF_C $TF_E130 rm -f $TF_C $TF_E 96 131 97 132 #ll
Note: See TracChangeset
for help on using the changeset viewer.