diff options
author | Nikias Bassen | 2021-08-27 18:54:42 +0200 |
---|---|---|
committer | Nikias Bassen | 2021-08-27 18:54:42 +0200 |
commit | 52dd35f2d264561a4226b117bf37cd661e78649c (patch) | |
tree | c7315337db0d495e7709116f5104accd9b2f597d /m4/as-compiler-flag.m4 | |
parent | 4b34ad0f047abb441573177480d8baed312e930e (diff) | |
download | libimobiledevice-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.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 |