test for bool is now done in configure, not by manually testing compilers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
6184444ce5
commit
2d45abf154
3 changed files with 201 additions and 127 deletions
18
configure.in
18
configure.in
|
|
@ -553,6 +553,24 @@ AC_CHECK_SIZEOF(long)
|
|||
AC_CHECK_SIZEOF(long long)
|
||||
dnl defines the size of certain types of variables in SIZEOF_???
|
||||
|
||||
dnl ######################
|
||||
dnl # check C++ features #
|
||||
dnl ######################
|
||||
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_CPLUSPLUS
|
||||
|
||||
dnl Check for existence of builtin 'bool' data type
|
||||
dnl
|
||||
dnl do nothing for cross-compilation - assume bool is not defined
|
||||
AC_MSG_CHECKING(if C++ compiler supports bool)
|
||||
AC_TRY_RUN([ int main() {bool b = true; return 0;} ],
|
||||
AC_DEFINE(HAVE_BOOL) AC_MSG_RESULT(yes),
|
||||
AC_MSG_RESULT(no),
|
||||
AC_MSG_RESULT(no assumed for cross-compilation))
|
||||
|
||||
AC_LANG_RESTORE
|
||||
|
||||
dnl ############################
|
||||
dnl # checks library functions #
|
||||
dnl ############################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue