openbsd-ports/lang/llvm-gcc4/patches/patch-libstdc++-v3_acinclude_m4

87 lines
2.1 KiB
Plaintext
Raw Normal View History

$OpenBSD: patch-libstdc++-v3_acinclude_m4,v 1.1.1.1 2009/06/22 22:37:32 sthen Exp $
--- libstdc++-v3/acinclude.m4.orig Fri Jul 13 09:39:34 2007
+++ libstdc++-v3/acinclude.m4 Mon Jun 22 00:54:07 2009
@@ -1856,82 +1856,6 @@ AC_DEFUN([GLIBCXX_ENABLE_WCHAR_T], [
# Test it always, for use in GLIBCXX_ENABLE_C99, together with
# ac_has_wchar_h.
AC_CHECK_HEADERS(wctype.h, ac_has_wctype_h=yes, ac_has_wctype_h=no)
-
- if test x"$enable_wchar_t" = x"yes"; then
-
- AC_LANG_SAVE
- AC_LANG_CPLUSPLUS
-
- if test x"$ac_has_wchar_h" = xyes &&
- test x"$ac_has_wctype_h" = xyes; then
- AC_TRY_COMPILE([#include <wchar.h>
- #include <stddef.h>
- wint_t i;
- long l = WEOF;
- long j = WCHAR_MIN;
- long k = WCHAR_MAX;
- namespace test
- {
- using ::btowc;
- using ::fgetwc;
- using ::fgetws;
- using ::fputwc;
- using ::fputws;
- using ::fwide;
- using ::fwprintf;
- using ::fwscanf;
- using ::getwc;
- using ::getwchar;
- using ::mbrlen;
- using ::mbrtowc;
- using ::mbsinit;
- using ::mbsrtowcs;
- using ::putwc;
- using ::putwchar;
- using ::swprintf;
- using ::swscanf;
- using ::ungetwc;
- using ::vfwprintf;
- using ::vswprintf;
- using ::vwprintf;
- using ::wcrtomb;
- using ::wcscat;
- using ::wcschr;
- using ::wcscmp;
- using ::wcscoll;
- using ::wcscpy;
- using ::wcscspn;
- using ::wcsftime;
- using ::wcslen;
- using ::wcsncat;
- using ::wcsncmp;
- using ::wcsncpy;
- using ::wcspbrk;
- using ::wcsrchr;
- using ::wcsrtombs;
- using ::wcsspn;
- using ::wcsstr;
- using ::wcstod;
- using ::wcstok;
- using ::wcstol;
- using ::wcstoul;
- using ::wcsxfrm;
- using ::wctob;
- using ::wmemchr;
- using ::wmemcmp;
- using ::wmemcpy;
- using ::wmemmove;
- using ::wmemset;
- using ::wprintf;
- using ::wscanf;
- }
- ],[],[], [enable_wchar_t=no])
- else
- enable_wchar_t=no
- fi
-
- AC_LANG_RESTORE
- fi
if test x"$enable_wchar_t" = x"yes"; then
AC_DEFINE(_GLIBCXX_USE_WCHAR_T, 1,