dnl -*-fundamental-*- dnl dnl $Id: configure.in,v 1.3 1999/10/24 10:20:36 mdw Exp $ dnl dnl Autoconfiguration for Catacomb dnl dnl (c) 1999 Straylight/Edgeware dnl dnl ----- Licensing notice -------------------------------------------------- dnl dnl This file is part of Catacomb. dnl dnl Catacomb is free software; you can redistribute it and/or modify dnl it under the terms of the GNU Library General Public License as dnl published by the Free Software Foundation; either version 2 of the dnl License, or (at your option) any later version. dnl dnl Catacomb 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 Library General Public License for more details. dnl dnl You should have received a copy of the GNU Library General Public dnl License along with Catacomb; if not, write to the Free dnl Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, dnl MA 02111-1307, USA. dnl ----- Revision history -------------------------------------------------- dnl dnl $Log: configure.in,v $ dnl Revision 1.3 1999/10/24 10:20:36 mdw dnl Modify for standalone distribution. The library's getting far too large dnl to be sensibly embedded in other programs. dnl dnl Modify for standalone distribution. The library's getting far too large dnl to be sensibly embedded in other programs. dnl dnl Revision 1.2 1999/10/23 12:56:25 mdw dnl Version number change. dnl dnl Revision 1.1 1999/09/03 08:41:11 mdw dnl Initial import. dnl dnl --- Boring boilerplate --- AC_INIT(blkc.h) AM_INIT_AUTOMAKE(catacomb, 1.0.0pre2) AM_CONFIG_HEADER(config.h) dnl --- Make sure I can compile and build libraries --- AC_PROG_CC AC_CHECK_LIB(mLib, ego) AC_CHECK_PROG(AR, ar, ar) AC_PROG_RANLIB mdw_MLIB AC_PROG_YACC dnl --- Actually, I assume these exist anyway --- AC_CHECK_HEADERS(unistd.h) AC_HEADER_STDC dnl --- Check for various important system types --- AC_TYPE_PID_T dnl --- Tedious check for ssize_t --- dnl dnl glibc-2 puts ssize_t in a strange place. AC_CACHE_CHECK(for ssize_t, cat_cv_type_ssize_t, [AC_EGREP_CPP(ssize_t, [#include #if HAVE_UNISTD_H #inlcude #endif #if STDC_HEADERS #include #include #endif], cat_cv_type_ssize_t=yes, cat_cv_type_ssize_t=no)]) if test $cat_cv_type_ssize_t = no; then AC_DEFINE(ssize_t, int) fi AC_TYPE_UID_T AC_CHECK_TYPE(time_t, long) mdw_TYPE_SSIZE_T dnl --- Can I call `initgroups'? --- dnl dnl This is used in noise-gathering. AC_CHECK_FUNCS(setgroups) AC_OUTPUT(Makefile) dnl --- Done --- AC_OUTPUT(Makefile catacomb-config) dnl ----- That's all, folks -------------------------------------------------