You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by pg...@sweng.stortek.com on 2000/01/10 07:04:38 UTC

[PATCH] 2.0 verbose sanity

This propagates to 2.0 the following patches made to 1.3.10:
_________________________________________________________________________________

   1.376 Tue Nov 30 15:52:00 1999 by jim
   Diffs to 1.375
Force verbose mode during the sanity check if
the check fails
     _________________________________________________________________________________

   1.372 Thu Sep 9 20:14:33 1999 by rasmus
   Diffs to 1.371
A failure here is pretty much never due to the compiler not being ANSI
compliant but nearly always because a required library is missing.  Since
this message went in, my support load for PHP has gone way up.  Fix it
to be sane and to propogate --verbose through to the TestCompile
correctly.
     _________________________________________________________________________________

-- gil
-- 
StorageTek
INFORMATION made POWERFUL
========================================================================
diff -bru orig/Apache.current/src/Configure Apache.current/src/Configure
--- orig/Apache.current/src/Configure	Sun Jan  9 22:45:31 2000
+++ Apache.current/src/Configure	Sun Jan  9 22:38:03 2000
@@ -86,9 +86,14 @@
 
 ####################################################################
 ## Now handle any arguments, which, for now, is -file
-## to select an alternate Configuration file
+## to select an alternate Configuration file and -v
+## to turn on verbose mode
 ##
 while [ "x$1" != "x" ]; do
+  if [ "x$1" = "x-v" ] ; then
+    shift 1;
+    vflag="-v";
+  fi
   if [ "x$1" = "x-file" ] ; then
     shift 1; file=$1; shift 1
     if [ ! -r $file ]; then
@@ -2240,14 +2245,23 @@
     :
 else
    echo " + doing sanity check on compiler and options"
-   if ./helpers/TestCompile sanity; then
+   if ./helpers/TestCompile $vflag sanity; then
       :
    else
+      if [ "x$vflag" = "x-v" ] ; then
+         WHEREERR="above"
+      else
+         WHEREERR="below"
+      fi
    echo "** A test compilation with your Makefile configuration"
-   echo "** failed. This is most likely because your C compiler"
-   echo "** is not ANSI. Apache requires an ANSI C Compiler, such"
-   echo "** as gcc. The above error message from your compiler"
-   echo "** will also provide a clue."
+      echo "** failed.  The $WHEREERR error output from the compilation"
+      echo "** test will give you an idea what is failing. Note that"
+      echo "** Apache requires an ANSI C Compiler, such as gcc. "
+      echo ""
+      echo "======== Error Output for sanity check ========"
+      (./helpers/TestCompile -v sanity)
+      echo "============= End of Error Report ============="
+      echo ""
    echo " Aborting!"
    exitcode=1
    exit 1