cvs: php-gtk /ext/gtkhtml config.m4
| From: | Markus Fischer | Date: | Fri, 07 Dec 2001 09:16:42 +0000 |
| Subject: | cvs: php-gtk /ext/gtkhtml config.m4 | ||
| Groups: | php.gtk.cvs | ||
| Request: | Send a blank email to php-gtk-cvs+get-383@lists.php.net to get a copy of this message | ||
mfischer Fri Dec 7 04:16:42 2001 EDT
Modified files:
/php-gtk/ext/gtkhtml config.m4
Log:
- Some more work to proper detect gtkhtml (still not perfect).
Index: php-gtk/ext/gtkhtml/config.m4
diff -u php-gtk/ext/gtkhtml/config.m4:1.4 php-gtk/ext/gtkhtml/config.m4:1.5
--- php-gtk/ext/gtkhtml/config.m4:1.4 Thu Dec 6 10:03:52 2001
+++ php-gtk/ext/gtkhtml/config.m4 Fri Dec 7 04:16:42 2001
@@ -1,4 +1,4 @@
-dnl $Id: config.m4,v 1.4 2001/12/06 15:03:52 mfischer Exp $
+dnl $Id: config.m4,v 1.5 2001/12/07 09:16:42 mfischer Exp $
dnl config.m4 for gtkhtml module
dnl PHP_PATH_GNOME_CONFIG([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]])
@@ -18,9 +18,12 @@
AC_MSG_CHECKING(for gnome-config)
if test "$GNOME_CONFIG" = "no"; then
AC_MSG_RESULT(no)
- ifelse([$2], , :, [$2])
+ AC_MSG_ERROR(unable to locate gnome-config)
else
HTML_CFLAGS=
$GNOME_CONFIG --cflags $module_args
+ if test "x$?" == "x1"; then
+ AC_MSG_ERROR(gnome-config doesn't seem to have support for gtkhtml)
+ fi
HTML_LIBS=$GNOME_CONFIG --libs $module_args
HTML_HAVE_GCONFTEST=$GNOME_CONFIG --cflags $module_args | grep GTKHTML_HAVE_GCONF
@@ -39,17 +42,13 @@
if test "$PHP_GTK_GTKHTML" != "no"; then
PHP_PATH_GNOME_CONFIG(have_gnomeconfig=yes,have_gnomeconfig=no)
- if test "$have_gnomeconfig" != "yes"; then
- AC_MSG_ERROR(Unable to locate gnome-config)
- else
- AC_DEFINE(HAVE_HTML,1,[gtkhtml support])
- PHP_EVAL_INCLINE($HTML_CFLAGS)
- if test "$HTML_HAVE_GCONFTEST no" != " no"; then
- AC_DEFINE(GTKHTML_HAVE_GCONF,1,[ ])
- fi
- PHP_EVAL_LIBLINE($HTML_LIBS, HTML_SHARED_LIBADD)
- PHP_SUBST(HTML_SHARED_LIBADD)
+ AC_DEFINE(HAVE_HTML,1,[gtkhtml support])
+ PHP_EVAL_INCLINE($HTML_CFLAGS)
+ if test "$HTML_HAVE_GCONFTEST no" != " no"; then
+ AC_DEFINE(GTKHTML_HAVE_GCONF,1,[ ])
+ fi
+ PHP_EVAL_LIBLINE($HTML_LIBS, HTML_SHARED_LIBADD)
+ PHP_SUBST(HTML_SHARED_LIBADD)
- PHP_GTK_EXTENSION(gtkhtml, $php_gtk_ext_shared)
- fi
+ PHP_GTK_EXTENSION(gtkhtml, $php_gtk_ext_shared)
fi