dnl Process this file with 'autoconf' to produce a 'configure' script dnl $Id: configure.in,v 4.32 2026/05/12 20:53:27 tom Exp $ AC_REVISION($Revision: 4.32 $) AC_PREREQ(2.52.20240618) AC_INIT(cproto.c) AC_CONFIG_HEADERS(config.h:config_h.in) CF_CHECK_CACHE CF_WITH_SYSTYPE THIS_SHELL=${CONFIG_SHELL-/bin/sh} AC_SUBST(THIS_SHELL) CF_PROG_CC AC_PROG_CPP CF_CPP_DOES_COMMENTS AC_PROG_LEX(noyywrap) AC_PROG_MAKE_SET AC_PROG_YACC AC_PROG_INSTALL CF_MAKE_TAGS CF_PROG_LINT CF_PROG_GPERF CF_NEED_PROG(LEX) CF_NEED_PROG(YACC) CF_XOPEN_SOURCE CF_WITHOUT_X CF_ENABLE_WARNINGS CF_DISABLE_ECHO AC_MSG_CHECKING(if you want to enable lint-library (llib) support) AC_ARG_ENABLE(llib, [ --enable-llib enable lint-library (llib) support], [cf_enable_llib=$enableval], [cf_enable_llib=yes]) AC_MSG_RESULT($cf_enable_llib); if test "$cf_enable_llib" = yes ; then AC_DEFINE(OPT_LINTLIBRARY) fi ### extra things that we'll substitute in the makefile AC_SUBST(EXTRA_OBJS) AC_CONST AC_CHECK_DECL(exit) CF_GETOPT_HEADER AC_CHECK_FUNCS(getopt popen strstr tmpfile link unlink) if test "x$ac_cv_func_getopt" = xno then CPPFLAGS="$CPPFLAGS -I\$(srcdir)/porting" EXTRA_OBJS="$EXTRA_OBJS getopt.o" fi if test "x$ac_cv_func_popen" = xno then CPPFLAGS="$CPPFLAGS -I\$(srcdir)/porting" EXTRA_OBJS="$EXTRA_OBJS popen.o" fi ### special configuration tests CF_MKSTEMP CF_SIZE_T CF_YACC_ERROR CF_POPEN_TEST ### debugging/testing AC_ARG_WITH(trace, [ --with-trace use trace.c for memory-testing],[ AC_HEADER_TIME AC_CHECK_FUNCS(gettimeofday) AC_DEFINE(OPT_TRACE,1) EXTRA_OBJS="$EXTRA_OBJS trace.o dump.o" CF_ARG_ENABLE(doalloc, [ --enable-doalloc simple memory checking using trace],[ AC_DEFINE(DOALLOC,10000)])]) CF_DISABLE_LEAKS CF_WITH_MAN2HTML echo setting other definitions AC_DEFINE_UNQUOTED(CPP,"$CPP") ### output makefile and config.h AC_CONFIG_FILES([Makefile minstall:minstall.in]) AC_SETUP_DEFS(cat) AC_OUTPUT CF_MAKE_DOCS(cproto,1)