summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-02-14 09:46:08 +0000
committerGordon Sim <gsim@apache.org>2007-02-14 09:46:08 +0000
commita02adec8c1660eabccbd9893b03a36d2e8b3f703 (patch)
treeecb356e68360078fa508258cfd12a894a6451a4e /qpid/cpp
parent6507042babbb95964f26e64810f49cce67b437b5 (diff)
downloadqpid-python-a02adec8c1660eabccbd9893b03a36d2e8b3f703.tar.gz
Applied patch from Jim Meyering, submitted on dev list:
2007-02-14 Jim Meyering <jim@meyering.net> * configure.ac: Use $enableval, not $enable_APR in the code supporting --disable-apr and --enable-apr. The latter doesn't work. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@507455 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/configure.ac8
1 files changed, 4 insertions, 4 deletions
diff --git a/qpid/cpp/configure.ac b/qpid/cpp/configure.ac
index a590f9b5e1..2e7ea22607 100644
--- a/qpid/cpp/configure.ac
+++ b/qpid/cpp/configure.ac
@@ -102,18 +102,18 @@ AC_SUBST(CPPUNIT_CXXFLAGS)
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