From 06289ea7170d6fc485f25019a38c323b261c4ddb Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 21 May 2013 20:32:27 -0700 Subject: [PATCH] Smake: Use glibtoolize instead of libtoolize, if it is available. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Requested by Teppo Jussmäki . Tested by Teppo Jussmäki . --- Smake | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Smake b/Smake index d061973d12..47821265bc 100644 --- a/Smake +++ b/Smake @@ -130,7 +130,15 @@ prep_ph: --source-base=gl --lib=libgl --tests-base=tests \ --doc-base=gl/doc --aux-dir=build-aux \ --libtool $(GNULIB_MODULES) - libtoolize --force --automake + if (glibtoolize --version) >/dev/null 2>&1; then \ + LIBTOOLIZE=glibtoolize; \ + elif (libtoolize --version) >/dev/null 2>&1; then \ + LIBTOOLIZE=libtoolize; \ + else \ + echo >&2 "libtoolize not found"; \ + exit 1; \ + fi; \ + $$LIBTOOLIZE --force --automake aclocal.m4: aclocal -I m4 -I gl/m4 -- 2.30.2