]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
authorAkim Demaille <akim@epita.fr>
Tue, 17 Jul 2001 16:30:20 +0000 (16:30 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 17 Jul 2001 16:30:20 +0000 (16:30 +0000)
Autoconfy: $1 = action-if-found, $2 = action-if-not-found.

ChangeLog
aclang.m4
doc/autoconf.texi
lib/autoconf/c.m4
lib/autoconf/fortran.m4
lib/autoconf/lang.m4
tests/aclocal.m4

index e8ec87dec708a113a25ab18775308896c53459d2..4e0db936ee2fa0b8d767ebbcb537f05388066cfc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-07-17  Akim Demaille  <akim@epita.fr>
+
+       * aclang.m4 (AC_F77_DUMMY_MAIN): Let the interface be more
+       Autoconfy: $1 = action-if-found, $2 = action-if-not-found.
+
 2001-07-17  Akim Demaille  <akim@epita.fr>
 
        The runtime test for AC_FUNC_GETPGRP fails when prototypes are
index 2f1efa8cd6c9ba3bdbf70dadaf010eb9595e3df6..4a5b9e266ae0f42af445bdb9b730b1340c685402 100644 (file)
--- a/aclang.m4
+++ b/aclang.m4
@@ -1925,32 +1925,33 @@ AC_LANG_POP(Fortran 77)dnl
 ])# AC_F77_LIBRARY_LDFLAGS
 
 
-# AC_F77_DUMMY_MAIN([ACTION-IF-FAIL], [ACTION-IF-NONE], [ACTION-IF-FOUND])
-# ------------------------------------------------------------------------
+# AC_F77_DUMMY_MAIN([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
+# -----------------------------------------------------------
+#
 # Detect name of dummy main routine required by the Fortran libraries,
 # (if any) and define F77_DUMMY_MAIN to this name (which should be
 # used for a dummy declaration, if it is defined).  On some systems,
 # linking a C program to the Fortran library does not work unless you
 # supply a dummy function called something like MAIN__.
 #
-# Execute ACTION-IF-FAIL if no way of successfully linking a C program
-# with the F77 libs is found; default to exiting with an error message.
-# Execute ACTION-IF-NONE if no dummy main is required for linking.
-# Execute ACTION-IF-FOUND if a dummy routine name is found (default to
-# defining F77_DUMMY_MAIN).
+# Execute ACTION-IF-NOT-FOUND if no way of successfully linking a C
+# program with the F77 libs is found; default to exiting with an error
+# message.  Execute ACTION-IF-FOUND if a dummy routine name is needed
+# and found or if it is not needed (default to defining F77_DUMMY_MAIN
+# when needed).
 #
 # What is technically happening is that the Fortran libraries provide
-# their own main() function, which usually initializes Fortran I/O
-# and similar stuff, and then calls MAIN__, which is the entry point
-# of your program.  Usually, a C program will override this with its
-# own main() routine, but the linker sometimes complain if you don't
+# their own main() function, which usually initializes Fortran I/O and
+# similar stuff, and then calls MAIN__, which is the entry point of
+# your program.  Usually, a C program will override this with its own
+# main() routine, but the linker sometimes complain if you don't
 # provide a dummy (never-called) MAIN__ routine anyway.
 #
 # Of course, programs that want to allow Fortran subroutines to do
 # I/O, etcetera, should call their main routine MAIN__() (or whatever)
-# instead of main().   A separate autoconf test (AC_F77_MAIN) checks
-# for the routine to use in this case (since the semantics of the
-# test are slightly different).  To link to e.g. purely numerical
+# instead of main().  A separate autoconf test (AC_F77_MAIN) checks
+# for the routine to use in this case (since the semantics of the test
+# are slightly different).  To link to e.g. purely numerical
 # libraries, this is normally not necessary, however, and most C/C++
 # programs are reluctant to turn over so much control to Fortran.  =)
 #
@@ -1958,7 +1959,6 @@ AC_LANG_POP(Fortran 77)dnl
 #   MAIN__ (g77, MAIN__ required on some systems; IRIX, MAIN__ optional)
 #   MAIN_, __main (SunOS)
 #   MAIN _MAIN __MAIN main_ main__ _main (we follow DDD and try these too)
