Mercurial > octave-nkf
comparison configure.ac @ 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 |
comparison
equal
deleted
inserted
replaced
15874:11d5a7276b6d | 15875:c18692212b90 |
---|---|
514 AC_ARG_VAR([BUILD_LDFLAGS], | 514 AC_ARG_VAR([BUILD_LDFLAGS], |
515 [build system C++ compiler link flags (used if cross compiling)]) | 515 [build system C++ compiler link flags (used if cross compiling)]) |
516 AC_ARG_VAR([BUILD_EXEEXT], | 516 AC_ARG_VAR([BUILD_EXEEXT], |
517 [build system executable extension (used if cross compiling)]) | 517 [build system executable extension (used if cross compiling)]) |
518 | 518 |
519 dnl This is bogus. We shouldn't have to explicitly add libc too! | 519 |
520 ### Look for math library. If found, this will add -lm to LIBS. | |
521 | |
520 dnl Keep this check before the check for the Fortran compiler, | 522 dnl Keep this check before the check for the Fortran compiler, |
521 dnl in case -lm is needed to compile Fortran programs. | 523 dnl in case -lm is needed to compile Fortran programs. |
522 | 524 AC_CHECK_LIB(m, sin) |
523 ### Look for math library. If found, this will add -lm to LIBS. | |
524 | |
525 case $host_os in | |
526 linux*) | |
527 AC_CHECK_LIB(m, sin, , , -lc) | |
528 ;; | |
529 *) | |
530 AC_CHECK_LIB(m, sin) | |
531 ;; | |
532 esac | |
533 | 525 |
534 ### Determine the Fortran compiler and how to invoke it | 526 ### Determine the Fortran compiler and how to invoke it |
535 | 527 |
536 ## Default FFLAGS is -O. | 528 ## Default FFLAGS is -O. |
537 if test x"$FFLAGS" = x""; then | 529 if test x"$FFLAGS" = x""; then |