summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliot Lee <sopwith@src.gnome.org>1999-12-05 05:19:40 +0000
committerElliot Lee <sopwith@src.gnome.org>1999-12-05 05:19:40 +0000
commit5c442479171e414c202732261c8fb52f77d75530 (patch)
tree491446020a116d546a030e044a43548a92412c10
parent8a097f57745f5fde8d2e0f9ffd7b21f2c9736dc0 (diff)
downloadgnome-common-5c442479171e414c202732261c8fb52f77d75530.tar.gz
Fix size_request/size_allocate - was HORRIBLY broken before.
Fix size_request/size_allocate - was HORRIBLY broken before. svn path=/trunk/; revision=1022
-rw-r--r--hack-macros/gnome.m432
1 files changed, 24 insertions, 8 deletions
diff --git a/hack-macros/gnome.m4 b/hack-macros/gnome.m4
index 078519f..4db1c7b 100644
--- a/hack-macros/gnome.m4
+++ b/hack-macros/gnome.m4
@@ -87,34 +87,50 @@ AC_ARG_ENABLE(gnometest, [ --disable-gnometest Do not try to compile and
fi
tmp_gnome_libdir=`$GNOME_CONFIG $gnome_config_args --libdir`
+ if test -n "$4"; then
+ AC_MSG_CHECKING([for additional GNOME modules])
+ fi
for module in $4 ""; do
- if test -f $tmp_gnome_libdir/$module'Conf'.sh; then
+ gnome_m4_notfound=no
+ if test -f $tmp_gnome_libdir/${module}Conf.sh; then
tmp_bsnom=`echo $module | tr a-z A-Z`
eval $tmp_bsnom'_CFLAGS'=\"`$GNOME_CONFIG $gnome_config_args --cflags $module`\"
eval $tmp_bsnom'_LIBS'=\"`$GNOME_CONFIG $gnome_config_args --libs $module`\"
- elif test "$module" eq zvt; then
+ elif test "$module" = zvt; then
ZVT_LIBS="`$GNOME_CONFIG $gnome_config_args --libs zvt`"
AC_SUBST(ZVT_LIBS)
- elif test "$module" eq gtk; then
+ elif test "$module" = gtk; then
GTK_CFLAGS="`$GNOME_CONFIG $gnome_config_args --cflags gtk`"
GTK_LIBS="`$GNOME_CONFIG $gnome_config_args --libs gtk`"
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
- elif test "$module" eq "glib"; then
+ elif test "$module" = "glib"; then
GLIB_CFLAGS="`$GNOME_CONFIG $gnome_config_args --cflags glib`"
GLIB_LIBS="`$GNOME_CONFIG $gnome_config_args --libs glib`"
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
- elif test "$module" eq "oaf"; then
+ elif test "$module" = "oaf"; then
OAF_CFLAGS="`$GNOME_CONFIG $gnome_config_args --cflags oaf`"
OAF_LIBS="`$GNOME_CONFIG $gnome_config_args --libs oaf`"
AC_SUBST(OAF_CFLAGS)
AC_SUBST(OAF_LIBS)
- elif -n "$module"; then
- echo "*** $module library is not installed"
- ifelse([$3], , :, [$3])
+ elif test "$module" = "gnorba"; then
+ GNORBA_CFLAGS="`$GNOME_CONFIG $gnome_config_args --cflags gnorba`"
+ GNORBA_LIBS="`$GNOME_CONFIG $gnome_config_args --libs gnorba`"
+ AC_SUBST(GNORBA_CFLAGS)
+ AC_SUBST(GNORBA_LIBS)
+ elif test -n "$module"; then
+ AC_MSG_RESULT([$module library is not installed])
+ ifelse([$3], , :, [$3])
+ gnome_m4_notfound=yes
+ fi
+ if test "$gnome_m4_notfound" = no; then
+ echo $ac_n " $module" 1>&6
fi
done
+ if test -n "$4"; then
+ AC_MSG_RESULT([])
+ fi
rm -f conf.gnometest
])