Here's a patch to get standalone GtkXMHTML working (as the subject
suggests). It's not ideal (in particular it doesn't check for
gtk-xmhtml/gtk-xmhtml.h, since I don't know how to include the 
glib path in the check), but at least it compiles and works on
my system. If anybody finds it to be useful, could they please
do a CVS commit?

--- configure.in.old    Tue Nov  2 20:41:25 1999
+++ configure.in        Tue Nov 23 17:59:34 1999
@@ -512,6 +512,12 @@
 AC_PATH_PROG(GNOME_CONFIG,gnome-config,no)
 if test "$GNOME_CONFIG" = "no"; then
   HELPBROWSER=
+  dnl Test for standalone GtkXMHTML widget
+  AC_CHECK_LIB(gtkxmhtml, gtk_xmhtml_new,
+    GTKXMHTML_CFLAGS=$GLIB_CFLAGS
+    GTKXMHTML_LIBS="$GLIB_LIBS -lgtkxmhtml"
+    HELPBROWSER=helpbrowser,
+    AC_MSG_WARN(*** Help browser plug-in will not be built (GtkXMHTML library not 
+found) ***))
 else
   GTKXMHTML_CFLAGS=`$GNOME_CONFIG --cflags gnomeui`
   GTKXMHTML_LIBS=`$GNOME_CONFIG --libs gtkxmhtml`

PS: The autoconf documentation explicitly states that semicolons
should _not_ be used to separate statements (instead use a space
or a newline), but still I see this some places in configure.in.

/* Steinar */
-- 
Homepage: http://members.xoom.com/sneeze/

Reply via email to