Author: gsim
Date: Wed Feb 14 01:46:08 2007
New Revision: 507455
URL: http://svn.apache.org/viewvc?view=rev&rev=507455
Log:
Applied patch from Jim Meyering, submitted on dev list:
2007-02-14 Jim Meyering <[EMAIL PROTECTED]>
* configure.ac: Use $enableval, not $enable_APR in the code
supporting --disable-apr and --enable-apr. The latter doesn't work.
Modified:
incubator/qpid/trunk/qpid/cpp/configure.ac
Modified: incubator/qpid/trunk/qpid/cpp/configure.ac
URL:
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/configure.ac?view=diff&rev=507455&r1=507454&r2=507455
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/configure.ac (original)
+++ incubator/qpid/trunk/qpid/cpp/configure.ac Wed Feb 14 01:46:08 2007
@@ -102,18 +102,18 @@
AC_ARG_ENABLE(apr,
[ --enable-apr use the Apache Portable Runtime library (default)
--disable-apr do not use the Apache Portable Runtime library],
-[case $enable_APR in
+[case $enableval in
yes|no) ;;
- *) AC_MSG_ERROR([invalid APR enable/disable value: $enable_APR]) ;;
+ *) AC_MSG_ERROR([invalid APR enable/disable value: $enableval]) ;;
esac],
-[enable_APR=yes])
+[enableval=yes])
APR_MINIMUM_VERSION=1.2.2
AC_SUBST(APR_MINIMUM_VERSION)
AC_SUBST(APR_CXXFLAGS)
AC_SUBST(USE_APR)
-if test "$enable_APR" = yes; then
+if test "$enableval" = yes; then
PKG_CHECK_MODULES([APR], [apr-1 >= $APR_MINIMUM_VERSION])
APR_CXXFLAGS="$APR_CFLAGS -DUSE_APR=1"
USE_APR=1