Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a file needed to bootstrap (comes from the gnome-common package, but this build...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 14 Sep 2004 10:00:59 +0000 (10:00 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 14 Sep 2004 10:00:59 +0000 (10:00 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@416 48e7efb5-ca39-0410-a469-dd3cf9ba447f

acmacro/gnome-common.m4 [new file with mode: 0644]

diff --git a/acmacro/gnome-common.m4 b/acmacro/gnome-common.m4
new file mode 100644 (file)
index 0000000..20302d1
--- /dev/null
@@ -0,0 +1,30 @@
+# gnome-common.m4
+# 
+
+dnl GNOME_COMMON_INIT
+
+AC_DEFUN([GNOME_COMMON_INIT],
+[
+       AC_CACHE_VAL(ac_cv_gnome_aclocal_dir,
+       [ac_cv_gnome_aclocal_dir="$GNOME_COMMON_MACROS_DIR"])
+       AC_CACHE_VAL(ac_cv_gnome_aclocal_flags,
+       [ac_cv_gnome_aclocal_flags="$ACLOCAL_FLAGS"])
+       GNOME_ACLOCAL_DIR="$ac_cv_gnome_aclocal_dir"
+       GNOME_ACLOCAL_FLAGS="$ac_cv_gnome_aclocal_flags"
+       AC_SUBST(GNOME_ACLOCAL_DIR)
+       AC_SUBST(GNOME_ACLOCAL_FLAGS)
+
+       ACLOCAL="$ACLOCAL $GNOME_ACLOCAL_FLAGS"
+
+       AM_CONDITIONAL(INSIDE_GNOME_DOCU, false)
+])
+
+AC_DEFUN([GNOME_DEBUG_CHECK],
+[
+       AC_ARG_ENABLE(debug, [  --enable-debug turn on debugging [default=no]], enable_debug="$enableval", enable_debug=no)
+
+       if test x$enable_debug = xyes ; then
+           AC_DEFINE(GNOME_ENABLE_DEBUG,1,
+               [Enable additional debugging at the expense of performance and size])
+       fi
+])