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 | a0a9466f7ce38f9285c4cfb76e141e138405224f (patch) | |
| tree | 4c1b57a5d08a67729052f536fe4055a6e7de876f /qpid/cpp | |
| parent | a1344ada8df15243fd2c9ccbcbdb5bad3f2f45fb (diff) | |
| download | qpid-python-a0a9466f7ce38f9285c4cfb76e141e138405224f.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@674493 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/configure.ac | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/qpid/cpp/configure.ac b/qpid/cpp/configure.ac index a7a53c3c6f..85c6aed024 100644 --- a/qpid/cpp/configure.ac +++ b/qpid/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. |
