diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2022-04-24 13:33:23 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2022-04-24 13:33:23 +0200 |
| commit | 1ae95fddd96d7a289f1929cdcd253ed52aa5d631 (patch) | |
| tree | e4cb806a72e7b63841036c650aa05b837bd2718b /configure.ac | |
| parent | 285e8e843afa51e3e1ae2ffdd3b4161b566b160d (diff) | |
Remove obsolete configure test for 'bool'
as discussed in fltk.coredev "RFC: autoconf test for 'bool' type"
on Apr 12, 2021.
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/configure.ac b/configure.ac index ca2a7bcc2..0d3537494 100644 --- a/configure.ac +++ b/configure.ac @@ -526,27 +526,6 @@ AS_CASE([$host_os], [darwin*], [ ]) ]) -dnl Does the C++ compiler support the bool type? -AC_CACHE_CHECK([whether the compiler recognizes bool as a built-in type], ac_cv_cxx_bool,[ - AC_LANG_PUSH([C++]) - AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM([[ - int f(int x){return 1;} - int f(char x){return 1;} - int f(bool x){return 1;} - ]], [[ - bool b = true; - return f(b); - ]])], - [ac_cv_cxx_bool=yes], - [ac_cv_cxx_bool=no]) - AC_LANG_POP([]) -]) - -AS_IF([test "x$ac_cv_cxx_bool" != xyes], [ - CXXFLAGS="-Dbool=char -Dfalse=0 -Dtrue=1 $CXXFLAGS" -]) - dnl Standard headers and functions... AC_HEADER_DIRENT |