-#
 AC_DEFUN([AC_F77_DUMMY_MAIN],
 [AC_REQUIRE([AC_F77_LIBRARY_LDFLAGS])dnl
 AC_CACHE_CHECK([for dummy main to link with Fortran 77 libraries],
@@ -1968,7 +1968,9 @@ AC_CACHE_CHECK([for dummy main to link with Fortran 77 libraries],
  LIBS="$LIBS $FLIBS"
 
  # First, try linking without a dummy main:
- AC_TRY_LINK([],[],ac_cv_f77_dummy_main=none,ac_cv_f77_dummy_main=unknown)
+ AC_TRY_LINK([], [],
+             ac_cv_f77_dummy_main=none,
+             ac_cv_f77_dummy_main=unknown)
 
  if test $ac_cv_f77_dummy_main = unknown; then
    for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
@@ -1980,16 +1982,16 @@ AC_CACHE_CHECK([for dummy main to link with Fortran 77 libraries],
  LIBS=$ac_f77_dm_save_LIBS
  AC_LANG_POP(C)dnl
 ])
-if test $ac_cv_f77_dummy_main = unknown; then
-  m4_default([$1],[AC_MSG_ERROR([Linking to Fortran libraries from C fails.])])
-elif test $ac_cv_f77_dummy_main = none; then
-  m4_default([$2],[:])
-else
-  m4_default([$3],
-    [AC_DEFINE_UNQUOTED([F77_DUMMY_MAIN], $ac_cv_f77_dummy_main,
-       [Define to dummy `main' function (if any) required to link to
-        the Fortran 77 libraries.])])
-fi
+F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
+AS_IF([test "$F77_DUMMY_MAIN" != unknown],
+      [m4_default([$1],
+[if test $F77_DUMMY_MAIN != none; then
+  AC_DEFINE_UNQUOTED([F77_DUMMY_MAIN], $F77_DUMMY_MAIN,
+                     [Define to dummy `main' function (if any) required to
+                      link to the Fortran 77 libraries.])
+fi])],
+      [m4_default([$2],
+                [AC_MSG_ERROR([Linking to Fortran libraries from C fails.])])])
 ])# AC_F77_DUMMY_MAIN
 
 
index e5f28b194a388fdc3c76f407fc2f2456f7319c8a..41390d51142beba12f141596a3ceb5ff760f91bf 100644 (file)
@@ -4735,7 +4735,7 @@ also be necessary to link C/C++ with Fortran; see below.
 @end defmac
 
 
-@defmac AC_F77_DUMMY_MAIN (@ovar{action-if-fail}, @ovar{action-if-none}, @ovar{action-if-found})
+@defmac AC_F77_DUMMY_MAIN (@ovar{action-if-found}, @ovar{action-if-not-found})
 @maindex F77_DUMMY_MAIN
 @cvindex F77_DUMMY_MAIN
 With many compilers, the Fortran libraries detected by
@@ -4750,14 +4750,13 @@ users often prefer to provide their own @code{main} and skip the Fortran
 library initializations.  In this case, however, one may still need to
 provide a dummy @code{MAIN__} routine in order to prevent linking errors
 on some systems.  @code{AC_F77_DUMMY_MAIN} detects whether any such
-routine is @emph{required} for linking, and what its name is.
-
-If it cannot figure out how to link successfully, @code{action-if-fail}
-is executed, with the default action being to exit with an error
-message.  @code{action-if-none} is executed if no dummy main is needed
-(default: no action).  @code{action-if-found} is executed if a dummy
-main is required; the default action is to define @code{F77_DUMMY_MAIN}
-to the name of this required routine (e.g. @code{MAIN__}).
+routine is @emph{required} for linking, and what its name is; the shell
+variable @code{F77_DUMMY_MAIN} holds this name, @code{unknown} when no
+solution was found, and @code{none} when no such dummy main is needed.
+
+By default, @var{action-if-found} defines @code{F77_DUMMY_MAIN} to the
+name of this routine (e.g. @code{MAIN__}) @emph{if} it is required.
+@ovar{action-if-not-found} defaults to exiting with an error.
 
 In order to link with Fortran routines, the user's C/C++ program should
 then include the following code to define the dummy main if it is
index 2f1efa8cd6c9ba3bdbf70dadaf010eb9595e3df6..4a5b9e266ae0f42af445bdb9b730b1340c685402 100644 (file)
@@ -1925,32 +1925,33 @@ AC_LANG_POP(Fortran 77)dnl
 ])# AC_F77_LIBRARY_LDFLAGS
 
 
