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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
|
AC_INIT(texk/klibtool)
AC_CONFIG_AUX_DIR(config)
AC_SET_MAKE
AC_PROG_CC
AC_CANONICAL_SYSTEM
dnl Various compiler directives
dnl Various compiler directives
AC_MSG_CHECKING(whether to define additional compiler specific flags)
case "$target" in
alpha*-dec*)
if test "$CC" = "cc"; then
CFLAGS="$CFLAGS -Olimit 1000 -std1"; export CFLAGS
AC_MSG_WARN(Digital Unix's cc)
fi
;;
hp*hpux*)
if test "$CC" = "cc"; then
CFLAGS="$CFLAGS -Aa +e -D_HPUX_SOURCE"; export CFLAGS
AC_MSG_WARN(HP-UX's cc)
fi
;;
*)
AC_MSG_RESULT(no)
;;
esac
#
case $CC in
egcs)
# The egcs compiler (version 1.1) has a problem with force-mem, so:
CFLAGS="$CFLAGS -fno-force-mem";;
esac
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_LN_S
AC_FUNC_ALLOCA
AC_PROG_RANLIB
sinclude(withenable.ac)
sinclude(dialog/withenable.ac)
sinclude(texk/withenable.ac)
sinclude(texk/kpathsea/withenable.ac)
sinclude(texk/kpathsea/xt.ac)
sinclude(texk/web2c/withenable.ac)
sinclude(texk/xdvik/withenable.ac)
sinclude(libs/libwww/withenable.ac)
sinclude(libs/ncurses/withenable.ac)
sinclude(libs/libpng/withenable.ac)
sinclude(libs/libpng/libpng.ac)
sinclude(libs/zlib/withenable.ac)
sinclude(libs/zlib/zlib.ac)
sinclude(tetex.ac)
ESUBDIRS=
DSUBDIRS=
LIBSDEP=
LIBWWWDIR=libs/libwww
NCURSESDIR=libs/ncurses
LIBPNGDIR=libs/libpng
ZLIBDIR=libs/zlib
if test -d $srcdir/$LIBWWWDIR; then
test "$with_system_wwwlib" != yes \
&& LIBSDEP="$LIBSDEP \$(LIBWWWDIR)/libwww.a"
DSUBDIRS="$DSUBDIRS $LIBWWWDIR"
fi
if test -d $srcdir/$NCURSESDIR; then
test "$with_system_ncurses" != yes \
&& LIBSDEP="$LIBSDEP \$(NCURSESDIR)/lib/libncurses.a"
DSUBDIRS="$DSUBDIRS $NCURSESDIR"
fi
if test -d $srcdir/$LIBPNGDIR; then
test "$with_system_pnglib" != yes \
&& LIBSDEP="$LIBSDEP \$(LIBPNGDIR)/libpng.a"
DSUBDIRS="$DSUBDIRS $LIBPNGDIR"
fi
if test -d $srcdir/$ZLIBDIR; then
test "$with_system_zlib" != yes \
&& LIBSDEP="$LIBSDEP \$(ZLIBDIR)/libz.a"
DSUBDIRS="$DSUBDIRS $ZLIBDIR"
fi
PKGS='texinfo dialog t1utils'
for pkg in $PKGS; do
if test -d $srcdir/$pkg; then
if eval "test \"`echo '$with_'${pkg}`\" != no"; then
ESUBDIRS="$ESUBDIRS $pkg"
else
DSUBDIRS="$DSUBDIRS $pkg"
fi
fi
done
AC_SUBST(ESUBDIRS)
AC_SUBST(DSUBDIRS)
AC_SUBST(LIBSDEP)
mkdir libs
AC_CONFIG_SUBDIRS($PKGS texk libs/libwww)
AC_OUTPUT(Makefile)
|