summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index 6579daa..8bc5cff 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -51,6 +51,17 @@ while test $# != 0; do
;;
esac
done
+
+# Generate aclocal.m4
+cp -f aclocal.m4.in aclocal.m4
+if test -n "$RELEASE_MODE"; then
+ cat <<EOF >>aclocal.m4
+
+# Generated by 'autogen.sh --release'
+AC_DEFUN([SVN_RELEASE_MODE],[1])
+EOF
+fi
+
# ### The order of parameters is important; buildcheck.sh depends on it and
# ### we don't want to copy the fancy option parsing loop there. For the
# ### same reason, all parameters should be quoted, so that buildcheck.sh
@@ -167,6 +178,7 @@ if test -z "$PYTHON"; then
echo "to the Python executable, and re-run autogen.sh"
exit 1
fi
+export PYTHON
# Compile SWIG headers into standalone C files if we are in release mode
if test -n "$RELEASE_MODE"; then