aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
span class='insertions'>+15 * Add USES=xorg USES=gl, ports categories xNiclas Zeising2019-11-081-1/+1 * Remove a bunch of unused *_DESCTobias Kortkamp2019-10-19r?h=dependabot/npm_and_yarn/devel/electron6/files/ini-1.3.8&id=f88a92dc6359860184890060aeab4f718c76ce62'>- take maintainershipdinoex2006-11-09