1 dnl autoconf configuration for gperf/src
3 dnl Copyright (C) 1998, 2000 Free Software Foundation, Inc.
4 dnl written by Douglas C. Schmidt (schmidt@ics.uci.edu)
6 dnl This file is part of GNU GPERF.
8 dnl GNU GPERF is free software; you can redistribute it and/or modify
9 dnl it under the terms of the GNU General Public License as published by
10 dnl the Free Software Foundation; either version 1, or (at your option)
11 dnl any later version.
13 dnl GNU GPERF is distributed in the hope that it will be useful,
14 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
15 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 dnl GNU General Public License for more details.
18 dnl You should have received a copy of the GNU General Public License
19 dnl along with GNU GPERF; see the file COPYING. If not, write to the
20 dnl Free Software Foundation, 59 Temple Place - Suite 330, Boston,
21 dnl MA 02111-1307, USA.
24 AC_CONFIG_HEADER(config.h)
27 dnl checks for programs
36 dnl sets variable CXXCPP
38 dnl sets variables INSTALL, INSTALL_DATA, INSTALL_PROGRAM
40 dnl checks for compiler characteristics
42 AC_MSG_CHECKING([for working throw()])
43 AC_CACHE_VAL(gp_cv_cxx_throw_decl,[
46 AC_TRY_COMPILE([#include <stdlib.h>
47 void operator delete (void* ptr) throw() {}], [],
48 gp_cv_cxx_throw_decl=yes, gp_cv_cxx_throw_decl=no)
51 AC_MSG_RESULT([$]gp_cv_cxx_throw_decl)
52 if test [$]gp_cv_cxx_throw_decl = yes; then
53 AC_DEFINE(HAVE_THROW_DECL)
56 dnl checks for functions and declarations
58 AC_CHECK_HEADERS(unistd.h sys/time.h sys/resource.h)
59 dnl DEFs HAVE_UNISTD_H, HAVE_SYS_TIME_H, HAVE_SYS_RESOURCE_H
60 if test $ac_cv_header_sys_resource_h = yes; then
61 AC_CHECK_FUNCS(getrlimit)
62 dnl DEFS HAVE_GETRLIMIT
63 if test $ac_cv_func_getrlimit = yes; then
64 AC_CHECK_FUNCS(setrlimit)
65 dnl DEFS HAVE_SETRLIMIT