[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commits] r9447 - in /libdfp/trunk: ChangeLog autom4te.cache/output.0 autom4te.cache/traces.0 configure configure.ac



Author: ryanarn
Date: Thu Dec 10 10:31:32 2009
New Revision: 9447

Log:
2009-12-10  Ryan S. Arnold  <rsa@xxxxxxxxxx>

	* configure: Regenerated.
	* configure.ac (AC_CACHE_CHECK): Re-added check for
	decimal-float-support in the compiler by checking whether the compiler
	can handle the _Decimal64 data type rather than checking whether the
	compiler -v output had a particular flag set.


Modified:
    libdfp/trunk/ChangeLog
    libdfp/trunk/autom4te.cache/output.0
    libdfp/trunk/autom4te.cache/traces.0
    libdfp/trunk/configure
    libdfp/trunk/configure.ac

Modified: libdfp/trunk/ChangeLog
==============================================================================
--- libdfp/trunk/ChangeLog (original)
+++ libdfp/trunk/ChangeLog Thu Dec 10 10:31:32 2009
@@ -1,3 +1,11 @@
+2009-12-10  Ryan S. Arnold  <rsa@xxxxxxxxxx>
+
+	* configure: Regenerated.
+	* configure.ac (AC_CACHE_CHECK): Re-added check for
+	decimal-float-support in the compiler by checking whether the compiler
+	can handle the _Decimal64 data type rather than checking whether the
+	compiler -v output had a particular flag set.
+
 2009-12-10  Ryan S. Arnold  <rsa@xxxxxxxxxx>
 
 	* configure: Regenerated.

Modified: libdfp/trunk/autom4te.cache/output.0
==============================================================================
--- libdfp/trunk/autom4te.cache/output.0 (original)
+++ libdfp/trunk/autom4te.cache/output.0 Thu Dec 10 10:31:32 2009
@@ -276,7 +276,7 @@
 ac_unique_file="printf_dfp.c"
 ac_subdirs_all="$ac_subdirs_all libdecnumber"
 ac_subdirs_all="$ac_subdirs_all libbid"
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os enable_decimal_float dfp_backend with_dfp with_fp base_machine machine CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT cc_mzarch cc_msize ASFLAGS glibc_headers glibc_build enable_static enable_shared submachine submachine_opt sysdep_dirs RANLIB ac_ct_RANLIB AWK subdirs LIB@&t@OBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os enable_decimal_float dfp_backend with_dfp with_fp base_machine machine CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT cc_mzarch cc_msize ASFLAGS libdfp_cv_cc_with_decimal_float glibc_headers glibc_build enable_static enable_shared submachine submachine_opt sysdep_dirs RANLIB ac_ct_RANLIB AWK subdirs LIB@&t@OBJS LTLIBOBJS'
 ac_subst_files=''
 
 # Initialize some variables set by options.
@@ -1632,7 +1632,8 @@
 
 # The implication of using AC_PROG_CC is that on a biarch POWER system where
 # the toolchain defaults to 32-bit and the kernel reports a 64-bit environment
-# there is a screwy disconnect between the two.
+# there is a screwy disconnect between the two.  This is OK as long as we
+# export the computed default cc_msize to the Makefile.in.
 ac_ext=c
 ac_cpp='$CPP $CPPFLAGS'
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -2360,31 +2361,41 @@
 
 
 
