2 # Process this file with autoconf to produce a configure script.
5 AC_INIT(cpplib, [ ], gcc-bugs@gcc.gnu.org, cpplib)
6 AC_CONFIG_SRCDIR(ucnid.h)
11 # Checks for programs.
15 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
16 AC_CHECK_PROGS([ACLOCAL], [aclocal], [$MISSING aclocal])
17 AC_CHECK_PROGS([AUTOCONF], [autoconf], [$MISSING autoconf])
18 AC_CHECK_PROGS([AUTOHEADER], [autoheader], [$MISSING autoheader])
20 # Checks for header files.
23 AC_CHECK_HEADERS(iconv.h locale.h fcntl.h limits.h stddef.h \
24 stdlib.h strings.h string.h sys/file.h unistd.h)
26 # Checks for typedefs, structures, and compiler characteristics.
35 AC_CHECK_FUNCS(putc_unlocked fputc_unlocked fputs_unlocked \
36 fwrite_unlocked fprintf_unlocked)
37 AC_CHECK_DECLS([abort, errno, putc_unlocked, fputc_unlocked,
38 fputs_unlocked, fwrite_unlocked, fprintf_unlocked])
40 # Checks for library functions.
44 ZW_GNU_GETTEXT_SISTER_DIR
46 AC_CACHE_CHECK(for uchar, gcc_cv_type_uchar,
51 [if ((uchar *)0) return 0;
52 if (sizeof(uchar)) return 0;],
53 ac_cv_type_uchar=yes, ac_cv_type_uchar=no)])
54 if test $ac_cv_type_uchar = yes; then
55 AC_DEFINE(HAVE_UCHAR, 1,
56 [Define if <sys/types.h> defines \`uchar'.])
61 # More defines and substitutions.
62 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Define to the name of this package.])
65 if test "x$enable_nls" != xno; then
66 USED_CATALOGS='$(CATALOGS)'
70 AC_SUBST(USED_CATALOGS)
72 AC_ARG_ENABLE(maintainer-mode,
73 [ --enable-maintainer-mode enable rules only needed by maintainers],,
74 enable_maintainer_mode=no)
76 if test "x$enable_maintainer_mode" = xno; then
83 AC_ARG_ENABLE(checking,
84 [ --enable-checking enable expensive run-time checks],,
87 if test $enable_checking != no ; then
88 AC_DEFINE(ENABLE_CHECKING, 1,
89 [Define if you want more run-time sanity checks.])
96 arm*-*-symbianelf* | \
99 hppa*64*-*-* | parisc*64*-*-* | \
105 sparc64*-*-* | ultrasparc-*-freebsd* | \
106 sparcv9-*-solaris2* | \
107 sparc-*-solaris2.[789] | sparc-*-solaris2.1[0-9] | \
109 need_64bit_hwint=yes ;;
111 need_64bit_hwint=no ;;
114 case $need_64bit_hwint:$ac_cv_sizeof_long in
115 *:8 | no:*) host_wide_int=long ;;
116 *) host_wide_int='long long' ;;
120 AC_DEFINE_UNQUOTED(HOST_WIDE_INT, $host_wide_int,
121 [Define to the widest efficient host integer type at least
122 as wide as the target's size_t type.])
126 AC_CONFIG_HEADERS(config.h:config.in, [echo timestamp > stamp-h1])
127 AC_CONFIG_FILES(Makefile)