From: Ben Laurie Date: Thu, 9 Jun 2005 14:57:36 +0000 (+0000) Subject: Die properly when path is bollocks. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59722411d3358fbc2ddc94d081993719d245ff47;p=thirdparty%2Fapache%2Fhttpd.git Die properly when path is bollocks. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/fips-dev@189761 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/acinclude.m4 b/acinclude.m4 index 38d3993fd62..19e904012cd 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -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