(svn r9504) [Config] -Fix r9340: somehow a -n got mixed up with a -z (tnx glx)
authortruelight
Tue, 27 Mar 2007 13:56:18 +0000
changeset 6713 f59d6b98050c
parent 6712 d100bbf7f752
child 6714 42fa878a14fb
child 6884 a1b3e90eb3ac
(svn r9504) [Config] -Fix r9340: somehow a -n got mixed up with a -z (tnx glx)
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"