Changeset 853:1a53ce22d203 in roaraudio
Legend:
- Unmodified
- Added
- Removed
-
configure
r843 r853 369 369 fi 370 370 371 echo -n 'checking for 64 bit types... ' 372 cat > $TF_C << EOF 373 #include <stdio.h> 374 #include <stdint.h> 375 376 int main (void) { 377 char * i64 = NULL, * ui64 = NULL; 378 379 if ( sizeof(int) == 8 ) { 380 i64 = "int"; ui64 = "unsigned int"; 381 } else if ( sizeof(long int) == 8 ) { 382 i64 = "long int"; ui64 = "unsigned long int"; 383 } else if ( sizeof(long long int) == 8 ) { 384 i64 = "long long int"; ui64 = "unsigned long long int"; 385 } else if ( sizeof(int64_t) == 8 ) { 386 i64 = "int64_t"; ui64 = "uint64_t"; 387 } else { 388 fprintf(stderr, "none\n"); 389 return 0; 390 } 391 392 fprintf(stderr, "%s, %s\n", i64, ui64); 393 printf("#define ROAR_NATIVE_INT64 %s\n#define ROAR_NATIVE_UINT64 %s\n", i64, ui64); 394 395 return 0; 396 } 397 EOF 398 if $CCTF 2> /dev/null; 399 then 400 $TF_E >&3 401 else 402 echo 'error, can not compile' 403 exit 1 404 fi 405 406 371 407 echo -n 'checking if cp supports -v... ' 372 408 if cp -v --help > /dev/null 2> /dev/null
Note: See TracChangeset
for help on using the changeset viewer.