]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Disable debugging by default if not built from git.
authorRoy Marples <roy@marples.name>
Fri, 4 Sep 2009 23:15:18 +0000 (23:15 +0000)
committerRoy Marples <roy@marples.name>
Fri, 4 Sep 2009 23:15:18 +0000 (23:15 +0000)
configure

index ec8176ee0ebba90b2eec9faa765c9efa0705d9ba..6cf863f89845408b5f452400ca578f3f3ff70a7b 100755 (executable)
--- a/configure
+++ b/configure
@@ -123,12 +123,12 @@ if [ -n "$CPPLAGS" ]; then
        echo "CPPLAGS=          $CPPLAGS" >>$CONFIG_MK
 fi
 
-if [ "$DEBUG" != no -a "$DEBUG" != false ]; then
-       echo "Enabling memory debugging"
-       echo "CPPFLAGS+=        -DDEBUG_MEMORY" >>$CONFIG_MK
-elif [ -z "$DEBUG" -a -d .git ]; then
+if [ -z "$DEBUG" -a -d .git ]; then
        printf "Found git ... "
        DEBUG=yes
+elif [ "$DEBUG" != no -a "$DEBUG" != false ]; then
+       echo "Enabling memory debugging"
+       echo "CPPFLAGS+=        -DDEBUG_MEMORY" >>$CONFIG_MK
 else
        DEBUG=no
 fi