bug-autoconf
[Top][All Lists]
Advanced

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

FFLAGS & FCFLAGS


From: Alfred G. de Wijn
Subject: FFLAGS & FCFLAGS
Date: Sat, 15 Nov 2008 11:15:50 -0700

Hi!

While generalizing some code from FFTW to check for compiler flags from C to Fortran, I ran into an issue with autoconf. It seems that ac_test_FCFLAGS and ac_save_FCFLAGS are never set because in fortran.m4 it is hardcoded as:

ac_test_FFLAGS=${[]_AC_LANG_PREFIX[]FLAGS+set}
and
ac_save_FFLAGS=$[]_AC_LANG_PREFIX[]FLAGS

Changing these to

ac_test_[]_AC_LANG_PREFIX[]FLAGS=${[]_AC_LANG_PREFIX[]FLAGS+set}
and
ac_save_[]_AC_LANG_PREFIX[]FLAGS=$[]_AC_LANG_PREFIX[]FLAGS

fixes this behavior. There are 2 of the former, 4 of the latter. A patch is attached, as is testsuite.log. With a bit more time, I can probably provide a test as suggested in README-hacking, too.

Cheers,
Alfred
--
Alfred G. de Wijn (address@hidden)
web: http://www.iluvatar.eu.org/~dwijn

Attachment: fortran.diff
Description: Binary data

Attachment: testsuite.log
Description: Binary data

Attachment: PGP.sig
Description: This is a digitally signed message part


reply via email to

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