summaryrefslogtreecommitdiffstats
path: root/gcc/aclocal.m4
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-25 19:30:11 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-05-25 19:30:11 +0000
commit3e37364a23bc60701bef9cacac46af68709fff20 (patch)
tree95cd884172236a1ee6f9e23673e2e7c784b20e29 /gcc/aclocal.m4
parent92f708ec3ad4e3137f5fc778e4ef88cba9cbe6f5 (diff)
downloadppe42-gcc-3e37364a23bc60701bef9cacac46af68709fff20.tar.gz
ppe42-gcc-3e37364a23bc60701bef9cacac46af68709fff20.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42578 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/aclocal.m4')
-rw-r--r--gcc/aclocal.m427
1 files changed, 26 insertions, 1 deletions
diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4
index f2eda881546..1e0b59fc4fa 100644
--- a/gcc/aclocal.m4
+++ b/gcc/aclocal.m4
@@ -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,
OpenPOWER on IntegriCloud