2 # Process this file with autoconf to produce a configure script.
4 AC_INIT(libedit, [EL_RELEASE],, libedit-[EL_TIMESTAMP_CVSEXPORT])
5 AC_CONFIG_SRCDIR([src/strlcat.c])
6 AC_CONFIG_HEADER([config.h])
11 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
13 # libtool -version-info
14 AC_SUBST(LT_VERSION, [0:34:0])
16 # Checks for programs.
23 AC_CHECK_LIB(curses, tgetent,,
24 [AC_CHECK_LIB(ncurses, tgetent,,
25 [AC_MSG_ERROR([libtermcap, libcurses or libncurses are required!])] )] )
27 # Checks for header files.
32 AC_CHECK_HEADERS([fcntl.h limits.h malloc.h stdlib.h string.h sys/ioctl.h sys/param.h unistd.h curses.h ncurses.h sys/cdefs.h])
34 AC_CHECK_HEADER([termios.h], [], [AC_MSG_ERROR([termios.h is required!])],[])
36 ## include curses.h to prevent "Present But Cannot Be Compiled"
37 AC_CHECK_HEADERS([term.h],,,
45 # Checks for typedefs, structures, and compiler characteristics.
49 AC_CHECK_TYPES([u_int32_t])
51 # Checks for library functions.
54 AC_PROG_GCC_TRADITIONAL
55 ## _AIX is offended by rpl_malloc and rpl_realloc
60 AC_CHECK_FUNCS([endpwent isascii memchr memset re_comp regcomp strcasecmp strchr strcspn strdup strerror strrchr strstr strtol issetugid])
70 AC_CONFIG_FILES([Makefile