-# TODO replace this with a compiler type check.
-# Don't even bother configuring if the compiler doesn't support Decimal
-# Floating Point.
-#AC_CACHE_CHECK(for decimal-float-support in compiler,
-#	       libdfp_cv_cc_with_decimal_float, [
-#		cat > conftest.c <<EOF
-#int main (void) { _Decimal64 d64; d64 = 1.0DD; return 0; }
-#EOF
-#  if ${CC} ${CFLAGS} ${CPPFLAGS} $LDFLAGS -static -o conftest \
-#       conftest.c -v 2>&1 >/dev/null | grep -q " --enable-decimal-float ";
-#  then
-#    libdfp_cv_cc_with_decimal_float=yes
-#  else
-#    libdfp_cv_cc_with_decimal_float=no
-#    AC_MSG_WARN([CC is ${CC}])
-#    AC_MSG_ERROR([${PACKAGE_NAME} requires a compiler configured and built
-#		  with --enable-decimal-float.])
-#  fi
-#  rm -f conftest*])
-#AC_SUBST(libdfp_cv_cc_with_decimal_float)
-#if test $libdfp_cv_cc_with_decimal_float = yes; then
-#  cat >> confdefs.h <<\EOF
-##define __STDC_DEC_FP__ 200704L
-#EOF
-#fi
+# Don't even bother configuring if the compiler can't handle Decimal
+# Floating Point data types.
+echo "$as_me:$LINENO: checking for decimal-float-support in compiler" >&5
+echo $ECHO_N "checking for decimal-float-support in compiler... $ECHO_C" >&6
+if test "${libdfp_cv_cc_with_decimal_float+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  
+		cat > conftest.c <<EOF
+int main (void) { _Decimal64 d64; d64 = 1.0DD; return 0; }
+EOF
+  if ${CC} ${CFLAGS} ${CPPFLAGS} $LDFLAGS -static -o conftest \
+       conftest.c 2>&1 >/dev/null | grep -q " '_Decimal64' undeclared ";
+  then
+    libdfp_cv_cc_with_decimal_float=no
+    { echo "$as_me:$LINENO: WARNING: CC is ${CC}" >&5
+echo "$as_me: WARNING: CC is ${CC}" >&2;}
+    { { echo "$as_me:$LINENO: error: ${PACKAGE_NAME} requires a compiler configured and built
+		  with --enable-decimal-float." >&5
+echo "$as_me: error: ${PACKAGE_NAME} requires a compiler configured and built
+		  with --enable-decimal-float." >&2;}
+   { (exit 1); exit 1; }; }
+  else
+    libdfp_cv_cc_with_decimal_float=yes
+  fi
+  rm -f conftest*
+fi
+echo "$as_me:$LINENO: result: $libdfp_cv_cc_with_decimal_float" >&5
+echo "${ECHO_T}$libdfp_cv_cc_with_decimal_float" >&6
+
+if test $libdfp_cv_cc_with_decimal_float = yes; then
+  cat >> confdefs.h <<\EOF
+#define __STDC_DEC_FP__ 200704L
+EOF
+fi
 
 glibc_headers=
 
@@ -2692,10 +2703,6 @@
 
 fi
 
-#AC_PROG_CC_C_O
-# Default -m[32|64] to align $machine to the default -m[32|64] for the
-# compiler on biarch systems.
-
 if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
@@ -2826,7 +2833,9 @@
 
 
 # Wherever there's a standalone configure fragment we need to tell the top
-# level configure to recurse into it.
+# level configure to recurse into it.  This doesn't pass the full complement
+# of CFLAGS necessary so Makefile.in will need to manually pass the CFLAGS to
+# the backend `make' invocation.
 if test "$dfp_backend" = libdecnumber; then
 	          
 
@@ -3479,6 +3488,7 @@
 s,@cc_mzarch@,$cc_mzarch,;t t
 s,@cc_msize@,$cc_msize,;t t
 s,@ASFLAGS@,$ASFLAGS,;t t
+s,@libdfp_cv_cc_with_decimal_float@,$libdfp_cv_cc_with_decimal_float,;t t
 s,@glibc_headers@,$glibc_headers,;t t
 s,@glibc_build@,$glibc_build,;t t
 s,@enable_static@,$enable_static,;t t

Modified: libdfp/trunk/autom4te.cache/traces.0
==============================================================================
--- libdfp/trunk/autom4te.cache/traces.0 (original)
+++ libdfp/trunk/autom4te.cache/traces.0 Thu Dec 10 10:31:32 2009
@@ -74,19 +74,20 @@
 m4trace:configure.ac:214: -1- AC_SUBST([with_fp])
 m4trace:configure.ac:231: -1- AC_SUBST([base_machine])
 m4trace:configure.ac:232: -1- AC_SUBST([machine])
-m4trace:configure.ac:237: -1- AC_PROG_CC([gcc])
-m4trace:configure.ac:237: -1- AC_SUBST([CC])
-m4trace:configure.ac:237: -1- AC_SUBST([CFLAGS])
-m4trace:configure.ac:237: -1- AC_SUBST([LDFLAGS])
-m4trace:configure.ac:237: -1- AC_SUBST([CPPFLAGS])
-m4trace:configure.ac:237: -1- AC_SUBST([CC])
-m4trace:configure.ac:237: -1- AC_SUBST([ac_ct_CC])
-m4trace:configure.ac:237: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext])
-m4trace:configure.ac:237: -1- AC_SUBST([OBJEXT], [$ac_cv_objext])
-m4trace:configure.ac:246: -1- AC_SUBST([cc_mzarch])
-m4trace:configure.ac:247: -1- AC_SUBST([cc_msize])
-m4trace:configure.ac:249: -1- AC_SUBST([CFLAGS])
-m4trace:configure.ac:250: -1- AC_SUBST([ASFLAGS])
+m4trace:configure.ac:238: -1- AC_PROG_CC([gcc])
+m4trace:configure.ac:238: -1- AC_SUBST([CC])
+m4trace:configure.ac:238: -1- AC_SUBST([CFLAGS])
+m4trace:configure.ac:238: -1- AC_SUBST([LDFLAGS])
+m4trace:configure.ac:238: -1- AC_SUBST([CPPFLAGS])
+m4trace:configure.ac:238: -1- AC_SUBST([CC])
+m4trace:configure.ac:238: -1- AC_SUBST([ac_ct_CC])
+m4trace:configure.ac:238: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext])
+m4trace:configure.ac:238: -1- AC_SUBST([OBJEXT], [$ac_cv_objext])
+m4trace:configure.ac:247: -1- AC_SUBST([cc_mzarch])
+m4trace:configure.ac:248: -1- AC_SUBST([cc_msize])
+m4trace:configure.ac:250: -1- AC_SUBST([CFLAGS])
+m4trace:configure.ac:251: -1- AC_SUBST([ASFLAGS])
+m4trace:configure.ac:271: -1- AC_SUBST([libdfp_cv_cc_with_decimal_float])
 m4trace:configure.ac:288: -1- AC_SUBST([glibc_headers])
 m4trace:configure.ac:299: -1- AC_SUBST([glibc_build])
 m4trace:configure.ac:316: -1- AC_SUBST([enable_static])
