[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] branch branch_release-1-8 updated: [build slog] Use AC_L

From: Thien-Thi Nguyen
Subject: [Guile-commits] branch branch_release-1-8 updated: [build slog] Use AC_LINK_IFELSE, AC_LANG_PROGRAM
Date: Mon, 08 Mar 2021 04:03:06 -0500

This is an automated email from the git hooks/post-receive script.

ttn pushed a commit to branch branch_release-1-8
in repository guile.

The following commit(s) were added to refs/heads/branch_release-1-8 by this 
     new 7ac327c  [build slog] Use AC_LINK_IFELSE, AC_LANG_PROGRAM
7ac327c is described below

commit 7ac327c9759e15f699e2752f506bdb8af4bad800
Author: Thien-Thi Nguyen <>
AuthorDate: Mon Mar 8 04:00:58 2021 -0500

    [build slog] Use AC_LINK_IFELSE, AC_LANG_PROGRAM
    * guile-readline/ (ac_cv_var_rl_getc_function):, instead of ‘AC_TRY_LINK’.
 guile-readline/ | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/guile-readline/ b/guile-readline/
index c17bee6..65a99fe 100644
--- a/guile-readline/
+++ b/guile-readline/
@@ -54,12 +54,14 @@ AC_CHECK_FUNCS(rl_get_keymap)
 AC_CACHE_CHECK([for rl_getc_function pointer in readline],
-                [AC_TRY_LINK([
+                [AC_LINK_IFELSE([AC_LANG_PROGRAM([[
 #include <stdio.h>
-#include <readline/readline.h>],
-                             [printf ("%ld", (long) rl_getc_function)],
-                             [ac_cv_var_rl_getc_function=yes],
-                             [ac_cv_var_rl_getc_function=no])])
+#include <readline/readline.h>
+printf ("%ld", (long) rl_getc_function)
+                                 [ac_cv_var_rl_getc_function=yes],
+                                 [ac_cv_var_rl_getc_function=no])])
 if test "${ac_cv_var_rl_getc_function}" = "yes"; then
     [Define if your readline library has the rl_getc_function variable.])

reply via email to

[Prev in Thread] Current Thread [Next in Thread]