]> gcc.gnu.org Git - gcc.git/blame - libcpp/configure.ac
varasm.c (output_constant): Pass the minimum of the two sizes to assemble_integer.
[gcc.git] / libcpp / configure.ac
CommitLineData
4f4e53dd
PB
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.57)
5AC_INIT(cpplib, [ ], gcc-bugs@gcc.gnu.org, cpplib)
6AC_CONFIG_SRCDIR(ucnid.h)
7AC_CANONICAL_SYSTEM
8AM_INIT_AUTOMAKE(foreign)
9AM_MAINTAINER_MODE
10
11# Checks for programs.
12AC_PROG_CC
13AC_PROG_RANLIB
14
15# Checks for header files.
16AC_HEADER_TIME
17ACX_HEADER_STRING
18ACX_HEADER_STDBOOL
19AC_CHECK_HEADERS(iconv.h locale.h fcntl.h limits.h stddef.h \
20 stdlib.h strings.h string.h sys/file.h unistd.h)
21
22# Checks for typedefs, structures, and compiler characteristics.
23AC_C_CONST
24AC_C_INLINE
25AC_FUNC_OBSTACK
26AC_TYPE_OFF_T
27AC_TYPE_SIZE_T
28AC_STRUCT_TM
29AC_CHECK_SIZEOF(int)
30AC_CHECK_SIZEOF(long)
31AC_CHECK_FUNCS(putc_unlocked fputc_unlocked fputs_unlocked \
32 fwrite_unlocked fprintf_unlocked)
33AC_CHECK_DECLS([abort, errno, putc_unlocked, fputc_unlocked,
34 fputs_unlocked, fwrite_unlocked, fprintf_unlocked])
35
36# Checks for library functions.
37AC_FUNC_ALLOCA
38AC_HEADER_STDC
39AM_LANGINFO_CODESET
40ZW_GNU_GETTEXT_SISTER_DIR
41
42AC_CACHE_CHECK(for uchar, gcc_cv_type_uchar,
43[AC_TRY_COMPILE([
44#include "ansidecl.h"
45#include "system.h"
46],
47[if ((uchar *)0) return 0;
48 if (sizeof(uchar)) return 0;],
49ac_cv_type_uchar=yes, ac_cv_type_uchar=no)])
50if test $ac_cv_type_uchar = yes; then
51 AC_DEFINE(HAVE_UCHAR, 1,
52 [Define if <sys/types.h> defines \`uchar'.])
53fi
54
55AM_ICONV
56AM_CONDITIONAL(ENABLE_NLS, [test "x$enable_nls" != xno])
57AC_ARG_ENABLE(checking,
58[ --enable-checking enable expensive run-time checks],,
59enable_checking=no)
60
61if test $enable_checking != no ; then
62 AC_DEFINE(ENABLE_CHECKING, 1,
63[Define if you want more run-time sanity checks.])
64fi
65
66case $target in
67 alpha*-*-* | \
68 x86_64-*-* | \
69 ia64-*-* | \
70 hppa*64*-*-* | parisc*64*-*-* | \
71 mips*-*-* | \
72 mmix-*-* | \
73 powerpc*-*-* | \
74 rs6000*-*-* | \
75 s390*-*-* | \
76 sparc64*-*-* | ultrasparc-*-freebsd* | \
77 sparcv9-*-solaris2* | \
78 sparc-*-solaris2.[789] | sparc-*-solaris2.1[0-9] | \
79 sh[123456789l]*-*-*)
80 need_64bit_hwint=yes ;;
81 *)
82 need_64bit_hwint=no ;;
83esac
84
85case $need_64bit_hwint:$ac_cv_sizeof_long in
86 *:8 | no:*) host_wide_int=long ;;
87 *) host_wide_int='long long' ;;
88esac
89
90AC_DEFINE_UNQUOTED(HOST_WIDE_INT, $host_wide_int,
91[Define to the widest efficient host integer type at least
92 as wide as the target's size_t type.])
93
94AC_CONFIG_HEADERS(config.h:config.in)
95AC_CONFIG_FILES(Makefile)
96AC_OUTPUT
This page took 1.607827 seconds and 5 git commands to generate.