home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / Exploit and vulnerability / w00w00 / sectools / fragrouter / configure.in < prev    next >
Encoding:
Text File  |  1999-07-26  |  965 b   |  47 lines

  1. dnl configure.in for fragrouter
  2. dnl
  3. dnl Dug Song <dugsong@anzen.com>
  4. dnl
  5. dnl $Id: configure.in,v 1.9 1999/06/25 15:19:48 dugsong Exp $
  6.  
  7. AC_INIT(fragrouter.c)
  8.  
  9. AC_CONFIG_HEADER(config.h)
  10.  
  11. dnl Check for programs.
  12. AC_PROG_CC
  13. dnl Check for some compiler options.
  14. if test -n "$GCC"; then
  15.    AC_MSG_CHECKING([if the compiler understands -pipe -Wall])
  16.    OLDCC="$CC"
  17.    CC="$CC -pipe -Wall"
  18.    AC_TRY_COMPILE(,,
  19.       AC_MSG_RESULT(yes),
  20.       CC="$OLDCC"
  21.       AC_MSG_RESULT(no))
  22. fi
  23. AC_PROG_INSTALL
  24. AC_PROG_MAKE_SET
  25.  
  26. dnl Check for standard header files.
  27. AC_HEADER_STDC
  28. AC_CHECK_HEADERS(unistd.h sys/param.h)
  29.  
  30. dnl Check for typedefs, structures, and compiler characteristics.
  31. AC_C_CONST
  32.  
  33. dnl Check for libraries and functions.
  34. AC_CHECK_FUNCS(strdup)
  35.  
  36. dnl Solaris jonks
  37. AC_CHECK_LIB(nsl, gethostbyname)
  38. AC_CHECK_LIB(socket, socket)
  39.  
  40. dnl Linux sux
  41. AC_CHECK_HEADERS(net/ethernet.h)
  42. dnl AC_DEFINE(_BSD_SOURCE)
  43.  
  44. AC_CONFIG_SUBDIRS(libpcap-0.4 Libnet-0.99b)
  45.  
  46. AC_OUTPUT(Makefile)
  47.