home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / readline.zip / readline-2.1 / configure.in < prev    next >
Text File  |  1997-03-11  |  2KB  |  83 lines

  1. dnl
  2. dnl Configure script for readline library
  3. dnl
  4. dnl report bugs to chet@po.cwru.edu
  5. dnl
  6. dnl Process this file with autoconf to produce a configure script.
  7. AC_REVISION([for Readline 2.1, version 2.04, from autoconf version] AC_ACVERSION)
  8. LIBVERSION=2.1
  9.  
  10. AC_INIT(readline.h)
  11. AC_CONFIG_HEADER(config.h)
  12.  
  13. dnl make sure we are using a recent autoconf version
  14. AC_PREREQ(2.10)
  15.  
  16. AC_CONFIG_AUX_DIR(./support)
  17.  
  18. AC_CANONICAL_HOST
  19.  
  20. # We want these before the checks, so the checks can modify their values.
  21. test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
  22.  
  23. AC_PROG_CC
  24.  
  25. # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
  26. test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
  27.  
  28. AC_PROG_GCC_TRADITIONAL
  29. AC_PROG_INSTALL
  30. AC_PROG_RANLIB
  31.  
  32. AC_RETSIGTYPE
  33.  
  34. AC_HEADER_STAT
  35. AC_HEADER_DIRENT
  36.  
  37. AC_CHECK_FUNCS(strcasecmp select setenv putenv tcgetattr setlocale lstat)
  38.  
  39. AC_FUNC_STRCOLL
  40.  
  41. AC_CHECK_HEADERS(unistd.h stdlib.h varargs.h stdarg.h string.h \
  42.         sys/ptem.h sys/pte.h sys/stream.h sys/select.h \
  43.         termcap.h termios.h termio.h sys/file.h locale.h)
  44.  
  45. BASH_SIGNAL_CHECK
  46. BASH_REINSTALL_SIGHANDLERS
  47.  
  48. BASH_FUNC_POSIX_SETJMP
  49. BASH_FUNC_LSTAT
  50. BASH_CHECK_GETPW_FUNCS
  51. BASH_FUNC_STRCOLL
  52.  
  53. BASH_TYPE_SIGHANDLER
  54. BASH_HAVE_TIOCGWINSZ
  55. BASH_HAVE_TIOCSTAT
  56. BASH_HAVE_FIONREAD
  57. BASH_MISC_SPEED_T
  58. BASH_STRUCT_DIRENT_D_INO
  59. BASH_STRUCT_DIRENT_D_FILENO
  60.  
  61. case "$host_cpu" in
  62. *cray*)    LOCAL_CFLAGS=-DCRAY ;;
  63. esac
  64.  
  65. case "$host_os" in
  66. isc*)    LOCAL_CFLAGS=-Disc386 ;;
  67. esac
  68.  
  69. AC_SUBST(CFLAGS)
  70. AC_SUBST(LOCAL_CFLAGS)
  71. AC_SUBST(LOCAL_DEFS)
  72.  
  73. AC_SUBST(host_cpu)
  74. AC_SUBST(host_os)
  75.  
  76. AC_SUBST(LIBVERSION)
  77.  
  78. AC_OUTPUT([Makefile doc/Makefile examples/Makefile],
  79. [
  80. # Makefile uses this timestamp file to record whether config.h is up to date.
  81. echo > stamp-h
  82. ])
  83.