[PATCH] Avoid warning when no apache version is detected
    Petter Reinholdtsen 
    pere at HUNGRY.COM
       
    Sun Jan 30 16:25:56 EST 2005
    
    
  
When running configure on a machine without apache, I see the
following warning:
  expr: syntax error
  ./configure: line 9342: test: too many arguments
This patch fixes the problem.
Index: configure.in
===================================================================
RCS file: /data2/cvsroot/mapserver/configure.in,v
retrieving revision 1.117
diff -u -3 -p -u -r1.117 configure.in
--- configure.in        28 Jan 2005 07:13:24 -0000      1.117
+++ configure.in        30 Jan 2005 20:54:35 -0000
@@ -1758,7 +1758,7 @@ if test "$enable_debug" = "yes" ; then
   dnl also enable output of msDebug() calls to stderr.
   DEBUG_FLAGS="-DENABLE_STDERR_DEBUG"
-  if test -n $APACHE_VERSION -a `expr $APACHE_VERSION \>= "2000000"` = 1 ; then+  if test -n "$APACHE_VERSION" -a `expr "$APACHE_VERSION" \>= "2000000"` = 1 ;
then
     AC_MSG_RESULT([        You requested msDebug() output on a system apparently running $HTTPD_VERSION_STRING.  Setting stderr to non-blocking due to Apache 2.x bug (see MapServer bug 458 or Apache bug 22030).])
     DEBUG_FLAGS="$DEBUG_FLAGS -DNEED_NONBLOCKING_STDERR"
   fi
    
    
More information about the mapserver-dev
mailing list