-# AC_F77_DUMMY_MAIN([ACTION-IF-FAIL], [ACTION-IF-NONE], [ACTION-IF-FOUND])
-# ------------------------------------------------------------------------
+# AC_F77_DUMMY_MAIN([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
+# -----------------------------------------------------------
+#
 # Detect name of dummy main routine required by the Fortran libraries,
 # (if any) and define F77_DUMMY_MAIN to this name (which should be
 # used for a dummy declaration, if it is defined).  On some systems,
 # linking a C program to the Fortran library does not work unless you
 # supply a dummy function called something like MAIN__.
 #
-# Execute ACTION-IF-FAIL if no way of successfully linking a C program
-# with the F77 libs is found; default to exiting with an error message.
-# Execute ACTION-IF-NONE if no dummy main is required for linking.
-# Execute ACTION-IF-FOUND if a dummy routine name is found (default to
-# defining F77_DUMMY_MAIN).
+# Execute ACTION-IF-NOT-FOUND if no way of successfully linking a C
+# program with the F77 libs is found; default to exiting with an error
+# message.  Execute ACTION-IF-FOUND if a dummy routine name is needed
+# and found or if it is not needed (default to defining F77_DUMMY_MAIN
+# when needed).
 #
 # What is technically happening is that the Fortran libraries provide
-# their own main() function, which usually initializes Fortran I/O
-# and similar stuff, and then calls MAIN__, which is the entry point
-# of your program.  Usually, a C program will override this with its
-# own main() routine, but the linker sometimes complain if you don't
+# their own main() function, which usually initializes Fortran I/O and
+# similar stuff, and then calls MAIN__, which is the entry point of
+# your program.  Usually, a C program will override this with its own
+# main() routine, but the linker sometimes complain if you don't
 # provide a dummy (never-called) MAIN__ routine anyway.
 #
 # Of course, programs that want to allow Fortran subroutines to do
 # I/O, etcetera, should call their main routine MAIN__() (or whatever)
-# instead of main().   A separate autoconf test (AC_F77_MAIN) checks
-# for the routine to use in this case (since the semantics of the
-# test are slightly different).  To link to e.g. purely numerical
+# instead of main().  A separate autoconf test (AC_F77_MAIN) checks
+# for the routine to use in this case (since the semantics of the test
+# are slightly different).  To link to e.g. purely numerical
 # libraries, this is normally not necessary, however, and most C/C++
 # programs are reluctant to turn over so much control to Fortran.  =)
 #
@@ -1958,7 +1959,6 @@ AC_LANG_POP(Fortran 77)dnl
 #   MAIN__ (g77, MAIN__ required on some systems; IRIX, MAIN__ optional)
 #   MAIN_, __main (SunOS)
 #   MAIN _MAIN __MAIN main_ main__ _main (we follow DDD and try these too)
-#
 AC_DEFUN([AC_F77_DUMMY_MAIN],
 [AC_REQUIRE([AC_F77_LIBRARY_LDFLAGS])dnl
 AC_CACHE_CHECK([for dummy main to link with Fortran 77 libraries],
@@ -1968,7 +1968,9 @@ AC_CACHE_CHECK([for dummy main to link with Fortran 77 libraries],
  LIBS="$LIBS $FLIBS"
 
  # First, try linking without a dummy main:
- AC_TRY_LINK([],[],ac_cv_f77_dummy_main=none,ac_cv_f77_dummy_main=unknown)
+ AC_TRY_LINK([], [],
+             ac_cv_f77_dummy_main=none,
+             ac_cv_f77_dummy_main=unknown)
 
  if test $ac_cv_f77_dummy_main = unknown; then
    for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
@@ -1980,16 +1982,16 @@ AC_CACHE_CHECK([for dummy main to link with Fortran 77 libraries],
  LIBS=$ac_f77_dm_save_LIBS
  AC_LANG_POP(C)dnl
 ])
-if test $ac_cv_f77_dummy_main = unknown; then
-  m4_default([$1],[AC_MSG_ERROR([Linking to Fortran libraries from C fails.])])
-elif test $ac_cv_f77_dummy_main = none; then
-  m4_default([$2],[:])
-else
-  m4_default([$3],
-    [AC_DEFINE_UNQUOTED([F77_DUMMY_MAIN], $ac_cv_f77_dummy_main,
-       [Define to dummy `main' function (if any) required to link to
-        the Fortran 77 libraries.])])
-fi
+F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
+AS_IF([test "$F77_DUMMY_MAIN" != unknown],
+      [m4_default([$1],
+[if test $F77_DUMMY_MAIN != none; then
+  AC_DEFINE_UNQUOTED([F77_DUMMY_MAIN], $F77_DUMMY_MAIN,
+                     [Define to dummy `main' function (if any) required to
+                      link to the Fortran 77 libraries.])
+fi])],
+      [m4_default([$2],
+                [AC_MSG_ERROR([Linking to Fortran libraries from C fails.])])])
 ])# AC_F77_DUMMY_MAIN
 
 
