diff options
author | Noah Watkins <noahwatkins@gmail.com> | 2013-07-20 18:41:38 -0700 |
---|---|---|
committer | Noah Watkins <noahwatkins@gmail.com> | 2013-07-20 18:41:38 -0700 |
commit | dd0be485bca9e33b8d87efacf1dbc7ef7ed2160f (patch) | |
tree | 35b5da8120fb6e7308f7c18086671812af0a3a81 | |
parent | 629a9d77cd082834e12c14968f96708e28e62f3b (diff) | |
download | ceph-dd0be485bca9e33b8d87efacf1dbc7ef7ed2160f.tar.gz |
autogen.sh: use glibtoolize when available
libtoolize is called glibtoolize on osx.
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
-rwxr-xr-x | autogen.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh index f90c49de20a..f2ffe5eb87b 100755 --- a/autogen.sh +++ b/autogen.sh @@ -11,10 +11,20 @@ check_for_pkg_config() { exit 1 } +if [ `which libtoolize` ]; then + LIBTOOLIZE=libtoolize +elif [ `which glibtoolize` ]; then + LIBTOOLIZE=glibtoolize +else + echo "Error: could not find libtoolize" + echo " Please install libtoolize or glibtoolize." + exit 1 +fi + rm -f config.cache aclocal -I m4 --install check_for_pkg_config -libtoolize --force --copy +$LIBTOOLIZE --force --copy autoconf autoheader automake -a --add-missing -Wall |