From df2a0c93b32dcc2859f57589e62beaadffdad9e7 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 13 Jun 1995 22:16:50 +0000 Subject: * configure.in (libc_cv_asm_set_directive): Make sure that the `.set' directive really worked by linking against a reference to the alias. --- configure.in | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index ce1dee1bd3..7e1697d1b1 100644 --- a/configure.in +++ b/configure.in @@ -342,9 +342,16 @@ AC_CACHE_VAL(libc_cv_asm_set_directive, [dnl cat > conftest.s <<\EOF .text foo: .long 0 -.set bar,foo +.set glibc_conftest_frobozz,foo EOF -if ${CC-cc} $CFLAGS -c conftest.s 2>/dev/null; then +# The alpha-dec-osf1 assembler gives only a warning for `.set' +# (but it doesn't work), so we must do a linking check to be sure. +cat > conftest1.c <<\EOF +extern int glibc_conftest_frobozz; +main () { printf ("%d\n", glibc_conftest_frobozz); } +EOF +if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ + conftest.s conftest1.c 1>&AC_FD_CC 2>&AC_FD_CC; then libc_cv_asm_set_directive=yes else libc_cv_asm_set_directive=no -- cgit v1.2.3