mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-03 18:31:04 +00:00
48b76e2d04
* sysdeps/unix/sysv/linux/mips/mips32/Makefile: Remove. * sysdeps/unix/sysv/linux/mips/mips64/n32/Makefile: Remove. * sysdeps/unix/sysv/linux/mips/mips64/n64/Makefile: Remove. * sysdeps/unix/sysv/linux/mips/configure.in: Create default_abi.make. * sysdeps/unix/sysv/linux/mips/configure: Regenerate. * sysdeps/unix/sysv/linux/mips/Makefile: Include default_abi.make. (abi-variants): Add hard and soft float versions. (abi-o32-options): Remove. (abi-o32-condition): Remove. (abi-n32-options): Remove. (abi-n32-condition): Remove. (abi-n64-options): Remove. (abi-n64-condition): Remove. (abi-o32_soft-options): New. (abi-o32_soft-condition): New. (abi-o32_hard-options): New. (abi-o32_hard-condition): New. (abi-n32_soft-options): New. (abi-n32_soft-condition): New. (abi-n32_hard-options): New. (abi-n32_hard-condition): New. (abi-n64_soft-options): New. (abi-n64_soft-condition): New. (abi-n64_hard-options): New. (abi-n64_hard-condition): New.
79 lines
2.1 KiB
Plaintext
79 lines
2.1 KiB
Plaintext
sinclude(./aclocal.m4)dnl Autoconf lossage
|
|
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
|
|
# Local configure fragment for sysdeps/unix/sysv/linux/mips.
|
|
|
|
AC_COMPILE_IFELSE(
|
|
[AC_LANG_PROGRAM([
|
|
#if (_MIPS_SIM != _ABIO32)
|
|
#error Not O32 ABI
|
|
#endif])],
|
|
[libc_mips_abi=o32],
|
|
[AC_COMPILE_IFELSE(
|
|
[AC_LANG_PROGRAM([
|
|
#if (_MIPS_SIM != _ABIN32)
|
|
#error Not N32 ABI
|
|
#endif])],
|
|
[libc_mips_abi=n32],
|
|
[AC_COMPILE_IFELSE(
|
|
[AC_LANG_PROGRAM([
|
|
#if (_MIPS_SIM != _ABI64)
|
|
#error Not 64 ABI
|
|
#endif])],
|
|
[libc_mips_abi=n64],
|
|
[])])])
|
|
|
|
if test -z "$libc_mips_abi"; then
|
|
AC_MSG_ERROR([could not determine what ABI the compiler is using])
|
|
fi
|
|
|
|
AC_COMPILE_IFELSE(
|
|
[AC_LANG_PROGRAM([
|
|
#if !defined(__mips_soft_float)
|
|
#error Not soft ABI
|
|
#endif])],
|
|
[libc_mips_float=soft],
|
|
[AC_COMPILE_IFELSE(
|
|
[AC_LANG_PROGRAM([
|
|
#if !defined(__mips_hard_float)
|
|
#error Not hard ABI
|
|
#endif])],
|
|
[libc_mips_float=hard],
|
|
[])])
|
|
|
|
if test -z "$libc_mips_float"; then
|
|
AC_MSG_ERROR([could not determine if compiler is using hard or soft floating point ABI])
|
|
fi
|
|
|
|
echo "default-abi := ${libc_mips_abi}_${libc_mips_float}" > default-abi.make
|
|
|
|
case "$prefix" in
|
|
/usr | /usr/)
|
|
# 64-bit libraries on bi-arch platforms go in /lib64 instead of /lib.
|
|
# Allow earlier configure scripts to handle libc_cv_slibdir, libdir,
|
|
# and libc_cv_localedir.
|
|
test -n "$libc_cv_slibdir" || \
|
|
case $machine in
|
|
mips/mips64/n64/* )
|
|
libc_cv_slibdir="/lib64"
|
|
if test "$libdir" = '${exec_prefix}/lib'; then
|
|
libdir='${exec_prefix}/lib64';
|
|
# Locale data can be shared between 32bit and 64bit libraries
|
|
libc_cv_localedir='${exec_prefix}/lib/locale'
|
|
fi
|
|
;;
|
|
mips/mips64/n32/* )
|
|
libc_cv_slibdir="/lib32"
|
|
if test "$libdir" = '${exec_prefix}/lib'; then
|
|
libdir='${exec_prefix}/lib32';
|
|
# Locale data can be shared between 32bit and 64bit libraries
|
|
libc_cv_localedir='${exec_prefix}/lib/locale'
|
|
fi
|
|
;;
|
|
*)
|
|
libc_cv_slibdir="/lib"
|
|
;;
|
|
esac
|
|
esac
|
|
|
|
libc_cv_gcc_unwind_find_fde=yes
|