Changeset 1468:dd5c3b050dc6 in roaraudio


Ignore:
Timestamp:
03/29/09 23:06:41 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

check for select() and added --mmcu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r1462 r1468  
    2424SHARED_CF='' 
    2525fPIC=true 
     26MMCU='' 
    2627PKG_CONFIG=false 
    2728RUNTIME_DETECT=false 
     
    153154   echo '--without-xmms              - Disable build of XMMS plugin' 
    154155   echo 
     156   echo '--mmcu MMCU                 - Sets -mmcu compiler/linker option' 
    155157   echo '--minimal                   - Disable all optional components' 
    156158   echo '--cross-compile             - Enable cross compiler workarounds' 
     
    296298   shift; 
    297299  ;; 
     300  '--mmcu') 
     301   MMCU="$2" 
     302   shift; 
     303  ;; 
    298304  '--cross-compile') 
    299305   CROSS_COMPILE=true 
     
    472478 
    473479[ "$DEFAULT_GRP" = '' ] && DEFAULT_GRP='audio' 
     480 
     481if [ "$MMCU" != '' ] 
     482then 
     483 CC="$CC -mmcu=$MMCU" 
     484fi 
    474485 
    475486# now write the cc name to Makefile.conf 
     
    813824fi 
    814825 
     826echo -n 'checking for select()... ' 
     827cat <<EOF > $TF_C 
     828#include <sys/select.h> 
     829#include <sys/time.h> 
     830#include <sys/types.h> 
     831#include <unistd.h> 
     832 
     833int main (void) { 
     834 fd_set rfds; 
     835 struct timeval tv; 
     836 
     837 FD_ZERO(&rfds); 
     838 FD_SET(0, &rfds); 
     839 
     840 tv.tv_sec  = 0; 
     841 tv.tv_usec = 0; 
     842 
     843 select(1, &rfds, NULL, NULL, &tv); 
     844 
     845 return 0; 
     846} 
     847EOF 
     848 
     849if $CCTF 2> /dev/null; 
     850then 
     851 echo '#define ROAR_HAVE_SELECT' >&3 
     852 echo yes 
     853else 
     854 echo no 
     855fi 
     856 
    815857echo -n 'checking for getobjectbyname()... ' 
    816858echo '#include <netdnet/dn.h>'     >  $TF_C 
Note: See TracChangeset for help on using the changeset viewer.