summaryrefslogtreecommitdiff
path: root/doc/autogen.sh.example
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-05-18 11:28:34 +0200
committerStefano Karapetsas <[email protected]>2012-05-18 11:28:34 +0200
commitb49d86557e8b19b10b00b7ea7585fd4d8f1f79c0 (patch)
tree71aabd034e86686bc014b69c2ae914ff06b89013 /doc/autogen.sh.example
parentfd691b5d21aae69a79cd32124d43b1d542b69713 (diff)
downloadmate-common-b49d86557e8b19b10b00b7ea7585fd4d8f1f79c0.tar.bz2
mate-common-b49d86557e8b19b10b00b7ea7585fd4d8f1f79c0.tar.xz
add manpages (from debian package)
Diffstat (limited to 'doc/autogen.sh.example')
-rw-r--r--doc/autogen.sh.example27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/autogen.sh.example b/doc/autogen.sh.example
new file mode 100644
index 0000000..8f50492
--- /dev/null
+++ b/doc/autogen.sh.example
@@ -0,0 +1,27 @@
+#!/bin/sh
+srcdir=`basename $0`
+[ -z "$srcdir" ] && srcdir=.
+
+PKG_NAME=mate-package
+REQUIRED_AUTOMAKE_VERSION=1.7
+
+if [ ! -f "$srcdir/somefile-that-is-only-in-mate-package" ]; then
+echo "$srcdir doesn't look like source directory for $PKG_NAME" >&2
+exit 1
+fi
+
+. mate-autogen
+
+
+# Then put the following in your configure.ac or configure.in file:
+# MATE_COMMON_INIT
+#
+# This macro is equivalent to the following two lines (which you can use
+# instead if you don't want to depend on mate-common macros):
+# AC_SUBST([ACLOCAL_AMFLAGS], ["\${ACLOCAL_FLAGS}"])
+#
+# Or if you are using the AC_CONFIG_MACRO_DIR macro:
+# AC_SUBST([ACLOCAL_AMFLAGS], ["-I $ac_macro_dir \${ACLOCAL_FLAGS}"])
+#
+# This will make sure that autoconf macros will be found when you
+# rebuild the package without rerunning autogen.sh.