summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2022-06-10 09:25:27 +0100
committerChris Liddell <chris.liddell@artifex.com>2022-06-15 08:11:28 +0100
commitf0ef6546ee86fcba74ff867c83d5f3e8234853da (patch)
tree0dff8e07cdff327767d9edd4391782173ae5ba26 /autogen.sh
parent94a3d20f21a709972ebbeda5911fa7b9e01ae789 (diff)
downloadghostpdl-f0ef6546ee86fcba74ff867c83d5f3e8234853da.tar.gz
Bug 705469: Honour NOCONFIGURE in autogen.sh
So autogen.sh doesn't run configure automatically.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh16
1 files changed, 11 insertions, 5 deletions
diff --git a/autogen.sh b/autogen.sh
index 09f732b40..357ca69ec 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,6 +1,10 @@
#!/bin/sh
# Run this to set up the build system: configure, makefiles, etc.
-
+#
+# NOCONFIGURE
+# If set to any value it will generate all files but not invoke the
+# generated configure script.
+# e.g. NOCONFIGURE=1 ./autogen.sh
package="ghostscript"
@@ -44,11 +48,13 @@ echo " running autoreconf"
autoreconf || exit 1
-if test -z "$*"; then
+if test x"$NOCONFIGURE" = x""; then
+ if test -z "$*"; then
echo "I am going to run ./configure with no arguments - if you wish "
echo "to pass any to it, please specify them on the $0 command line."
-else
+ else
echo "running ./configure $@"
-fi
+ fi
-$srcdir/configure "$@" && echo
+ $srcdir/configure "$@" && echo
+fi