about summary refs log tree commit diff
path: root/sysdeps/s390/configure.ac
diff options
context:
space:
mode:
authorNaohiro Tamura <naohirot@fujitsu.com>2021-05-22 02:42:48 +0000
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-06-04 10:16:00 -0300
commitb190bccc8a7e4919d3bd68a153577284f201819a (patch)
tree04374fc6123931c91c08adb77c372986ce9c9053 /sysdeps/s390/configure.ac
parent57094e576aed174317fb7de2da34be8536891678 (diff)
downloadglibc-b190bccc8a7e4919d3bd68a153577284f201819a.tar.gz
glibc-b190bccc8a7e4919d3bd68a153577284f201819a.tar.xz
glibc-b190bccc8a7e4919d3bd68a153577284f201819a.zip
configure: Replaced obsolete AC_TRY_COMPILE
This patch replaced obsolete AC_TRY_COMPILE to AC_COMPILE_IFELSE or
AC_PREPROC_IFELSE.
It has been confirmed that GNU 'autoconf' 2.69 suppressed obsolete
warnings, updated the following files:
  - configure
  - sysdeps/mach/configure
  - sysdeps/mach/hurd/configure
  - sysdeps/s390/configure
  - sysdeps/unix/sysv/linux/configure
and didn't change the following files:
  - sysdeps/ieee754/ldbl-opt/configure
  - sysdeps/unix/sysv/linux/powerpc/configure

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/s390/configure.ac')
-rw-r--r--sysdeps/s390/configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/s390/configure.ac b/sysdeps/s390/configure.ac
index e6df624919..14948c81ed 100644
--- a/sysdeps/s390/configure.ac
+++ b/sysdeps/s390/configure.ac
@@ -222,11 +222,11 @@ dnl overflow
 dnl (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98269)
 AC_CACHE_CHECK([if $CC is sufficient to build libc on s390x],
 libc_cv_compiler_ok_on_s390x, [
-AC_TRY_COMPILE([], [
+AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[]], [[
 #if !defined __GNUC__ || __GNUC__ < 7 || (__GNUC__ == 7 && __GNUC_MINOR__ < 1)
 #error insufficient compiler for building on s390x
 #endif
-],
+]])],
 	[libc_cv_compiler_ok_on_s390x=yes],
 	[libc_cv_compiler_ok_on_s390x=no])])
 if test "$libc_cv_compiler_ok_on_s390x" != yes; then