dnl -*-fundamental-*- dnl dnl $Id: configure.in,v 1.1 2002/01/25 19:34:45 mdw Exp $ dnl dnl Configuration script for jog dnl dnl (c) 2001 Mark Wooding dnl dnl ----- Licensing notice -------------------------------------------------- dnl dnl This file is part of Jog: Programming for a jogging machine. dnl dnl Jog 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 Jog 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 Jog; if not, write to the Free Software Foundation, dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. dnl ----- Revision history -------------------------------------------------- dnl dnl $Log: configure.in,v $ dnl Revision 1.1 2002/01/25 19:34:45 mdw dnl Initial revision dnl AC_INIT(rxglue.c) AM_INIT_AUTOMAKE(jog, 1.0.0) AM_CONFIG_HEADER(config.h) AC_PROG_CC AC_PROG_CPP mdw_GCC_FLAGS AC_CACHE_CHECK([where to find ], [mdw_cv_rexxsaa_path], [ bad=true tmp_CPPFLAGS=$CPPFLAGS for i in present /usr/include/regina /usr/local/include/regina; do case $i in present) ;; /*) CPPFLAGS="-I$i $tmp_CPPFLAGS" ;; *) AC_MSG_ERROR([Buggered!]) ;; esac ac_cpp='$CPP $CPPFLAGS' AC_TRY_CPP([#include ], [bad=false; break;]) done if $bad; then AC_MSG_ERROR([header file not found]) fi CPPFLAGS=$tmp_CPPFLAGS mdw_cv_rexxsaa_path=$i ]) case $mdw_cv_rexxsaa_path in present) ;; /*) CPPFLAGS="-I$mdw_cv_rexxsaa_path $tmp_CPPFLAGS" ;; *) AC_MSG_ERROR([Buggered!]) ;; esac mdw_CHECK_MANYLIBS(crypt, crypt) mdw_CHECK_MANYLIBS(dlopen, dl) mdw_CHECK_MANYLIBS(RexxStart, regina rexx) mdw_CHECK_MANYLIBS(pthread_create, pthread) mdw_CHECK_MANYLIBS(socket, socket) mdw_MLIB(2.0.0pre4) mdw_TYPE_SSIZE_T AC_OUTPUT(Makefile) dnl ----- That's all, folks -------------------------------------------------