[librsvg: 5/9] configure: Replace AC_TRY_LINK with AC_LINK_IFELSE
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 5/9] configure: Replace AC_TRY_LINK with AC_LINK_IFELSE
- Date: Mon, 13 Sep 2021 22:42:21 +0000 (UTC)
commit f0fb6fca69f9d32e886c3a38ec69cf2ed951e3e2
Author: Ismael Luceno <ismael iodev co uk>
Date: Sat Sep 11 18:30:31 2021 +0200
configure: Replace AC_TRY_LINK with AC_LINK_IFELSE
AC_TRY_LINK is obsolete.
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/586>
configure.ac | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9239e90c..4b5d5d94 100644
--- a/configure.ac
+++ b/configure.ac
@@ -277,8 +277,10 @@ glib_DEFUN([GLIB_LC_MESSAGES],
[AC_CHECK_HEADERS([locale.h])
AS_IF([test "x$ac_cv_header_locale_h" = xyes], [
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
- [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
- am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
+ [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <locale.h>]],
+ [[return LC_MESSAGES]])],
+ [am_cv_val_LC_MESSAGES=yes],
+ [am_cv_val_LC_MESSAGES=no])])
AS_IF([test "x$am_cv_val_LC_MESSAGES" = xyes], [
AC_DEFINE(HAVE_LC_MESSAGES, 1,
[Define if your <locale.h> file defines LC_MESSAGES.])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]