]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Die properly when path is bollocks.
authorBen Laurie <ben@apache.org>
Thu, 9 Jun 2005 14:57:36 +0000 (14:57 +0000)
committerBen Laurie <ben@apache.org>
Thu, 9 Jun 2005 14:57:36 +0000 (14:57 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/fips-dev@189761 13f79535-47bb-0310-9956-ffa450edef68

acinclude.m4

index 38d3993fd62cf37ea256ef70332ebca1d3e2dcd1..19e904012cdd982c02f45b1c2b383a7d4f71c553 100644 (file)
@@ -340,7 +340,10 @@ if test "x$ap_ssltk_configured" = "x"; then
     dnl If --with-sslc specifies a directory, we use that directory or fail
     if test "x$withval" != "xyes" -a "x$withval" != "x"; then
       dnl This ensures $withval is actually a directory and that it is absolute
-      ap_ssltk_base="`cd $withval ; pwd`"
+      ap_ssltk_base="`cd $withval && pwd`"
+      if test "x$ap_ssltk_base" == "x"; then
+       exit
+      fi
     fi
     ap_ssltk_type="sslc"
   ])
@@ -348,7 +351,10 @@ if test "x$ap_ssltk_configured" = "x"; then
     dnl If --with-ssl specifies a directory, we use that directory or fail
     if test "x$withval" != "xyes" -a "x$withval" != "x"; then
       dnl This ensures $withval is actually a directory and that it is absolute
-      ap_ssltk_base="`cd $withval ; pwd`"
+      ap_ssltk_base="`cd $withval && pwd`"
+      if test "x$ap_ssltk_base" == "x"; then
+       exit
+      fi
     fi
   ])
   if test "x$ap_ssltk_base" = "x"; then