From 05ee82cb255aecbad1b1b39dc61ec8b20c368253 Mon Sep 17 00:00:00 2001 From: cantor Date: Thu, 20 Sep 2007 16:48:51 +0000 Subject: [PATCH] Check if Apache binary exists during peek step. git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2505 cb58f699-b61c-0410-a6fe-9272a202ed29 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a2bcbb3..ab8b9b7 100644 --- a/configure.ac +++ b/configure.ac @@ -329,7 +329,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 -- 2.1.4