nginx/auto/lib/zlib/conf

52 lines
1.1 KiB
Plaintext
Raw Normal View History

2003-12-14 14:10:27 -06:00
2004-02-09 01:46:43 -06:00
if [ $ZLIB != NONE ]; then
2004-03-29 11:43:58 -06:00
CORE_INCS="$CORE_INCS $ZLIB"
2003-12-14 14:10:27 -06:00
2004-03-25 14:03:02 -06:00
case "$CC" in
2004-03-09 13:47:07 -06:00
2004-03-29 11:43:58 -06:00
cl | wcl386 | bcc32)
2004-03-09 13:47:07 -06:00
LINK_DEPS="$LINK_DEPS $ZLIB/zlib.lib"
CORE_LIBS="$CORE_LIBS $ZLIB/zlib.lib"
;;
2004-03-14 14:46:25 -06:00
*icc)
LINK_DEPS="$LINK_DEPS $ZLIB/libz.a"
# to allow -ipo optimization we link with the *.o but not library
CORE_LIBS="$CORE_LIBS $ZLIB/adler32.o"
CORE_LIBS="$CORE_LIBS $ZLIB/crc32.o"
CORE_LIBS="$CORE_LIBS $ZLIB/deflate.o"
CORE_LIBS="$CORE_LIBS $ZLIB/trees.o"
CORE_LIBS="$CORE_LIBS $ZLIB/zutil.o"
if [ $ZLIB_ASM != NO ]; then
CORE_LIBS="$CORE_LIBS $ZLIB/match.o"
fi
;;
2004-03-09 13:47:07 -06:00
*)
LINK_DEPS="$LINK_DEPS $ZLIB/libz.a"
CORE_LIBS="$CORE_LIBS -L $ZLIB -lz"
;;
esac
2003-12-14 14:10:27 -06:00
else
ngx_lib_inc="#include <zlib.h>"
ngx_lib="zlib"
ngx_lib_test="z_stream z; deflate(&z, Z_NO_FLUSH)"
ngx_libs=-lz
. auto/lib/test
if [ $ngx_found = yes ]; then
CORE_LIBS="$CORE_LIBS $ngx_libs"
ZLIB=YES
2004-02-09 01:46:43 -06:00
else
ZLIB=NO
2003-12-14 14:10:27 -06:00
fi
fi