From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Douglas Mencken Newsgroups: gmane.lisp.guile.bugs Subject: [patches] three patches for configure.ac (and not only) Date: Tue, 29 Mar 2011 19:52:35 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1301421203 21707 80.91.229.12 (29 Mar 2011 17:53:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2011 17:53:23 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Mar 29 19:53:19 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q4d6U-0006pk-Br for guile-bugs@m.gmane.org; Tue, 29 Mar 2011 19:53:18 +0200 Original-Received: from localhost ([127.0.0.1]:43247 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4d6T-0001kR-SZ for guile-bugs@m.gmane.org; Tue, 29 Mar 2011 13:53:17 -0400 Original-Received: from [140.186.70.92] (port=41676 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4d5q-0001JK-6O for bug-guile@gnu.org; Tue, 29 Mar 2011 13:52:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4d5o-0005Kf-Oq for bug-guile@gnu.org; Tue, 29 Mar 2011 13:52:38 -0400 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:57186) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4d5o-0005KY-Hz for bug-guile@gnu.org; Tue, 29 Mar 2011 13:52:36 -0400 Original-Received: by vws4 with SMTP id 4so453307vws.0 for ; Tue, 29 Mar 2011 10:52:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=9CEhqzww68emvjnOuuEJm/wK+zDdhW86gvtYLdeNh74=; b=HxKPphXRT7tcVBEwUSg3RGYtrJsi2esq1W05Z8St56sZEgRfi5mrDEeoTZiB7X8dNn n+M8xxdGWO2Ktaqp+YswAmObHMN2ZcdReQ8lssRrRLG7o3JUZ/vL55+fYAFk2gxKdBXY RJsHVFpLOHqkkd4PlhdYqiwbdqjE+McIVhfSs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Rthkv0xu+ISSTl18VhP99CZmeaSAf7EDiQVhi6OHcu4OD3nkz/8EmwwI5QhXcjQ6iO gwbUQIB0XPRz4LmEkdWZ2FwXPfEiIwin961PuCcecJRW5lYIaMG5rNDBcTN3tedRzCcl MetH0Ggx0NcWu5o4KFJWdnKug3uBPgYAAvOr0= Original-Received: by 10.220.124.85 with SMTP id t21mr26927vcr.54.1301421155592; Tue, 29 Mar 2011 10:52:35 -0700 (PDT) Original-Received: by 10.220.185.139 with HTTP; Tue, 29 Mar 2011 10:52:35 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.212.41 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5382 Archived-At: Patch #1: ---------------------------------------------------------------------------------------------------- # patch configure.ac to avoid "no AC_LANG_SOURCE call detected in body" warnings # -------- # Old-style code (will issue a warning) # AC_LINK_IFELSE([int main() { return 0; }], # [some=thing], [some=other]) # Wrongly updated code (will still issue a warning) # AC_LINK_IFELSE(AC_LANG_SOURCE([int main() { return 0; }]), # [some=thing], [some=other]) # Correctly updated code # AC_LINK_IFELSE([AC_LANG_SOURCE([int main() { return 0; }])], # [some=thing], [some=other]) # -------- sed -i 's/AC_LANG_PROGRAM/AC_LANG_SOURCE/' ./configure.ac sed -i 's/AC_LINK_IFELSE(AC_LANG_SOURCE/AC_LINK_IFELSE([AC_LANG_SOURCE/' ./configure.ac sed -i 's/]]),/]])],/' ./configure.ac sed -i 's/\[AC_COMPILE_IFELSE(\[#include/[AC_COMPILE_IFELSE([AC_LANG_SOURCE([#include/' ./configure.ac sed -i 's/guile_cv_need_braces_on_pthread_once_init=yes])])/guile_cv_need_braces_on_pthread_once_init=yes])])])/' ./configure.ac sed -i 's/guile_cv_need_braces_on_pthread_mutex_initializer=yes])])/guile_cv_need_braces_on_pthread_mutex_initializer=yes])])])/' ./configure.ac ---------------------------------------------------------------------------------------------------- Patch #2: ---------------------------------------------------------------------------------------------------- # avoid "AM_GNU_GETTEXT is used, but not AM_GNU_GETTEXT_VERSION" warning # -------- # The AM_GNU_GETTEXT_VERSION macro declares the version number of the GNU gettext infrastructure that is used by the package. # The use of this macro is optional; only the autopoint program makes use of it. # -------- ##sed -i 's/AM_GNU_GETTEXT(\[external].*/AM_GNU_GETTEXT_VERSION([0.18])/' ./configure.ac sed -i 's/AM_GNU_GETTEXT(\[external].*/##AM_GNU_GETTEXT([external])/' ./configure.ac ---------------------------------------------------------------------------------------------------- Patch #3 (the most important one, it does solve a build error): # fangism's (guru from #guile@irc.freenode.net) patch for configure.ac and meta/uninstalled-env.in # to fix the dynamic link issue (libguile/.libs/lt-guile: can't load library 'libguile-2.0.so.22') Here: http://ftp.osuosl.org/pub/manulix/scripts/build-scripts/PPFILES/ppfiles-guile/shlibpath_var.patch