Cleaner check for whether libtool is Apple or not on Darwin.

This commit is contained in:
Mark Adler 2012-06-09 22:58:06 -07:00
parent a72bcd5607
commit 148b8f630c
1 changed files with 1 additions and 1 deletions

2
configure vendored
View File

@ -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"