diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2022-05-07 21:09:09 +0300 |
---|---|---|
committer | Tristan Matthews <tmatth@videolan.org> | 2022-05-07 21:09:09 +0300 |
commit | 44fd287e1c940ef98ac25efbc2ae3e4fd3164327 (patch) | |
tree | 48f9d28a833eedad2c4f87875b577fd22b82d41b | |
parent | ac1a3140839e25f8c5812680a055a0a700873502 (diff) |
autotools: do not use deprecated macros
Signed-off-by: Tristan Matthews <tmatth@videolan.org>
(cherry-picked from: https://gitlab.xiph.org/xiph/speexdsp/-/commit/ce516455744064625c491c17bac70a9addf289db)
-rw-r--r-- | configure.ac | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac index 6188163..522c2c8 100644 --- a/configure.ac +++ b/configure.ac @@ -27,8 +27,8 @@ AM_INIT_AUTOMAKE([foreign no-define]) AM_MAINTAINER_MODE([enable]) AC_CANONICAL_HOST -AC_LIBTOOL_WIN32_DLL -AM_PROG_LIBTOOL +_LT_SET_OPTION([LT_INIT],[win32-dll]) +LT_INIT AC_C_BIGENDIAN AC_C_CONST @@ -37,15 +37,13 @@ AC_C_RESTRICT AC_MSG_CHECKING(for C99 variable-size arrays) -AC_TRY_COMPILE( , [ ++AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[ int foo; foo = 10; int array[foo]; -], -[has_var_arrays=yes;AC_DEFINE([VAR_ARRAYS], [], [Use C99 variable-size arrays]) -], -has_var_arrays=no -) +]])],[has_var_arrays=yes;AC_DEFINE([VAR_ARRAYS], [], [Use C99 variable-size arrays]) +],[has_var_arrays=no +]) AC_MSG_RESULT($has_var_arrays) AC_CHECK_HEADERS([alloca.h getopt.h]) |