Allow spaces in --enable-optimize args. Bug #68246 r=leaf a=brendan NSPRPUB_CLIENT_BRANCH
authorcls%seawood.org
Fri, 09 Feb 2001 21:30:14 +0000
branchNSPRPUB_CLIENT_BRANCH
changeset 1722 6868d19d663da0d41360208ece5ead272b85804f
parent 1719 27c8cf70995577084e93735f327268fb90e77fd6
child 1723 82e369e910b31acef3d93f43273b4296638f6afb
child 1727 d793cde05876efe20973692fce4aac4b48ea7ba4
push idunknown
push userunknown
push dateunknown
reviewersleaf, brendan
bugs68246
Allow spaces in --enable-optimize args. Bug #68246 r=leaf a=brendan
configure
configure.in
--- a/configure
+++ b/configure
@@ -10,17 +10,17 @@
 # Defaults:
 ac_help=
 ac_default_prefix=/usr/local
 # Any additions from configure.in:
 ac_default_prefix=\${MOD_DEPTH}/dist
 ac_help="$ac_help
   --with-mozilla          Compile NSPR with Mozilla support"
 ac_help="$ac_help
-  --enable-optimize(=val) Enable code optimizations level (val)"
+  --enable-optimize(=flag) Enable code optimizations (flag, ie. -O2) "
 ac_help="$ac_help
   --disable-debug         Do not compile in debugging symbols"
 ac_help="$ac_help
   --disable-shared        Do not compile into shared libraries"
 ac_help="$ac_help
   --enable-win32-target=\$t
                                Specify win32 flavor. (WIN95 or WINNT)"
 ac_help="$ac_help
@@ -750,18 +750,18 @@ fi
 
 
 # Check whether --enable-optimize or --disable-optimize was given.
 if test "${enable_optimize+set}" = set; then
   enableval="$enable_optimize"
    if test "$enableval" != "no"; then
         MOZ_OPTIMIZE=1
         if test -n "$enableval" && test "$enableval" != "yes"; then
-            _OPTIMIZE_FLAGS="$enableval"
-            _SAVE_OPTIMIZE_FLAGS="$enableval"
+    	    _OPTIMIZE_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'`
+            _SAVE_OPTIMIZE_FLAGS=$_OPTIMIZE_FLAGS
         fi
     fi 
 fi
 
 
 # Check whether --enable-debug or --disable-debug was given.
 if test "${enable_debug+set}" = set; then
   enableval="$enable_debug"
--- a/configure.in
+++ b/configure.in
@@ -116,22 +116,22 @@ AC_ARG_WITH(mozilla,
 	    else
 	        MOZILLA_CLIENT=
 	    fi],
     [	if test -n "$MOZILLA_CLIENT"; then
 	        AC_DEFINE(MOZILLA_CLIENT)
 	    fi])
 
 AC_ARG_ENABLE(optimize,
-    [  --enable-optimize(=val) Enable code optimizations level (val)],
+    [  --enable-optimize(=flag) Enable code optimizations (flag, ie. -O2) ],
     [ if test "$enableval" != "no"; then
         MOZ_OPTIMIZE=1
         if test -n "$enableval" && test "$enableval" != "yes"; then
-            _OPTIMIZE_FLAGS="$enableval"
-            _SAVE_OPTIMIZE_FLAGS="$enableval"
+    	    _OPTIMIZE_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'`
+            _SAVE_OPTIMIZE_FLAGS=$_OPTIMIZE_FLAGS
         fi
     fi ])
 
 AC_ARG_ENABLE(debug,
     [  --disable-debug         Do not compile in debugging symbols],
     [	if test "$enableval" = "no"; then
     	    MOZ_DEBUG=
 	    fi])