www.pudn.com > cppcc.rar > configure.in
dnl Process this file with autoconf to produce a configure script.
AC_INIT(configure.in)
AM_INIT_AUTOMAKE(cppcc, 0.0.6)
AM_CONFIG_HEADER(config.h)
dnl Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AM_PROG_LEX
AC_PROG_YACC
AC_PROG_RANLIB
AM_PROG_LIBTOOL
dnl Checks for libraries.
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(malloc.h unistd.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
dnl Checks for library functions.
AC_CHECK_FUNCS(strdup strstr stat snprintf)
dnl Compile-time options
AC_ARG_ENABLE(debug,
[ --enable-debug enables debug stuff into CppCC itself],
[AC_DEFINE(DEBUG,1,Debug level)
case "${enableval}" in
yes) debug=true ;;
no) debug=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
esac
], [debug=false])
AM_CONDITIONAL(DEBUG, test x$debug = xtrue)
AM_CONDITIONAL(W32_BUILD, test x$target = xi386-mingw32msvc)
AC_OUTPUT(Makefile src/Makefile doc/Makefile doc/pics/Makefile examples/Makefile examples/c/Makefile examples/verilog/Makefile examples/cppcc/Makefile tests/Makefile tests/common/Makefile tests/feed/Makefile tests/feed/006s_exprs/Makefile tests/feed/007s_pushback/Makefile tests/feed/008s_stream_switch/Makefile tests/feed/009s_lookahead/Makefile tests/inputs/Makefile)