You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by so...@apache.org on 2005/09/19 21:29:09 UTC

svn commit: r290246 - /httpd/mod_smtpd/trunk/configure.ac

Author: soc-rian
Date: Mon Sep 19 12:29:08 2005
New Revision: 290246

URL: http://svn.apache.org/viewcvs?rev=290246&view=rev
Log:
Bad logic in checking if string or directory existed.

Modified:
    httpd/mod_smtpd/trunk/configure.ac

Modified: httpd/mod_smtpd/trunk/configure.ac
URL: http://svn.apache.org/viewcvs/httpd/mod_smtpd/trunk/configure.ac?rev=290246&r1=290245&r2=290246&view=diff
==============================================================================
--- httpd/mod_smtpd/trunk/configure.ac (original)
+++ httpd/mod_smtpd/trunk/configure.ac Mon Sep 19 12:29:08 2005
@@ -28,20 +28,18 @@
 AC_DEFUN([CHECK_APREQ2],[dnl
 	AC_ARG_WITH(
 		libapreq2,
-		[  --with-libapreq2[=PATH_TO_LIBAPREQ2]     APREQ2 LIB LOCATION],
-		APREQ2_LOC="$withval",
+		[  --with-libapreq2[=PATH_TO_LIBAPREQ2]   APREQ2 LIB LOCATION],
+		APREQ2_LOC="$withval"
 	)
 
 	AC_MSG_CHECKING(for libapreq2)
-	
-	if test ! -s $APREQ2_LOC; then
-                APREQ2_LOC=`$APXS_BIN -q LIBDIR`
-        fi
+
+        test ! -d "$APREQ2_LOC" && APREQ2_LOC=`$APXS_BIN -q LIBDIR`
 
         if ld -L${APREQ2_LOC} -lapreq2 &&
-           test -d ${APREQ2_LOC}/../include/apreq2; then
-                APREQ2_LIBDIR="-L${APREQ2_LOC}"
-                APREQ2_INCLUDEDIR="-I${APREQ2_LOC}/../include"          
+           test -d "${APREQ2_LOC}/../include/apreq2"; then
+                APREQ2_LIBDIR="-L'${APREQ2_LOC}'"
+                APREQ2_INCLUDEDIR="-I'${APREQ2_LOC}/../include'"
                 AC_MSG_RESULT(yes)
         else
         	AC_MSG_RESULT(no)