From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.comp.sysutils.autoconf.general,gmane.lisp.guile.devel Subject: Re: How to replace a function Date: Fri, 07 Mar 2003 10:44:34 -0600 Sender: autoconf-bounces+gnu-autoconf=m.gmane.org@gnu.org Message-ID: <873clzxh1p.fsf@raven.i.defaultvalue.org> References: <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 1047056201 4974 80.91.224.249 (7 Mar 2003 16:56:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 7 Mar 2003 16:56:41 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: autoconf-bounces+gnu-autoconf=m.gmane.org@gnu.org Fri Mar 07 17:56:38 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 18rL9C-0001Hq-00 for ; Fri, 07 Mar 2003 17:56:38 +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 18rL5d-0005t6-07 for gnu-autoconf@m.gmane.org; Fri, 07 Mar 2003 11:52:57 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18rKzD-0004FX-00 for autoconf@gnu.org; Fri, 07 Mar 2003 11:46:19 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18rKz7-00049T-00 for autoconf@gnu.org; Fri, 07 Mar 2003 11:46:15 -0500 Original-Received: from dsl093-098-016.wdc1.dsl.speakeasy.net ([66.93.98.16] helo=defaultvalue.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18rKxY-0003Av-00; Fri, 07 Mar 2003 11:44:36 -0500 Original-Received: from raven.i.defaultvalue.org (raven.i.defaultvalue.org [192.168.1.7]) by defaultvalue.org (Postfix) with ESMTP id 86EE177C; Fri, 7 Mar 2003 10:44:34 -0600 (CST) Original-Received: by raven.i.defaultvalue.org (Postfix, from userid 1000) id 80FC4D9F11; Fri, 7 Mar 2003 10:44:34 -0600 (CST) Original-To: tomas@fabula.de In-Reply-To: <20030307123707.GA8811@www> (tomas@fabula.de's message of "Fri, 7 Mar 2003 13:37:07 +0100") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) Original-cc: autoconf@gnu.org Original-cc: rm@fabula.de 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:2290 gmane.lisp.guile.devel:2052 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2052 tomas@fabula.de writes: > 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?). One other option. Could you you use something like this in a C file instead? #ifdef SCM_MAJOR_VERSION \ && (SCM_MAJOR_VERSION == 1) \ && (SCM_MINOR_VERSION == 6) # include "augment-1.6.c" #endif and add something similar in the header(s) for the missing prototypes? -- Rob Browning rlb @defaultvalue.org, @linuxdevel.com, and @debian.org Previously @cs.utexas.edu GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4