# HG changeset patch # User Rik # Date 1357175757 28800 # Node ID c18692212b90a0d8a4b1e7daf2d2639d0e87600a # Parent 11d5a7276b6dfd0ec95a2852d39a086b5305478c configure.ac: Simplify test for math library. configure.ac: AC_CHECK_LIB test for math lib no longer requires explicitly including libc as it did on 1/20/1999 when this part of configure.ac was written. diff -r 11d5a7276b6d -r c18692212b90 configure.ac --- a/configure.ac Wed Jan 02 16:59:10 2013 -0800 +++ b/configure.ac Wed Jan 02 17:15:57 2013 -0800 @@ -516,20 +516,12 @@ AC_ARG_VAR([BUILD_EXEEXT], [build system executable extension (used if cross compiling)]) -dnl This is bogus. We shouldn't have to explicitly add libc too! -dnl Keep this check before the check for the Fortran compiler, -dnl in case -lm is needed to compile Fortran programs. ### Look for math library. If found, this will add -lm to LIBS. -case $host_os in - linux*) - AC_CHECK_LIB(m, sin, , , -lc) - ;; - *) - AC_CHECK_LIB(m, sin) - ;; -esac +dnl Keep this check before the check for the Fortran compiler, +dnl in case -lm is needed to compile Fortran programs. +AC_CHECK_LIB(m, sin) ### Determine the Fortran compiler and how to invoke it