summaryrefslogtreecommitdiffstats
path: root/m4/as-compiler-flag.m4
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2021-08-27 18:54:42 +0200
committerGravatar Nikias Bassen2021-08-27 18:54:42 +0200
commit52dd35f2d264561a4226b117bf37cd661e78649c (patch)
treec7315337db0d495e7709116f5104accd9b2f597d /m4/as-compiler-flag.m4
parent4b34ad0f047abb441573177480d8baed312e930e (diff)
downloadlibimobiledevice-glue-52dd35f2d264561a4226b117bf37cd661e78649c.tar.gz
libimobiledevice-glue-52dd35f2d264561a4226b117bf37cd661e78649c.tar.bz2
Update deprecated autoconf macros and update m4 files
Diffstat (limited to 'm4/as-compiler-flag.m4')
-rw-r--r--m4/as-compiler-flag.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/as-compiler-flag.m4 b/m4/as-compiler-flag.m4
index 0f660cf..baab5d9 100644
--- a/m4/as-compiler-flag.m4
+++ b/m4/as-compiler-flag.m4
@@ -18,7 +18,7 @@ AC_DEFUN([AS_COMPILER_FLAG],
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $1"
- AC_TRY_COMPILE([ ], [], [flag_ok=yes], [flag_ok=no])
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], [flag_ok=yes], [flag_ok=no])
CFLAGS="$save_CFLAGS"
if test "X$flag_ok" = Xyes ; then
@@ -44,7 +44,7 @@ AC_DEFUN([AS_COMPILER_FLAGS],
do
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $each"
- AC_TRY_COMPILE([ ], [], [flag_ok=yes], [flag_ok=no])
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], [flag_ok=yes], [flag_ok=no])
CFLAGS="$save_CFLAGS"
if test "X$flag_ok" = Xyes ; then