Changeset 853:1a53ce22d203 in roaraudio


Ignore:
Timestamp:
09/28/08 22:52:26 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

checking for 64 bit types

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r843 r853  
    369369fi 
    370370 
     371echo -n 'checking for 64 bit types... ' 
     372cat > $TF_C << EOF 
     373#include <stdio.h> 
     374#include <stdint.h> 
     375 
     376int 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} 
     397EOF 
     398if $CCTF 2> /dev/null; 
     399then 
     400 $TF_E >&3 
     401else 
     402 echo 'error, can not compile' 
     403 exit 1 
     404fi 
     405 
     406 
    371407echo -n 'checking if cp supports -v... ' 
    372408if cp -v --help > /dev/null 2> /dev/null 
Note: See TracChangeset for help on using the changeset viewer.