Update of /cvsroot/agd/server
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32155
Modified Files:
configure.ac
Log Message:
Added --disable-debug, --enable-optimization=n, --enable-profiling.
Index: configure.ac
===================================================================
RCS file: /cvsroot/agd/server/configure.ac,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- configure.ac 21 Mar 2004 16:37:06 -0000 1.6
+++ configure.ac 28 Mar 2004 18:00:43 -0000 1.7
@@ -1,27 +1,73 @@
-# Process this file with autoconf to produce a configure script.
+## Process this file with autoconf to produce a configure script.
AC_INIT(AGD, 0.0.2-3, [so...@es...])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR(src/dfparse.y)
AM_CONFIG_HEADER(src/config.h)
AC_CONFIG_FILES([Makefile src/Makefile])
AC_PREFIX_DEFAULT(/usr)
-AC_REVISION($revision 0.06$)
+AC_REVISION($revision 0.08$)
## Disable lex, yacc, Makefile.in rebuilds by default.
AM_MAINTAINER_MODE
# Checks for programs.
-#AC_PROG_INSTALL
+##AC_PROG_INSTALL
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_YACC
-AC_SUBST(CFLAGS, '-g')
AM_PROG_LEX
AC_PROG_AWK
+CFLAGS=""
+# Checks for configure options.
+AC_MSG_CHECKING(whether to enable profiling)
+AC_ARG_ENABLE(profiling,
+ AC_HELP_STRING([--enable-profiling], [enable profiling support]), , enable_prof="no")
+if test "x${enable_prof}" != "xno"; then
+ CFLAGS="$CFLAGS -pg"
+ AC_MSG_RESULT([yes])
+else
+ AC_MSG_RESULT([no])
+fi
+
+AC_MSG_CHECKING(whether to compile with debugging symbols)
+AC_ARG_ENABLE(debug,
+ AC_HELP_STRING([--disable-debug], [disable debugging symbols]), , enable_debug="yes")
+if test "x${enable_debug}" != "xno"; then
+ CFLAGS="$CFLAGS -g"
+ AC_MSG_RESULT([yes])
+else
+ AC_MSG_RESULT([no])
+fi
+
+AC_MSG_CHECKING(whether to enable Bison debuggigngigng)
+AC_ARG_ENABLE(bison-debug,
+ AC_HELP_STRING([--enable-bison-debug], [enable Bison debugging]), , enable_bison_debug="no")
+if test "x${enable_bison_debug}" != "xno"; then
+ YFLAGS="$YFLAGS -t"
+ AC_MSG_RESULT([yes])
+else
+ AC_MSG_RESULT([no])
+fi
+
+AC_MSG_CHECKING(for optimization level)
+AC_ARG_ENABLE(optimization,
+ AC_HELP_STRING([--enable-optimization], [set optimization level]), , enable_optimization="no")
+if test "x${enable_optimization}" != "xno"; then
+ if test "x${enable_optimization}" == "xyes"; then
+ CFLAGS="$CFLAGS -O"
+ AC_MSG_RESULT([default])
+ else
+ CFLAGS="$CFLAGS -O$enableval"
+ AC_MSG_RESULT([${enableval}])
+ fi;
+else
+ AC_MSG_RESULT([off])
+fi
+
# Checks for libraries.
AC_CHECK_LIB(m, floor)
-#AC_CHECK_LIB(resolv, accept)
+##AC_CHECK_LIB(resolv, accept)
AC_CHECK_LIB(nsl, gethostbyaddr)
AC_CHECK_LIB(socket, socket)
|