[GB.MIME]

* NEW: Try to detect gmime-2.4 if gmime-2.6 is not available.


git-svn-id: svn://localhost/gambas/trunk@5142 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2012-09-08 00:57:34 +00:00
parent fad5bdba3b
commit cb9042fbad

View File

@ -4,11 +4,35 @@ AC_INIT(configure.ac)
AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.mime) GB_INIT(gb.mime)
AC_PROG_LIBTOOL AC_PROG_LIBTOOL
gb_in_component_search=yes
GB_COMPONENT_PKG_CONFIG( GB_COMPONENT_PKG_CONFIG(
mime, mime,
MIME, MIME,
gb.mime, gb.mime,
[src], [src],
gmime-2.6) gmime-2.6)
AC_OUTPUT( Makefile src/Makefile )
gb_in_component_search=no
if test "$have_mime" = "no"; then
rm -f DISABLED DISABLED.gb.mime
GB_COMPONENT_PKG_CONFIG(
mime,
MIME,
gb.mime,
[src],
gmime-2.4)
if test "$have_mime" = "yes"; then
GB_WARNING([But gmime 2.4 has been detected!])
fi
fi
AC_OUTPUT(Makefile src/Makefile)
GB_PRINT_MESSAGES GB_PRINT_MESSAGES