autoconf refuses this reduced script:

AC_INIT
AC_LANG(Fortran)
AC_OPENMP

using
configure.ac:3: error: AC_LANG_FUNC_LINK_TRY: unknown language: Fortran
../../lib/autoconf/lang.m4:228: AC_LANG_FUNC_LINK_TRY is expanded from...
../../lib/autoconf/c.m4:1879: _AC_LANG_OPENMP is expanded from...
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2518: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:505: AS_IF is expanded from...
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from...
../../lib/autoconf/c.m4:1917: AC_OPENMP is expanded from...

both with autoconf 2.63 (from Fedora 10 i386) and autoconf 2.64
(Debian testing) (the line numbers are slightly different in the trace
but it's the same error).

Is there an error in the script or is this is a genuine autoconf bug?
The documentation says that AC_OPENMP should work with Fortran;
removing the line with AC_LANG makes the error go away.

Regards,
Bart Oldeman


Reply via email to