dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.5) AC_INIT(gdbmi, 0.1) AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE dnl Checks for programs. AC_PROG_CC AC_PROG_INSTALL AM_PROG_LIBTOOL #AC_PROG_RANLIB AM_PROG_LEX AC_PROG_YACC dnl Checks for header files. AC_HEADER_STDC dnl determine other headers for tgdb, Error if they do not exist AC_CHECK_HEADERS(stdio.h stdlib.h string.h,,AC_MSG_ERROR) dnl Checks for library functions. AC_PROG_GCC_TRADITIONAL AC_ARG_ENABLE(tcl-extension,[ --enable-tcl-extension Build the TCL extension], [case "${enableval}" in yes) enable_tcl_extension=true ;; no) enable_tcl_extension=false ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-tcl-extension) ;; esac],[enable_tcl_extension=false]) AM_CONDITIONAL(ENABLE_TCL_EXTENSION, test x$enable_tcl_extension = xtrue) AC_OUTPUT(Makefile src/Makefile)