diff options
author | Nikias Bassen | 2021-08-31 02:20:19 +0200 |
---|---|---|
committer | Nikias Bassen | 2021-08-31 02:20:19 +0200 |
commit | 1a7351852d650a481e1ddfa86aed9dc781849b51 (patch) | |
tree | e1e8b14fc45e8ebe0fdf7d830b00729af81ad1e0 /m4/as-compiler-flag.m4 | |
parent | 47e2f5a3a07805a77e0cdf763fa0204136a93aa8 (diff) | |
download | libusbmuxd-1a7351852d650a481e1ddfa86aed9dc781849b51.tar.gz libusbmuxd-1a7351852d650a481e1ddfa86aed9dc781849b51.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 |