diff options
author | Paul Belanger <paul.belanger@polybeacon.com> | 2011-05-16 14:38:16 +0000 |
---|---|---|
committer | Paul Belanger <paul.belanger@polybeacon.com> | 2011-05-16 14:38:16 +0000 |
commit | 938290cf0d7d9779113fe9059fae7f0f547a71d7 (patch) | |
tree | 8452b61049b34cf8033c40a5a2482242e2e77514 /configure.ac | |
parent | 9c73ece4068fb5a46e8bd3bb2beff41e7316cd0d (diff) |
Merged revisions 319085 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r319085 | pabelanger | 2011-05-16 10:35:21 -0400 (Mon, 16 May 2011) | 10 lines
Support gmime-2.4
(closes issue #18863)
Reported by: tzafrir
Patches:
gmime-2.4-18.diff uploaded by tzafrir (license 46)
Tested by: tzafrir
Review: https://reviewboard.asterisk.org/r/1213/
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@319086 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac index 4e19d4b83..e3950e81d 100644 --- a/configure.ac +++ b/configure.ac @@ -2018,18 +2018,17 @@ fi AST_EXT_TOOL_CHECK([GMIME], [gmime-config], [], [], [#include <gmime/gmime.h>], [gboolean q = g_mime_check_version(0,0,0);]) if test "x${PBX_GMIME}" = "x0"; then # Later versions of GMime use pkg-config - if test "x${PKGCONFIG}" = xNo; then :; else - GMIME_INCLUDE=$(${PKGCONFIG} gmime-2.0 --cflags 2>/dev/null) - GMIME_LIB=$(${PKGCONFIG} gmime-2.0 --libs) - if test "x${GMIME_INCLUDE}${GMIME_LIB}" = "x"; then - GMIME_INCLUDE=$(${PKGCONFIG} gmime-2.2 --cflags 2>/dev/null) - GMIME_LIB=$(${PKGCONFIG} gmime-2.2 --libs) + for ver in 2.0 2.2 2.4; do + if ! ${PKGCONFIG} --exists gmime-$ver; then + continue fi - if test "x${GMIME_INCLUDE}${GMIME_LIB}" != "x"; then - PBX_GMIME=1 - AC_DEFINE([HAVE_GMIME], 1, [Define if your system has the GMIME libraries.]) - fi - fi + # If we got here, we have this version: + GMIME_INCLUDE=$(${PKGCONFIG} gmime-$ver --cflags 2>/dev/null) + GMIME_LIB=$(${PKGCONFIG} gmime-$ver --libs) + PBX_GMIME=1 + AC_DEFINE([HAVE_GMIME], 1, [Define if your system has the GMIME libraries.]) + break; + done fi AST_EXT_LIB_CHECK([HOARD], [hoard], [malloc], []) |