1 # Configure template for gzip.
3 # Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
4 # Copyright (C) 1992-1993 Jean-loup Gailly
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22 AC_INIT(gzip, 1.3.5, bug-gzip@gnu.org)
23 AC_CONFIG_SRCDIR(gzip.c)
26 AM_CONFIG_HEADER(config.h)
36 # cc -E produces incorrect asm files on SVR4, we must use /lib/cpp.
37 test -z "$ASCPP" && test -f /lib/cpp && ASCPP=/lib/cpp
38 test -z "$ASCPP" && ASCPP="$CPP"
40 AC_CACHE_CHECK([for underline in external names], [gzip_cv_underline],
41 [gzip_cv_underline=yes
42 AC_TRY_COMPILE([int foo() {return 0;}], [],
43 [nm conftest.$OBJEXT | grep _foo >/dev/null 2>&1 ||
44 gzip_cv_underline=no])])
45 if test $gzip_cv_underline = no; then
46 ASCPP="${ASCPP} -DNO_UNDERLINE"
50 # Try to assemble match.S.
51 # "gcc -E match.s" ignores -E, so we must use match.S.
52 AC_CACHE_CHECK([for assembler], [gzip_cv_assembler],
57 if cp $srcdir/match.c _match.S &&
58 eval "$ASCPP _match.S > _match.s 2>/dev/null"; then
59 if test ! -s _match.s || grep error < _match.s > /dev/null; then
61 elif eval "$CC -c _match.s >/dev/null 2>&1" &&
62 test -f _match.$OBJEXT; then
66 rm -f _match.S _match.s _match.$OBJEXT;;
68 if test $gzip_cv_assembler = yes; then
70 [Define if an assembler version of longest_match is available.])
77 AC_CHECK_HEADERS(fcntl.h limits.h memory.h \
78 sys/utime.h time.h utime.h)
79 AC_CHECK_FUNCS(lstat utime)
80 AC_REPLACE_FUNCS(rpmatch)
91 AC_PREFIX_PROGRAM(gzip)
94 AC_CONFIG_FILES([Makefile])