index 2f1efa8cd6c9ba3bdbf70dadaf010eb9595e3df6..4a5b9e266ae0f42af445bdb9b730b1340c685402 100644 (file)
@@ -1925,32 +1925,33 @@ AC_LANG_POP(Fortran 77)dnl
 ])# AC_F77_LIBRARY_LDFLAGS
 
 
-# AC_F77_DUMMY_MAIN([ACTION-IF-FAIL], [ACTION-IF-NONE], [ACTION-IF-FOUND])
-# ------------------------------------------------------------------------
+# AC_F77_DUMMY_MAIN([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
+# -----------------------------------------------------------
+#
 # Detect name of dummy main routine required by the Fortran libraries,
 # (if any) and define F77_DUMMY_MAIN to this name (which should be
 # used for a dummy declaration, if it is defined).  On some systems,
 # linking a C program to the Fortran library does not work unless you
 # supply a dummy function called something like MAIN__.
 #
-# Execute ACTION-IF-FAIL if no way of successfully linking a C program
-# with the F77 libs is found; default to exiting with an error message.
-# Execute ACTION-IF-NONE if no dummy main is required for linking.
-# Execute ACTION-IF-FOUND if a dummy routine name is found (default to
-# defining F77_DUMMY_MAIN).
+# Execute ACTION-IF-NOT-FOUND if no way of successfully linking a C
+# program with the F77 libs is found; default to exiting with an error
+# message.  Execute ACTION-IF-FOUND if a dummy routine name is needed
+# and found or if it is not needed (default to defining F77_DUMMY_MAIN
+# when needed).
 #
 # What is technically happening is that the Fortran libraries provide
-# their own main() function, which usually initializes Fortran I/O
-# and similar stuff, and then calls MAIN__, which is the entry point
-# of your program.  Usually, a C program will override this with its
-# own main() routine, but the linker sometimes complain if you don't
+# their own main() function, which usually initializes Fortran I/O and
+# similar stuff, and then calls MAIN__, which is the entry point of
+# your program.  Usually, a C program will override this with its own
+# main() routine, but the linker sometimes complain if you don't
 # provide a dummy (never-called) MAIN__ routine anyway.
 #
 # Of course, programs that want to allow Fortran subroutines to do
 # I/O, etcetera, should call their main routine MAIN__() (or whatever)
-# instead of main().   A separate autoconf test (AC_F77_MAIN) checks
-# for the routine to use in this case (since the semantics of the
-# test are slightly different).  To link to e.g. purely numerical
+# instead of main().  A separate autoconf test (AC_F77_MAIN) checks
+# for the routine to use in this case (since the semantics of the test
+# are slightly different).  To link to e.g. purely numerical
 # libraries, this is normally not necessary, however, and most C/C++
 # programs are reluctant to turn over so much control to Fortran.  =)
 #
@@ -1958,7 +1959,6 @@ AC_LANG_POP(Fortran 77)dnl
 #   MAIN__ (g77, MAIN__ required on some systems; IRIX, MAIN__ optional)
 #   MAIN_, __main (SunOS)
 #   MAIN _MAIN __MAIN main_ main__ _main (we follow DDD and try these too)
