cb6a8938ed
progress, largely based on the gcc port in ports/lang/gcc/4.2. Requested by jsg@. It's somewhat usable on i386 (shared lib versions not yet properly under control). Build on amd64 currently fails with -fPIC problems. -- -- lvm-gcc is the LLVM C front end. It is a modified version of gcc that compiles C/C++/ObjC programs into native objects, LLVM bitcode or LLVM assembly language, depending upon the options. By default, llvm-gcc compiles to native objects just like GCC does. If the -emit-llvm option is given then it will generate LLVM bitcode files instead. If -S (assembly) is also given, then it will generate LLVM assembly. Being derived from the GNU Compiler Collection, llvm-gcc has many of gcc's features and accepts most of gcc's options. It handles a number of gcc's extensions to the C programming language. <sthen@zephyr:/usr/ports/mystuff/lang/llvm-gcc4:9>$CVS: ----------------------------------------------------------------------
87 lines
2.1 KiB
Plaintext
87 lines
2.1 KiB
Plaintext
$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,
|