1 dnl Process this file with autoconf to produce a configure script.
2 dnl $Id: configure.in,v 1.2 1997/09/16 05:01:43 law Exp $
6 dnl Checks for programs.
7 dnl AC_PROG_GCC_TRADITIONAL
17 dnl Checks for libraries.
18 # Needed on sysV68 for sigblock, sigsetmask.
19 AC_CHECK_LIB(bsd, sigblock)
22 for termlib in curses ncurses termcap terminfo termlib ; do
23 AC_CHECK_LIB(${termlib}, tputs,
24 [TERMLIBS="${TERMLIBS} -l${termlib}"; break])
28 dnl Checks for header files.
30 AC_CHECK_HEADERS(unistd.h termios.h termio.h strings.h string.h varargs.h \
31 sys/time.h sys/fcntl.h sys/ttold.h sys/ptem.h sys/file.h)
33 dnl Checks for typedefs, structures, and compiler characteristics.
38 dnl Checks for library functions.
40 if test "$ac_cv_c_cross" = no; then
41 AC_FUNC_SETVBUF_REVERSED
43 AC_CHECK_FUNCS(setvbuf getcwd memset bzero strchr strcasecmp \
44 vfprintf vsprintf strerror sigprocmask sigsetmask)
45 dnl strcasecmp, strerror, xmalloc, xrealloc, probably others should be added.
46 AC_REPLACE_FUNCS(memcpy memmove strdup)
48 AC_OUTPUT(Makefile libtxi/Makefile makeinfo/Makefile info/Makefile util/Makefile emacs/Makefile)