-#
 AC_DEFUN([AC_F77_DUMMY_MAIN],
 [AC_REQUIRE([AC_F77_LIBRARY_LDFLAGS])dnl
 AC_CACHE_CHECK([for dummy main to link with Fortran 77 libraries],
@@ -1968,7 +1968,9 @@ AC_CACHE_CHECK([for dummy main to link with Fortran 77 libraries],
  LIBS="$LIBS $FLIBS"
 
  # First, try linking without a dummy main:
- AC_TRY_LINK([],[],ac_cv_f77_dummy_main=none,ac_cv_f77_dummy_main=unknown)
+ AC_TRY_LINK([], [],
+             ac_cv_f77_dummy_main=none,
+             ac_cv_f77_dummy_main=unknown)
 
  if test $ac_cv_f77_dummy_main = unknown; then
    for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
@@ -1980,16 +1982,16 @@ AC_CACHE_CHECK([for dummy main to link with Fortran 77 libraries],
  LIBS=$ac_f77_dm_save_LIBS
  AC_LANG_POP(C)dnl
 ])
-if test $ac_cv_f77_dummy_main = unknown; then
-  m4_default([$1],[AC_MSG_ERROR([Linking to Fortran libraries from C fails.])])
-elif test $ac_cv_f77_dummy_main = none; then
-  m4_default([$2],[:])
-else
-  m4_default([$3],
-    [AC_DEFINE_UNQUOTED([F77_DUMMY_MAIN], $ac_cv_f77_dummy_main,
-       [Define to dummy `main' function (if any) required to link to
-        the Fortran 77 libraries.])])
-fi
+F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
+AS_IF([test "$F77_DUMMY_MAIN" != unknown],
+      [m4_default([$1],
+[if test $F77_DUMMY_MAIN != none; then
+  AC_DEFINE_UNQUOTED([F77_DUMMY_MAIN], $F77_DUMMY_MAIN,
+                     [Define to dummy `main' function (if any) required to
+                      link to the Fortran 77 libraries.])
+fi])],
+      [m4_default([$2],
+                [AC_MSG_ERROR([Linking to Fortran libraries from C fails.])])])
 ])# AC_F77_DUMMY_MAIN
 
 
index 2f1efa8cd6c9ba3bdbf70dadaf010eb9595e3df6..4a5b9e266ae0f42af445bdb9b730b1340c685402 100644 (file)
@@ -1925,32 +1925,33 @@ AC_LANG_POP(Fortran 77)dnl
 ])# AC_F77_LIBRARY_LDFLAGS
 
 
-# AC_F77_DUMMY_MAIN([ACTION-IF-FAIL], [ACTION-IF-NONE], [ACTION-IF-FOUND])
-# ------------------------------------------------------------------------
+# AC_F77_DUMMY_MAIN([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
+# -----------------------------------------------------------
+#
 # Detect name of dummy main routine required by the Fortran libraries,
 # (if any) and define F77_DUMMY_MAIN to this name (which should be
 # used for a dummy declaration, if it is defined).  On some systems,
 # linking a C program to the Fortran library does not work unless you
 # supply a dummy function called something like MAIN__.
 #
-# Execute ACTION-IF-FAIL if no way of successfully linking a C program
-# with the F77 libs is found; default to exiting with an error message.
-# Execute ACTION-IF-NONE if no dummy main is required for linking.
-# Execute ACTION-IF-FOUND if a dummy routine name is found (default to
-# defining F77_DUMMY_MAIN).
+# Execute ACTION-IF-NOT-FOUND if no way of successfully linking a C
+# program with the F77 libs is found; default to exiting with an error
+# message.  Execute ACTION-IF-FOUND if a dummy routine name is needed
+# and found or if it is not needed (default to defining F77_DUMMY_MAIN
+# when needed).
 #
 # What is technically happening is that the Fortran libraries provide
-# their own main() function, which usually initializes Fortran I/O
-# and similar stuff, and then calls MAIN__, which is the entry point
-# of your program.  Usually, a C program will override this with its
-# own main() routine, but the linker sometimes complain if you don't
+# their own main() function, which usually initializes Fortran I/O and
+# similar stuff, and then calls MAIN__, which is the entry point of
+# your program.  Usually, a C program will override this with its own
+# main() routine, but the linker sometimes complain if you don't
 # provide a dummy (never-called) MAIN__ routine anyway.
 #
 # Of course, programs that want to allow Fortran subroutines to do
 # I/O, etcetera, should call their main routine MAIN__() (or whatever)
-# instead of main().   A separate autoconf test (AC_F77_MAIN) checks
-# for the routine to use in this case (since the semantics of the
-# test are slightly different).  To link to e.g. purely numerical
+# instead of main().  A separate autoconf test (AC_F77_MAIN) checks
+# for the routine to use in this case (since the semantics of the test
+# are slightly different).  To link to e.g. purely numerical
 # libraries, this is normally not necessary, however, and most C/C++
 # programs are reluctant to turn over so much control to Fortran.  =)
 #
