diff options
author | Alan Conway <aconway@apache.org> | 2008-07-07 14:01:14 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-07-07 14:01:14 +0000 |
commit | d760485442f9874caee0c726a49030b7fd54faff (patch) | |
tree | 77586e65e57cea56eb6ba8f9a6fd49db40430b5c /cpp | |
parent | 8c346beee01f620c1d3cd3318cebc2475aef8ea6 (diff) | |
download | qpid-python-d760485442f9874caee0c726a49030b7fd54faff.tar.gz |
configure.ac: check for cpg_local_get to exclude older CPG versions.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@674493 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/configure.ac | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cpp/configure.ac b/cpp/configure.ac index a7a53c3c6f..85c6aed024 100644 --- a/cpp/configure.ac +++ b/cpp/configure.ac @@ -155,18 +155,16 @@ AC_ARG_WITH([cpg], [case "${withval}" in yes) # yes - enable with_CPG=yes - AC_CHECK_LIB([cpg],[cpg_initialize],,[AC_MSG_ERROR([libcpg not found, install openais])]) + AC_CHECK_LIB([cpg],[cpg_local_get],,[AC_MSG_ERROR([libcpg not found, install openais])]) AC_CHECK_HEADERS([openais/cpg.h],,[AC_MSG_ERROR([openais/cpg.h not found, install openais-devel])]) ;; - no) # no -disable - with_CPG=no - ;; + no) with_CPG=no ;; *) AC_MSG_ERROR([Bad value ${withval} for --with-cpg option]) ;; esac], [ # not specified - enable if libs/headers available. with_CPG=yes + AC_CHECK_LIB([cpg],[cpg_local_get],,[with_CPG=no]) AC_CHECK_HEADERS([openais/cpg.h],,[with_CPG=no]) - AC_CHECK_LIB([cpg],[cpg_initialize],,[with_CPG=no]) ] ) # Remove from LIBS, we will link it explicitly in make files. |