From d6d7d5faf681dca08fd7fb0ade2bec6d53c0f1ce Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 12 Feb 2022 11:57:28 +0100 Subject: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE The former is obsolete. configure.ac: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. --- configure.ac | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index cb9d3fdc..75abe63d 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -AC_PREREQ(2.54) dnl Minimum Autoconf version required. +AC_PREREQ([2.69]) dnl Minimum Autoconf version required. AC_INIT([GNU Hurd], [0.9], [bug-hurd@gnu.org]) AC_CONFIG_SRCDIR([hurd/hurd_types.h]) dnl File to look for in srcdir. @@ -144,12 +144,13 @@ rm -f conftest*]) # See if libc was built with --enable-libio. AC_CACHE_CHECK([for libio], hurd_cv_libio, - AC_TRY_COMPILE([#include + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include #ifndef _STDIO_USES_IOSTREAM # error No libio found. -#endif],, - hurd_cv_libio=yes, - hurd_cv_libio=no)) +#endif]], + [[]])], + [hurd_cv_libio=yes], + [hurd_cv_libio=no])) # Check if libc contains these functions. AC_CHECK_FUNCS(file_exec_paths exec_exec_paths _hurd_exec_paths) -- cgit v1.2.3