dnl dnl Configure.in file for cle dnl dnl Author: Erick Gallesio [eg@unice.fr] dnl Creation date: 16-Oct-1999 21:02 (eg) dnl Last file update: 18-Nov-1999 12:03 (eg) AC_INIT(src/cle.c) VERSION=`cat VERSION` AM_INIT_AUTOMAKE(cle, $VERSION) AM_CONFIG_HEADER( config.h ) dnl AM_MAINTAINER_MODE dnl Checks for programs. AC_PROG_CC AC_ISC_POSIX AC_HEADER_STDC AC_PROG_RANLIB dnl Checks for arguments. AC_ARG_WITH(curses, --with-curses use the curses library instead of the termcap library,opt_curses=$withval) if test "$opt_curses" = "yes"; then prefer_curses=yes fi if test "$prefer_curses" = "yes"; then curses="--with-curses" TERMLIB=-lcurses else curses="" TERMLIB=-ltermcap fi dnl Checks for libraries. dnl Checks for header files. dnl Checks for typedefs, structures, and compiler characteristics. dnl Checks for library functions. AC_HAVE_FUNCS(sigaction) dnl Recursive configuration (cd readline; configure $prefix $curses) AC_SUBST(TERMLIB, TERMLIB) AC_SUBST(VERSION, VERSION) AC_OUTPUT(Makefile src/Makefile doc/Makefile etc/cle.spec)