'configure' problem

Till Straumann strauman at SLAC.Stanford.EDU
Mon Apr 7 18:14:16 UTC 2003


Ralf Corsepius wrote:
> Am Fre, 2003-04-04 um 06.51 schrieb Till Straumann: 
> 
>>Here's one for you, Ralf:
> 
> 
>>However, solaris' /bin/sh executing 'configure' doesn't seem to grok the
>>
>>var=${var=value}
>>
>>constructs.
> 
> Well, var=${var=value} is the construct having been used for autoconf's
> config caches for years, but ...
> 
> ... I can reproduce the problem ...
> 
> The problem seem to be Solaris /bin/sh having problems in parsing quotes
> (There even is a paragraph related to this issue in autoconf.info :( )
> 
> It accepts 
> a=${a=X}
> a=${a=-X}
> 
> but it chokes on
> a=${a=-X -Y}
> 
> a=${a="-X -Y"}
> 
> also seems to work ...
> 
> 
>>configure complains but runs through (and the complaint went
>>undetected) but fails to build a correct Makefile
>>(i.e. it builds a Makefile but doesn't set CPU_CFLAGS).
>>
>>Any ideas about what went wrong greatly appreciated
> 
> 
> I don't recall the rationale for autoconf using a=${a=...}, wo let's try
> the normal, nominal way of "/bin/sh" setting up vars ....
> 
> Can you try the patch below?
> 
> Ralf

It seems to work (only tested on solaris host - powerpc/mvme2307 target,
though), thanks a LOT.

-- Till

> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> Index: c/src/make/bsp.mak
> ===================================================================
> RCS file: /usr1/CVS/rtems/c/src/make/bsp.mak,v
> retrieving revision 1.2
> diff -u -r1.2 bsp.mak
> --- c/src/make/bsp.mak	12 Dec 2002 16:16:28 -0000	1.2
> +++ c/src/make/bsp.mak	7 Apr 2003 15:59:11 -0000
> @@ -8,9 +8,9 @@
>  
>  make/${RTEMS_BSP}.cache:
>  	@$(RM) $@
> -	@echo ac_cv_env_RTEMS_CPU_MODEL=\$${ac_cv_env_RTEMS_CPU_MODEL=$(RTEMS_CPU_MODEL)} >> $@
> -	@echo ac_cv_env_RTEMS_BSP_FAMILY=\$${ac_cv_env_RTEMS_BSP_FAMILY=$(RTEMS_BSP_FAMILY)} >> $@
> -	@echo ac_cv_env_CPU_CFLAGS=\$${ac_cv_env_CPU_CFLAGS=$(CPU_CFLAGS)} >> $@
> -	@echo ac_cv_env_CFLAGS_OPTIMIZE_V=\$${ac_cv_env_CFLAGS_OPTIMIZE_V=$(CFLAGS_OPTIMIZE_V)} >> $@
> -	@echo ac_cv_env_CFLAGS_DEBUG_V=\$${ac_cv_env_CFLAGS_DEBUG_V=$(CFLAGS_DEBUG_V)} >> $@
> -	@echo ac_cv_env_CFLAGS_PROFILE_V=\$${ac_cv_env_CFLAGS_PROFILE_V=$(CFLAGS_PROFILE_V)} >> $@
> +	@echo ac_cv_env_RTEMS_CPU_MODEL=\"$(RTEMS_CPU_MODEL)\" >> $@
> +	@echo ac_cv_env_RTEMS_BSP_FAMILY=\"$(RTEMS_BSP_FAMILY)\" >> $@
> +	@echo ac_cv_env_CPU_CFLAGS=\"$(CPU_CFLAGS)\" >> $@
> +	@echo ac_cv_env_CFLAGS_OPTIMIZE_V=\"$(CFLAGS_OPTIMIZE_V)\" >> $@
> +	@echo ac_cv_env_CFLAGS_DEBUG_V=\"$(CFLAGS_DEBUG_V)\" >> $@
> +	@echo ac_cv_env_CFLAGS_PROFILE_V=\"$(CFLAGS_PROFILE_V)\" >> $@






More information about the users mailing list