From: David Elliott Date: Fri, 9 Apr 2004 21:33:36 +0000 (+0000) Subject: Changes that were in aclocal.m4 but not here X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fe947a6116844e23acf8458512f452904a4f08f9 Changes that were in aclocal.m4 but not here git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/acinclude.m4 b/acinclude.m4 index 5402dd104d..81c6f2b474 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -88,11 +88,14 @@ dnl WX_CPP_NEW_HEADERS checks whether the compiler has "new" header dnl or only the old one - it may be generally assumed that if dnl exists, the other "new" headers (without .h) exist too. dnl -dnl call WX_CPP_NEW_HEADERS(actiof-if-true, action-if-false) +dnl call WX_CPP_NEW_HEADERS(actiof-if-true, action-if-false-or-cross-compiling) dnl --------------------------------------------------------------------------- AC_DEFUN([WX_CPP_NEW_HEADERS], [ + if test "$cross_compiling" = "yes"; then + ifelse([$2], , :, [$2]) + else AC_LANG_SAVE AC_LANG_CPLUSPLUS @@ -105,6 +108,7 @@ AC_DEFUN([WX_CPP_NEW_HEADERS], fi AC_LANG_RESTORE + fi ]) dnl ---------------------------------------------------------------------------