dnl Process this file with autoconf to produce a configure script. AC_INIT(src/cflow2vcg.c) AM_INIT_AUTOMAKE(cflow2vcg, 0.5) AC_PROG_CC AC_PROG_MAKE_SET AC_ARG_PROGRAM AC_PROG_RANLIB dnl Only use -Wall if we have gcc if test "x$GCC" = "xyes"; then if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then CFLAGS="$CFLAGS -Wall" fi fi dnl Checks for header files. AC_HEADER_CHECK(fcntl.h,,AC_MSG_ERROR([required header file missing]),) dnl Enable debuging information AC_ARG_ENABLE(debug, [ --enable-debug Enable debuging information], [case "${enableval}" in yes) debug=true ;; no) debug=false ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;; esac],[debug=false]) if test "$debug" = "true"; then echo "Debuging statements enabled" CFLAGS="-D_DEBUG_ $CFLAGS" fi dnl AC_SUBST ($PACKAGE) dnl AC_SUBST ($VERSION) AC_OUTPUT(src/Makefile doc/Makefile test/Makefile Makefile) echo "$PACKAGE configured, type make to build"