From 75476493f480e8fd40df92f8ab3a942d7fd1a9ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Mon, 17 Oct 2011 01:22:21 +0100 Subject: [PATCH] configure.ac: Replace deprecated AC_TRY_COMPILE macro --- configure.ac | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 6c5d9bc74a..7794e1db29 100644 --- a/configure.ac +++ b/configure.ac @@ -558,9 +558,12 @@ AC_MSG_RESULT($have_pango_1_32) CFLAGS="$PANGOCAIRO_CFLAGS $CFLAGS" AC_MSG_CHECKING([if Pango is built with a recent fontconfig]) -AC_TRY_COMPILE([#include ], - [FcObjectSet *os; os = FcObjectSetBuild (FC_FAMILY, FC_WIDTH);], - fontconfig_ok=yes, fontconfig_ok=no) +AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include ]], + [[FcObjectSet *os; os = FcObjectSetBuild (FC_FAMILY, FC_WIDTH);]])], + [fontconfig_ok=yes], + [fontconfig_ok=no]) AC_MSG_RESULT($fontconfig_ok) CFLAGS=$gimp_save_CFLAGS @@ -905,8 +908,12 @@ AC_SUBST(SYMPREFIX) if test "x$os_win32" != xyes; then AC_MSG_CHECKING([fd_set and sys/select]) - AC_TRY_COMPILE([#include ], - [fd_set readMask, writeMask;], gimp_ok=yes, gimp_ok=no) + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include ]], + [[fd_set readMask, writeMask;]])], + [gimp_ok=yes], + [gimp_ok=no]) if test "x$gimp_ok" = xno; then AC_EGREP_HEADER(fd_mask, sys/select.h, gimp_ok=yes) if test "x$gimp_ok" = xyes; then