configure.in
上传用户:s81996212
上传日期:2007-01-04
资源大小:722k
文件大小:2k
源码类别:

WEB邮件程序

开发平台:

C/C++

  1. dnl Process this file with autoconf to produce a configure script.
  2. dnl $Id: configure.in,v 1.5 1999/12/08 05:40:58 mrsam Exp $
  3. dnl
  4. dnl Copyright 1998 - 1999 Double Precision, Inc.  See COPYING for
  5. dnl distribution information.
  6. AC_INIT(random128.c)
  7. AM_INIT_AUTOMAKE(random128,0.10,0)
  8. dnl Checks for programs.
  9. AM_CONFIG_HEADER(config.h)
  10. AC_ISC_POSIX
  11. AC_PROG_INSTALL
  12. AC_PROG_LN_S
  13. AC_PROG_RANLIB
  14. AC_PROG_CC
  15. AC_MINIX
  16. AC_AIX
  17. AC_PATH_PROGS(PS, ps, ps)
  18. AC_PATH_PROGS(W, w, w)
  19. if test "$PS" = "ps"
  20. then
  21. AC_MSG_ERROR(Cannot find pathname to ps)
  22. fi
  23. if test x$GXX = xyes
  24. then
  25. CFLAGS="-Wall $CFLAGS"
  26. fi
  27. CFLAGS="-I.. -I$srcdir/.. $CFLAGS"
  28. dnl Checks for libraries.
  29. dnl Checks for header files.
  30. AC_HEADER_SYS_WAIT
  31. AC_CHECK_HEADERS(unistd.h fcntl.h)
  32. AC_TYPE_PID_T
  33. AC_ARG_WITH(random, [ --with-random=/dev/urandom - location of the system random file generator
  34. --without-random            - there is no system random file generator ],
  35. random="$enableval",
  36. random="y")
  37. case "$random" in
  38. /*)
  39. ;;
  40. y*|1*)
  41. AC_CACHE_CHECK([for random source],random_cv_RANDOM,
  42. if test -c /dev/urandom
  43. then
  44. random_cv_RANDOM=/dev/urandom
  45. else
  46. if test -c /dev/random
  47. then
  48. random_cv_RANDOM=/dev/random
  49. else
  50. random_cv_RANDOM="none"
  51. fi
  52. fi
  53. )
  54. random="$random_cv_RANDOM"
  55. ;;
  56. *)
  57. random="none"
  58. ;;
  59. esac
  60. if test "$random" != "none"
  61. then
  62. AC_DEFINE_UNQUOTED(RANDOM, "$random_cv_RANDOM")
  63. fi
  64. AC_CACHE_CHECK([for some good options for ps],random_cv_PS_OPTIONS,
  65. for opts in -Afl -Afw -Af -Al -afl -afw -af -al Afl Afw Af Al afl afw af al
  66. do
  67. ps $opts >/dev/null 2>/dev/null || continue
  68. break
  69. done
  70. random_cv_PS_OPTIONS="$opts"
  71. )
  72. AC_DEFINE_UNQUOTED(PS_OPTIONS,"$random_cv_PS_OPTIONS")
  73. AC_DEFINE_UNQUOTED(PS,"$PS")
  74. if test "$W" != "w"
  75. then
  76. AC_DEFINE_UNQUOTED(W, "$w")
  77. fi
  78. AC_OUTPUT(Makefile)