From cb8a6dbd176ee59d61068bed92e2c8d22bd28b13 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 30 Oct 2013 13:20:52 +1000 Subject: rename configure.in to configure.ac Autoconf has been deprecating configure.in for quite a long time. Rename all our configure.in and preconfigure.in files to .ac. Signed-off-by: Mike Frysinger --- ports/sysdeps/alpha/configure | 2 +- ports/sysdeps/alpha/configure.ac | 6 ++ ports/sysdeps/alpha/configure.in | 6 -- ports/sysdeps/arm/armv7/configure | 2 +- ports/sysdeps/arm/armv7/configure.ac | 12 +++ ports/sysdeps/arm/armv7/configure.in | 12 --- ports/sysdeps/arm/configure | 2 +- ports/sysdeps/arm/configure.ac | 46 ++++++++++ ports/sysdeps/arm/configure.in | 46 ---------- ports/sysdeps/arm/preconfigure | 4 +- ports/sysdeps/arm/preconfigure.ac | 58 +++++++++++++ ports/sysdeps/arm/preconfigure.in | 58 ------------- ports/sysdeps/hppa/configure | 2 +- ports/sysdeps/hppa/configure.ac | 66 +++++++++++++++ ports/sysdeps/hppa/configure.in | 66 --------------- ports/sysdeps/ia64/configure | 2 +- ports/sysdeps/ia64/configure.ac | 6 ++ ports/sysdeps/ia64/configure.in | 6 -- ports/sysdeps/mips/configure | 2 +- ports/sysdeps/mips/configure.ac | 15 ++++ ports/sysdeps/mips/configure.in | 15 ---- ports/sysdeps/unix/sysv/linux/aarch64/configure | 2 +- ports/sysdeps/unix/sysv/linux/aarch64/configure.ac | 17 ++++ ports/sysdeps/unix/sysv/linux/aarch64/configure.in | 17 ---- ports/sysdeps/unix/sysv/linux/alpha/configure | 2 +- ports/sysdeps/unix/sysv/linux/alpha/configure.ac | 5 ++ ports/sysdeps/unix/sysv/linux/alpha/configure.in | 5 -- ports/sysdeps/unix/sysv/linux/am33/configure | 2 +- ports/sysdeps/unix/sysv/linux/am33/configure.ac | 4 + ports/sysdeps/unix/sysv/linux/am33/configure.in | 4 - ports/sysdeps/unix/sysv/linux/arm/configure | 4 +- ports/sysdeps/unix/sysv/linux/arm/configure.ac | 6 ++ ports/sysdeps/unix/sysv/linux/arm/configure.in | 6 -- ports/sysdeps/unix/sysv/linux/arm/nptl/configure | 2 +- .../sysdeps/unix/sysv/linux/arm/nptl/configure.ac | 8 ++ .../sysdeps/unix/sysv/linux/arm/nptl/configure.in | 8 -- ports/sysdeps/unix/sysv/linux/ia64/configure | 2 +- ports/sysdeps/unix/sysv/linux/ia64/configure.ac | 4 + ports/sysdeps/unix/sysv/linux/ia64/configure.in | 4 - ports/sysdeps/unix/sysv/linux/m68k/configure | 2 +- ports/sysdeps/unix/sysv/linux/m68k/configure.ac | 10 +++ ports/sysdeps/unix/sysv/linux/m68k/configure.in | 10 --- ports/sysdeps/unix/sysv/linux/microblaze/configure | 2 +- .../unix/sysv/linux/microblaze/configure.ac | 4 + .../unix/sysv/linux/microblaze/configure.in | 4 - ports/sysdeps/unix/sysv/linux/mips/configure | 2 +- ports/sysdeps/unix/sysv/linux/mips/configure.ac | 99 ++++++++++++++++++++++ ports/sysdeps/unix/sysv/linux/mips/configure.in | 99 ---------------------- .../sysdeps/unix/sysv/linux/mips/mips64/configure | 2 +- .../unix/sysv/linux/mips/mips64/configure.ac | 5 ++ .../unix/sysv/linux/mips/mips64/configure.in | 5 -- ports/sysdeps/unix/sysv/linux/tile/configure | 2 +- ports/sysdeps/unix/sysv/linux/tile/configure.ac | 4 + ports/sysdeps/unix/sysv/linux/tile/configure.in | 4 - .../sysdeps/unix/sysv/linux/tile/tilegx/configure | 2 +- .../unix/sysv/linux/tile/tilegx/configure.ac | 4 + .../unix/sysv/linux/tile/tilegx/configure.in | 4 - 57 files changed, 400 insertions(+), 400 deletions(-) create mode 100644 ports/sysdeps/alpha/configure.ac delete mode 100644 ports/sysdeps/alpha/configure.in mode change 100755 => 100644 ports/sysdeps/arm/armv7/configure create mode 100644 ports/sysdeps/arm/armv7/configure.ac delete mode 100644 ports/sysdeps/arm/armv7/configure.in create mode 100644 ports/sysdeps/arm/configure.ac delete mode 100644 ports/sysdeps/arm/configure.in create mode 100644 ports/sysdeps/arm/preconfigure.ac delete mode 100644 ports/sysdeps/arm/preconfigure.in create mode 100644 ports/sysdeps/hppa/configure.ac delete mode 100644 ports/sysdeps/hppa/configure.in create mode 100644 ports/sysdeps/ia64/configure.ac delete mode 100644 ports/sysdeps/ia64/configure.in create mode 100644 ports/sysdeps/mips/configure.ac delete mode 100644 ports/sysdeps/mips/configure.in create mode 100644 ports/sysdeps/unix/sysv/linux/aarch64/configure.ac delete mode 100644 ports/sysdeps/unix/sysv/linux/aarch64/configure.in create mode 100644 ports/sysdeps/unix/sysv/linux/alpha/configure.ac delete mode 100644 ports/sysdeps/unix/sysv/linux/alpha/configure.in create mode 100644 ports/sysdeps/unix/sysv/linux/am33/configure.ac delete mode 100644 ports/sysdeps/unix/sysv/linux/am33/configure.in create mode 100644 ports/sysdeps/unix/sysv/linux/arm/configure.ac delete mode 100644 ports/sysdeps/unix/sysv/linux/arm/configure.in create mode 100644 ports/sysdeps/unix/sysv/linux/arm/nptl/configure.ac delete mode 100644 ports/sysdeps/unix/sysv/linux/arm/nptl/configure.in create mode 100644 ports/sysdeps/unix/sysv/linux/ia64/configure.ac delete mode 100644 ports/sysdeps/unix/sysv/linux/ia64/configure.in create mode 100644 ports/sysdeps/unix/sysv/linux/m68k/configure.ac delete mode 100644 ports/sysdeps/unix/sysv/linux/m68k/configure.in create mode 100644 ports/sysdeps/unix/sysv/linux/microblaze/configure.ac delete mode 100644 ports/sysdeps/unix/sysv/linux/microblaze/configure.in create mode 100644 ports/sysdeps/unix/sysv/linux/mips/configure.ac delete mode 100644 ports/sysdeps/unix/sysv/linux/mips/configure.in create mode 100644 ports/sysdeps/unix/sysv/linux/mips/mips64/configure.ac delete mode 100644 ports/sysdeps/unix/sysv/linux/mips/mips64/configure.in create mode 100644 ports/sysdeps/unix/sysv/linux/tile/configure.ac delete mode 100644 ports/sysdeps/unix/sysv/linux/tile/configure.in create mode 100644 ports/sysdeps/unix/sysv/linux/tile/tilegx/configure.ac delete mode 100644 ports/sysdeps/unix/sysv/linux/tile/tilegx/configure.in (limited to 'ports/sysdeps') diff --git a/ports/sysdeps/alpha/configure b/ports/sysdeps/alpha/configure index 9c03229df2..0403c63fe6 100644 --- a/ports/sysdeps/alpha/configure +++ b/ports/sysdeps/alpha/configure @@ -1,4 +1,4 @@ -# This file is generated from configure.in by Autoconf. DO NOT EDIT! +# This file is generated from configure.ac by Autoconf. DO NOT EDIT! # Local configure fragment for sysdeps/alpha. # With required gcc+binutils, we can always access static and hidden diff --git a/ports/sysdeps/alpha/configure.ac b/ports/sysdeps/alpha/configure.ac new file mode 100644 index 0000000000..eadc57afe3 --- /dev/null +++ b/ports/sysdeps/alpha/configure.ac @@ -0,0 +1,6 @@ +GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. +# Local configure fragment for sysdeps/alpha. + +# With required gcc+binutils, we can always access static and hidden +# symbols in a position independent way. +AC_DEFINE(PI_STATIC_AND_HIDDEN) diff --git a/ports/sysdeps/alpha/configure.in b/ports/sysdeps/alpha/configure.in deleted file mode 100644 index eadc57afe3..0000000000 --- a/ports/sysdeps/alpha/configure.in +++ /dev/null @@ -1,6 +0,0 @@ -GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. -# Local configure fragment for sysdeps/alpha. - -# With required gcc+binutils, we can always access static and hidden -# symbols in a position independent way. -AC_DEFINE(PI_STATIC_AND_HIDDEN) diff --git a/ports/sysdeps/arm/armv7/configure b/ports/sysdeps/arm/armv7/configure old mode 100755 new mode 100644 index a879ffb5a7..46e5d52df4 --- a/ports/sysdeps/arm/armv7/configure +++ b/ports/sysdeps/arm/armv7/configure @@ -1,4 +1,4 @@ -# This file is generated from configure.in by Autoconf. DO NOT EDIT! +# This file is generated from configure.ac by Autoconf. DO NOT EDIT! # Local configure fragment for sysdeps/arm/armv7. # We need binutils 2.21 to ensure that NEON alignments are assembled correctly. diff --git a/ports/sysdeps/arm/armv7/configure.ac b/ports/sysdeps/arm/armv7/configure.ac new file mode 100644 index 0000000000..01e93ecd36 --- /dev/null +++ b/ports/sysdeps/arm/armv7/configure.ac @@ -0,0 +1,12 @@ +GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. +# Local configure fragment for sysdeps/arm/armv7. + +# We need binutils 2.21 to ensure that NEON alignments are assembled correctly. +libc_cv_arm_as_version_ok=yes +AC_CHECK_PROG_VER(AS, $AS, --version, + [GNU assembler.* \([0-9]*\.[0-9.]*\)], + [2.1[0-9][0-9]*|2.2[1-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*], libc_cv_arm_as_version_ok=no) + +if test $libc_cv_arm_as_version_ok != yes; then + AC_MSG_ERROR([as version too old, at least 2.21 is required]) +fi diff --git a/ports/sysdeps/arm/armv7/configure.in b/ports/sysdeps/arm/armv7/configure.in deleted file mode 100644 index 01e93ecd36..0000000000 --- a/ports/sysdeps/arm/armv7/configure.in +++ /dev/null @@ -1,12 +0,0 @@ -GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. -# Local configure fragment for sysdeps/arm/armv7. - -# We need binutils 2.21 to ensure that NEON alignments are assembled correctly. -libc_cv_arm_as_version_ok=yes -AC_CHECK_PROG_VER(AS, $AS, --version, - [GNU assembler.* \([0-9]*\.[0-9.]*\)], - [2.1[0-9][0-9]*|2.2[1-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*], libc_cv_arm_as_version_ok=no) - -if test $libc_cv_arm_as_version_ok != yes; then - AC_MSG_ERROR([as version too old, at least 2.21 is required]) -fi diff --git a/ports/sysdeps/arm/configure b/ports/sysdeps/arm/configure index b84b3f69a9..d79ef76ec9 100644 --- a/ports/sysdeps/arm/configure +++ b/ports/sysdeps/arm/configure @@ -1,4 +1,4 @@ -# This file is generated from configure.in by Autoconf. DO NOT EDIT! +# This file is generated from configure.ac by Autoconf. DO NOT EDIT! # Local configure fragment for sysdeps/arm. #AC_DEFINE(PI_STATIC_AND_HIDDEN) diff --git a/ports/sysdeps/arm/configure.ac b/ports/sysdeps/arm/configure.ac new file mode 100644 index 0000000000..d66500b3fd --- /dev/null +++ b/ports/sysdeps/arm/configure.ac @@ -0,0 +1,46 @@ +GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. +# Local configure fragment for sysdeps/arm. + +dnl It is always possible to access static and hidden symbols in an +dnl position independent way. +dnl NOTE: This feature was added by the GCC TLS patches. We should test for +dnl it. Until we do, don't define it. +#AC_DEFINE(PI_STATIC_AND_HIDDEN) + +AC_CACHE_CHECK([whether the CFI directive .cfi_sections is supported], + [libc_cv_asm_cfi_directive_sections], + [cat > conftest.s <&AS_MESSAGE_LOG_FD); then + libc_cv_asm_cfi_directive_sections=yes + else + libc_cv_asm_cfi_directive_sections=no + fi + rm -f conftest*]) +if test $libc_cv_asm_cfi_directive_sections != yes; then + AC_MSG_ERROR([need .cfi_sections in this configuration]) +fi + +# We check to see if the compiler and flags are +# selecting the hard-float ABI and if they are then +# we set libc_cv_arm_pcs_vfp to yes which causes +# HAVE_ARM_PCS_VFP to be defined in config.h and +# in include/libc-symbols.h and thus available to +# shlib-versions to select the appropriate name for +# the dynamic linker via %ifdef. +AC_CACHE_CHECK([whether the compiler is using the ARM hard-float ABI], + [libc_cv_arm_pcs_vfp], + [AC_EGREP_CPP(yes,[#ifdef __ARM_PCS_VFP + yes + #endif + ], libc_cv_arm_pcs_vfp=yes, libc_cv_arm_pcs_vfp=no)]) +if test $libc_cv_arm_pcs_vfp = yes; then + AC_DEFINE(HAVE_ARM_PCS_VFP) + LIBC_CONFIG_VAR([default-abi], [hard]) +else + LIBC_CONFIG_VAR([default-abi], [soft]) +fi diff --git a/ports/sysdeps/arm/configure.in b/ports/sysdeps/arm/configure.in deleted file mode 100644 index d66500b3fd..0000000000 --- a/ports/sysdeps/arm/configure.in +++ /dev/null @@ -1,46 +0,0 @@ -GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. -# Local configure fragment for sysdeps/arm. - -dnl It is always possible to access static and hidden symbols in an -dnl position independent way. -dnl NOTE: This feature was added by the GCC TLS patches. We should test for -dnl it. Until we do, don't define it. -#AC_DEFINE(PI_STATIC_AND_HIDDEN) - -AC_CACHE_CHECK([whether the CFI directive .cfi_sections is supported], - [libc_cv_asm_cfi_directive_sections], - [cat > conftest.s <&AS_MESSAGE_LOG_FD); then - libc_cv_asm_cfi_directive_sections=yes - else - libc_cv_asm_cfi_directive_sections=no - fi - rm -f conftest*]) -if test $libc_cv_asm_cfi_directive_sections != yes; then - AC_MSG_ERROR([need .cfi_sections in this configuration]) -fi - -# We check to see if the compiler and flags are -# selecting the hard-float ABI and if they are then -# we set libc_cv_arm_pcs_vfp to yes which causes -# HAVE_ARM_PCS_VFP to be defined in config.h and -# in include/libc-symbols.h and thus available to -# shlib-versions to select the appropriate name for -# the dynamic linker via %ifdef. -AC_CACHE_CHECK([whether the compiler is using the ARM hard-float ABI], - [libc_cv_arm_pcs_vfp], - [AC_EGREP_CPP(yes,[#ifdef __ARM_PCS_VFP - yes - #endif - ], libc_cv_arm_pcs_vfp=yes, libc_cv_arm_pcs_vfp=no)]) -if test $libc_cv_arm_pcs_vfp = yes; then - AC_DEFINE(HAVE_ARM_PCS_VFP) - LIBC_CONFIG_VAR([default-abi], [hard]) -else - LIBC_CONFIG_VAR([default-abi], [soft]) -fi diff --git a/ports/sysdeps/arm/preconfigure b/ports/sysdeps/arm/preconfigure index 908cd34303..b3124edae2 100644 --- a/ports/sysdeps/arm/preconfigure +++ b/ports/sysdeps/arm/preconfigure @@ -1,4 +1,4 @@ -# This file is generated from configure.in by Autoconf. DO NOT EDIT! +# This file is generated from configure.ac by Autoconf. DO NOT EDIT! # Local preconfigure fragment for sysdeps/arm case "$machine" in @@ -8,7 +8,7 @@ arm*) # If the compiler enables unwind tables by default, this causes # problems with undefined symbols in -nostdlib link tests. To # avoid this, add -fno-unwind-tables here and remove it in - # sysdeps/unix/sysv/linux/arm/configure.in after those tests have + # sysdeps/unix/sysv/linux/arm/configure.ac after those tests have # been run. if test "${CFLAGS+set}" != "set"; then CFLAGS="-g -O2" diff --git a/ports/sysdeps/arm/preconfigure.ac b/ports/sysdeps/arm/preconfigure.ac new file mode 100644 index 0000000000..39c86218aa --- /dev/null +++ b/ports/sysdeps/arm/preconfigure.ac @@ -0,0 +1,58 @@ +GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. +# Local preconfigure fragment for sysdeps/arm + +case "$machine" in +arm*) + case $config_os in + linux-gnueabi*) + # If the compiler enables unwind tables by default, this causes + # problems with undefined symbols in -nostdlib link tests. To + # avoid this, add -fno-unwind-tables here and remove it in + # sysdeps/unix/sysv/linux/arm/configure.ac after those tests have + # been run. + if test "${CFLAGS+set}" != "set"; then + CFLAGS="-g -O2" + fi + CFLAGS="$CFLAGS -fno-unwind-tables" + ;; + linux*) + AC_MSG_ERROR([Old ABI no longer supported]) + ;; + esac + + base_machine=arm + # Lets ask the compiler which ARM family we've got + # Unfortunately it doesn't define any flags for implementations + # that you might pass to -mcpu or -mtune + # Note if you add patterns here you must ensure that + # an appropriate directory exists in sysdeps/arm + archcppflag=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | + sed -n 's/^#define \(__ARM_ARCH_[0-9].*__\) .*$/\1/p'` + + case "x$archcppflag" in + x__ARM_ARCH_[89]*__) + machine=armv7 + AC_MSG_NOTICE([Found compiler is configured for something newer than v7 - using v7]) + ;; + + x__ARM_ARCH_7A__) + machine=armv7 + AC_MSG_NOTICE([Found compiler is configured for $machine]) + ;; + + x__ARM_ARCH_6T2__) + machine=armv6t2 + AC_MSG_NOTICE([Found compiler is configured for $machine]) + ;; + x__ARM_ARCH_6*__) + machine=armv6 + AC_MSG_NOTICE([Found compiler is configured for $machine]) + ;; + *) + machine=arm + AC_MSG_WARN([arm/preconfigure: Did not find ARM architecture type; using default]) + ;; + esac + + machine=arm/$machine +esac diff --git a/ports/sysdeps/arm/preconfigure.in b/ports/sysdeps/arm/preconfigure.in deleted file mode 100644 index f8357955eb..0000000000 --- a/ports/sysdeps/arm/preconfigure.in +++ /dev/null @@ -1,58 +0,0 @@ -GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. -# Local preconfigure fragment for sysdeps/arm - -case "$machine" in -arm*) - case $config_os in - linux-gnueabi*) - # If the compiler enables unwind tables by default, this causes - # problems with undefined symbols in -nostdlib link tests. To - # avoid this, add -fno-unwind-tables here and remove it in - # sysdeps/unix/sysv/linux/arm/configure.in after those tests have - # been run. - if test "${CFLAGS+set}" != "set"; then - CFLAGS="-g -O2" - fi - CFLAGS="$CFLAGS -fno-unwind-tables" - ;; - linux*) - AC_MSG_ERROR([Old ABI no longer supported]) - ;; - esac - - base_machine=arm - # Lets ask the compiler which ARM family we've got - # Unfortunately it doesn't define any flags for implementations - # that you might pass to -mcpu or -mtune - # Note if you add patterns here you must ensure that - # an appropriate directory exists in sysdeps/arm - archcppflag=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | - sed -n 's/^#define \(__ARM_ARCH_[0-9].*__\) .*$/\1/p'` - - case "x$archcppflag" in - x__ARM_ARCH_[89]*__) - machine=armv7 - AC_MSG_NOTICE([Found compiler is configured for something newer than v7 - using v7]) - ;; - - x__ARM_ARCH_7A__) - machine=armv7 - AC_MSG_NOTICE([Found compiler is configured for $machine]) - ;; - - x__ARM_ARCH_6T2__) - machine=armv6t2 - AC_MSG_NOTICE([Found compiler is configured for $machine]) - ;; - x__ARM_ARCH_6*__) - machine=armv6 - AC_MSG_NOTICE([Found compiler is configured for $machine]) - ;; - *) - machine=arm - AC_MSG_WARN([arm/preconfigure: Did not find ARM architecture type; using default]) - ;; - esac - - machine=arm/$machine -esac diff --git a/ports/sysdeps/hppa/configure b/ports/sysdeps/hppa/configure index 762b668f48..d78e1bcd64 100644 --- a/ports/sysdeps/hppa/configure +++ b/ports/sysdeps/hppa/configure @@ -1,4 +1,4 @@ -# This file is generated from configure.in by Autoconf. DO NOT EDIT! +# This file is generated from configure.ac by Autoconf. DO NOT EDIT! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler line separator" >&5 $as_echo_n "checking for assembler line separator... " >&6; } diff --git a/ports/sysdeps/hppa/configure.ac b/ports/sysdeps/hppa/configure.ac new file mode 100644 index 0000000000..40f33603e3 --- /dev/null +++ b/ports/sysdeps/hppa/configure.ac @@ -0,0 +1,66 @@ +GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. + +dnl The standard hppa assembler uses `;' to start comments and `!' +dnl as a line separator. +AC_CACHE_CHECK(for assembler line separator, + libc_cv_asm_line_sep, [dnl +cat > conftest.s <&AS_MESSAGE_LOG_FD); then + libc_cv_asm_line_sep='!' +else + if test -z "$enable_hacker_mode"; then + echo "*** You need a newer assembler to compile glibc" + rm -f conftest* + exit 1 + fi + libc_cv_asm_line_sep=';' +fi +rm -f conftest*]) +AC_DEFINE_UNQUOTED(ASM_LINE_SEP, $libc_cv_asm_line_sep) + +# Check for support of thread-local storage handling in assembler and +# linker. +AC_CACHE_CHECK(for hppa TLS support, libc_cv_hppa_tls, [dnl +cat > conftest.s <<\EOF +; Setup tls data +.section ".tdata","awT",@progbits +foo: .data 32 + .text +; Test general dyanmic relocations +test0: + addil LT'foo-$tls_gdidx$, %r19 + ldo RT'foo-$tls_gdidx$(%r1), %r26 + b __tls_get_addr + nop +; Test local dynamic relocations +test1: + addil LT'foo-$tls_ldidx$, %r19 + b __tls_get_addr + ldo RT'foo-$tls_ldidx$(%r1), %r26 + ldo RR'foo-$tls_dtpoff$(%r1), %r25 + ; More variables can be loaded... +; Test initial exec reloctiosn +test2: + mfctl %cr27, %r26 + addil LT'foo-$tls_ieoff$, %r19 + ldw RT'foo-$tls_ieoff$(%r1), %r25 + add %r26, %r25, %r24 +; Test local exec relocations +test3: + mfctl %cr27, %r26 + addil LR'foo-$tls_leoff$, %r26 + ldo RR'foo-$tls_leoff$(%r1), %r25 +; Done all the TLS tests. +EOF +dnl +if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then + libc_cv_hppa_tls=yes +else + libc_cv_hppa_tls=no +fi +rm -f conftest*]) +if test $libc_cv_hppa_tls = no; then + AC_MSG_ERROR([the assembler must support TLS]) +fi diff --git a/ports/sysdeps/hppa/configure.in b/ports/sysdeps/hppa/configure.in deleted file mode 100644 index 40f33603e3..0000000000 --- a/ports/sysdeps/hppa/configure.in +++ /dev/null @@ -1,66 +0,0 @@ -GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. - -dnl The standard hppa assembler uses `;' to start comments and `!' -dnl as a line separator. -AC_CACHE_CHECK(for assembler line separator, - libc_cv_asm_line_sep, [dnl -cat > conftest.s <&AS_MESSAGE_LOG_FD); then - libc_cv_asm_line_sep='!' -else - if test -z "$enable_hacker_mode"; then - echo "*** You need a newer assembler to compile glibc" - rm -f conftest* - exit 1 - fi - libc_cv_asm_line_sep=';' -fi -rm -f conftest*]) -AC_DEFINE_UNQUOTED(ASM_LINE_SEP, $libc_cv_asm_line_sep) - -# Check for support of thread-local storage handling in assembler and -# linker. -AC_CACHE_CHECK(for hppa TLS support, libc_cv_hppa_tls, [dnl -cat > conftest.s <<\EOF -; Setup tls data -.section ".tdata","awT",@progbits -foo: .data 32 - .text -; Test general dyanmic relocations -test0: - addil LT'foo-$tls_gdidx$, %r19 - ldo RT'foo-$tls_gdidx$(%r1), %r26 - b __tls_get_addr - nop -; Test local dynamic relocations -test1: - addil LT'foo-$tls_ldidx$, %r19 - b __tls_get_addr - ldo RT'foo-$tls_ldidx$(%r1), %r26 - ldo RR'foo-$tls_dtpoff$(%r1), %r25 - ; More variables can be loaded... -; Test initial exec reloctiosn -test2: - mfctl %cr27, %r26 - addil LT'foo-$tls_ieoff$, %r19 - ldw RT'foo-$tls_ieoff$(%r1), %r25 - add %r26, %r25, %r24 -; Test local exec relocations -test3: - mfctl %cr27, %r26 - addil LR'foo-$tls_leoff$, %r26 - ldo RR'foo-$tls_leoff$(%r1), %r25 -; Done all the TLS tests. -EOF -dnl -if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then - libc_cv_hppa_tls=yes -else - libc_cv_hppa_tls=no -fi -rm -f conftest*]) -if test $libc_cv_hppa_tls = no; then - AC_MSG_ERROR([the assembler must support TLS]) -fi diff --git a/ports/sysdeps/ia64/configure b/ports/sysdeps/ia64/configure index e1fe62d8c5..66b9bac153 100644 --- a/ports/sysdeps/ia64/configure +++ b/ports/sysdeps/ia64/configure @@ -1,4 +1,4 @@ -# This file is generated from configure.in by Autoconf. DO NOT EDIT! +# This file is generated from configure.ac by Autoconf. DO NOT EDIT! # Local configure fragment for sysdeps/ia64. $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h diff --git a/ports/sysdeps/ia64/configure.ac b/ports/sysdeps/ia64/configure.ac new file mode 100644 index 0000000000..4ad04ff2f7 --- /dev/null +++ b/ports/sysdeps/ia64/configure.ac @@ -0,0 +1,6 @@ +GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. +# Local configure fragment for sysdeps/ia64. + +dnl It is always possible to access static and hidden symbols in an +dnl position independent way. +AC_DEFINE(PI_STATIC_AND_HIDDEN) diff --git a/ports/sysdeps/ia64/configure.in b/ports/sysdeps/ia64/configure.in deleted file mode 100644 index 4ad04ff2f7..0000000000 --- a/ports/sysdeps/ia64/configure.in +++ /dev/null @@ -1,6 +0,0 @@ -GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. -# Local configure fragment for sysdeps/ia64. - -dnl It is always possible to access static and hidden symbols in an -dnl position independent way. -AC_DEFINE(PI_STATIC_AND_HIDDEN) diff --git a/ports/sysdeps/mips/configure b/ports/sysdeps/mips/configure index de8092c970..f3f5d2e00d 100644 --- a/ports/sysdeps/mips/configure +++ b/ports/sysdeps/mips/configure @@ -1,4 +1,4 @@ -# This file is generated from configure.in by Autoconf. DO NOT EDIT! +# This file is generated from configure.ac by Autoconf. DO NOT EDIT! # Local configure fragment for sysdeps/mips. diff --git a/ports/sysdeps/mips/configure.ac b/ports/sysdeps/mips/configure.ac new file mode 100644 index 0000000000..bcbdaffd9f --- /dev/null +++ b/ports/sysdeps/mips/configure.ac @@ -0,0 +1,15 @@ +GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. +# Local configure fragment for sysdeps/mips. + +dnl No MIPS GCC supports accessing static and hidden symbols in an +dnl position independent way. +dnl AC_DEFINE(PI_STATIC_AND_HIDDEN) + +AC_CACHE_CHECK([whether the compiler is using the 2008 NaN encoding], + libc_cv_mips_nan2008, [AC_EGREP_CPP(yes, [dnl +#ifdef __mips_nan2008 +yes +#endif], libc_cv_mips_nan2008=yes, libc_cv_mips_nan2008=no)]) +if test x$libc_cv_mips_nan2008 = xyes; then + AC_DEFINE(HAVE_MIPS_NAN2008) +fi diff --git a/ports/sysdeps/mips/configure.in b/ports/sysdeps/mips/configure.in deleted file mode 100644 index bcbdaffd9f..0000000000 --- a/ports/sysdeps/mips/configure.in +++ /dev/null @@ -1,15 +0,0 @@ -GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. -# Local configure fragment for sysdeps/mips. - -dnl No MIPS GCC supports accessing static and hidden symbols in an -dnl position independent way. -dnl AC_DEFINE(PI_STATIC_AND_HIDDEN) - -AC_CACHE_CHECK([whether the compiler is using the 2008 NaN encoding], - libc_cv_mips_nan2008, [AC_EGREP_CPP(yes, [dnl -#ifdef __mips_nan2008 -yes -#endif], libc_cv_mips_nan2008=yes, libc_cv_mips_nan2008=no)]) -if test x$libc_cv_mips_nan2008 = xyes; then - AC_DEFINE(HAVE_MIPS_NAN2008) -fi diff --git a/ports/sysdeps/unix/sysv/linux/aarch64/configure b/ports/sysdeps/unix/sysv/linux/aarch64/configure index 6b2608acd7..20593c7bb0 100644 --- a/ports/sysdeps/unix/sysv/linux/aarch64/configure +++ b/ports/sysdeps/unix/sysv/linux/aarch64/configure @@ -1,4 +1,4 @@ -# This file is generated from configure.in by Autoconf. DO NOT EDIT! +# This file is generated from configure.ac by Autoconf. DO NOT EDIT! # Local configure fragment for sysdeps/unix/sysv/linux/aarch64. arch_minimum_kernel=3.7.0 diff --git a/ports/sysdeps/unix/sysv/linux/aarch64/configure.ac b/ports/sysdeps/unix/sysv/linux/aarch64/configure.ac new file mode 100644 index 0000000000..b090702134 --- /dev/null +++ b/ports/sysdeps/unix/sysv/linux/aarch64/configure.ac @@ -0,0 +1,17 @@ +GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. +# Local configure fragment for sysdeps/unix/sysv/linux/aarch64. + +arch_minimum_kernel=3.7.0 + +test -n "$libc_cv_slibdir" || +case "$prefix" in + /usr | /usr/) + libc_cv_slibdir="/lib64" + libc_cv_rtlddir="/lib" + 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 + ;; +esac diff --git a/ports/sysdeps/unix/sysv/linux/aarch64/configure.in b/ports/sysdeps/unix/sysv/linux/aarch64/configure.in deleted file mode 100644 index b090702134..0000000000 --- a/ports/sysdeps/unix/sysv/linux/aarch64/configure.in +++ /dev/null @@ -1,17 +0,0 @@ -GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. -# Local configure fragment for sysdeps/unix/sysv/linux/aarch64. - -arch_minimum_kernel=3.7.0 - -test -n "$libc_cv_slibdir" || -case "$prefix" in - /usr | /usr/) - libc_cv_slibdir="/lib64" - libc_cv_rtlddir="/lib" - 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 - ;; -esac diff --git a/ports/sysdeps/unix/sysv/linux/alpha/configure b/ports/sysdeps/unix/sysv/linux/alpha/configure index b5df524c1c..9afb5874cb 100644 --- a/ports/sysdeps/unix/sysv/linux/alpha/configure +++ b/ports/sysdeps/unix/sysv/linux/alpha/configure @@ -1,4 +1,4 @@ -# This file is generated from configure.in by Autoconf. DO NOT EDIT! +# This file is generated from configure.ac by Autoconf. DO NOT EDIT! # Local configure fragment for sysdeps/unix/sysv/linux/alpha # We did historically export the unwinder from glibc. diff --git a/ports/sysdeps/unix/sysv/linux/alpha/configure.ac b/ports/sysdeps/unix/sysv/linux/alpha/configure.ac new file mode 100644 index 0000000000..a8b6996657 --- /dev/null +++ b/ports/sysdeps/unix/sysv/linux/alpha/configure.ac @@ -0,0 +1,5 @@ +GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. +# Local configure fragment for sysdeps/unix/sysv/linux/alpha + +# We did historically export the unwinder from glibc. +libc_cv_gcc_unwind_find_fde=yes diff --git a/ports/sysdeps/unix/sysv/linux/alpha/configure.in b/ports/sysdeps/unix/sysv/linux/alpha/configure.in deleted file mode 100644 index a8b6996657..0000000000 --- a/ports/sysdeps/unix/sysv/linux/alpha/configure.in +++ /dev/null @@ -1,5 +0,0 @@ -GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. -# Local configure fragment for sysdeps/unix/sysv/linux/alpha - -# We did historically export the unwinder from glibc. -libc_cv_gcc_unwind_find_fde=yes diff --git a/ports/sysdeps/unix/sysv/linux/am33/configure b/ports/sysdeps/unix/sysv/linux/am33/configure index 870c6a7929..c916a321ca 100644 --- a/ports/sysdeps/unix/sysv/linux/am33/configure +++ b/ports/sysdeps/unix/sysv/linux/am33/configure @@ -1,4 +1,4 @@ -# This file is generated from configure.in by Autoconf. DO NOT EDIT! +# This file is generated from configure.ac by Autoconf. DO NOT EDIT! # Local configure fragment for am33/sysdeps/unix/sysv/linux/am33 arch_minimum_kernel=2.6.25 diff --git a/ports/sysdeps/unix/sysv/linux/am33/configure.ac b/ports/sysdeps/unix/sysv/linux/am33/configure.ac new file mode 100644 index 0000000000..43e33f74ca --- /dev/null +++ b/ports/sysdeps/unix/sysv/linux/am33/configure.ac @@ -0,0 +1,4 @@ +GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. +# Local configure fragment for am33/sysdeps/unix/sysv/linux/am33 + +arch_minimum_kernel=2.6.25 diff --git a/ports/sysdeps/unix/sysv/linux/am33/configure.in b/ports/sysdeps/unix/sysv/linux/am33/configure.in deleted file mode 100644 index 43e33f74ca..0000000000 --- a/ports/sysdeps/unix/sysv/linux/am33/configure.in +++ /dev/null @@ -1,4 +0,0 @@ -GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. -# Local configure fragment for am33/sysdeps/unix/sysv/linux/am33 - -arch_minimum_kernel=2.6.25 diff --git a/ports/sysdeps/unix/sysv/linux/arm/configure b/ports/sysdeps/unix/sysv/linux/arm/configure index f66b158289..71eb195942 100644 --- a/ports/sysdeps/unix/sysv/linux/arm/configure +++ b/ports/sysdeps/unix/sysv/linux/arm/configure @@ -1,6 +1,6 @@ -# This file is generated from configure.in by Autoconf. DO NOT EDIT! +# This file is generated from configure.ac by Autoconf. DO NOT EDIT! # Local configure fragment for sysdeps/unix/sysv/linux/arm. libc_cv_gcc_unwind_find_fde=no -# Remove -fno-unwind-tables that was added in sysdeps/arm/preconfigure.in. +# Remove -fno-unwind-tables that was added in sysdeps/arm/preconfigure.ac. CFLAGS=${CFLAGS% -fno-unwind-tables} diff --git a/ports/sysdeps/unix/sysv/linux/arm/configure.ac b/ports/sysdeps/unix/sysv/linux/arm/configure.ac new file mode 100644 index 0000000000..8e4e20d2b8 --- /dev/null +++ b/ports/sysdeps/unix/sysv/linux/arm/configure.ac @@ -0,0 +1,6 @@ +GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. +# Local configure fragment for sysdeps/unix/sysv/linux/arm. + +libc_cv_gcc_unwind_find_fde=no +# Remove -fno-unwind-tables that was added in sysdeps/arm/preconfigure.ac. +CFLAGS=${CFLAGS% -fno-unwind-tables} diff --git a/ports/sysdeps/unix/sysv/linux/arm/configure.in b/ports/sysdeps/unix/sysv/linux/arm/configure.in deleted file mode 100644 index 8fffe94051..0000000000 --- a/ports/sysdeps/unix/sysv/linux/arm/configure.in +++ /dev/null @@ -1,6 +0,0 @@ -GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. -# Local configure fragment for sysdeps/unix/sysv/linux/arm. - -libc_cv_gcc_unwind_find_fde=no -# Remove -fno-unwind-tables that was added in sysdeps/arm/preconfigure.in. -CFLAGS=${CFLAGS% -fno-unwind-tables} diff --git a/ports/sysdeps/unix/sysv/linux/arm/nptl/configure b/ports/sysdeps/unix/sysv/linux/arm/nptl/configure index 518269913a..a8c34fa3e4 100644 --- a/ports/sysdeps/unix/sysv/linux/arm/nptl/configure +++ b/ports/sysdeps/unix/sysv/linux/arm/nptl/configure @@ -1,4 +1,4 @@ -# This file is generated from configure.in by Autoconf. DO NOT EDIT! +# This file is generated from configure.ac by Autoconf. DO NOT EDIT! libc_cv_gcc_exceptions=yes exceptions=-fexceptions diff --git a/ports/sysdeps/unix/sysv/linux/arm/nptl/configure.ac b/ports/sysdeps/unix/sysv/linux/arm/nptl/configure.ac new file mode 100644 index 0000000000..22f6f4b8f2 --- /dev/null +++ b/ports/sysdeps/unix/sysv/linux/arm/nptl/configure.ac @@ -0,0 +1,8 @@ +dnl configure fragment for NPTL and ARM/Linux EABI. +GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. + +dnl The normal configure check for gcc -fexecptions fails because it can't +dnl find __aeabi_unwind_cpp_pr0. Work around this here; our GCC definitely +dnl has -fexceptions. +libc_cv_gcc_exceptions=yes +exceptions=-fexceptions diff --git a/ports/sysdeps/unix/sysv/linux/arm/nptl/configure.in b/ports/sysdeps/unix/sysv/linux/arm/nptl/configure.in deleted file mode 100644 index 22f6f4b8f2..0000000000 --- a/ports/sysdeps/unix/sysv/linux/arm/nptl/configure.in +++ /dev/null @@ -1,8 +0,0 @@ -dnl configure fragment for NPTL and ARM/Linux EABI. -GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. - -dnl The normal configure check for gcc -fexecptions fails because it can't -dnl find __aeabi_unwind_cpp_pr0. Work around this here; our GCC definitely -dnl has -fexceptions. -libc_cv_gcc_exceptions=yes -exceptions=-fexceptions diff --git a/ports/sysdeps/unix/sysv/linux/ia64/configure b/ports/sysdeps/unix/sysv/linux/ia64/configure index 71323718af..1d4e5d18d6 100644 --- a/ports/sysdeps/unix/sysv/linux/ia64/configure +++ b/ports/sysdeps/unix/sysv/linux/ia64/configure @@ -1,4 +1,4 @@ -# This file is generated from configure.in by Autoconf. DO NOT EDIT! +# This file is generated from configure.ac by Autoconf. DO NOT EDIT! # Local configure fragment for sysdeps/unix/sysv/linux/ia64 ldd_rewrite_script=$dir/ldd-rewrite.sed diff --git a/ports/sysdeps/unix/sysv/linux/ia64/configure.ac b/ports/sysdeps/unix/sysv/linux/ia64/configure.ac new file mode 100644 index 0000000000..4fb564721b --- /dev/null +++ b/ports/sysdeps/unix/sysv/linux/ia64/configure.ac @@ -0,0 +1,4 @@ +GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. +# Local configure fragment for sysdeps/unix/sysv/linux/ia64 + +ldd_rewrite_script=$dir/ldd-rewrite.sed diff --git a/ports/sysdeps/unix/sysv/linux/ia64/configure.in b/ports/sysdeps/unix/sysv/linux/ia64/configure.in deleted file mode 100644 index 4fb564721b..0000000000 --- a/ports/sysdeps/unix/sysv/linux/ia64/configure.in +++ /dev/null @@ -1,4 +0,0 @@ -GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. -# Local configure fragment for sysdeps/unix/sysv/linux/ia64 - -ldd_rewrite_script=$dir/ldd-rewrite.sed diff --git a/ports/sysdeps/unix/sysv/linux/m68k/configure b/ports/sysdeps/unix/sysv/linux/m68k/configure index a704dacee6..8e955387b7 100644 --- a/ports/sysdeps/unix/sysv/linux/m68k/configure +++ b/ports/sysdeps/unix/sysv/linux/m68k/configure @@ -1,4 +1,4 @@ -# This file is generated from configure.in by Autoconf. DO NOT EDIT! +# This file is generated from configure.ac by Autoconf. DO NOT EDIT! case $machine in m68k/coldfire) ;; diff --git a/ports/sysdeps/unix/sysv/linux/m68k/configure.ac b/ports/sysdeps/unix/sysv/linux/m68k/configure.ac new file mode 100644 index 0000000000..c21ca9dd47 --- /dev/null +++ b/ports/sysdeps/unix/sysv/linux/m68k/configure.ac @@ -0,0 +1,10 @@ +sinclude(./aclocal.m4)dnl Autoconf lossage +GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. +case $machine in +m68k/coldfire) + ;; +*) + libc_cv_gcc_unwind_find_fde=yes + ;; +esac +ldd_rewrite_script=sysdeps/unix/sysv/linux/ldd-rewrite.sed diff --git a/ports/sysdeps/unix/sysv/linux/m68k/configure.in b/ports/sysdeps/unix/sysv/linux/m68k/configure.in deleted file mode 100644 index c21ca9dd47..0000000000 --- a/ports/sysdeps/unix/sysv/linux/m68k/configure.in +++ /dev/null @@ -1,10 +0,0 @@ -sinclude(./aclocal.m4)dnl Autoconf lossage -GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. -case $machine in -m68k/coldfire) - ;; -*) - libc_cv_gcc_unwind_find_fde=yes - ;; -esac -ldd_rewrite_script=sysdeps/unix/sysv/linux/ldd-rewrite.sed diff --git a/ports/sysdeps/unix/sysv/linux/microblaze/configure b/ports/sysdeps/unix/sysv/linux/microblaze/configure index fa7da73931..086638856c 100644 --- a/ports/sysdeps/unix/sysv/linux/microblaze/configure +++ b/ports/sysdeps/unix/sysv/linux/microblaze/configure @@ -1,4 +1,4 @@ -# This file is generated from configure.in by Autoconf. DO NOT EDIT! +# This file is generated from configure.ac by Autoconf. DO NOT EDIT! # Local configure fragment for sysdeps/unix/sysv/linux/microblaze. arch_minimum_kernel=2.6.30 diff --git a/ports/sysdeps/unix/sysv/linux/microblaze/configure.ac b/ports/sysdeps/unix/sysv/linux/microblaze/configure.ac new file mode 100644 index 0000000000..f283d37702 --- /dev/null +++ b/ports/sysdeps/unix/sysv/linux/microblaze/configure.ac @@ -0,0 +1,4 @@ +GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. +# Local configure fragment for sysdeps/unix/sysv/linux/microblaze. + +arch_minimum_kernel=2.6.30 diff --git a/ports/sysdeps/unix/sysv/linux/microblaze/configure.in b/ports/sysdeps/unix/sysv/linux/microblaze/configure.in deleted file mode 100644 index f283d37702..0000000000 --- a/ports/sysdeps/unix/sysv/linux/microblaze/configure.in +++ /dev/null @@ -1,4 +0,0 @@ -GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. -# Local configure fragment for sysdeps/unix/sysv/linux/microblaze. - -arch_minimum_kernel=2.6.30 diff --git a/ports/sysdeps/unix/sysv/linux/mips/configure b/ports/sysdeps/unix/sysv/linux/mips/configure index 088210ff97..e8b0d7b154 100644 --- a/ports/sysdeps/unix/sysv/linux/mips/configure +++ b/ports/sysdeps/unix/sysv/linux/mips/configure @@ -1,4 +1,4 @@ -# This file is generated from configure.in by Autoconf. DO NOT EDIT! +# This file is generated from configure.ac by Autoconf. DO NOT EDIT! # Local configure fragment for sysdeps/unix/sysv/linux/mips. diff --git a/ports/sysdeps/unix/sysv/linux/mips/configure.ac b/ports/sysdeps/unix/sysv/linux/mips/configure.ac new file mode 100644 index 0000000000..7087a14a5e --- /dev/null +++ b/ports/sysdeps/unix/sysv/linux/mips/configure.ac @@ -0,0 +1,99 @@ +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 + +AC_CACHE_CHECK([whether the compiler is using the 2008 NaN encoding], + libc_cv_mips_nan2008, [AC_EGREP_CPP(yes, [dnl +#ifdef __mips_nan2008 +yes +#endif], libc_cv_mips_nan2008=yes, libc_cv_mips_nan2008=no)]) + +libc_mips_nan= +if test x"$libc_cv_mips_nan2008" = xyes; then + libc_mips_nan=_2008 +fi + +LIBC_CONFIG_VAR([default-abi], + [${libc_mips_abi}_${libc_mips_float}${libc_mips_nan}]) + +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 + +if test -z "$arch_minimum_kernel"; then + if test x$libc_cv_mips_nan2008 = xyes; then + # FIXME: Adjust this setting to the actual first upstream kernel + # version to support the 2008 NaN encoding and then remove this + # comment. + arch_minimum_kernel=10.0.0 + fi +fi diff --git a/ports/sysdeps/unix/sysv/linux/mips/configure.in b/ports/sysdeps/unix/sysv/linux/mips/configure.in deleted file mode 100644 index 7087a14a5e..0000000000 --- a/ports/sysdeps/unix/sysv/linux/mips/configure.in +++ /dev/null @@ -1,99 +0,0 @@ -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 - -AC_CACHE_CHECK([whether the compiler is using the 2008 NaN encoding], - libc_cv_mips_nan2008, [AC_EGREP_CPP(yes, [dnl -#ifdef __mips_nan2008 -yes -#endif], libc_cv_mips_nan2008=yes, libc_cv_mips_nan2008=no)]) - -libc_mips_nan= -if test x"$libc_cv_mips_nan2008" = xyes; then - libc_mips_nan=_2008 -fi - -LIBC_CONFIG_VAR([default-abi], - [${libc_mips_abi}_${libc_mips_float}${libc_mips_nan}]) - -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 - -if test -z "$arch_minimum_kernel"; then - if test x$libc_cv_mips_nan2008 = xyes; then - # FIXME: Adjust this setting to the actual first upstream kernel - # version to support the 2008 NaN encoding and then remove this - # comment. - arch_minimum_kernel=10.0.0 - fi -fi diff --git a/ports/sysdeps/unix/sysv/linux/mips/mips64/configure b/ports/sysdeps/unix/sysv/linux/mips/mips64/configure index f86f3276a5..26bed649db 100644 --- a/ports/sysdeps/unix/sysv/linux/mips/mips64/configure +++ b/ports/sysdeps/unix/sysv/linux/mips/mips64/configure @@ -1,4 +1,4 @@ -# This file is generated from configure.in by Autoconf. DO NOT EDIT! +# This file is generated from configure.ac by Autoconf. DO NOT EDIT! # Local configure fragment for sysdeps/unix/sysv/linux/mips/mips64. ldd_rewrite_script=$dir/ldd-rewrite.sed diff --git a/ports/sysdeps/unix/sysv/linux/mips/mips64/configure.ac b/ports/sysdeps/unix/sysv/linux/mips/mips64/configure.ac new file mode 100644 index 0000000000..c137ec5552 --- /dev/null +++ b/ports/sysdeps/unix/sysv/linux/mips/mips64/configure.ac @@ -0,0 +1,5 @@ +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/mips64. + +ldd_rewrite_script=$dir/ldd-rewrite.sed diff --git a/ports/sysdeps/unix/sysv/linux/mips/mips64/configure.in b/ports/sysdeps/unix/sysv/linux/mips/mips64/configure.in deleted file mode 100644 index c137ec5552..0000000000 --- a/ports/sysdeps/unix/sysv/linux/mips/mips64/configure.in +++ /dev/null @@ -1,5 +0,0 @@ -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/mips64. - -ldd_rewrite_script=$dir/ldd-rewrite.sed diff --git a/ports/sysdeps/unix/sysv/linux/tile/configure b/ports/sysdeps/unix/sysv/linux/tile/configure index 88b5788481..02f6c8c25d 100644 --- a/ports/sysdeps/unix/sysv/linux/tile/configure +++ b/ports/sysdeps/unix/sysv/linux/tile/configure @@ -1,4 +1,4 @@ -# This file is generated from configure.in by Autoconf. DO NOT EDIT! +# This file is generated from configure.ac by Autoconf. DO NOT EDIT! # Local configure fragment for sysdeps/unix/sysv/linux/tile. arch_minimum_kernel=2.6.32 diff --git a/ports/sysdeps/unix/sysv/linux/tile/configure.ac b/ports/sysdeps/unix/sysv/linux/tile/configure.ac new file mode 100644 index 0000000000..b983e28be6 --- /dev/null +++ b/ports/sysdeps/unix/sysv/linux/tile/configure.ac @@ -0,0 +1,4 @@ +GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. +# Local configure fragment for sysdeps/unix/sysv/linux/tile. + +arch_minimum_kernel=2.6.32 diff --git a/ports/sysdeps/unix/sysv/linux/tile/configure.in b/ports/sysdeps/unix/sysv/linux/tile/configure.in deleted file mode 100644 index b983e28be6..0000000000 --- a/ports/sysdeps/unix/sysv/linux/tile/configure.in +++ /dev/null @@ -1,4 +0,0 @@ -GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. -# Local configure fragment for sysdeps/unix/sysv/linux/tile. - -arch_minimum_kernel=2.6.32 diff --git a/ports/sysdeps/unix/sysv/linux/tile/tilegx/configure b/ports/sysdeps/unix/sysv/linux/tile/tilegx/configure index bfa30f6dcf..0a6a63ff99 100644 --- a/ports/sysdeps/unix/sysv/linux/tile/tilegx/configure +++ b/ports/sysdeps/unix/sysv/linux/tile/tilegx/configure @@ -1,4 +1,4 @@ -# This file is generated from configure.in by Autoconf. DO NOT EDIT! +# This file is generated from configure.ac by Autoconf. DO NOT EDIT! # Local configure fragment for sysdeps/unix/sysv/linux/tile/tilegx ldd_rewrite_script=$dir/ldd-rewrite.sed diff --git a/ports/sysdeps/unix/sysv/linux/tile/tilegx/configure.ac b/ports/sysdeps/unix/sysv/linux/tile/tilegx/configure.ac new file mode 100644 index 0000000000..87d86bd4c0 --- /dev/null +++ b/ports/sysdeps/unix/sysv/linux/tile/tilegx/configure.ac @@ -0,0 +1,4 @@ +GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. +# Local configure fragment for sysdeps/unix/sysv/linux/tile/tilegx + +ldd_rewrite_script=$dir/ldd-rewrite.sed diff --git a/ports/sysdeps/unix/sysv/linux/tile/tilegx/configure.in b/ports/sysdeps/unix/sysv/linux/tile/tilegx/configure.in deleted file mode 100644 index 87d86bd4c0..0000000000 --- a/ports/sysdeps/unix/sysv/linux/tile/tilegx/configure.in +++ /dev/null @@ -1,4 +0,0 @@ -GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. -# Local configure fragment for sysdeps/unix/sysv/linux/tile/tilegx - -ldd_rewrite_script=$dir/ldd-rewrite.sed -- cgit 1.4.1