@@ -102,15 +103,15 @@
 m4trace:configure.ac:537: -1- AH_OUTPUT([ASM_TYPE_DIRECTIVE_PREFIX], [/* "Define to the prefix before `object\' or `function\' in the assembler\'s
    `.type\' directive */
 #undef ASM_TYPE_DIRECTIVE_PREFIX])
-m4trace:configure.ac:544: -1- AC_PROG_RANLIB
-m4trace:configure.ac:544: -1- AC_SUBST([RANLIB])
-m4trace:configure.ac:544: -1- AC_SUBST([ac_ct_RANLIB])
-m4trace:configure.ac:545: -1- AC_PROG_AWK
-m4trace:configure.ac:545: -1- AC_SUBST([AWK])
-m4trace:configure.ac:561: -1- AC_CONFIG_SUBDIRS([libdecnumber])
-m4trace:configure.ac:561: -1- AC_SUBST([subdirs], ["$subdirs libdecnumber"])
-m4trace:configure.ac:563: -1- AC_CONFIG_SUBDIRS([libbid])
-m4trace:configure.ac:563: -1- AC_SUBST([subdirs], ["$subdirs libbid"])
-m4trace:configure.ac:569: -1- AC_CONFIG_FILES([Makefile])
-m4trace:configure.ac:571: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
-m4trace:configure.ac:571: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
+m4trace:configure.ac:540: -1- AC_PROG_RANLIB
+m4trace:configure.ac:540: -1- AC_SUBST([RANLIB])
+m4trace:configure.ac:540: -1- AC_SUBST([ac_ct_RANLIB])
+m4trace:configure.ac:541: -1- AC_PROG_AWK
+m4trace:configure.ac:541: -1- AC_SUBST([AWK])
+m4trace:configure.ac:559: -1- AC_CONFIG_SUBDIRS([libdecnumber])
+m4trace:configure.ac:559: -1- AC_SUBST([subdirs], ["$subdirs libdecnumber"])
+m4trace:configure.ac:561: -1- AC_CONFIG_SUBDIRS([libbid])
+m4trace:configure.ac:561: -1- AC_SUBST([subdirs], ["$subdirs libbid"])
+m4trace:configure.ac:567: -1- AC_CONFIG_FILES([Makefile])
+m4trace:configure.ac:569: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
+m4trace:configure.ac:569: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])

