comparison configure.ac @ 20247:78293a28f2a5

configure.ac: Let autoconf Fortran macro choose FFLAGS. * configure.ac: Don't unilaterally set FFLAGS to '-O0' as a default.
author Rik <rik@octave.org>
date Wed, 03 Jun 2015 14:16:43 -0700
parents 3e8c188b20a7
children d6879b59f46f
comparison
equal deleted inserted replaced
20241:8b1884214798 20247:78293a28f2a5
581 dnl Keep this check before the check for the Fortran compiler, 581 dnl Keep this check before the check for the Fortran compiler,
582 dnl in case -lm is needed to compile Fortran programs. 582 dnl in case -lm is needed to compile Fortran programs.
583 AC_CHECK_LIB(m, sin) 583 AC_CHECK_LIB(m, sin)
584 584
585 ### Determine the Fortran compiler and how to invoke it 585 ### Determine the Fortran compiler and how to invoke it
586
587 ## Default FFLAGS is -O.
588 if test -z "$FFLAGS"; then
589 FFLAGS="-O"
590 fi
591 586
592 ## Prefer gfortran, but the user's F77 environment variable will override. 587 ## Prefer gfortran, but the user's F77 environment variable will override.
593 AC_PROG_F77([gfortran]) 588 AC_PROG_F77([gfortran])
594 if test -z "$F77"; then 589 if test -z "$F77"; then
595 ## No gfortran found, search for any other installed compiler. 590 ## No gfortran found, search for any other installed compiler.