summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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 09f732b4..357ca69e 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