diff options
author | Martin Pärtel <martin.partel@gmail.com> | 2012-05-18 12:42:38 +0300 |
---|---|---|
committer | Martin Pärtel <martin.partel@gmail.com> | 2012-05-18 12:42:38 +0300 |
commit | b5287339fa2196f8741cf0a23e5c83e0772c46e9 (patch) | |
tree | a243f30ba4791cfd81f6534ead8f8310c15a5cc2 | |
parent | 1cfc042b5a5e6dc8ea5d81d9d719d472a1800167 (diff) | |
download | bindfs-b5287339fa2196f8741cf0a23e5c83e0772c46e9.tar.gz |
Added --enable-debug-output, now --enable-debug only adds debug symbols.
-rwxr-xr-x | autogen.sh | 2 | ||||
-rw-r--r-- | configure.ac | 9 |
2 files changed, 8 insertions, 3 deletions
@@ -41,7 +41,7 @@ echo "Running $AUTOMAKE..." $AUTOMAKE -a -c || exit 1 if [ "$1" == "-d" ]; then - echo "Running configure --enable-debug" + echo "Running configure --enable-debug (but not --enable-debug-output)" echo sleep 1s ./configure --enable-debug diff --git a/configure.ac b/configure.ac index e59c8c7..25cb449 100644 --- a/configure.ac +++ b/configure.ac @@ -9,18 +9,23 @@ AC_PROG_LIBTOOL # --enable and --with options AC_ARG_ENABLE([debug], - [AS_HELP_STRING([--enable-debug], [enable extra debug output])]) + [AS_HELP_STRING([--enable-debug], [enable debug symbols])]) + AC_ARG_ENABLE([debug-output], + [AS_HELP_STRING([--enable-debug-output], [enable debug output])]) AC_ARG_WITH([core-foundation], AS_HELP_STRING([--with-core-foundation], [link against Core Foundation (OS X only) @<:@default=no@:>@])) if test x"$enable_debug" == "xyes" ; then CFLAGS="${CFLAGS} -g -O0" - AC_DEFINE([BINDFS_DEBUG], [1], [Define to 1 to enable debugging messages]) else CFLAGS="${CFLAGS} -O2" fi +if test x"$enable_debug_output" == "xyes" ; then + AC_DEFINE([BINDFS_DEBUG], [1], [Define to 1 to enable debugging messages]) +fi + if test x"$with_core_foundation" == "xyes" ; then AC_MSG_NOTICE([Linking with Core Foundation]) LDFLAGS="${LDFLAGS} -framework CoreFoundation" |