Modified: libdfp/trunk/configure
==============================================================================
--- libdfp/trunk/configure (original)
+++ libdfp/trunk/configure Thu Dec 10 10:31:32 2009
@@ -276,7 +276,7 @@
 ac_unique_file="printf_dfp.c"
 ac_subdirs_all="$ac_subdirs_all libdecnumber"
 ac_subdirs_all="$ac_subdirs_all libbid"
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os enable_decimal_float dfp_backend with_dfp with_fp base_machine machine CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT cc_mzarch cc_msize ASFLAGS glibc_headers glibc_build enable_static enable_shared submachine submachine_opt sysdep_dirs RANLIB ac_ct_RANLIB AWK subdirs LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os enable_decimal_float dfp_backend with_dfp with_fp base_machine machine CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT cc_mzarch cc_msize ASFLAGS libdfp_cv_cc_with_decimal_float glibc_headers glibc_build enable_static enable_shared submachine submachine_opt sysdep_dirs RANLIB ac_ct_RANLIB AWK subdirs LIBOBJS LTLIBOBJS'
 ac_subst_files=''
 
 # Initialize some variables set by options.
@@ -1632,7 +1632,8 @@
 
 # The implication of using AC_PROG_CC is that on a biarch POWER system where
 # the toolchain defaults to 32-bit and the kernel reports a 64-bit environment
-# there is a screwy disconnect between the two.
+# there is a screwy disconnect between the two.  This is OK as long as we
+# export the computed default cc_msize to the Makefile.in.
 ac_ext=c
 ac_cpp='$CPP $CPPFLAGS'
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -2360,31 +2361,41 @@
 
 
 
