]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(libc_cv_gcc_alpha_ng_prefix): New check.
authorUlrich Drepper <drepper@redhat.com>
Tue, 9 Dec 1997 23:40:11 +0000 (23:40 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 9 Dec 1997 23:40:11 +0000 (23:40 +0000)
configure.in

index 3a482e74a55846a4133846b72fb21358fbeb49a1..5d35ac51c505936aead2532c961d9a80594ff626 100644 (file)
@@ -175,8 +175,11 @@ m88???)            base_machine=m88k machine=m88k/$machine ;;
 m88k)          base_machine=m88k machine=m88k/m88100 ;;
 mips*)         base_machine=mips machine=mips/$machine ;;
 mips64*)       base_machine=mips64 machine=mips/mips64/$machine ;;
-sparc[6789])   base_machine=sparc machine=sparc/$machine ;;
-supersparc)    base_machine=sparc machine=sparc/sparc8 ;;
+sparc | sparcv[67])
+               base_machine=sparc machine=sparc/sparc32 ;;
+sparcv8 | supersparc | hypersparc)
+               base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
+sparc64)       base_machine=sparc machine=sparc/sparc64 ;;
 esac
 changequote([,])dnl
 AC_SUBST(base_machine)
@@ -233,7 +236,7 @@ while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
   tail="$2"
 done
 
-# For sparc/sparc9, try sparc/sparc9 and then sparc.
+# For sparc/sparcv9, try sparc/sparcv9 and then sparc.
 mach=
 tail=$machine
 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
@@ -724,6 +727,26 @@ fi
 rm -f conftest*])
 AC_SUBST(libc_cv_gcc_no_exceptions)dnl
 
+if test "$base_machine" = alpha ; then
+AC_CACHE_CHECK(for function ..ng prefix, libc_cv_gcc_alpha_ng_prefix, [dnl
+cat > conftest.c <<\EOF
+foo () { }
+EOF
+dnl
+if AC_TRY_COMMAND([${CC-cc} -S conftest.c -o - | fgrep '$foo..ng' > /dev/null]);
+then
+  libc_cv_gcc_alpha_ng_prefix=yes
+else
+  libc_cv_gcc_alpha_ng_prefix=no
+fi
+rm -f conftest* ])
+if test $libc_cv_gcc_alpha_ng_prefix = yes ; then
+  AC_DEFINE(ASM_ALPHA_NG_SYMBOL_PREFIX, "$")
+else
+  AC_DEFINE(ASM_ALPHA_NG_SYMBOL_PREFIX, "")
+fi
+fi
+
 ### End of automated tests.
 ### Now run sysdeps configure fragments.