@@ -1958,7 +1959,6 @@ AC_LANG_POP(Fortran 77)dnl
 #   MAIN__ (g77, MAIN__ required on some systems; IRIX, MAIN__ optional)
 #   MAIN_, __main (SunOS)
 #   MAIN _MAIN __MAIN main_ main__ _main (we follow DDD and try these too)
-#
 AC_DEFUN([AC_F77_DUMMY_MAIN],
 [AC_REQUIRE([AC_F77_LIBRARY_LDFLAGS])dnl
 AC_CACHE_CHECK([for dummy main to link with Fortran 77 libraries],
@@ -1968,7 +1968,9 @@ AC_CACHE_CHECK([for dummy main to link with Fortran 77 libraries],
  LIBS="$LIBS $FLIBS"
 
  # First, try linking without a dummy main:
- AC_TRY_LINK([],[],ac_cv_f77_dummy_main=none,ac_cv_f77_dummy_main=unknown)
+ AC_TRY_LINK([], [],
+             ac_cv_f77_dummy_main=none,
+             ac_cv_f77_dummy_main=unknown)
 
  if test $ac_cv_f77_dummy_main = unknown; then
    for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
@@ -1980,16 +1982,16 @@ AC_CACHE_CHECK([for dummy main to link with Fortran 77 libraries],
  LIBS=$ac_f77_dm_save_LIBS
  AC_LANG_POP(C)dnl
 ])
-if test $ac_cv_f77_dummy_main = unknown; then
-  m4_default([$1],[AC_MSG_ERROR([Linking to Fortran libraries from C fails.])])
-elif test $ac_cv_f77_dummy_main = none; then
-  m4_default([$2],[:])
-else
-  m4_default([$3],
-    [AC_DEFINE_UNQUOTED([F77_DUMMY_MAIN], $ac_cv_f77_dummy_main,
-       [Define to dummy `main' function (if any) required to link to
-        the Fortran 77 libraries.])])
-fi
+F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
+AS_IF([test "$F77_DUMMY_MAIN" != unknown],
+      [m4_default([$1],
+[if test $F77_DUMMY_MAIN != none; then
+  AC_DEFINE_UNQUOTED([F77_DUMMY_MAIN], $F77_DUMMY_MAIN,
+                     [Define to dummy `main' function (if any) required to
+                      link to the Fortran 77 libraries.])
+fi])],
+      [m4_default([$2],
+                [AC_MSG_ERROR([Linking to Fortran libraries from C fails.])])])
 ])# AC_F77_DUMMY_MAIN
 
 
index 33c90b5fa43013920e0e757f383928363e3bcfa4..a8c6f6677ffaab361fe0ccc7bf2f73d6f291fb28 100644 (file)
@@ -15,6 +15,8 @@
 #   `/usr/local' and `${prefix}' for make.
 # - CONFIG_STATUS and DEFS
 #   Set by AC_OUTPUT.
+# - F77_DUMMY_MAIN
+#   Set by AC_F77_DUMMY_MAIN.
 # - ALLOCA|NEED_SETGID|KMEM_GROUP
 #   AC_FUNCs from acspecific.
 # - AWK|LEX|LEXLIB|LEX_OUTPUT_ROOT|LN_S|M4|RANLIB|SET_MAKE|YACC
@@ -43,9 +45,8 @@ m4_defun([AC_STATE_SAVE],
       [^(X_(CFLAGS|(EXTRA_|PRE_)?LIBS)|x_(includes|libraries)|(have|no)_x)=],
       [^(host|build|target)(_(alias|cpu|vendor|os))?=],
       [^(cross_compiling)=],
-      [^(interpval)=],
-      [^(PATH_SEPARATOR)=],
-      [^(f77_(case|underscore))=],
+      [^(interpval|PATH_SEPARATOR)=],
+      [^(F77DUMMY_MAIN|f77_(case|underscore))=],
       [^(ALLOCA|GETLOADAVG_LIBS|KMEM_GROUP|NEED_SETGID|POW_LIB)=],
       [^(AWK|LEX|LEXLIB|LEX_OUTPUT_ROOT|LN_S|M4|RANLIB|SET_MAKE|YACC)=],
       [^(_|@|.[*#?].|LINENO|OLDPWD|PIPESTATUS|RANDOM|SECONDS)=])' 2>/dev/null |