# Run autoconf.bat to produce configure script # Copyright (C) 2000-2002 Laurynas Biveinis # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # ------ Initializion and defaults AC_PREREQ([2.50]) AC_INIT([KITE], [0.5], [lauras@softhome.net]) AC_CONFIG_SRCDIR([src/main.cc]) AC_CONFIG_HEADERS([config.h:config-h.in]) # ------ Programs AC_PROG_CXX AC_PROG_CXXCPP AC_LANG(C++) AC_PATH_PROG(MAKEINFO, makeinfo) if test -z $MAKEINFO; then AC_MSG_WARN([Makeinfo not found, Info documentation will not be build]) MAKEINFO=true fi # ------ For making source package AC_PATH_PROG(ZIP, zip) if test -z $ZIP; then AC_MSG_WARN([Zip not found, ``make sourcedist'' target will not work]) ZIP=false fi # ------ For making binary package AC_PATH_PROG(DPMI, cwsdpmi) AC_PATH_PROG(EXE2COFF, exe2coff) AC_PATH_PROG(PMODSTUB, pmodstub) AC_PATH_PROG(UNZIP, unzip) AC_PATH_PROG(UNZIPSFX, unzipsfx) if test -z $DPMI || test -z $EXE2COFF || test -z $PMODSTUB || test -z $UNZIP || test -z $UNZIPSFX; then AC_MSG_WARN([``make bindist'' target will not work because of missing tools]) fi # ------ Options # ------ Note that MSS library should come last in linker's command line. # Also it should be detected before any other library. AC_ARG_WITH(mss, [AC_HELP_STRING([--with-mss],[use Memory Supervision System])], [lb_test_mss=y], [lb_test_mss=n]) if test "$lb_test_mss" != "n"; then AC_CHECK_HEADERS(mss.h) AC_CHECK_LIB(mss, mss_startup) fi # ------ Header files AC_CHECK_HEADERS(popt.h) # ------ Libraries AC_CHECK_LIB(iconv, libiconv) AC_CHECK_LIB(intl, _nl_load_domain) AC_CHECK_LIB(popt, poptPrintHelp, LIBS="-lpopt ${LIBS}", AC_MSG_ERROR([You must have popt installed to compile KITE])) AC_CHECK_LIB(z, deflate, LIBS="-lz ${LIBS}", AC_MSG_ERROR([You must have zlib installed to compile KITE])) AC_CHECK_LIB(pakke, package_check_deps, LIBS="-lpakke ${LIBS}", AC_MSG_ERROR([You must have libpakke installed to compile KITE])) AC_LIB_TVISION([ AC_DEFINE(HAVE_TVISION, 1, [Define if you have Turbo Vision library])], AC_MSG_ERROR([You must have Turbo Vision installed to compile KITE])) # ----- Finalization AC_CONFIG_FILES(Makefile) AC_CONFIG_FILES(stamp-h, echo timestamp > stamp-h) AC_OUTPUT