changeset 15875:c18692212b90

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.
author Rik <rik@octave.org>
date Wed, 02 Jan 2013 17:15:57 -0800
parents 11d5a7276b6d
children 84b38d6442e6
files configure.ac
diffstat 1 files changed, 3 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- 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