Do not use obsolete AC_FD_CC Macro
Jeff Bailey
jbailey@nisa.net
Fri Oct 18 13:19:00 GMT 2002
In http://www.geocrawler.com/mail/msg.php3?msg_id=8707961&list=402,
Akim Demaille wrote:
The internal detail AC_FD_CC no longer exists, and is replaced with
the internal detail AS_MESSAGE_LOG_FD. As an internal detail, an
internal AU_ALIAS preserve some backward compatibility with the
internal detail AC_FD_CC.
2002-10-18 Jeff Bailey <jbailey@gnu.org>
* configure.in: Replace AC_FD_CC with AS_MESSAGE_LOG_FD
* sysdeps/alpha/elf/configure.in: Likewise.
* sysdeps/i386/elf/configure.in: Likewise.
* sysdeps/mach/hurd/configure.in: Likewise.
* sysdeps/x86_64/elf/configure.in: Likewise.
--
learning from failures is nice in theory...
but in practice, it sucks :)
- Wolfgang Jaehrling
-------------- next part --------------
Index: configure.in
===================================================================
RCS file: /cvs/glibc/libc/configure.in,v
retrieving revision 1.367
diff -u -p -r1.367 configure.in
--- configure.in 18 Oct 2002 20:08:28 -0000 1.367
+++ configure.in 18 Oct 2002 20:12:22 -0000
@@ -778,7 +778,7 @@ AC_CACHE_CHECK(for old Debian install-in
echo 'START-INFO-DIR-ENTRY'
echo '* Prog: (prog). Program.'
echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
- if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&AC_FD_CC 2>&1
+ if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&AS_MESSAGE_LOG_FD 2>&1
then
if grep -s 'i-d-s works' conftest.d/dir >/dev/null
then libc_cv_old_debian_install_info=no
@@ -900,7 +900,7 @@ extern int glibc_conftest_frobozz;
main () { printf ("%d\n", glibc_conftest_frobozz); }
EOF
if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
- -o conftest conftest.s conftest1.c 1>&AC_FD_CC 2>&AC_FD_CC; then
+ -o conftest conftest.s conftest1.c 1>&AS_MESSAGE_LOG_FD 2>&AC_FD_CC; then
libc_cv_asm_set_directive=yes
else
libc_cv_asm_set_directive=no
@@ -945,7 +945,7 @@ ${libc_cv_dot_text}
_sym:
.symver _sym,sym@VERS
EOF
-if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&AC_FD_CC 2>&AC_FD_CC; then
+if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD 2>&AC_FD_CC; then
libc_cv_asm_symver_directive=yes
else
libc_cv_asm_symver_directive=no
@@ -967,11 +967,11 @@ VERS_2 {
global: sym;
} VERS_1;
EOF
- if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&AC_FD_CC 2>&AC_FD_CC; then
+ if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD 2>&AC_FD_CC; then
if AC_TRY_COMMAND([${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
-nostartfiles -nostdlib
-Wl,--version-script,conftest.map
- 1>&AC_FD_CC]);
+ 1>&AS_MESSAGE_LOG_FD]);
then
libc_cv_ld_version_script_option=yes
else
@@ -1009,7 +1009,7 @@ if test $elf = yes; then
.section foo_section
.previous
EOF
- if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then
+ if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then
libc_cv_asm_previous_directive=yes
else
libc_cv_asm_previous_directive=no
@@ -1024,7 +1024,7 @@ EOF
.pushsection foo_section
.popsection
EOF
- if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then
+ if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then
libc_cv_asm_popsection_directive=yes
else
libc_cv_asm_popsection_directive=no
@@ -1042,7 +1042,7 @@ foo:
.hidden bar
bar:
EOF
- if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then
+ if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then
libc_cv_asm_protected_directive=yes
else
libc_cv_asm_protected_directive=no
@@ -1145,7 +1145,7 @@ int foo (void) { return 1; }
int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
EOF
if AC_TRY_COMMAND([${CC-cc} -o conftest conftest.c
- -static -nostartfiles -nostdlib 1>&AC_FD_CC])
+ -static -nostartfiles -nostdlib 1>&AS_MESSAGE_LOG_FD])
then
if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
libc_cv_initfinit_array=yes
@@ -1168,7 +1168,7 @@ int _start (void) { return 42; }
EOF
if AC_TRY_COMMAND([${CC-cc} -shared -o conftest.so conftest.c
-nostartfiles -nostdlib
- -Wl,--enable-new-dtags,-z,nodelete 1>&AC_FD_CC])
+ -Wl,--enable-new-dtags,-z,nodelete 1>&AS_MESSAGE_LOG_FD])
then
libc_cv_z_nodelete=yes
else
@@ -1184,7 +1184,7 @@ int _start (void) { return 42; }
EOF
if AC_TRY_COMMAND([${CC-cc} -shared -o conftest.so conftest.c
-nostartfiles -nostdlib
- -Wl,--enable-new-dtags,-z,nodlopen 1>&AC_FD_CC])
+ -Wl,--enable-new-dtags,-z,nodlopen 1>&AS_MESSAGE_LOG_FD])
then
libc_cv_z_nodlopen=yes
else
@@ -1200,7 +1200,7 @@ int _start (void) { return 42; }
EOF
if AC_TRY_COMMAND([${CC-cc} -shared -o conftest.so conftest.c
-nostartfiles -nostdlib
- -Wl,--enable-new-dtags,-z,initfirst 1>&AC_FD_CC])
+ -Wl,--enable-new-dtags,-z,initfirst 1>&AS_MESSAGE_LOG_FD])
then
libc_cv_z_initfirst=yes
else
@@ -1214,7 +1214,7 @@ EOF
cat > conftest.c <<EOF
int _start (void) { return 42; }
EOF
- if AC_TRY_COMMAND([${CC-cc} -shared -o conftest.so conftest.c -Wl,-Bgroup -nostdlib 1>&AC_FD_CC])
+ if AC_TRY_COMMAND([${CC-cc} -shared -o conftest.so conftest.c -Wl,-Bgroup -nostdlib 1>&AS_MESSAGE_LOG_FD])
then
libc_cv_Bgroup=yes
else
@@ -1232,7 +1232,7 @@ int foo (void) { return bar (mumble); }
EOF
if AC_TRY_COMMAND([${CC-cc} -shared -o conftest.so conftest.c
-nostdlib -nostartfiles
- -Wl,-z,combreloc 1>&AC_FD_CC])
+ -Wl,-z,combreloc 1>&AS_MESSAGE_LOG_FD])
then
dnl The following test is a bit weak. We must use a tool which can test
dnl cross-platform since the gcc used can be a cross compiler. Without
@@ -1309,8 +1309,8 @@ if AC_TRY_EVAL(ac_compile); then
$2])
fi
else
- echo "configure: failed program was:" >&AC_FD_CC
- cat conftest.$ac_ext >&AC_FD_CC
+ echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD
+ cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD
ifelse([$2], , , [rm -f conftest*
$2])
fi
@@ -1396,7 +1396,7 @@ case "${host_cpu}-${host_os}" in
cat > conftest.s <<EOF
nop ; is_old_puffin
EOF
- if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then
+ if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then
libc_cv_asm_line_sep='!'
else
if test -z "$enable_hacker_mode"; then
@@ -1420,7 +1420,7 @@ EOF
dnl No \ in command here because it ends up inside ''.
if AC_TRY_COMMAND([${CC-cc} $CFLAGS
-nostdlib -nostartfiles -Wl,--no-whole-archive
- -o conftest conftest.c 1>&AC_FD_CC]); then
+ -o conftest conftest.c 1>&AS_MESSAGE_LOG_FD]); then
libc_cv_ld_no_whole_archive=yes
else
libc_cv_ld_no_whole_archive=no
@@ -1440,7 +1440,7 @@ EOF
dnl No \ in command here because it ends up inside ''.
if AC_TRY_COMMAND([${CC-cc} $CFLAGS
-nostdlib -nostartfiles -fexceptions
- -o conftest conftest.c 1>&AC_FD_CC]); then
+ -o conftest conftest.c 1>&AS_MESSAGE_LOG_FD]); then
libc_cv_gcc_exceptions=yes
else
libc_cv_gcc_exceptions=no
@@ -1514,14 +1514,14 @@ EOF
dnl No \ in command here because it ends up inside ''.
if AC_TRY_COMMAND([${CC-cc} $CFLAGS -DCHECK__register_frame_info
-nostdlib -nostartfiles
- -o conftest conftest.c -lgcc >&AC_FD_CC]); then
+ -o conftest conftest.c -lgcc >&AS_MESSAGE_LOG_FD]); then
libc_cv_gcc_dwarf2_unwind_info=static
else
libc_cv_gcc_dwarf2_unwind_info=no
fi
if AC_TRY_COMMAND([${CC-cc} $CFLAGS -DCHECK__register_frame_info
-nostdlib -nostartfiles
- -o conftest conftest.c -lgcc -lgcc_eh >&AC_FD_CC]); then
+ -o conftest conftest.c -lgcc -lgcc_eh >&AS_MESSAGE_LOG_FD]); then
if ${CC-cc} $CFLAGS -DCHECK__register_frame_info -nostdlib -nostartfiles \
-o conftest conftest.c -lgcc -lgcc_eh -v 2>&1 >/dev/null \
| grep -q -- --eh-frame-hdr; then
@@ -1535,7 +1535,7 @@ fi
if test $libc_cv_gcc_dwarf2_unwind_info = no; then
if AC_TRY_COMMAND([${CC-cc} $CFLAGS -DCHECK__register_frame
-nostdlib -nostartfiles
- -o conftest conftest.c -lgcc >&AC_FD_CC]); then
+ -o conftest conftest.c -lgcc >&AS_MESSAGE_LOG_FD]); then
libc_cv_gcc_dwarf2_unwind_info=yes
else
libc_cv_gcc_dwarf2_unwind_info=no
@@ -1564,7 +1564,7 @@ int foo (int a)
EOF
dnl No \ in command here because it ends up inside ''.
if AC_TRY_COMMAND([${CC-cc} $CFLAGS -nostdlib -nostartfiles
- -o conftest conftest.c -lgcc >&AC_FD_CC]); then
+ -o conftest conftest.c -lgcc >&AS_MESSAGE_LOG_FD]); then
libc_cv_gcc_builtin_expect=yes
else
libc_cv_gcc_builtin_expect=no
@@ -1612,7 +1612,7 @@ changequote([,])dnl
EOF
dnl No \ in command here because it ends up inside ''.
if AC_TRY_COMMAND([${CC-cc} $CFLAGS -nostdlib -nostartfiles
- -o conftest conftest.c -lgcc >&AC_FD_CC]); then
+ -o conftest conftest.c -lgcc >&AS_MESSAGE_LOG_FD]); then
libc_cv_gcc_subtract_local_labels=yes
else
libc_cv_gcc_subtract_local_labels=no
@@ -1628,7 +1628,7 @@ if test "x$use__thread" != xno; then
[cat > conftest.c <<\EOF
__thread int a = 42;
EOF
- if AC_TRY_COMMAND([${CC-cc} $CFLAGS -c conftest.c >&AC_FD_CC]); then
+ if AC_TRY_COMMAND([${CC-cc} $CFLAGS -c conftest.c >&AS_MESSAGE_LOG_FD]); then
libc_cv_gcc___thread=yes
else
libc_cv_gcc___thread=no
@@ -1647,7 +1647,7 @@ if test "$libc_cv_gcc___thread" = yes; t
cat > conftest.c <<\EOF
extern __thread int a __attribute__((tls_model ("initial-exec")));
EOF
- if AC_TRY_COMMAND([${CC-cc} $CFLAGS -S -Werror conftest.c >&AC_FD_CC]); then
+ if AC_TRY_COMMAND([${CC-cc} $CFLAGS -S -Werror conftest.c >&AS_MESSAGE_LOG_FD]); then
libc_cv_gcc_tls_model_attr=yes
else
libc_cv_gcc_tls_model_attr=no
@@ -1844,7 +1844,7 @@ cat > conftest.c <<EOF
# error PIC is default.
#endif
EOF
-if eval "${CC-cc} -S conftest.c 2>&AC_FD_CC 1>&AC_FD_CC"; then
+if eval "${CC-cc} -S conftest.c 2>&AS_MESSAGE_LOG_FD 1>&AC_FD_CC"; then
pic_default=no
fi
rm -f conftest.*])
Index: sysdeps/alpha/elf/configure.in
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/alpha/elf/configure.in,v
retrieving revision 1.3
diff -u -p -r1.3 configure.in
--- sysdeps/alpha/elf/configure.in 18 Oct 2002 19:38:00 -0000 1.3
+++ sysdeps/alpha/elf/configure.in 18 Oct 2002 20:12:23 -0000
@@ -40,7 +40,7 @@ baz:
lda $16, n($31) !tprel
EOF
dnl
-if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then
+if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then
libc_cv_alpha_tls=yes
else
libc_cv_alpha_tls=no
@@ -64,7 +64,7 @@ EOF
dnl
libc_cv_alpha_hidden_gprel=no
-if AC_TRY_COMMAND(${CC-cc} -S $CFLAGS -O2 -fpic conftest.c 1>&AC_FD_CC); then
+if AC_TRY_COMMAND(${CC-cc} -S $CFLAGS -O2 -fpic conftest.c 1>&AS_MESSAGE_LOG_FD); then
if grep -q 'bar.*!gprel' conftest.s \
&& grep -q 'baz.*!gprel' conftest.s \
&& ! grep -q 'bar.*!literal' conftest.s \
Index: sysdeps/i386/elf/configure.in
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/i386/elf/configure.in,v
retrieving revision 1.7
diff -u -p -r1.7 configure.in
--- sysdeps/i386/elf/configure.in 18 Oct 2002 19:37:59 -0000 1.7
+++ sysdeps/i386/elf/configure.in 18 Oct 2002 20:12:23 -0000
@@ -22,7 +22,7 @@ baz: leal bar@TLSLDM(%ebx), %eax
movl %gs:bar@NTPOFF, %eax
EOF
dnl
-if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then
+if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then
libc_cv_386_tls=yes
else
libc_cv_386_tls=no
Index: sysdeps/mach/hurd/configure.in
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/mach/hurd/configure.in,v
retrieving revision 1.16
diff -u -p -r1.16 configure.in
--- sysdeps/mach/hurd/configure.in 18 Oct 2002 19:37:58 -0000 1.16
+++ sysdeps/mach/hurd/configure.in 18 Oct 2002 20:12:24 -0000
@@ -51,7 +51,7 @@ simpleroutine foobar_reply (
reply_port: reply_port_t;
err: kern_return_t, RetCode);
EOF
-if AC_TRY_COMMAND([CC="${CC}" ${MIG-false} -n conftest.defs 1>&AC_FD_CC]); then
+if AC_TRY_COMMAND([CC="${CC}" ${MIG-false} -n conftest.defs 1>&AS_MESSAGE_LOG_FD]); then
hurd_cv_mig_retcode=yes
else
hurd_cv_mig_retcode=no
Index: sysdeps/x86_64/elf/configure.in
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/x86_64/elf/configure.in,v
retrieving revision 1.2
diff -u -p -r1.2 configure.in
--- sysdeps/x86_64/elf/configure.in 18 Oct 2002 19:38:00 -0000 1.2
+++ sysdeps/x86_64/elf/configure.in 18 Oct 2002 20:12:25 -0000
@@ -18,7 +18,7 @@ baz: leaq bar@TLSLD(%rip), %rdi
movq $bar@TPOFF, %rdx
EOF
dnl
-if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AC_FD_CC); then
+if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then
libc_cv_x86_64_tls=yes
else
libc_cv_x86_64_tls=no
More information about the Libc-alpha
mailing list