Patchwork configure related issue: syntax error near unexpected token `c++

login
register
mail settings
Submitter Andreas Schwab
Date Nov. 29, 2010, 10:54 a.m.
Message ID <m34ob07647.fsf@redhat.com>
Download mbox | patch
Permalink /patch/73411/
State New
Headers show

Comments

Andreas Schwab - Nov. 29, 2010, 10:54 a.m.
Basile Starynkevitch <basile@starynkevitch.net> writes:

>  % svn diff 
> Index: configure
> ===================================================================
> --- configure	(revision 167234)
> +++ configure	(working copy)
> @@ -13358,7 +13358,7 @@
>      *) ok=no ;;
>    esac
>    case ,${enable_languages}, in
> -    *,c++,*) ;;
> +    *,		c++,*) ;;
>      *) ok=no ;;
>    esac
>    if test $ok = yes; then

It's a bug in configure.ac.  Installed as obvious.

Andreas.

2010-11-29  Andreas Schwab  <schwab@redhat.com>

	* configure.ac: Move comment to remove extra space in last argument
	of GCC_TARGET_TOOL.

Patch

Index: configure.ac
===================================================================
--- configure.ac	(revision 167236)
+++ configure.ac	(working copy)
@@ -3235,8 +3235,9 @@ 
 GCC_TARGET_TOOL(ar, AR_FOR_TARGET, AR, [binutils/ar])
 GCC_TARGET_TOOL(as, AS_FOR_TARGET, AS, [gas/as-new])
 GCC_TARGET_TOOL(cc, CC_FOR_TARGET, CC, [gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/])
+dnl see comments for CXX_FOR_TARGET_FLAG_TO_PASS
 GCC_TARGET_TOOL(c++, CXX_FOR_TARGET, CXX,
-		[gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs],dnl see comments for CXX_FOR_TARGET_FLAG_TO_PASS
+		[gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs],
 		c++)
 GCC_TARGET_TOOL(c++ for libstdc++, RAW_CXX_FOR_TARGET, CXX,
 		[gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs],