Check if Apache binary exists during peek step.
authorScott Cantor <cantor.2@osu.edu>
Thu, 20 Sep 2007 16:10:13 +0000 (16:10 +0000)
committerScott Cantor <cantor.2@osu.edu>
Thu, 20 Sep 2007 16:10:13 +0000 (16:10 +0000)
configure.ac

index 68d683f..3c6d1e0 100644 (file)
@@ -392,7 +392,7 @@ if test "$need_default" = "yes"; then
   # ask the daemon for the version and set parameters
   AC_MSG_CHECKING(default apache version)
   httpd="`$xs -q SBINDIR`/`$xs -q TARGET`"
-  if test "x$httpd" != "x"; then
+  if test "x$httpd" != "x" && test -f $httpd ; then
      v=`$httpd -v|$SED -n -e 's/.*Apache\/\.*//p'`
      case $v in
        1.3*)   [enable_apache_13]=yes