summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorManoj Srivastava <srivasta@debian.org>2018-02-08 13:02:55 -0800
committerManoj Srivastava <srivasta@debian.org>2018-02-08 13:02:55 -0800
commit8852aa3f8eefeee4da27de0553b1653253b15619 (patch)
tree7e6b583ae61340aed4c30303b29d25944273b188 /autogen.sh
parent355fad18841ec452fc9931ab7f1dbd93d5ebd0ca (diff)
parent7a39ce3d46f3d049ead08a455c5fcb1b37e153e3 (diff)
Merge branch 'upstream'
Update to v2.6.4 Signed-off-by: Manoj Srivastava <srivasta@debian.org>
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh22
1 files changed, 20 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index 46611bf..6802e9f 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -24,10 +24,28 @@
# If you see no configure script, then run ./autogen.sh to create it
# and procede with the "normal" build procedures.
+# use LIBTOOLIZE, if set
+LIBTOOLIZE_ORIG="$LIBTOOLIZE";
+if test "x$LIBTOOLIZE" = "x"; then LIBTOOLIZE=libtoolize; fi
+
+# test libtoolize
+$LIBTOOLIZE --version 2>/dev/null
+if test "$?" -ne 0; then
+ LIBTOOLIZE=glibtoolize
+ $LIBTOOLIZE --version 2>/dev/null
+ if test "$?" -ne 0; then
+ echo "error: libtoolize not working, re-run with LIBTOOLIZE=/path/to/libtoolize"
+ echo " LIBTOOLIZE is currently \"$LIBTOOLIZE_ORIG\""
+ exit 1
+ fi
+fi
+
#if we pretend to have a ChangeLog, then automake is less
#worried. (Don't worry, we *do* have a ChangeLog, we just need the
#Makefile first.)
-touch ChangeLog
-libtoolize --install --force || glibtoolize --install --force
+if ! test -f ChangeLog; then
+ touch ChangeLog
+fi
+"$LIBTOOLIZE" --install --force
autoreconf --install --force