summaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
authorJulian Missig <julianm@src.gnome.org>2000-05-21 21:38:39 +0000
committerJulian Missig <julianm@src.gnome.org>2000-05-21 21:38:39 +0000
commiteafe874dcda15a053985bd10e4429f2fcd8ce435 (patch)
tree6bf7cf06a6d0ecea51b662b72c515b50550411f2 /macros
parentb8db88e552080a763e18388bfccd109ee5f4393f (diff)
downloadgnome-common-eafe874dcda15a053985bd10e4429f2fcd8ce435.tar.gz
Added gnomemm.m4 for proper gnomemm checking
svn path=/trunk/; revision=1237
Diffstat (limited to 'macros')
-rw-r--r--macros/gnomemm.m421
1 files changed, 21 insertions, 0 deletions
diff --git a/macros/gnomemm.m4 b/macros/gnomemm.m4
new file mode 100644
index 0000000..5276d7a
--- /dev/null
+++ b/macros/gnomemm.m4
@@ -0,0 +1,21 @@
+
+dnl AM_PATH_GNOMEMM([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]])
+dnl Test to see if gnomemm is installed, and define GNOMEMM_CFLAGS, LIBS
+dnl
+AC_DEFUN(AM_PATH_GNOMEMM,
+[dnl
+dnl Get the cflags and libraries from the gnome-config gnomemm script
+dnl
+dnl Ensure gnome-config is available...
+AC_PATH_PROG(GNOME_CONFIG, gnome-config, no)
+AC_MSG_CHECKING(for GNOME-- library)
+if test -z "`gnome-config gnomemm --cflags`"; then
+ AC_MSG_RESULT(no)
+else
+ AC_MSG_RESULT(yes)
+ GNOMEMM_CFLAGS=`$GNOME_CONFIG gnomemm --cflags`
+ GNOMEMM_LIBS=`$GNOME_CONFIG gnomemm --libs`
+fi
+AC_SUBST(GNOMEMM_CFLAGS)
+AC_SUBST(GNOMEMM_LIBS)
+]) \ No newline at end of file