[asterisk-commits] seanbright: trunk r145771 - in /trunk: configure configure.ac

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Oct 2 10:28:49 CDT 2008


Author: seanbright
Date: Thu Oct  2 10:28:48 2008
New Revision: 145771

URL: http://svn.digium.com/view/asterisk?view=rev&rev=145771
Log:
This is much cleaner, methinks.

Modified:
    trunk/configure
    trunk/configure.ac

Modified: trunk/configure.ac
URL: http://svn.digium.com/view/asterisk/trunk/configure.ac?view=diff&rev=145771&r1=145770&r2=145771
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Thu Oct  2 10:28:48 2008
@@ -1435,35 +1435,7 @@
     AST_EXT_LIB_CHECK([OSPTK], [osptk], [OSPPCryptoDecrypt], [osp/osp.h], [-lcrypto -lssl])
 fi
 
-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_TOOL_CHECK([GMIME], [gmime], [], [], [#include <gmime/gmime.h>], [gboolean q = g_mime_check_version(0,0,0);])
 
 AST_EXT_LIB_CHECK([HOARD], [hoard], [malloc], [])
 




More information about the asterisk-commits mailing list