]> granicus.if.org Git - php/commitdiff
Complain loudly and stop configuration, if we cannot run apxs.
authorSascha Schumann <sas@php.net>
Mon, 15 May 2000 16:37:32 +0000 (16:37 +0000)
committerSascha Schumann <sas@php.net>
Mon, 15 May 2000 16:37:32 +0000 (16:37 +0000)
sapi/apache/config.m4

index e8dc8dcba5deab633f856586d5685b371accc8c5..3b9bd3dc75632b89790d495312ded6eccee54e77 100644 (file)
@@ -19,6 +19,13 @@ AC_ARG_WITH(apxs,
        else
                AC_EXPAND_PATH($withval, APXS)
        fi
+
+    if ! $APXS -q CFLAGS >/dev/null 2>&1; then
+      AC_MSG_RESULT()
+      $APXS
+      AC_MSG_ERROR([Sorry, I cannot run apxs. Either you need to install Perl or you need to pass the absolute path to apxs by using --with-apxs=/absolute/path/to/apxs])
+    fi 
+
        APXS_LDFLAGS="@SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@"
        APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
        APXS_CFLAGS=`$APXS -q CFLAGS`