aclocal.m4: Fixed typo.

* aclocal.m4: Fixed typo.
        (gcc_AC_HEADER_STDBOOL): Define.
        (gcc_AC_C__BOOL): Define.
        * configure.in: Use them.
        (AC_CHECK_HEADERS): Remove stdbool.h
        * configure, config.in: Regenerate.

From-SVN: r42578
This commit is contained in:
Rainer Orth 2001-05-25 19:30:11 +00:00 committed by Richard Henderson
parent 80a480ca16
commit 827ae6cf7c
5 changed files with 347 additions and 241 deletions

View File

@ -1,3 +1,12 @@
2001-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* aclocal.m4: Fixed typo.
(gcc_AC_HEADER_STDBOOL): Define.
(gcc_AC_C__BOOL): Define.
* configure.in: Use them.
(AC_CHECK_HEADERS): Remove stdbool.h
* configure, config.in: Regenerate.
2001-05-25 Richard Henderson <rth@redhat.com>
* function.c (expand_function_start): Don't abort on PARALLEL

27
gcc/aclocal.m4 vendored
View File

@ -1,4 +1,17 @@
Fdnl See whether we can include both string.h and strings.h.
dnl See if stdbool.h properly defines bool and true/false.
AC_DEFUN(gcc_AC_HEADER_STDBOOL,
[AC_CACHE_CHECK([for working stdbool.h],
ac_cv_header_stdbool_h,
[AC_TRY_COMPILE([#include <stdbool.h>],
[bool foo = false;],
ac_cv_header_stdbool_h=yes, ac_cv_header_stdbool_h=no)])
if test $ac_cv_header_stdbool_h = yes; then
AC_DEFINE(HAVE_STDBOOL_H, 1,
[Define if you have a working <stdbool.h> header file.])
fi
])
dnl See whether we can include both string.h and strings.h.
AC_DEFUN(gcc_AC_HEADER_STRING,
[AC_CACHE_CHECK([whether string.h and strings.h may both be included],
gcc_cv_header_string,
@ -197,6 +210,18 @@ if test $gcc_cv_c_long_double = yes; then
fi
])
dnl Check whether _Bool is built-in.
AC_DEFUN(gcc_AC_C__BOOL,
[AC_CACHE_CHECK(for built-in _Bool, gcc_cv_c__bool,
[AC_TRY_COMPILE(,
[_Bool foo;],
gcc_cv_c__bool=yes, gcc_cv_c__bool=no)
])
if test $gcc_cv_c__bool = yes; then
AC_DEFINE(HAVE__BOOL, 1, [Define if the \`_Bool' type is built-in.])
fi
])
dnl Define MKDIR_TAKES_ONE_ARG if mkdir accepts only one argument instead
dnl of the usual 2.
AC_DEFUN(gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG,

View File

@ -221,9 +221,6 @@
/* Define if you have the <nl_types.h> header file. */
#undef HAVE_NL_TYPES_H
/* Define if you have the <stdbool.h> header file. */
#undef HAVE_STDBOOL_H
/* Define if you have the <stddef.h> header file. */
#undef HAVE_STDDEF_H
@ -305,6 +302,9 @@
/* Define if your compiler supports the `__int64' type. */
#undef HAVE___INT64
/* Define if the `_Bool' type is built-in. */
#undef HAVE__BOOL
/* The number of bytes in type short */
#undef SIZEOF_SHORT
@ -326,6 +326,9 @@
/* Always define this when using the GNU C Library */
#undef _GNU_SOURCE
/* Define if you have a working <stdbool.h> header file. */
#undef HAVE_STDBOOL_H
/* Define if you can safely include both <string.h> and <strings.h>. */
#undef STRING_WITH_STRINGS

539
gcc/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -366,6 +366,7 @@ gcc_AC_C_VOLATILE
gcc_AC_C_LONG_DOUBLE
gcc_AC_C_LONG_LONG
gcc_AC_C__BOOL
# sizeof(char) is 1 by definition.
gcc_AC_COMPILE_CHECK_SIZEOF(short)
@ -450,12 +451,13 @@ gcc_AC_PROG_INSTALL
AC_HEADER_STDC
AC_HEADER_TIME
gcc_AC_HEADER_STDBOOL
gcc_AC_HEADER_STRING
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
fcntl.h unistd.h sys/file.h sys/time.h \
sys/resource.h sys/param.h sys/times.h sys/stat.h \
direct.h malloc.h langinfo.h iconv.h stdbool.h)
direct.h malloc.h langinfo.h iconv.h)
# Check for thread headers.
AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])