summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2006-07-25 16:35:37 +0000
committerdeva <deva>2006-07-25 16:35:37 +0000
commit9c99d420b7adf0c1a82115f3e70a633f80ae8260 (patch)
tree1bead10068b87db3f20b8cdebf50cac1d6d4d642
parentbad686c6eba0d6afc39b8fcdd78f5069ec4d2cb8 (diff)
Moved the ETC and PIXMAPS symbols to config.h.
Moved the ETC and PIXMAPS symbols to config.h. Moved the ETC and PIXMAPS symbols to config.h. Moved the ETC and PIXMAPS symbols to config.h.
-rw-r--r--configure.in21
1 files changed, 20 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 82906fb..3c77551 100644
--- a/configure.in
+++ b/configure.in
@@ -9,10 +9,29 @@ AM_PROG_LIBTOOL
AM_CONFIG_HEADER(config.h)
AC_STDC_HEADERS
-CXXFLAGS="$CXXFLAGS -Wall -Werror"
+
+CXXFLAGS="$CXXFLAGS -I../lib"
+LDFLAGS="$LDFLAGS -L../lib"
AC_OUTPUT(lib/Makefile)
+AC_DEFINE_UNQUOTED(ETC, "$prefix/etc/miav", [The path to the config files])
+AC_DEFINE_UNQUOTED(PIXMAPS, "$prefix/share/pixmaps", [The path to the pixmap files])
+
+AC_ARG_WITH(debug, [ --with-debug Build with debugging (-g -Wall -Werror and -lefence)])
+if test x$with_debug != xno && test -z "$DEBUG"; then
+ CXXFLAGS="$CXXFLAGS -g -Wall -Werror"
+
+ dnl =====================
+ dnl Check for efence library
+ dnl =====================
+# AC_CHECK_LIB(efence, malloc, , AC_MSG_ERROR([*** The electric fence library (libefence.a) was not found!]))
+# LDFLAGS="$LDFLAGS -lefence"
+
+ dnl Make code aware of debug
+ AC_DEFINE([USE_DEBUG], [], [Is defined if the project is configured to compile with debugging])
+fi
+
AC_ARG_WITH(client, [ --without-client Build without client support])
if test x$with_client != xno && test -z "$CLIENT"; then
CLIENT_DIR=client