From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 628 invoked by alias); 27 Oct 2007 14:22:31 -0000 Received: (qmail 603 invoked by uid 22791); 27 Oct 2007 14:22:30 -0000 X-Spam-Check-By: sourceware.org Received: from igw3.br.ibm.com (HELO igw3.br.ibm.com) (32.104.18.26) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 27 Oct 2007 14:22:22 +0000 Received: from mailhub3.br.ibm.com (unknown [9.18.232.110]) by igw3.br.ibm.com (Postfix) with ESMTP id 99958390032 for ; Sat, 27 Oct 2007 12:15:46 -0200 (BRDT) Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.18.232.46]) by mailhub3.br.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l9REMIfK3076276 for ; Sat, 27 Oct 2007 12:22:18 -0200 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l9REMINH021605 for ; Sat, 27 Oct 2007 11:22:18 -0300 Received: from [9.12.235.45] ([9.12.235.45]) by d24av01.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l9REMGUh021592; Sat, 27 Oct 2007 11:22:17 -0300 Subject: [patch/libdecnumber] Remove GNUism from Makefile.in From: Thiago Jung Bauermann To: gcc-patches@gcc.gnu.org Cc: gdb-patches Content-Type: multipart/mixed; boundary="=-KH0kInsUjDXCgwvPON2W" Date: Sat, 27 Oct 2007 19:16:00 -0000 Message-Id: <1193494933.5787.179.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-10/txt/msg00743.txt.bz2 --=-KH0kInsUjDXCgwvPON2W Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 499 Hi, The attached patch permits libdecnumber to be compiled by a non-GNU make. I realise that gcc requires GNU make for the build, but recently libdecnumber has been incorporated in GDB to enable DFP debugging, and GDB doesn't require GNU make. The change is to substitute the "ifeq" condition to determine inclusion of BID-related objects in the library by a variable which is set by the configure script. Is this ok? -- []'s Thiago Jung Bauermann Software Engineer IBM Linux Technology Center --=-KH0kInsUjDXCgwvPON2W Content-Disposition: attachment; filename=remove-gnuism.diff Content-Type: text/x-patch; name=remove-gnuism.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 1894 2007-10-26 Thiago Jung Bauermann * configure.ac: Add ADDITIONAL_OBJS variable. * Makefile.in (bid_OBS): New. (libdecnumber_a_OBJS): Add ADDITIONAL_OBJS, remove condition on enable_decimal_float. * configure: Regenerate. Index: libdecnumber/configure.ac =================================================================== --- libdecnumber.orig/configure.ac 2007-10-26 18:15:47.000000000 -0200 +++ libdecnumber/configure.ac 2007-10-26 18:16:02.000000000 -0200 @@ -113,8 +113,16 @@ if test x$enable_decimal_float = xyes -o esac fi +# If BID is being used, additional objects should be linked in. +if test x$enable_decimal_float = xbid; then + ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(bid_OBJS)" +else + ADDITIONAL_OBJS= +fi + AC_MSG_RESULT($enable_decimal_float) AC_SUBST(enable_decimal_float) +AC_SUBST(ADDITIONAL_OBJS) AC_C_BIGENDIAN Index: libdecnumber/Makefile.in =================================================================== --- libdecnumber.orig/Makefile.in 2007-10-26 18:17:04.000000000 -0200 +++ libdecnumber/Makefile.in 2007-10-26 18:24:59.000000000 -0200 @@ -50,19 +50,18 @@ libdir = @libdir@ localedir = $(datadir)/locale prefix = @prefix@ +ADDITIONAL_OBJS = @ADDITIONAL_OBJS@ + enable_decimal_float= @enable_decimal_float@ INCLUDES = -I$(srcdir) -I. ALL_CFLAGS = $(CFLAGS) $(WARN_CFLAGS) $(INCLUDES) $(CPPFLAGS) -libdecnumber_a_OBJS = decNumber.o decContext.o \ - decimal32.o decimal64.o decimal128.o +bid_OBJS = bid2dpd_dpd2bid.o host-ieee32.o host-ieee64.o host-ieee128.o -ifeq ($(enable_decimal_float),bid) -libdecnumber_a_OBJS+=bid2dpd_dpd2bid.o host-ieee32.o host-ieee64.o \ - host-ieee128.o -endif +libdecnumber_a_OBJS = decNumber.o decContext.o \ + decimal32.o decimal64.o decimal128.o $(ADDITIONAL_OBJS) libdecnumber_a_SOURCES = decContext.c decContext.h decDPD.h \ decNumber.c decNumber.h decNumberLocal.h \ --=-KH0kInsUjDXCgwvPON2W--