dnl Process this file with autoconf to produce a configure script. dnl [JNZ] Modified 28-Mar-2003 AC_INIT(configure.in) AC_CANONICAL_SYSTEM AM_INIT_AUTOMAKE(KMD, 1.4.0-UNSW-1.6) AM_CONFIG_HEADER(config.h) AC_ISC_POSIX AC_PROG_CC AM_PROG_CC_STDC AC_HEADER_STDC dnl Checks for libraries. AC_ARG_ENABLE(verbose, [ --enable-verbose Print out information while running], AC_DEFINE(VERBOSE_D, 1), AC_DEFINE(VERBOSE_D, 0)) AC_ARG_ENABLE(serial-debug, [ --enable-serial-debug Print out all transfers to the serial port], AC_DEFINE(SERIAL_DEBUG, 1), AC_DEFINE(SERIAL_DEBUG, 0)) AC_ARG_ENABLE(serial-port, [ --enable-serial-port=path Choose serial port path [Linux:/dev/ttyS0 SunOS:/dev/ttya]], AC_DEFINE_UNQUOTED(SERIAL_PORT, "$enableval")) AC_ARG_ENABLE(serial-speed, [ --enable-serial-speed=speed Choose serial port speed [115200]], AC_DEFINE_UNQUOTED(SERIAL_PORT, "$enableval")) AC_ARG_ENABLE(emulator, [ --enable-emulator=emulator Choose emulator program [jimulator]], AC_DEFINE_UNQUOTED(EMULATOR_PROG, "$enableval")) AC_ARG_ENABLE(setup-dir, [ --enable-setup-dir=path Choose directory of the setup files[~]], AC_DEFINE_UNQUOTED(SETUP_DIR, "$enableval")) AC_ARG_ENABLE(internal-setup, [ --enable-internal-setup By default use the .komodo file compiled in], AC_DEFINE(USE_INTERNAL, 1)) AC_ARG_ENABLE(simple-interface, [ --enable-simple-interface Make a simple interface], AC_DEFINE(SIMPLE_INTERFACE, 1)) AC_ARG_ENABLE(gtk2, [ --enable-gtk2 Compile with GTK+ 2.0], GTK2=1, GTK2=0) AC_ARG_ENABLE(static, [ --enable-static Compile statically], LDFLAGS=-static) AC_ARG_ENABLE(wall, [ --enable-wall Compile giving all warnings], CFLAGS="-Wall") AC_DEFINE_UNQUOTED(DATE, "$(date +%d/%m/%Y)") AC_DEFINE_UNQUOTED(YEAR, "$(date +%Y)") AM_PATH_GLIB(1.2.0, , AC_MSG_ERROR(Cannot find GLIB: Is gtk-config in path?)) AM_PATH_GTK(1.2.0, , AC_MSG_ERROR(Cannot find GTK: Is gtk-config in path?)) AC_CHECK_LIB(iberty, xexit, , AC_MSG_ERROR(Cannot find libiberty, the GNU Liberty library)) dnl [JNZ] Originally searched for libbfd. dnl dnl AC_CHECK_LIB(bfd, bfd_init, , dnl AC_MSG_ERROR(Cannot find libbfd, usually part of the binutils-dev package) ) AC_CHECK_FILE(/usr/lib/libbfd.a, AC_DEFINE(LIBBFD_FOUND, /usr/lib/libbfd.a)) case $target_os in linux*) AC_DEFINE(LINUX) ;; solaris*) AC_DEFINE(SUNOS) ;; sunos*) AC_DEFINE(SUNOS) ;; esac AC_OUTPUT([ Makefile src/Makefile src/Pixmaps/Makefile ])