diff options
author | Nikias Bassen | 2021-07-27 04:22:41 +0200 |
---|---|---|
committer | Nikias Bassen | 2021-07-27 04:22:41 +0200 |
commit | 2380f7c6db47aef91263e125a6c8ca6aba170b28 (patch) | |
tree | 6892e9d7a170e60fa7c543784d8892a2c190e6b8 /m4/as-compiler-flag.m4 | |
parent | 5c52551e630039e9dad5a08ceaf650fa03b28207 (diff) | |
download | libimobiledevice-2380f7c6db47aef91263e125a6c8ca6aba170b28.tar.gz libimobiledevice-2380f7c6db47aef91263e125a6c8ca6aba170b28.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.m4 | 4 |
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 |