Changeset 1720

Show
Ignore:
Timestamp:
03/05/07 14:55:18 (22 months ago)
Author:
aturner
Message:

proper detection for cygwin/win32 refs #110

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/configure.in

    r1716 r1720  
    3333AC_SUBST(build) 
    3434AC_SUBST(target) 
     35 
     36AC_MSG_CHECKING([for cygwin development environment]) 
     37if test `echo $target | grep -c cygwin` -gt 0 ; then 
     38   AC_DEFINE([WIN32], [1], [Windows/Cygwin]) 
     39   AC_MSG_RESULT(yes) 
     40else 
     41   AC_MSG_RESULT(no) 
     42fi 
     43 
    3544 
    3645AM_INIT_AUTOMAKE(tcpreplay, $TCPREPLAY_VERSION, nodefine) 
     
    899908        *-*-cygwin) 
    900909        AC_MSG_RESULT(Win32/Cygwin) 
    901         AC_DEFINE([WIN32],[1], [Platform is Win32/Cygwin]) 
    902910        nic1=%0 
    903911        nic1=%0