aboutsummaryrefslogtreecommitdiffstats
path: root/macros/gnome.m4
diff options
context:
space:
mode:
Diffstat (limited to 'macros/gnome.m4')
-rw-r--r--macros/gnome.m434
1 files changed, 34 insertions, 0 deletions
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