From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: tomas@fabula.de Newsgroups: gmane.comp.sysutils.autoconf.general,gmane.lisp.guile.devel Subject: How to replace a function Date: Fri, 7 Mar 2003 13:37:07 +0100 Sender: autoconf-bounces+gnu-autoconf=m.gmane.org@gnu.org Message-ID: <20030307123707.GA8811@www> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047040094 26610 80.91.224.249 (7 Mar 2003 12:28:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 7 Mar 2003 12:28:14 +0000 (UTC) Cc: rm@fabula.de Original-X-From: autoconf-bounces+gnu-autoconf=m.gmane.org@gnu.org Fri Mar 07 13:28:12 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18rGxQ-0006uv-00 for ; Fri, 07 Mar 2003 13:28:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18rGxp-0003PN-00 for gnu-autoconf@m.gmane.org; Fri, 07 Mar 2003 07:28:37 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18rGx5-0003Oj-00 for autoconf@gnu.org; Fri, 07 Mar 2003 07:27:51 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18rGx3-0003NU-00 for autoconf@gnu.org; Fri, 07 Mar 2003 07:27:49 -0500 Original-Received: from [217.22.192.104] (helo=www.elogos.de) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18rGva-0002pp-00; Fri, 07 Mar 2003 07:26:18 -0500 Original-Received: by www.elogos.de (Postfix, from userid 5002) id A420E1407F; Fri, 7 Mar 2003 13:37:09 +0100 (CET) Original-To: autoconf@gnu.org, guile-devel@gnu.org Content-Disposition: inline User-Agent: Mutt/1.3.28i X-BeenThere: autoconf@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Discussion list for the autoconf build system List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: autoconf-bounces+gnu-autoconf=m.gmane.org@gnu.org Xref: main.gmane.org gmane.comp.sysutils.autoconf.general:2288 gmane.lisp.guile.devel:2044 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2044 Hi, lists we are trying to build a guile extension which should link smoothly against 1.6 and 1.7. If possible, we would like to use The Blessed Function (it's scm_c_string2str(), for the record). But alas, 1.6 hasn't got that. It seems that AC_REPLACE_FUNCS is the right macro (first do AC_CHECK_LIB, right?). The problem is that AC_REPLACE_FUNCS will find one version of the Guile library, whereas the version I'm going to link against is the one returned by `guile-config link' or whatever. My question: Is there a canonical way to solve this? I.e. is there a way to tell AC_REPLACE_FUNCS *which* library to look into? Or is it just meant to cope with ``standard system libraries'' and am I to re-invent the wheel and do a tentative compile? Thanks for any hints -- tomas