From 64a17767019dee34e7993ea65ca00120355c11c1 Mon Sep 17 00:00:00 2001 From: Arturo Espinosa Date: Wed, 11 Feb 1998 01:39:33 +0000 Subject: Gnome Core updates svn path=/trunk/; revision=13 --- macros/gnome.m4 | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'macros/gnome.m4') diff --git a/macros/gnome.m4 b/macros/gnome.m4 index 08e2943280..92d97cfae7 100644 --- a/macros/gnome.m4 +++ b/macros/gnome.m4 @@ -5,3 +5,37 @@ AC_DEFUN([GNOME_CHECK_GNOME], AC_MSG_ERROR(Gnome libraries not found)],[ "$GTK_LIBS $x_libs"]) ]) + +AC_DEFUN([GNOME_INIT], +[ + AC_SUBST(GNOME_LIBS) + AC_SUBST(GNOMEUI_LIBS) + AC_SUBST(GTKXMHTML_LIBS) + + gnome_prefix=$prefix/lib + AC_ARG_WITH(gnome-includes, + [--with-gnome-includes Specify location of GNOME headers],[ + CFLAGS="$CFLAGS -I$withval" + ]) + + AC_ARG_WITH(gnome-libs, + [--with-gnome-libs Specify location of GNOME libs],[ + LDFLAGS="$LDFLAGS -L$withval" + gnome_prefix=$withval + ]) + + AC_ARG_WITH(gnome, + [--with-gnome Specify prefix for GNOME files],[ + LDFLAGS="$LDFLAGS -L$withval/lib" + CFLAGS="$CFLAGS -I$withval/include" + gnome_prefix=$withval/lib + ]) + + + if test -e $gnome_prefix/gnomeConf.sh; then + AC_MSG_CHECKING(Loading gnomeConf.sh values) + . $gnome_prefix/gnomeConf.sh + else + AC_MSG_ERROR(Could not find the gnomeConf.sh file that is generated by gnome-libs install) + fi +]) \ No newline at end of file -- cgit v1.2.3