I'm using autoconfig-2.13 at an IRIX6.5 workstation using gcc-2.95.2.
I recognized, that AC_TRY_COMPILE doesn't run with f77 programs, because the
conftest.f program, which is implicitly created by the shell script with

cat > conftest.f << EOF
      program main
....
      endEOF

contains mor than the above snipped lines, because my shell does not stop at
EOF.
The following small patch solves my problem by introducing an additional newline
in
acgeneral.m4:

----------output of diff -c acgeneral.m4.orig acgeneral.m4 ----------------
*** acgeneral.m4.orig   Tue Jan  5 14:27:37 1999
--- acgeneral.m4        Tue Oct  3 14:53:55 2000
***************
*** 1727,1733 ****
  ifelse(AC_LANG, [FORTRAN77],
  [      program main
  [$2]
!       end],
  [dnl This sometimes fails to find confdefs.h, for some reason.
  dnl [#]line __oline__ "[$]0"
  [#]line __oline__ "configure"
--- 1727,1734 ----
  ifelse(AC_LANG, [FORTRAN77],
  [      program main
  [$2]
!       end
! ],
  [dnl This sometimes fails to find confdefs.h, for some reason.
  dnl [#]line __oline__ "[$]0"
  [#]line __oline__ "configure"
--------------------------------------------------------------------------

I'd appreciate, if you checked in my patch for availability in later versions of
autoconfig.


Sincerely,

    Wolfgang Glas

--
Mag. Wolfgang Glas                       Tel:    ++43-316-873-7578
Institute for Hydraulic Fluidmachinery   Fax:    ++43-316-873-7577
Kopernikusgasse 24/IV                    e-mail: [EMAIL PROTECTED]
A-8010 Graz

Reply via email to