Make setthetime() static per the prototype.
[dragonfly.git] / contrib / gperf / src / configure.in
1 dnl autoconf configuration for gperf/src
2
3 dnl Copyright (C) 1998, 2000 Free Software Foundation, Inc.
4 dnl written by Douglas C. Schmidt (schmidt@ics.uci.edu)
5 dnl
6 dnl This file is part of GNU GPERF.
7 dnl
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.
12 dnl
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.
17 dnl
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.
22
23 AC_INIT(gen-perf.cc)
24 AC_CONFIG_HEADER(config.h)
25 AC_PROG_MAKE_SET
26 dnl
27 dnl           checks for programs
28 dnl
29 AC_PROG_CC
30                       dnl sets variable CC
31 AC_PROG_CPP
32                       dnl sets variable CPP
33 AC_PROG_CXX
34                       dnl sets variable CXX
35 AC_PROG_CXXCPP
36                       dnl sets variable CXXCPP
37 CL_PROG_INSTALL
38                       dnl sets variables INSTALL, INSTALL_DATA, INSTALL_PROGRAM
39 dnl
40 dnl           checks for compiler characteristics
41 dnl
42 AC_MSG_CHECKING([for working throw()])
43 AC_CACHE_VAL(gp_cv_cxx_throw_decl,[
44 AC_LANG_SAVE()
45 AC_LANG_CPLUSPLUS()
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)
49 AC_LANG_RESTORE()
50 ])
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)
54 fi
55 dnl
56 dnl           checks for functions and declarations
57 dnl
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
66 fi
67 fi
68 dnl
69 dnl           That's it.
70 dnl
71 AC_OUTPUT(Makefile)