1169695Skan# configure.ac for libdecnumber			-*- Autoconf -*-
2169695Skan# Process this file with autoconf to generate a configuration script.
3169695Skan
4169695Skan# Copyright 2005, 2006 Free Software Foundation, Inc.
5169695Skan
6169695Skan# This file is part of GCC.
7169695Skan
8169695Skan# GCC is free software; you can redistribute it and/or modify it under
9169695Skan# the terms of the GNU General Public License as published by the Free
10169695Skan# Software Foundation; either version 2, or (at your option) any
11169695Skan# later #version.
12169695Skan
13169695Skan# GCC is distributed in the hope that it will be useful, but WITHOUT
14169695Skan# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15169695Skan# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
16169695Skan# License #for more details.
17169695Skan
18169695Skan# You should have received a copy of the GNU General Public License
19169695Skan# along with GCC; see the file COPYING.  If not, write to the Free
20169695Skan# Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
21169695Skan# 02110-1301, USA.
22169695Skan
23169695SkanAC_PREREQ(2.59)
24169695SkanAC_INIT(libdecnumber, [ ], gcc-bugs@gcc.gnu.org, libdecnumber)
25169695SkanAC_CONFIG_SRCDIR(decNumber.h)
26169695SkanAC_CONFIG_MACRO_DIR(../config)
27169695Skan
28169695Skan# Checks for programs.
29169695SkanAC_PROG_MAKE_SET
30169695SkanAC_PROG_CC
31169695SkanAC_PROG_RANLIB
32169695Skan
33169695SkanMISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
34169695SkanAC_CHECK_PROGS([ACLOCAL], [aclocal], [$MISSING aclocal])
35169695SkanAC_CHECK_PROGS([AUTOCONF], [autoconf], [$MISSING autoconf])
36169695SkanAC_CHECK_PROGS([AUTOHEADER], [autoheader], [$MISSING autoheader])
37169695Skan
38169695Skan# Figure out what compiler warnings we can enable.
39169695Skan# See config/warnings.m4 for details.
40169695Skan
41169695SkanACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \
42169695Skan			  -Wmissing-prototypes -Wold-style-definition \
43169695Skan			  -Wmissing-format-attribute -Wcast-qual])
44169695SkanACX_PROG_CC_WARNING_ALMOST_PEDANTIC([-Wno-long-long])
45169695Skan
46169695Skan# Only enable with --enable-werror-always until existing warnings are
47169695Skan# corrected.
48169695SkanACX_PROG_CC_WARNINGS_ARE_ERRORS([manual])
49169695Skan
50169695Skan# Checks for header files.
51169695SkanAC_CHECK_HEADERS(ctype.h stddef.h string.h stdio.h)
52169695SkanGCC_HEADER_STDINT(gstdint.h)
53169695Skan
54169695Skan# Checks for typedefs, structures, and compiler characteristics.
55169695SkanAC_C_CONST
56169695SkanAC_TYPE_OFF_T
57169695SkanAC_CHECK_SIZEOF(int)
58169695SkanAC_CHECK_SIZEOF(long)
59169695Skan
60169695Skan# Checks for library functions.
61169695SkanAC_HEADER_STDC
62169695Skan
63169695SkanAC_ARG_ENABLE(maintainer-mode,
64169695Skan[  --enable-maintainer-mode enable rules only needed by maintainers],,
65169695Skanenable_maintainer_mode=no)
66169695Skan
67169695Skanif test "x$enable_maintainer_mode" = xno; then
68169695Skan  MAINT='#'
69169695Skanelse
70169695Skan  MAINT=
71169695Skanfi
72169695SkanAC_SUBST(MAINT)
73169695Skan
74169695Skan# Output.
75169695Skan
76169695SkanAC_CONFIG_HEADERS(config.h:config.in, [echo timestamp > stamp-h1])
77169695SkanAC_CONFIG_FILES(Makefile)
78169695SkanAC_OUTPUT
79