dnl Process this file with autoconf to produce a configure script. AC_INIT(mkver.c) dnl Checks for programs. AC_PROG_YACC AC_PROG_LEX AC_PROG_CC AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET dnl Checks for libraries. dnl Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS(fcntl.h limits.h sys/file.h sys/ioctl.h sys/time.h syslog.h termio.h unistd.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_C_INLINE AC_TYPE_OFF_T AC_TYPE_PID_T AC_TYPE_SIZE_T AC_HEADER_TIME AC_STRUCT_TM dnl Checks for library functions. AC_PROG_GCC_TRADITIONAL AC_FUNC_MEMCMP AC_TYPE_SIGNAL AC_FUNC_STRFTIME AC_FUNC_VPRINTF AC_CHECK_FUNCS(gettimeofday select socket strdup strerror strstr strtol strtoul) AC_CANONICAL_SYSTEM AC_ARG_PROGRAM AC_PREFIX_DEFAULT(/usr) AC_SUBST(target) AC_SUBST(srcdir) AC_SUBST(kernel) kernel='$(shell uname -r)' AC_ARG_WITH(kernel, AC_HELP_STRING([--with-kernel=VER],[Compiler kernel modules against VER]), [kernel="$withval"]) L2TP_DEF= AC_ARG_WITH(pppoe, AC_HELP_STRING([--without-pppoe],[Without PPPOE driver]), , OUT_STRING="drivers/pppoe/Makefile") AC_ARG_WITH(l2tp, AC_HELP_STRING([--without-l2tp],[Without L2TP driver]), , OUT_STRING="${OUT_STRING} drivers/l2tp/Makefile" && L2TP_DEF="-DUSE_L2TP") AC_SUBST(L2TP_DEF) dnl AC_ARG_WITH(tty,--with-tty With TTY driver,OUT_STRING="${OUT_STRING} drivers/tty/Makefile") dnl AC_ARG_WITH(scm,--with-scm With SCM driver,OUT_STRING="${OUT_STRING} drivers/scm/Makefile") AC_ARG_WITH(testing, AC_HELP_STRING([--with-testing],[With Testing programs]), OUT_STRING="${OUT_STRING} testing/Makefile") dnl AC_ARG_WITH(scb,--with-scb With SCB driver,OUT_STRING="${OUT_STRING} drivers/scb/Makefile") dnl AC_ARG_WITH(dcplus,--with-dcplus With DCPLUS driver,OUT_STRING="${OUT_STRING} drivers/dcplus/Makefile") dnl AC_ARG_WITH(babhisax,--with-babhisax With DCBRI PCI, drivers/babhisax/setup_links remove; drivers/babhisax/setup_links create ; OUT_STRING="${OUT_STRING} drivers/babhisax/Makefile drivers/babhisax/hisax/Makefile") OUT_STRING="${OUT_STRING} common.mak drivers/common.kernel.mak drivers/Makefile conf/Makefile conf/babylon.init bin/Makefile Makefile tools/Makefile kernel/Makefile src/Makefile" AC_OUTPUT(${OUT_STRING})