]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Really fix no debug by default.
authorRoy Marples <roy@marples.name>
Fri, 4 Sep 2009 23:27:53 +0000 (23:27 +0000)
committerRoy Marples <roy@marples.name>
Fri, 4 Sep 2009 23:27:53 +0000 (23:27 +0000)
configure

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