dnl $Id: configure.in,v 1.7 2002/04/24 19:35:52 host8 Exp $ dnl Process this file with autoconf to produce a configure script. AC_INIT(src/main.c, 1.0, platon@pobox.sk) PACKAGE="ep" VERSION="1.0" # AC_CONFIG_HEADER {{{ AC_CONFIG_HEADER(config.h) # }}} AC_CONFIG_HEADER dnl Checks for programs. AC_PROG_CC AC_PROG_CXX AC_PROG_CPP AC_GCC_TRADITIONAL if test "X$CC" = Xgcc; then CFLAGS="-Wall $CFLAGS" fi AC_PROG_AWK AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_RANLIB AC_CHECK_PROG(STRIP, strip, strip, :) dnl Checks for library functions. AC_TYPE_SIGNAL AC_FUNC_VPRINTF AC_HAVE_FUNCS(select strstr) dnl Checks for libraries. dnl Replace `main' with a function in -lncurses: dnl AC_CHECK_LIB(ncurses, main) dnl Checks for header files. AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS(ctype.h errno.h float.h limits.h malloc.h \ math.h ncurses.h stdarg.h stdio.h stdlib.h \ string.h strings.h sys/time.h unistd.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST dnl Checks for library functions. AC_CHECK_FUNCS(select strstr) dnl User defined features AC_MSG_CHECKING(--enable-debug argument) AC_ARG_ENABLE(debug, [ --enable-debug=N Turn on debuging.], debug="${enableval}"; DEBUG_FLAGS="-Wshadow -g -ggdb -DDEBUG=$debug"; AC_MSG_RESULT(${enableval}) ;, debug="no"; AC_MSG_RESULT(no)) if test "$debug" = "yes"; then DEBUG_FLAGS="-Wshadow -g -ggdb -DDEBUG=1" fi AC_SUBST(DEBUG_FLAGS) AC_SUBST(PACKAGE) AC_SUBST(VERSION) AC_SUBST(MODULES) AC_SUBST(MODULES_FLAGS) AC_SUBST(MODULES_LIBS) AC_SUBST(MODULES_SRC) AC_SUBST(MODULES_HDR) AC_SUBST(MODULES_OBJ) AC_OUTPUT(Makefile src/Makefile config.h)