autoconf-patches
[Top][All Lists]
Advanced

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

02-ac-lang-program-fortran-77.patch


From: Akim Demaille
Subject: 02-ac-lang-program-fortran-77.patch
Date: 07 Nov 2000 18:54:20 +0100
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

Index: ChangeLog
from  Akim Demaille  <address@hidden>
        * aclang.m4 (AC_LANG_PROGRAM(Fortran 77): Complain about $1 having
        a value.
        Reported by Paul Martinolich.
        (_AC_LANG_COMPILER_GNU): Pass the test as the body of
        AC_LANG_PROGRAM, not the prologue.

2000-11-07  Akim Demaille  <address@hidden>

Index: aclang.m4
===================================================================
RCS file: /cvs/autoconf/aclang.m4,v
retrieving revision 1.82
diff -u -u -r1.82 aclang.m4
--- aclang.m4 2000/11/07 14:16:54 1.82
+++ aclang.m4 2000/11/07 17:58:25
@@ -466,7 +466,9 @@
 # -----------------------------------------------
 # Yes, we discard the PROLOGUE.
 m4_define([AC_LANG_PROGRAM(Fortran 77)],
-[      program main
+[ifval([$1],
+       [m4_warn([syntax], [$0: first argument is ignored: $1])])dnl
+      program main
 $2
       end])
 
@@ -549,7 +551,7 @@
 m4_define([_AC_LANG_COMPILER_GNU],
 [AC_CACHE_CHECK([whether we are using the GNU _AC_LANG compiler],
                 [ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu],
-[_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifndef __GNUC__
+[_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef __GNUC__
   choke me
 #endif
 ]])],



reply via email to

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