Commit 827ae6cf by Rainer Orth Committed by Richard Henderson

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
parent 80a480ca
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> 2001-05-25 Richard Henderson <rth@redhat.com>
* function.c (expand_function_start): Don't abort on PARALLEL * function.c (expand_function_start): Don't abort on PARALLEL
......
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_DEFUN(gcc_AC_HEADER_STRING,
[AC_CACHE_CHECK([whether string.h and strings.h may both be included], [AC_CACHE_CHECK([whether string.h and strings.h may both be included],
gcc_cv_header_string, gcc_cv_header_string,
...@@ -197,6 +210,18 @@ if test $gcc_cv_c_long_double = yes; then ...@@ -197,6 +210,18 @@ if test $gcc_cv_c_long_double = yes; then
fi 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 Define MKDIR_TAKES_ONE_ARG if mkdir accepts only one argument instead
dnl of the usual 2. dnl of the usual 2.
AC_DEFUN(gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG, AC_DEFUN(gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG,
......
...@@ -221,9 +221,6 @@ ...@@ -221,9 +221,6 @@
/* Define if you have the <nl_types.h> header file. */ /* Define if you have the <nl_types.h> header file. */
#undef HAVE_NL_TYPES_H #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. */ /* Define if you have the <stddef.h> header file. */
#undef HAVE_STDDEF_H #undef HAVE_STDDEF_H
...@@ -305,6 +302,9 @@ ...@@ -305,6 +302,9 @@
/* Define if your compiler supports the `__int64' type. */ /* Define if your compiler supports the `__int64' type. */
#undef HAVE___INT64 #undef HAVE___INT64
/* Define if the `_Bool' type is built-in. */
#undef HAVE__BOOL
/* The number of bytes in type short */ /* The number of bytes in type short */
#undef SIZEOF_SHORT #undef SIZEOF_SHORT
...@@ -326,6 +326,9 @@ ...@@ -326,6 +326,9 @@
/* Always define this when using the GNU C Library */ /* Always define this when using the GNU C Library */
#undef _GNU_SOURCE #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>. */ /* Define if you can safely include both <string.h> and <strings.h>. */
#undef STRING_WITH_STRINGS #undef STRING_WITH_STRINGS
......
...@@ -366,6 +366,7 @@ gcc_AC_C_VOLATILE ...@@ -366,6 +366,7 @@ gcc_AC_C_VOLATILE
gcc_AC_C_LONG_DOUBLE gcc_AC_C_LONG_DOUBLE
gcc_AC_C_LONG_LONG gcc_AC_C_LONG_LONG
gcc_AC_C__BOOL
# sizeof(char) is 1 by definition. # sizeof(char) is 1 by definition.
gcc_AC_COMPILE_CHECK_SIZEOF(short) gcc_AC_COMPILE_CHECK_SIZEOF(short)
...@@ -450,12 +451,13 @@ gcc_AC_PROG_INSTALL ...@@ -450,12 +451,13 @@ gcc_AC_PROG_INSTALL
AC_HEADER_STDC AC_HEADER_STDC
AC_HEADER_TIME AC_HEADER_TIME
gcc_AC_HEADER_STDBOOL
gcc_AC_HEADER_STRING gcc_AC_HEADER_STRING
AC_HEADER_SYS_WAIT AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \ 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 \ fcntl.h unistd.h sys/file.h sys/time.h \
sys/resource.h sys/param.h sys/times.h sys/stat.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. # Check for thread headers.
AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=]) AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment