diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2010-01-04 17:11:54 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2010-01-04 17:11:54 +0000 |
commit | 435e856b1722471d2c5cb9b9bca6cdf5b34feedf (patch) | |
tree | 220bd13bf17e860616ed58fbe806ed57bf5d2e27 /autogen.sh | |
parent | c8d5b000f7e456ab3fddf095d33e4af8b848854b (diff) | |
download | pcre-435e856b1722471d2c5cb9b9bca6cdf5b34feedf.tar.gz |
Update autogen.sh to try several names for libtoolize.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@484 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 28 |
1 files changed, 22 insertions, 6 deletions
@@ -1,21 +1,37 @@ #!/bin/sh set -ex - rm -rf autom4te.cache - aclocal --force -libtoolize -c -f +# GNU libtool is named differently on some systems. This code tries several +# variants like glibtoolize (MacOSX) and libtoolize1x (FreeBSD) + +set +ex +echo "Looking for a version of libtoolize (which can have different names)..." +libtoolize="" +for l in glibtoolize libtoolize15 libtoolize14 libtoolize ; do + $l --version > /dev/null 2>&1 + if [ $? = 0 ]; then + libtoolize=$l + echo "Found $l" + break + fi + echo "Did not find $l" +done + +if [ "x$libtoolize" == "x" ]; then + echo "Can't find libtoolize on your system" + exit 1 +fi +set -ex +$libtoolize -c -f autoconf -f -W all,no-obsolete - autoheader -f -W all - automake -a -c -f -W all rm -rf autom4te.cache - exit 0 # end autogen.sh |