Mercurial > octave-nkf
comparison configure.in @ 3692:3e474e5b2986
[project @ 2000-07-05 15:26:04 by jwe]
author | jwe |
---|---|
date | Wed, 05 Jul 2000 15:26:05 +0000 |
parents | 55e59236c5e5 |
children | 8ce0d75eb4e3 |
comparison
equal
deleted
inserted
replaced
3691:dd144c6dfc71 | 3692:3e474e5b2986 |
---|---|
19 ### You should have received a copy of the GNU General Public License | 19 ### You should have received a copy of the GNU General Public License |
20 ### along with Octave; see the file COPYING. If not, write to the Free | 20 ### along with Octave; see the file COPYING. If not, write to the Free |
21 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA | 21 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA |
22 ### 02111-1307, USA. | 22 ### 02111-1307, USA. |
23 | 23 |
24 AC_REVISION($Revision: 1.330 $) | 24 AC_REVISION($Revision: 1.331 $) |
25 AC_PREREQ(2.9) | 25 AC_PREREQ(2.9) |
26 AC_INIT(src/octave.cc) | 26 AC_INIT(src/octave.cc) |
27 AC_CONFIG_HEADER(config.h) | 27 AC_CONFIG_HEADER(config.h) |
28 | 28 |
29 AC_DEFINE(OCTAVE_SOURCE, 1) | 29 AC_DEFINE(OCTAVE_SOURCE, 1) |
535 dgemm_func=dgemm | 535 dgemm_func=dgemm |
536 cheev_func=cheev | 536 cheev_func=cheev |
537 fi | 537 fi |
538 fi | 538 fi |
539 | 539 |
540 # remember current libs, so we can check if any libs were found below. | |
541 blas_save_LIBS="$LIBS" | |
542 | |
543 AC_ARG_WITH(fastblas, [ --without-fastblas use included (generic) BLAS and LAPACK], with_fastblas=$withval, with_fastblas=yes) | 540 AC_ARG_WITH(fastblas, [ --without-fastblas use included (generic) BLAS and LAPACK], with_fastblas=$withval, with_fastblas=yes) |
544 if test "$with_fastblas" = "no"; then | 541 if test "$with_fastblas" = "no"; then |
545 blas_save_LIBS="different from $LIBS so tests fail below" | 542 BLAS_LIBS=" " |
546 elif test "$with_fastblas" != "yes"; then | 543 elif test "$with_fastblas" != "yes"; then |
547 # user specified a BLAS library to try on the command line | 544 # user specified a BLAS library to try on the command line |
548 AC_CHECK_LIB($with_fastblas, $dgemm_func, | 545 AC_CHECK_LIB($with_fastblas, $dgemm_func, |
549 LIBS="-l$with_fastblas $LIBS", , $FLIBS) | 546 BLAS_LIBS="-l$with_fastblas", , $FLIBS) |
550 fi | 547 fi |
551 | 548 |
552 if test "$blas_save_LIBS" = "$LIBS"; then | 549 if test "x$BLAS_LIBS" = x; then |
553 # Checks for ATLAS BLAS library: | 550 # Checks for ATLAS BLAS library: |
554 AC_CHECK_LIB(atlas, ATL_xerbla) | 551 AC_CHECK_LIB(atlas, ATL_xerbla, BLAS_LIBS="-latlas") |
555 if test "$blas_save_LIBS" != "$LIBS"; then | 552 if test "x$BLAS_LIBS" != x; then |
556 # check for other atlas libs: | 553 # check for other atlas libs: |
557 AC_CHECK_LIB(cblas, cblas_dgemm) | 554 AC_CHECK_LIB(cblas, cblas_dgemm,BLAS_LIBS="-lcblas $BLAS_LIBS",,$BLAS_LIBS) |
558 AC_CHECK_LIB(f77blas, $dgemm_func, | 555 AC_CHECK_LIB(f77blas, $dgemm_func, |
559 LIBS="-lf77blas $LIBS", , $FLIBS) | 556 BLAS_LIBS="-lf77blas $BLAS_LIBS", , $BLAS_LIBS $FLIBS) |
560 fi | 557 fi |
561 fi | 558 fi |
562 | 559 |
563 if test "$blas_save_LIBS" = "$LIBS"; then | 560 if test "x$BLAS_LIBS" = x; then |
564 # BLAS in Alpha CXML library? | 561 # BLAS in Alpha CXML library? |
565 AC_CHECK_LIB(cxml, $dgemm_func, LIBS="-lcxml $LIBS", , $FLIBS) | 562 AC_CHECK_LIB(cxml, $dgemm_func, BLAS_LIBS="-lcxml", , $FLIBS) |
566 fi | 563 fi |
567 | 564 |
568 if test "$blas_save_LIBS" = "$LIBS"; then | 565 if test "x$BLAS_LIBS" = x; then |
569 # BLAS in Alpha DXML library? (now called CXML, see above) | 566 # BLAS in Alpha DXML library? (now called CXML, see above) |
570 AC_CHECK_LIB(dxml, $dgemm_func, LIBS="-ldxml $LIBS", , $FLIBS) | 567 AC_CHECK_LIB(dxml, $dgemm_func, BLAS_LIBS="-ldxml", , $FLIBS) |
571 fi | 568 fi |
572 | 569 |
573 if test "$blas_save_LIBS" = "$LIBS"; then | 570 if test "x$BLAS_LIBS" = x; then |
574 # Check for BLAS in Sun Performance library: | 571 # Check for BLAS in Sun Performance library: |
575 AC_CHECK_LIB(sunmath, acosp) | 572 AC_CHECK_LIB(sunmath, acosp, BLAS_LIBS="-lsunmath") |
576 AC_CHECK_LIB(sunperf, $dgemm_func, LIBS="-xlic_lib=sunperf $LIBS") | 573 AC_CHECK_LIB(sunperf, $dgemm_func, BLAS_LIBS="-xlic_lib=sunperf $BLAS_LIBS", |
577 fi | 574 , $BLAS_LIBS) |
578 | 575 fi |
579 if test "$blas_save_LIBS" = "$LIBS"; then | 576 |
577 if test "x$BLAS_LIBS" = x; then | |
580 # Check for BLAS in SCSL and SGIMATH libraries (prefer SCSL): | 578 # Check for BLAS in SCSL and SGIMATH libraries (prefer SCSL): |
581 AC_CHECK_LIB(scs, $dgemm_func, | 579 AC_CHECK_LIB(scs, $dgemm_func, |
582 LIBS="-lscs $LIBS", | 580 BLAS_LIBS="-lscs", |
583 AC_CHECK_LIB(complib.sgimath, $dgemm_func, | 581 AC_CHECK_LIB(complib.sgimath, $dgemm_func, |
584 LIBS="-lcomplib.sgimath $LIBS", , $FLIBS), $FLIBS) | 582 BLAS_LIBS="-lcomplib.sgimath", , $FLIBS), $FLIBS) |
585 fi | 583 fi |
586 | 584 |
587 if test "$blas_save_LIBS" = "$LIBS"; then | 585 if test "x$BLAS_LIBS" = x; then |
588 # Checks for BLAS in IBM ESSL library. We must also link | 586 # Checks for BLAS in IBM ESSL library. We must also link |
589 # with -lblas in this case (ESSL does not include the full BLAS): | 587 # with -lblas in this case (ESSL does not include the full BLAS): |
590 AC_CHECK_LIB(blas, zherk, | 588 AC_CHECK_LIB(blas, zherk, |
591 AC_CHECK_LIB(essl, $dgemm_func, | 589 AC_CHECK_LIB(essl, $dgemm_func, |
592 LIBS="-lessl -lblas $LIBS", , $FLIBS), , $FLIBS) | 590 BLAS_LIBS="-lessl -lblas", , $FLIBS), , $FLIBS) |
593 fi | 591 fi |
594 | 592 |
595 if test "$blas_save_LIBS" = "$LIBS"; then | 593 if test "x$BLAS_LIBS" = x; then |
596 # Finally, check for the generic BLAS library: | 594 # Finally, check for the generic BLAS library: |
597 AC_CHECK_LIB(blas, $dgemm_func, LIBS="-lblas $LIBS", , $FLIBS) | 595 AC_CHECK_LIB(blas, $dgemm_func, BLAS_LIBS="-lblas", , $FLIBS) |
598 fi | 596 fi |
599 | 597 |
600 if test "$blas_save_LIBS" != "$LIBS"; then | 598 if test "$with_fastblas" = "no"; then |
599 # Unset BLAS_LIBS so that we know below that nothing was found. | |
600 BLAS_LIBS="" | |
601 fi | |
602 | |
603 if test "x$BLAS_LIBS" != x; then | |
601 BLAS_DIR="" # don't build our own BLAS | 604 BLAS_DIR="" # don't build our own BLAS |
602 | 605 |
603 # Check for LAPACK library. Note that ATLAS has its own liblapack.a, | 606 # Check for LAPACK library. Note that ATLAS has its own liblapack.a, |
604 # which is designed to be combined with the real LAPACK. cheev is a | 607 # which is designed to be combined with the real LAPACK. cheev is a |
605 # function in the real LAPACK but not in ATLAS's version, so this | 608 # function in the real LAPACK but not in ATLAS's version, so this |
607 # that on some systems, LAPACK is included in the math library | 610 # that on some systems, LAPACK is included in the math library |
608 # (e.g. DXML) that we already linked to above...we detect this by | 611 # (e.g. DXML) that we already linked to above...we detect this by |
609 # doing AC_CHECK_FUNC if -llapack isn't found: | 612 # doing AC_CHECK_FUNC if -llapack isn't found: |
610 | 613 |
611 AC_CHECK_LIB(lapack, $cheev_func, | 614 AC_CHECK_LIB(lapack, $cheev_func, |
612 [LIBS="-llapack $LIBS"; LAPACK_DIR=""], | 615 [BLAS_LIBS="-llapack $BLAS_LIBS"; LAPACK_DIR=""], |
613 AC_CHECK_FUNC($cheev_func, LAPACK_DIR=""), $FLIBS) | 616 AC_CHECK_FUNC($cheev_func, LAPACK_DIR=""), $BLAS_LIBS $FLIBS) |
614 fi | 617 fi |
618 | |
619 AC_SUBST(BLAS_LIBS) | |
615 | 620 |
616 ### Handle dynamic linking and shared library options. | 621 ### Handle dynamic linking and shared library options. |
617 | 622 |
618 ### Allow the user to experiment with dynamic linking using dlopen/dlsym. | 623 ### Allow the user to experiment with dynamic linking using dlopen/dlsym. |
619 | 624 |