home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / OS2 / gnuinfo.zip / configure.in < prev    next >
Text File  |  1997-07-31  |  2KB  |  80 lines

  1. dnl Process this file with autoconf to produce a configure script.
  2. dnl $Id: configure.in,v 1.26 1997/07/31 20:33:39 karl Exp $
  3. dnl
  4. AC_INIT(makeinfo/makeinfo.c)
  5. AC_PREREQ(2.12)dnl Minimum Autoconf version required.
  6. AM_CONFIG_HEADER(config.h)
  7.  
  8. AM_INIT_AUTOMAKE([texinfo], [3.11])
  9.  
  10. dnl Checks for programs.
  11. AC_PROG_CC
  12. AC_PROG_GCC_TRADITIONAL
  13. AC_PROG_INSTALL
  14. AC_PROG_RANLIB
  15.  
  16. # We do this for the sake of a more helpful warning in doc/Makefile.
  17. TEXMF='$(datadir)/texmf'
  18. AC_CHECK_PROG(TEXCONFIG, texconfig, true, false)
  19. $TEXCONFIG && eval `texconfig confall | grep '^TEXMF='`
  20. AC_SUBST(TEXMF)
  21.  
  22. AC_ISC_POSIX
  23. AC_MINIX
  24.  
  25. dnl Checks for libraries.
  26. # Needed on sysV68 for sigblock, sigsetmask.
  27. AC_CHECK_LIB(bsd, sigblock)
  28.  
  29. # Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but
  30. # rather ncurses.  So we check for it.
  31. TERMLIBS=
  32. for termlib in ncurses curses termcap terminfo termlib ; do
  33.    AC_CHECK_LIB(${termlib}, tputs,
  34.      [TERMLIBS="${TERMLIBS} -l${termlib}"; break])
  35. done
  36. AC_SUBST(TERMLIBS)
  37.  
  38. dnl Checks for header files.
  39. AC_HEADER_STDC
  40. AC_CHECK_HEADERS(fcntl.h pwd.h string.h strings.h termcap.h termio.h \
  41.   termios.h unistd.h \
  42.   sys/fcntl.h sys/file.h sys/ptem.h sys/time.h sys/ttold.h sys/wait.h)
  43.  
  44. dnl Do not use <ncurses/termcap.h> unless we're linking with ncurses.
  45. if test "x$termlib" = xncurses; then
  46.   AC_CHECK_HEADER(ncurses/termcap.h)
  47. fi
  48.  
  49. dnl Checks for typedefs, structures, and compiler characteristics.
  50. AC_TYPE_OFF_T
  51. AC_TYPE_SIGNAL
  52. AC_C_CONST
  53. AC_STRUCT_TM
  54.  
  55. dnl Checks for library functions.
  56. AC_FUNC_ALLOCA
  57. AC_FUNC_VPRINTF
  58. AC_FUNC_SETVBUF_REVERSED
  59. AC_CHECK_FUNCS(setvbuf getcwd memset bzero strchr strcasecmp \
  60.   sigprocmask sigsetmask)
  61. dnl strcasecmp, strerror, xmalloc, xrealloc, probably others should be added.
  62. AC_REPLACE_FUNCS(memcpy memmove strdup strerror)
  63.  
  64. dnl Set of available languages and i18n macros.
  65. ALL_LINGUAS="de fr"
  66. AM_GNU_GETTEXT
  67. AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)
  68.  
  69. AC_OUTPUT([Makefile             \
  70.            doc/Makefile         \
  71.            emacs/Makefile       \
  72.            info/Makefile        \
  73.            intl/Makefile        \
  74.            lib/Makefile         \
  75.            makeinfo/Makefile    \
  76.            po/Makefile.in       \
  77.            util/Makefile        \
  78.            ],
  79.           [sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in >po/Makefile])
  80.