summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2012-06-09 22:58:06 -0700
committerMark Adler <madler@alumni.caltech.edu>2012-06-09 22:59:53 -0700
commit148b8f630ced4e84264201fc94f07568dff6b3a2 (patch)
tree4c6276d398883d5db3d0696ca3dcc03f10b6195e /configure
parenta72bcd5607a6b7f48a78c1485783c55389d18f55 (diff)
downloadzlib-148b8f630ced4e84264201fc94f07568dff6b3a2.tar.gz
Cleaner check for whether libtool is Apple or not on Darwin.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 5e548a9..02e6be3 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"