# HG changeset patch # User truelight # Date 1175003778 0 # Node ID 4cb89697520e6ba242831969148241f1c6abb125 # Parent bc26d1d67aa2cdc8a181653b7039d0a4405bbc53 (svn r9504) [Config] -Fix r9340: somehow a -n got mixed up with a -z (tnx glx) diff -r bc26d1d67aa2 -r 4cb89697520e configure --- a/configure Mon Mar 26 12:28:44 2007 +0000 +++ b/configure Tue Mar 27 13:56:18 2007 +0000 @@ -3,7 +3,10 @@ CONFIGURE_EXECUTABLE="$_" # On *nix systems those two are equal when ./configure is done if [ "$0" != "$CONFIGURE_EXECUTABLE" ]; then - if [ -z "`echo $CONFIGURE_EXECUTABLE | grep make`" ]; then + # On some systems, when ./configure is triggered from 'make' + # the $_ is filled with 'make'. So if that is true, skip 'make' + # and use $0 (and hope that is correct ;)) + if [ -n "`echo $CONFIGURE_EXECUTABLE | grep make`" ]; then CONFIGURE_EXECUTABLE="$0" else CONFIGURE_EXECUTABLE="$CONFIGURE_EXECUTABLE $0"