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(tetex.ac) ESUBDIRS= DSUBDIRS= LIBSDEP= LIBWWWDIR=libs/libwww NCURSESDIR=libs/ncurses LIBPNGDIR=libs/libpng ZLIBDIR=libs/zlib LIBT1DIR=libs/t1lib if test -d $srcdir/$LIBT1DIR; then test "$with_system_t1lib" != yes \ && LIBSDEP="$LIBSDEP \$(T1DIR)/lib/.libs/libt1.a" DSUBDIRS="$DSUBDIRS $LIBT1DIR" fi 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) dnl In the xdvik package, when building with -sourcedir option the dnl libs dir must be made by hand. test -d libs || mkdir libs AC_CONFIG_SUBDIRS($PKGS texk libs/t1lib libs/libwww) AC_OUTPUT(Makefile)