Changeset 2762:d33de5b1ba6a in roaraudio


Ignore:
Timestamp:
09/23/09 01:10:00 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

test for winsock shutdown()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure

    r2761 r2762  
    12101210 
    12111211echo -n 'checking for shutdown()... ' 
    1212 echo '#include <sys/types.h>'      >  $TF_C 
    1213 echo '#include <sys/socket.h>'     >> $TF_C 
    1214 echo 'int main (void) { shutdown(0, 0); return 0; }'  >> $TF_C 
     1212cat <<EOF > $TF_C 
     1213#include <sys/types.h> 
     1214#ifndef WITHOUT_SYS_SOCKET_H 
     1215#include <sys/socket.h> 
     1216#endif 
     1217#ifdef WITH_WINSOCK_H 
     1218#include <winsock.h> 
     1219#endif 
     1220 
     1221int main (void) { shutdown(0, 0); return 0; } 
     1222EOF 
    12151223 
    12161224if [ "$SYSNAME" = 'SunOS' ] 
     
    12221230 
    12231231if $CCTF $_l 2> /dev/null; 
     1232then 
     1233 echo '#define ROAR_HAVE_SHUTDOWN'     >&3 
     1234 echo '#define ROAR_SHUTDOWN shutdown' >&3 
     1235 echo yes 
     1236elif $CCTF -DWITHOUT_SYS_SOCKET_H -DWITH_WINSOCK_H $lib_wsock32 2> /dev/null; 
    12241237then 
    12251238 echo '#define ROAR_HAVE_SHUTDOWN'     >&3 
Note: See TracChangeset for help on using the changeset viewer.