autoconf cache variable naming

Jeff Johnston jjohnstn@redhat.com
Wed Aug 19 19:51:00 GMT 2009


Ralf Wildenhues wrote:
> Hello,
>
> configure will only actually put variables in the cache that match
> the *_cv_* pattern.  OK to commit?
>
>   
Didn't know that.  Yes, please go ahead (assuming you have commit 
privileges).

-- Jeff J.
> Thanks,
> Ralf
>
> 2009-08-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
>
> 	* configure.in (newlib_cv_ldbl_eq_dbl): Rename cache variable
> 	from newlib_ldbl_eq_dbl.
> 	* configure: Regenerate.
>
> Index: configure.in
> ===================================================================
> RCS file: /cvs/src/src/newlib/configure.in,v
> retrieving revision 1.41
> diff -u -r1.41 configure.in
> --- configure.in	15 May 2009 16:15:57 -0000	1.41
> +++ configure.in	19 Aug 2009 18:59:36 -0000
> @@ -430,7 +430,7 @@
>  AM_CONDITIONAL(HAVE_LONG_DOUBLE, test x"$acnewlib_cv_type_long_double" = x"yes")
>  
>  AC_CACHE_CHECK(whether long double equals double,
> -	       newlib_ldbl_eq_dbl, [dnl
> +	       newlib_cv_ldbl_eq_dbl, [dnl
>  cat > conftest.c <<EOF
>  #include <float.h>
>  #if DBL_MANT_DIG == LDBL_MANT_DIG  &&  LDBL_MIN_EXP == DBL_MIN_EXP  && \
> @@ -443,12 +443,12 @@
>  if AC_TRY_COMMAND([${CC} $CFLAGS $CPPFLAGS -c -o conftest.o conftest.c
>  							1>&AS_MESSAGE_LOG_FD])
>  then
> -  newlib_ldbl_eq_dbl=yes;
> +  newlib_cv_ldbl_eq_dbl=yes;
>  else
> -  newlib_ldbl_eq_dbl=no;
> +  newlib_cv_ldbl_eq_dbl=no;
>  fi
>  rm -f conftest*])
> -if test $newlib_ldbl_eq_dbl = yes; then
> +if test $newlib_cv_ldbl_eq_dbl = yes; then
>    AC_DEFINE_UNQUOTED(_LDBL_EQ_DBL)
>  fi
>  
>   



More information about the Newlib mailing list