package/libxslt: fix static build
[buildroot-gz.git] / package / at / 0001-configure.ac-convert-AC_TRY_COMPILE-AC_COMPILE_IFELS.patch
blobe4276ac2085393b9168d3107664972c77bc3adf1
1 From e12c96cccab550eda31cf7bb1dedddd3670ffe69 Mon Sep 17 00:00:00 2001
2 From: Marc Kleine-Budde <mkl@pengutronix.de>
3 Date: Tue, 1 Dec 2009 17:22:22 +0100
4 Subject: [PATCH 2/5] configure.ac: convert AC_TRY_COMPILE -> AC_COMPILE_IFELSE
6 Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
7 ---
8 configure.ac | 10 +++++-----
9 1 files changed, 5 insertions(+), 5 deletions(-)
11 diff --git a/configure.ac b/configure.ac
12 index 997a37f..cab80ed 100644
13 --- a/configure.ac
14 +++ b/configure.ac
15 @@ -40,11 +40,11 @@ case "$host" in
16 esac
18 AC_MSG_CHECKING(__attribute__((noreturn)))
19 -AC_TRY_COMPILE([], [void __attribute__((noreturn)) panic(void);],
20 - AC_MSG_RESULT(yes)
21 - AC_DEFINE(HAVE_ATTRIBUTE_NORETURN, 1,
22 - [Define to 1 if compiler supports __attribute__((noreturn))]),
23 - AC_MSG_RESULT(no)
24 +AC_COMPILE_IFELSE(
25 + [AC_LANG_PROGRAM([[]], [[void __attribute__((noreturn)) panic(void);]])],
26 + [AC_MSG_RESULT(yes)
27 + AC_DEFINE(HAVE_ATTRIBUTE_NORETURN, 1, Define to 1 if compiler supports __attribute__((noreturn)))],
28 + [AC_MSG_RESULT(no)]
30 dnl Checks for libraries.
32 --
33 1.6.5.3