--- parser3/configure 2012/07/17 08:20:00 1.154 +++ parser3/configure 2012/07/18 21:42:08 1.155 @@ -4885,6 +4885,7 @@ fi if test "${with_mailreceive+set}" = set; then : withval=$with_mailreceive; MIME=$withval + GLIB="glib-2.0" GMIME="gmime-2.4" if test -z "$MIME" -o "$MIME" = "yes"; then @@ -4894,10 +4895,16 @@ if test "${with_mailreceive+set}" = set; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&5 $as_echo "$as_me: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&2;} else - MIME_INCLUDES="-I$MIME/include/$GMIME -I$MIME/include/glib-2.0" + MIME_INCLUDES="-I$MIME/include/$GMIME" MIME_LIBS="-l$GMIME" if test -f $MIME/include/$GMIME/gmime/gmime.h -a -f $MIME/lib/lib$GMIME.la; then MIME_LIBS="$MIME/lib/lib$GMIME.la" + if test -f $MIME/lib/lib$GLIB.la; then + MIME_INCLUDES="$MIME_INCLUDES -I$MIME/include/$GLIB -I$MIME/lib/$GLIB/include" + else + GLIB_INCLUDES=`pkg-config --cflags $GLIB 2>/dev/null` + MIME_INCLUDES="$MIME_INCLUDES $GLIB_INCLUDES" + fi MIME_OK="yes" fi fi