From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15480 invoked by alias); 22 Mar 2012 10:07:10 -0000 Received: (qmail 15459 invoked by uid 22791); 22 Mar 2012 10:07:09 -0000 X-SWARE-Spam-Status: No, hits=-5.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_BG,TW_IB,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 22 Mar 2012 10:06:33 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q2MA6AXF025578 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 22 Mar 2012 06:06:10 -0400 Received: from yakj.usersys.redhat.com (dhcp-176-234.mxp.redhat.com [10.32.176.234]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q2MA68mw021484; Thu, 22 Mar 2012 06:06:08 -0400 Message-ID: <4F6AF98F.1000005@redhat.com> Date: Thu, 22 Mar 2012 10:07:00 -0000 From: Paolo Bonzini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1 MIME-Version: 1.0 To: Tristan Gingold CC: Tobias Burnus , GCC Patches , fortran@gcc.gnu.org, Ralf Corsepius , jb@gcc.gnu.org Subject: Re: [Patch V2] libgfortran: do not assume libm References: <20120320094857.GB27039@physik.fu-berlin.de> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2012-03/txt/msg01484.txt.bz2 Il 22/03/2012 09:30, Tristan Gingold ha scritto: > Hi, > > this is version 2 of the patch. > > The initial problem is that libgfortran configure.ac used AC_CHECK_LIB([m]…) to check wether several math functions are available. That doesn't work on VMS, because there is no such things as a libm. > > It seems to me that there are no autoconf macro to check wether a function is available: AC_CHECK_FUNC[S] don't allow to specify additional include files (necessary on VMS as some math functions are renamed through macros), and AC_CHECK_DECL only checks the presence of the declaration (as pointed out by Ralf). > > So I have finally learnt a little bit more about autoconf and added a new file: config/math.m4 (build machinery maintainer cc:) > libgfortran/configure.ac now uses the new GCC_CHECK_MATH_FUNC macro. > > Bootstrapped without gfortran regressions on x86_64-darwin. > > Ok for trunk ? > > (I will submit a follow-up change in libquadmath once this change is approved). > > Tristan. > > config/ > 2012-03-22 Tristan Gingold > > * math.m4: New file. > > libgfortran/ > 2012-03-22 Tristan Gingold > > * configure.ac: Use GCC_CHECK_MATH_FUNC for math functions. > * acinclude.m4: Include ../config/math.m4 > * configure: Regenerate. > * Makefile.in: Regenerate. Ok.