diff --git a/gb.mime/configure.ac b/gb.mime/configure.ac index b38695b93..2ea8bcf8a 100644 --- a/gb.mime/configure.ac +++ b/gb.mime/configure.ac @@ -4,11 +4,35 @@ AC_INIT(configure.ac) AC_CONFIG_MACRO_DIR([m4]) GB_INIT(gb.mime) AC_PROG_LIBTOOL + +gb_in_component_search=yes + GB_COMPONENT_PKG_CONFIG( mime, MIME, gb.mime, [src], 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