1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
dnl Process this file with autoconf to produce a configure script.
AC_INIT(lib/liborange.h)
AC_CANONICAL_HOST
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE(liborange, 0.2)
AM_CONFIG_HEADER(config.h)
AC_SUBST(APPLE_CFLAGS)
case $target in
powerpc-apple-*)
dnl Prevent "Undefined Macro argument list" error.
APPLE_CFLAGS="-no-cpp-precomp"
;;
esac
dnl Checks for programs.
AC_PROG_AWK
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_LIBTOOL
AC_PROG_MAKE_SET
dnl AM_PATH_CHECK()
dnl Checks for libraries.
AC_LIB_RPATH
dnl Check for library dependencies
AM_PATH_LIBSYNCE
AM_PATH_LIBRAPI2
AM_PATH_LIBDYNAMITE
AM_PATH_LIBUNSHIELD
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
# http://www.gnu.org/manual/autoconf-2.53/html_node/AC_LIBOBJ-vs.-LIBOBJS.html
# This is necessary so that .o files in LIBOBJS are also built via
# the ANSI2KNR-filtering rules.
LIB@&t@OBJS=`echo "$LIB@&t@OBJS" | sed 's,\.[[^.]]* ,$U&,g;s,\.[[^.]]*$,$U&,'`
LTLIBOBJS=`echo "$LIB@&t@OBJS" | sed 's,\.[[^.]]* ,.lo ,g;s,\.[[^.]]*$,.lo,'`
AC_SUBST(LTLIBOBJS)
AC_CHECK_LIB(z,inflate,,[
AC_MSG_ERROR(["Could not find zlib, please install it!"])
])
AC_OUTPUT([Makefile
lib/Makefile
src/Makefile])
|