summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2013-12-13 10:19:54 +0000
committerPierre Ossman <ossman@cendio.se>2013-12-13 10:19:54 +0000
commit7bffc7bd3be1cc3e5c27c3a45e7002ed3711bbc6 (patch)
tree3a43b4145509ec373329e60edabc902c20f840fd /autogen.sh
parentc65852122c8fbc8de37b29fbdcd5010d4f2bef75 (diff)
Add an autogen.sh script as is customary for autoconf based
projects. Also update the documentation to steer people to use this scripts. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10029 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 000000000..e27ae85af
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+srcdir=`cd $srcdir && pwd`
+
+ORIGDIR=`pwd`
+cd $srcdir
+
+autoconf --force || exit 1
+automake --add-missing
+if test ! -e config.sub; then echo NOTE: Using frozen copy of config.sub; cp misc/config.sub . ; fi
+if test ! -e config.guess; then echo NOTE: Using frozen copy of config.guess; cp misc/config.guess . ; fi
+cd $ORIGDIR || exit $?
+
+test -n "$NOCONFIGURE" || $srcdir/configure "$@"