libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit daa96dcb19cd3b4226864851092f471793d424f8
parent 1bad17f8f6f0d035818b70bb6c7dfe64668fdd0b
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu,  3 Feb 2005 18:03:06 +0000

allow --disable-glib

Diffstat:
Mconfigure.ac | 12++++++++++++
Msrc/plugins/rpm/rpmextractor.c | 2+-
2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac @@ -178,6 +178,17 @@ AC_MSG_CHECKING(for glib) AM_PATH_GLIB_2_0(2.0.0, without_glib=false, without_glib=true) +AC_MSG_CHECKING([whether glib is disabled]) +AC_ARG_ENABLE(glib, + [AC_HELP_STRING([--disable-glib],[disable glib support])], + [case "$enableval" in + no) AC_MSG_RESULT(disabled) + without_glib=true + ;; + *) AC_MSG_RESULT(allowed) + ;; + esac]) + if test x$without_glib != xtrue then if test $with_gnu_ld == yes @@ -194,6 +205,7 @@ else AM_CONDITIONAL(HAVE_GLIB,false) AC_DEFINE(HAVE_GLIB, 0, [Have glib]) fi + AC_SUBST(CPPFLAGS) AC_SUBST(LDFLAGS) diff --git a/src/plugins/rpm/rpmextractor.c b/src/plugins/rpm/rpmextractor.c @@ -3040,7 +3040,7 @@ struct EXTRACTOR_Keywords * libextractor_rpm_extract(char * filename, return prev; } prev = addKeyword(EXTRACTOR_MIMETYPE, - "application/x-rpm", + "application/x-redhat-package-manager", prev); /* FIXME: add platform! */ if (isSource)