-# TODO replace this with a compiler type check.
-# Don't even bother configuring if the compiler doesn't support Decimal
-# Floating Point.
-#AC_CACHE_CHECK(for decimal-float-support in compiler,
-#	       libdfp_cv_cc_with_decimal_float, [
-#		cat > conftest.c <<EOF
-#int main (void) { _Decimal64 d64; d64 = 1.0DD; return 0; }
-#EOF
-#  if ${CC} ${CFLAGS} ${CPPFLAGS} $LDFLAGS -static -o conftest \
-#       conftest.c -v 2>&1 >/dev/null | grep -q " --enable-decimal-float ";
-#  then
-#    libdfp_cv_cc_with_decimal_float=yes
-#  else
-#    libdfp_cv_cc_with_decimal_float=no
-#    AC_MSG_WARN([CC is ${CC}])
-#    AC_MSG_ERROR([${PACKAGE_NAME} requires a compiler configured and built
-#		  with --enable-decimal-float.])
-#  fi
-#  rm -f conftest*])
-#AC_SUBST(libdfp_cv_cc_with_decimal_float)
-#if test $libdfp_cv_cc_with_decimal_float = yes; then
-#  cat >> confdefs.h <<\EOF
-##define __STDC_DEC_FP__ 200704L
-#EOF
-#fi
+# Don't even bother configuring if the compiler can't handle Decimal
+# Floating Point data types.
+echo "$as_me:$LINENO: checking for decimal-float-support in compiler" >&5
+echo $ECHO_N "checking for decimal-float-support in compiler... $ECHO_C" >&6
+if test "${libdfp_cv_cc_with_decimal_float+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+
+		cat > conftest.c <<EOF
+int main (void) { _Decimal64 d64; d64 = 1.0DD; return 0; }
+EOF
+  if ${CC} ${CFLAGS} ${CPPFLAGS} $LDFLAGS -static -o conftest \
+       conftest.c 2>&1 >/dev/null | grep -q " '_Decimal64' undeclared ";
+  then
+    libdfp_cv_cc_with_decimal_float=no
+    { echo "$as_me:$LINENO: WARNING: CC is ${CC}" >&5
+echo "$as_me: WARNING: CC is ${CC}" >&2;}
+    { { echo "$as_me:$LINENO: error: ${PACKAGE_NAME} requires a compiler configured and built
+		  with --enable-decimal-float." >&5
+echo "$as_me: error: ${PACKAGE_NAME} requires a compiler configured and built
+		  with --enable-decimal-float." >&2;}
+   { (exit 1); exit 1; }; }
+  else
+    libdfp_cv_cc_with_decimal_float=yes
+  fi
+  rm -f conftest*
+fi
+echo "$as_me:$LINENO: result: $libdfp_cv_cc_with_decimal_float" >&5
+echo "${ECHO_T}$libdfp_cv_cc_with_decimal_float" >&6
+
+if test $libdfp_cv_cc_with_decimal_float = yes; then
+  cat >> confdefs.h <<\EOF
+#define __STDC_DEC_FP__ 200704L
+EOF
+fi
 
 glibc_headers=
 
@@ -2692,10 +2703,6 @@
 
 fi
 
-#AC_PROG_CC_C_O
-# Default -m[32|64] to align $machine to the default -m[32|64] for the
-# compiler on biarch systems.
-
 if test -n "$ac_tool_prefix"; then
   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
@@ -2826,7 +2833,9 @@
 
 
 # Wherever there's a standalone configure fragment we need to tell the top
-# level configure to recurse into it.
+# level configure to recurse into it.  This doesn't pass the full complement
+# of CFLAGS necessary so Makefile.in will need to manually pass the CFLAGS to
+# the backend `make' invocation.
 if test "$dfp_backend" = libdecnumber; then
 
 
@@ -3479,6 +3488,7 @@
 s,@cc_mzarch@,$cc_mzarch,;t t
 s,@cc_msize@,$cc_msize,;t t
 s,@ASFLAGS@,$ASFLAGS,;t t
+s,@libdfp_cv_cc_with_decimal_float@,$libdfp_cv_cc_with_decimal_float,;t t
 s,@glibc_headers@,$glibc_headers,;t t
 s,@glibc_build@,$glibc_build,;t t
 s,@enable_static@,$enable_static,;t t

Modified: libdfp/trunk/configure.ac
==============================================================================
--- libdfp/trunk/configure.ac (original)
+++ libdfp/trunk/configure.ac Thu Dec 10 10:31:32 2009
@@ -233,7 +233,8 @@
 
 # The implication of using AC_PROG_CC is that on a biarch POWER system where
 # the toolchain defaults to 32-bit and the kernel reports a 64-bit environment
-# there is a screwy disconnect between the two.
+# there is a screwy disconnect between the two.  This is OK as long as we
+# export the computed default cc_msize to the Makefile.in.
 AC_PROG_CC(gcc)
 
 # Automatically exported by AC_PROG_CC
@@ -249,31 +250,30 @@
 AC_SUBST(CFLAGS)
 AC_SUBST(ASFLAGS)
 
-# TODO replace this with a compiler type check.
-# Don't even bother configuring if the compiler doesn't support Decimal
-# Floating Point.
-#AC_CACHE_CHECK(for decimal-float-support in compiler,
-#	       libdfp_cv_cc_with_decimal_float, [
-#		cat > conftest.c <<EOF
-#int main (void) { _Decimal64 d64; d64 = 1.0DD; return 0; }
-#EOF
-#  if ${CC} ${CFLAGS} ${CPPFLAGS} $LDFLAGS -static -o conftest \
-#       conftest.c -v 2>&1 >/dev/null | grep -q " --enable-decimal-float ";
-#  then
-#    libdfp_cv_cc_with_decimal_float=yes
-#  else
-#    libdfp_cv_cc_with_decimal_float=no
-#    AC_MSG_WARN([CC is ${CC}])
-#    AC_MSG_ERROR([${PACKAGE_NAME} requires a compiler configured and built
-#		  with --enable-decimal-float.])
-#  fi
-#  rm -f conftest*])
-#AC_SUBST(libdfp_cv_cc_with_decimal_float)
-#if test $libdfp_cv_cc_with_decimal_float = yes; then
-#  cat >> confdefs.h <<\EOF
-##define __STDC_DEC_FP__ 200704L
-#EOF
-#fi
+# Don't even bother configuring if the compiler can't handle Decimal
+# Floating Point data types.
+AC_CACHE_CHECK(for decimal-float-support in compiler,
+	       libdfp_cv_cc_with_decimal_float, [
+		cat > conftest.c <<EOF
+int main (void) { _Decimal64 d64; d64 = 1.0DD; return 0; }
+EOF
+  if ${CC} ${CFLAGS} ${CPPFLAGS} $LDFLAGS -static -o conftest \
+       conftest.c 2>&1 >/dev/null | grep -q " '_Decimal64' undeclared ";
+  then
+    libdfp_cv_cc_with_decimal_float=no
+    AC_MSG_WARN([CC is ${CC}])
+    AC_MSG_ERROR([${PACKAGE_NAME} requires a compiler configured and built
+		  with --enable-decimal-float.])
+  else
+    libdfp_cv_cc_with_decimal_float=yes
+  fi
+  rm -f conftest*])
+AC_SUBST(libdfp_cv_cc_with_decimal_float)
+if test $libdfp_cv_cc_with_decimal_float = yes; then
+  cat >> confdefs.h <<\EOF
+#define __STDC_DEC_FP__ 200704L
+EOF
+fi
 
 glibc_headers=
 AC_ARG_WITH([glibc-headers],
@@ -537,10 +537,6 @@
   AC_DEFINE_UNQUOTED(ASM_TYPE_DIRECTIVE_PREFIX, ${libc_cv_asm_type_prefix}, "Define to the prefix before `object' or `function' in the assembler's `.type' directive, if it has one.")
 fi
 
-#AC_PROG_CC_C_O
-# Default -m[32|64] to align $machine to the default -m[32|64] for the
-# compiler on biarch systems.
-
 AC_PROG_RANLIB # Required for static archives.
 AC_PROG_AWK
 
@@ -556,7 +552,9 @@
 
 
 # Wherever there's a standalone configure fragment we need to tell the top
-# level configure to recurse into it.
+# level configure to recurse into it.  This doesn't pass the full complement
+# of CFLAGS necessary so Makefile.in will need to manually pass the CFLAGS to
+# the backend `make' invocation.
 if test "$dfp_backend" = libdecnumber; then
 	AC_CONFIG_SUBDIRS(libdecnumber)
 else