1 dnl Process this file with autoconf to produce a configure script.
3 AM_INIT_AUTOMAKE(fastar, 0.92-gcc)
4 AM_CONFIG_HEADER(config.h)
6 dnl Checks for programs.
9 AC_PATH_PROG(RM, rm, /bin/rm, $PATH:/bin:/usr/bin:/usr/local/bin)
10 AC_PATH_PROG(CP, cp, /bin/cp, $PATH:/bin:/usr/bin:/usr/local/bin)
11 AC_PATH_PROG(STRIP, strip, /usr/bin/strip, $PATH:/bin:/usr/bin:/usr/local/bin)
12 AC_PATH_PROG(CHMOD, chmod, /bin/chmod, $PATH:/bin:/usr/bin:/usr/local/bin)
15 dnl Add warning flags if we are using gcc.
16 if test "$GCC" = yes; then
17 fastjar_warn_cflags='-W -Wall -pedantic -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings'
19 AC_SUBST(fastjar_warn_cflags)
21 dnl Checks for header files.
25 AC_CHECK_HEADERS(fcntl.h unistd.h sys/param.h getopt.h)
27 dnl Checks for typedefs, structures, and compiler characteristics.
31 dnl Check for type-widths
33 AC_CHECK_SIZEOF(short)
36 AC_CHECK_SIZEOF(long long)
41 AC_ARG_WITH(system-zlib,
42 [ --with-system-zlib use installed libz])
48 if test "$with_system_zlib" = yes; then
49 AC_CHECK_LIB(z, deflate, ZLIBS=-lz, use_zlib=no)
54 if test "$use_zlib" = no; then
55 # Brain dead way to find tree's zlib.
56 ZDEPS='$(top_builddir)/../zlib/libz.a'
57 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
58 ZINCS='-I$(top_srcdir)/../zlib'
64 AC_OUTPUT(Makefile install-defs.sh)