home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Web / Utilities / wwwcount-2.3 / configure.in < prev    next >
Encoding:
Text File  |  1996-04-29  |  1.3 KB  |  51 lines

  1. dnl Process this file with autoconf to produce a configure script.
  2. AC_INIT(config.h)
  3.  
  4. dnl Checks for programs.
  5. AC_PROG_CC
  6. AC_PROG_RANLIB
  7. dnl AC_MSG_CHECKING(checking if datafile creation is allowed)
  8. dnl if test -f "./.alfcf"; then
  9. dnl    AC_DEFINE(ALLOW_FILE_CREATION)
  10. dnl    AC_MSG_RESULT(yes)
  11. dnl else
  12. dnl    AC_MSG_RESULT(no)
  13. dnl fi
  14. dnl AC_MSG_CHECKING(checking if strict mode is decided)
  15. dnl if test -f "./.strict"; then
  16. dnl     AC_DEFINE(STRICT_MODE)
  17. dnl     AC_MSG_RESULT(yes)
  18. dnl else
  19. dnl     AC_MSG_RESULT(no)
  20. dnl fi
  21. AC_PROG_MAKE_SET
  22.  
  23. dnl Checks for libraries.
  24.  
  25. dnl Checks for header files.
  26. dnl AC_HEADER_STDC
  27. AC_STDC_HEADERS
  28. AC_HEADER_SYS_WAIT
  29. AC_HEADER_TIME
  30. AC_CHECK_HEADERS(string.h fcntl.h memory.h malloc.h unistd.h ctype.h)
  31. AC_CHECK_HEADERS(strings.h)
  32.  
  33. AC_CHECK_HEADERS(sys/stat.h sys/param.h sys/file.h stdlib.h)
  34. dnl Checks for typedefs, structures, and compiler characteristics.
  35. AC_C_CONST
  36. AC_STRUCT_TM
  37. AC_CHECK_FUNC(flock,AC_DEFINE(HAVE_FLOCK))
  38. AC_CHECK_FUNC(strcasecmp,AC_DEFINE(HAVE_STRCASECMP))
  39. AC_CHECK_FUNC(mktime,AC_DEFINE(HAVE_MKTIME))
  40. dnl from vile configure.in, I love vile, a great editor
  41. AC_MSG_CHECKING([for SCO])
  42. AC_PROGRAM_CHECK(COULD_BE_SCO, [scosh], maybe, maybenot)
  43. if test "$COULD_BE_SCO" = "maybe"
  44. then
  45.     AC_DEFINE(SYSTEM_LOOKS_LIKE_SCO)
  46. fi
  47.  
  48. dnl Checks for library functions.
  49.  
  50. AC_OUTPUT(combine/Makefile Makefile utils/Makefile)
  51.