autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_FC_LIBRARY_LDFLAGS


From: Ralf Wildenhues
Subject: Re: AC_FC_LIBRARY_LDFLAGS
Date: Thu, 5 Jan 2006 11:10:59 +0100
User-agent: Mutt/1.5.11

* Ralf Wildenhues wrote on Mon, Dec 12, 2005 at 04:06:09PM CET:
> * Ralf Wildenhues wrote on Sat, Dec 03, 2005 at 12:22:38PM CET:
> > * Christopher Hulbert wrote on Fri, Dec 02, 2005 at 07:12:02PM CET:
> > > I couldn't find any other solution to this, but when getting the
> > > library flags of pgf90 with -Mconcur or -Mipa (Runs pgipa) there is an
> 
> I have tested this patch myself (should've said that right away, sorry).
> Is it ok to apply?

No comments, so I applied this.

Cheers,
Ralf

        * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
        singly- or doubly-quoted arguments to `-cmdline', `-ignore',
        `-def', for the benefit of Portland `pgf90 -Mipa'.
        Reported by Christopher Hulbert <address@hidden>.

Index: lib/autoconf/fortran.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/fortran.m4,v
retrieving revision 1.198
diff -u -r1.198 fortran.m4
--- lib/autoconf/fortran.m4     27 Oct 2005 06:16:04 -0000      1.198
+++ lib/autoconf/fortran.m4     5 Jan 2006 10:10:35 -0000
@@ -1,6 +1,6 @@
 # This file is part of Autoconf.                       -*- Autoconf -*-
 # Fortran languages support.
-# Copyright (C) 2001, 2003, 2004, 2005
+# Copyright (C) 2001, 2003, 2004, 2005, 2006
 # Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
@@ -558,10 +558,11 @@
   # Portland Group compiler has singly- or doubly-quoted -cmdline argument
   # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
   # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
-  *-cmdline\ \'*)
-    ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output | 
sed "s/-cmdline  *'[[^']]*'/ /g"` ;;
-  *-cmdline*)
-    ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output | 
sed 's/-cmdline  *"[[^"]]*"/ /g'` ;;
+  *-cmdline\ * | *-ignore\ * | *-def\ *)
+    ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output | 
sed "\
+        s/-cmdline  *'[[^']]*'/ /g; s/-cmdline  *\"[[^\"]]*\"/ /g
+        s/-ignore  *'[[^']]*'/ /g; s/-ignore  *\"[[^\"]]*\"/ /g
+        s/-def  *'[[^']]*'/ /g; s/-def  *\"[[^\"]]*\"/ /g"` ;;
 
   # If we are using Cray Fortran then delete quotes.
   *cft90*)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]