dnl dnl $Header: /home/gene/src/lisp-script/RCS/configure.in,v 1.5 2004/04/06 07:45:06 gene Exp $ dnl dnl Copyright (c) 2004 Gene Michael Stover. All rights reserved. dnl dnl This file is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. dnl dnl Process this file with autoconf to produce a configure script. AC_INIT() builtin(include, ctiggyr.m4) dnl Checks for programs. AC_PROG_CC AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET dnl Unless LISP_TYPE is defined, try to locate a Lisp. (If LISP_TYPE is dnl defined, LISP_PATHNAME had better be defined, too.) dnl Checks for libraries. dnl Checks for header files. dnl Checks for typedefs, structures, and compiler characteristics. dnl Checks for library functions. AC_MSG_CHECKING(for a Lisp) if test -z "$LISP"; then LISP_PATHNAME="" for F in sbcl uxlisp clisp; do for DIR in $bindir $HOME/bin /usr/local/bin /usr/bin /usr/pkg/$F \ /usr/pkg/$F/bin /home/lisp/$F /home/lisp/bin/$F do if test -f $DIR/$F && test -x $DIR/$F; then LISP_PATHNAME=$DIR/$F break; fi done if test -z "$LISP_PATHNAME"; then : # Haven't found it yet. else # The inner loop found a Lisp, so we break out of this outer # loop. break; fi done fi AC_MSG_RESULT($LISP_PATHNAME) AC_SUBST(LISP_PATHNAME) # Take the Lisp pathname & extract just the filename. It'd be cleaner to # use 'basename', but some basename implementations require a suffix argument, # & we don't necessarily have one of those. In fact, because it's an # exacutable program we found, we probably don't have an extension on the # filename. This sed program takes the pathname we found, discards everything # from the beginning of the line to the /, & preserves everything after the /. LISP=[`echo $LISP_PATHNAME |sed -e 's,^.*/\([^/]*\)$,\1,'`] AC_SUBST(LISP) dnl dnl Installation directory dnl dnl This is a hack. I shouldn't hard-code it. dnl dnl LISP_LIB_DIR=$HOME/lib/clisp dnl AC_SUBST(LISP_LIB_DIR) CTIGGYR_VERSION dnl CTIGGYR_LIST_PROGS(TESTS, test) dnl CTIGGYR_LIST_PROGS(DEMOS, demo) AC_OUTPUT(Makefile src/config.h) dnl --- end of file ---