[asterisk-commits] russell: branch 1.6.0 r145697 - in /branches/1.6.0: ./ configure configure.ac
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Oct 1 19:23:09 CDT 2008
Author: russell
Date: Wed Oct 1 19:23:09 2008
New Revision: 145697
URL: http://svn.digium.com/view/asterisk?view=rev&rev=145697
Log:
Merged revisions 145692 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r145692 | seanbright | 2008-10-01 18:48:16 -0500 (Wed, 01 Oct 2008) | 7 lines
Try a test compile using the GMime library. Some distros install gmime-config
in the base package instead of the -devel package. Now we print a notice and
disable GMime support instead of bombing during the main compilation.
(closes issue #13583)
Reported by: arkadia
........
Modified:
branches/1.6.0/ (props changed)
branches/1.6.0/configure
branches/1.6.0/configure.ac
Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.0/configure.ac
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/configure.ac?view=diff&rev=145697&r1=145696&r2=145697
==============================================================================
--- branches/1.6.0/configure.ac (original)
+++ branches/1.6.0/configure.ac Wed Oct 1 19:23:09 2008
@@ -1397,6 +1397,34 @@
AST_EXT_TOOL_CHECK([GMIME], [gmime])
+if test "$PBX_GMIME" = "1";
+then
+ saved_libs="${LIBS}"
+ saved_cflags="${CFLAGS}"
+ LIBS="${LIBS} ${GMIME_LIB}"
+ CFLAGS="${CFLAGS} ${GMIME_INCLUDE}"
+ AC_MSG_CHECKING(for g_mime_check_version)
+ AC_LINK_IFELSE(
+ [
+ AC_LANG_PROGRAM(
+ [#include <gmime/gmime.h>],
+ [gboolean q = g_mime_check_version(0,0,0);])
+ ],
+ [ AC_MSG_RESULT(yes)
+ PBX_GMIME=1
+ ],
+ [ AC_MSG_RESULT(no)
+ AC_MSG_NOTICE([***])
+ AC_MSG_NOTICE([*** It appears that you do not have the gmime development package installed.])
+ AC_MSG_NOTICE([*** Please install it to include ${GMIME_DESCRIP} support.])
+ AC_MSG_NOTICE([***])
+ PBX_GMIME=0
+ ]
+ )
+ LIBS="${saved_libs}"
+ CFLAGS="${saved_cflags}"
+fi
+
AST_EXT_LIB_CHECK([FREETDS], [sybdb], [dbinit], [sybdb.h])
AST_EXT_LIB_CHECK([TERMCAP], [termcap], [tgetent], [])
More information about the asterisk-commits
mailing list