1
dnl Process this file with autoconf to produce a configure script.
4
dnl Checks for programs.
10
AC_PATH_PROGS(PERL, perl perl4 perl5)
12
AC_MSG_CHECKING(if --enable-purify is specified)
16
[ --enable-purify enables checks by purify],
18
AC_PATH_PROGS(PURIFY, purify, "")
19
if test "$PURIFY" != ""; then
20
PURIFY="$PURIFY purecov"
24
dnl Checks for libraries.
27
AC_CHECK_LIB(terminfo, tgetstr,, [AC_CHECK_LIB(termcap, tgetstr,, [AC_CHECK_LIB(ncurses, tgetstr,, [AC_CHECK_LIB(curses, tgetstr)])])])
29
dnl Checks for header files.
32
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h termio.h unistd.h termios.h locale.h)
34
dnl Checks for typedefs, structures, and compiler characteristics.
36
dnl Checks for library functions.
37
AC_CHECK_FUNCS(sigvec tgetnum setlocale)
39
AC_PROG_GCC_TRADITIONAL
42
dnl From Bruno Haible.
44
AC_DEFUN([AM_LANGINFO_CODESET],
46
AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
47
[AC_TRY_LINK([#include <langinfo.h>],
48
[char* cs = nl_langinfo(CODESET);],
49
am_cv_langinfo_codeset=yes,
50
am_cv_langinfo_codeset=no)
52
if test $am_cv_langinfo_codeset = yes; then
53
AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
54
[Define if you have <langinfo.h> and nl_langinfo(CODESET).])
60
dnl AC_OUTPUT(Makefile src/Makefile)