summaryrefslogtreecommitdiff
path: root/cpp/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/configure.ac')
-rw-r--r--cpp/configure.ac10
1 files changed, 9 insertions, 1 deletions
diff --git a/cpp/configure.ac b/cpp/configure.ac
index 559ec84496..6a44ae1116 100644
--- a/cpp/configure.ac
+++ b/cpp/configure.ac
@@ -32,7 +32,7 @@ AC_ARG_ENABLE(warnings,
*) AC_MSG_ERROR([bad value ${enableval} for warnings option]) ;;
esac],
[enableval=yes])
-
+
# Warnings: Enable as many as possible, keep the code clean. Please
# do not disable warnings or remove -Werror without discussing on
# qpid-dev list.
@@ -80,6 +80,14 @@ AC_SUBST(LIBTOOL_VERSION_INFO_ARG)
gl_CLOCK_TIME
+APR_MINIMUM_VERSION=1.2.7
+PKG_CHECK_MODULES([APR], [apr-1 >= $APR_MINIMUM_VERSION])
+
+APR_CXXFLAGS="$APR_CFLAGS -DUSE_APR=1"
+AC_SUBST(APR_CXXFLAGS)
+AC_SUBST(APR_LIBS)
+
+
AC_CONFIG_FILES([
Makefile
gen/Makefile