]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Check whether glibtoolize is available in addition to libtoolize
authorJoerg Mayer <jmayer@loplof.de>
Thu, 9 Aug 2018 13:38:06 +0000 (15:38 +0200)
committerDavid Woodhouse <dwmw2@infradead.org>
Thu, 9 Aug 2018 13:45:55 +0000 (14:45 +0100)
macOS doesn't have libtoolize and GNU libtool only installs glibtoolize.

Signed-off-by: Joerg Mayer <jmayer@loplof.de>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
autogen.sh

index f3e1488aa3949aad56eb0d136c8fcafbccbd2b0c..088dacc756b93ced1d5f72919168f4ecb5ebc776 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh
 
+$(type glibtoolize >/dev/null 2>&1) && LIBTOOLIZE=${LIBTOOLIZE:-glibtoolize}
 aclocal -I m4 && \
 ${LIBTOOLIZE:-libtoolize} --automake --force && \
 autoheader --force &&