diff options
author | Bruce A. Mah <bmah@es.net> | 2014-03-20 09:46:04 -0700 |
---|---|---|
committer | Bruce A. Mah <bmah@es.net> | 2014-03-20 09:46:04 -0700 |
commit | 082157bdb00446905573a72c0d1369fcba6bff0f (patch) | |
tree | 0f6320ca81c7943d0d866cfc94893c48e3dbcbd7 | |
parent | 974c88e8d9bf4b97f0f2a94f5c3327146eb92989 (diff) | |
download | iperf3-082157bdb00446905573a72c0d1369fcba6bff0f.tar.gz |
MacPorts installs libtoolize as glibtoolize. Autodetect this and DTRT.
-rwxr-xr-x | bootstrap.sh | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/bootstrap.sh b/bootstrap.sh index 93099c3..0966f87 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -38,8 +38,21 @@ case "$1" in ;; esac +if libtoolize --version >/dev/null 2>&1; then + libtoolize=libtoolize +elif glibtoolize --version >/dev/null 2>&1; then + libtoolize=glibtoolize +else + libtoolize="" +fi + +if [ "x$libtoolize" = "x" ]; then + echo "Can't find libtoolize, exiting." + exit 1 +fi + set -x -libtoolize --copy --force --automake +$libtoolize --copy --force --automake aclocal -I config autoheader automake --foreign --add-missing --copy |