From: Mark Adler Date: Sun, 10 Jun 2012 05:58:06 +0000 (-0700) Subject: Cleaner check for whether libtool is Apple or not on Darwin. X-Git-Tag: v1.2.7.1~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=148b8f630ced4e84264201fc94f07568dff6b3a2;p=thirdparty%2Fzlib-ng.git Cleaner check for whether libtool is Apple or not on Darwin. --- diff --git a/configure b/configure index 5e548a9ba..02e6be359 100755 --- a/configure +++ b/configure @@ -231,7 +231,7 @@ if test "$gcc" -eq 1 && ($cc -c $cflags $test.c) >> configure.log 2>&1; then SHAREDLIBV=libz.$VER$shared_ext SHAREDLIBM=libz.$VER1$shared_ext LDSHARED=${LDSHARED-"$cc -dynamiclib -install_name $libdir/$SHAREDLIBM -compatibility_version $VER1 -current_version $VER3"} - if test "`libtool -V 2>&1 | grep -c Apple`" != "0"; then + if libtool -V 2>&1 | grep Apple > /dev/null; then AR="libtool" else AR="/usr/bin/libtool"