configure: [cygming] Set --disable-embed-stdcxx by default on --enable-shared.

Many distros provide stdc++.dll recently. --enable-embed-stdcxx might confuse people.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141875 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
NAKAMURA Takumi 2011-10-13 18:04:52 +00:00
parent c18e940c5a
commit e9d3c1cfbe
2 changed files with 4 additions and 4 deletions

View File

@ -580,12 +580,12 @@ esac
dnl Allow libstdc++ is embedded in LLVM.dll. dnl Allow libstdc++ is embedded in LLVM.dll.
AC_ARG_ENABLE(embed-stdcxx, AC_ARG_ENABLE(embed-stdcxx,
AS_HELP_STRING([--enable-embed-stdcxx], AS_HELP_STRING([--enable-embed-stdcxx],
[Build a shared library with embedded libstdc++ for Win32 DLL (default is YES)]),, [Build a shared library with embedded libstdc++ for Win32 DLL (default is NO)]),,
enableval=default) enableval=default)
case "$enableval" in case "$enableval" in
yes) AC_SUBST(ENABLE_EMBED_STDCXX,[1]) ;; yes) AC_SUBST(ENABLE_EMBED_STDCXX,[1]) ;;
no) AC_SUBST(ENABLE_EMBED_STDCXX,[0]) ;; no) AC_SUBST(ENABLE_EMBED_STDCXX,[0]) ;;
default) AC_SUBST(ENABLE_EMBED_STDCXX,[1]) ;; default) AC_SUBST(ENABLE_EMBED_STDCXX,[0]) ;;
*) AC_MSG_ERROR([Invalid setting for --enable-embed-stdcxx. Use "yes" or "no"]) ;; *) AC_MSG_ERROR([Invalid setting for --enable-embed-stdcxx. Use "yes" or "no"]) ;;
esac esac

4
configure vendored
View File

@ -1409,7 +1409,7 @@ Optional Features:
--enable-shared Build a shared library and link tools against it --enable-shared Build a shared library and link tools against it
(default is NO) (default is NO)
--enable-embed-stdcxx Build a shared library with embedded libstdc++ for --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
Win32 DLL (default is YES) Win32 DLL (default is NO)
--enable-timestamps Enable embedding timestamp information in build --enable-timestamps Enable embedding timestamp information in build
(default is YES) (default is YES)
--enable-targets Build specific host targets: all or --enable-targets Build specific host targets: all or
@ -5232,7 +5232,7 @@ case "$enableval" in
;; ;;
no) ENABLE_EMBED_STDCXX=0 no) ENABLE_EMBED_STDCXX=0
;; ;;
default) ENABLE_EMBED_STDCXX=1 default) ENABLE_EMBED_STDCXX=0
;; ;;
*) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}