[gobject-introspection] build: use AC_LINK_IFELSE instead of AC_TRY_LINK
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] build: use AC_LINK_IFELSE instead of AC_TRY_LINK
- Date: Wed, 9 Oct 2013 17:00:50 +0000 (UTC)
commit 00be8a1fb7538c556028a04f7707eee6160387a5
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date: Thu Sep 19 12:39:23 2013 +0200
build: use AC_LINK_IFELSE instead of AC_TRY_LINK
AC_TRY_LINK is obsolete...
configure.ac | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 591b8bf..054328f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -297,11 +297,11 @@ AC_ARG_ENABLE(Bsymbolic,
[SAVED_LDFLAGS="${LDFLAGS}"
AC_MSG_CHECKING([for -Bsymbolic-functions linker flag])
LDFLAGS=-Wl,-Bsymbolic-functions
- AC_TRY_LINK([], [int main (void) { return 0; }],
- AC_MSG_RESULT(yes)
- enable_Bsymbolic=yes,
- AC_MSG_RESULT(no)
- enable_Bsymbolic=no)
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[int main (void) { return 0; }]])],
+ [AC_MSG_RESULT(yes)
+ enable_Bsymbolic=yes],
+ [AC_MSG_RESULT(no)
+ enable_Bsymbolic=no])
LDFLAGS="${SAVED_LDFLAGS}"])
if test "x${enable_Bsymbolic}" = "xyes"; then
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]