comparison configure.in @ 4343:db5e0814277a

[project @ 2003-02-20 16:44:16 by jwe]
author jwe
date Thu, 20 Feb 2003 16:46:37 +0000
parents d53c33d93440
children a6c22c2c9b09
comparison
equal deleted inserted replaced
4342:813effe14ee1 4343:db5e0814277a
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_INIT 24 AC_INIT
25 AC_REVISION($Revision: 1.412 $) 25 AC_REVISION($Revision: 1.413 $)
26 AC_PREREQ(2.52) 26 AC_PREREQ(2.52)
27 AC_CONFIG_SRCDIR([src/octave.cc]) 27 AC_CONFIG_SRCDIR([src/octave.cc])
28 AC_CONFIG_HEADER(config.h) 28 AC_CONFIG_HEADER(config.h)
29 29
30 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.]) 30 AC_DEFINE(OCTAVE_SOURCE, 1, [Define if this is Octave.])
415 fi 415 fi
416 416
417 if test "$with_fftw" = yes; then 417 if test "$with_fftw" = yes; then
418 FFT_DIR='' 418 FFT_DIR=''
419 AC_DEFINE(HAVE_FFTW, 1, [Define if the FFTW library is available.]) 419 AC_DEFINE(HAVE_FFTW, 1, [Define if the FFTW library is available.])
420 fi
421
422 WITH_MPI=true
423 AC_ARG_WITH(mpi,
424 [ --without-mpi don't use MPI],
425 with_mpi=$withval, with_mpi=yes)
426
427 mpi_lib=
428 if test "$with_mpi" = yes; then
429 mpi_lib="mpi"
430 elif test "$with_mpi" != no; then
431 mpi_lib="$with_mpi"
432 fi
433
434 MPI_LIBS=
435 WITH_MPI=false
436 if test -n "$mpi_lib"; then
437 AC_CHECK_LIB($mpi_lib, MPI_Init, [
438 AC_CHECK_HEADERS(mpi.h, [
439 WITH_MPI=true
440 MPI_LIBS="-l$mpi_lib"
441 LIBS="$MPI_LIBS $LIBS"
442 AC_DEFINE(HAVE_MPI, 1, [Define if MPI is available.])])])
420 fi 443 fi
421 444
422 # ---------------------------------------------------------------------- 445 # ----------------------------------------------------------------------
423 446
424 ### We need these before trying to find libf2c. 447 ### We need these before trying to find libf2c.
1407 Fortran compiler: $FORT 1430 Fortran compiler: $FORT
1408 Fortran libraries: $FLIBS 1431 Fortran libraries: $FLIBS
1409 BLAS libraries: $BLAS_LIBS 1432 BLAS libraries: $BLAS_LIBS
1410 FFTW libraries: $FFTW_LIBS 1433 FFTW libraries: $FFTW_LIBS
1411 HDF5 libraries: $HDF5_LIBS 1434 HDF5 libraries: $HDF5_LIBS
1435 MPI libraries: $MPI_LIBS
1412 LIBS: $LIBS 1436 LIBS: $LIBS
1413 Default pager: $DEFAULT_PAGER 1437 Default pager: $DEFAULT_PAGER
1414 gnuplot: $GNUPLOT_BINARY 1438 gnuplot: $GNUPLOT_BINARY
1415 1439
1416 Do internal array bounds checking: $BOUNDS_CHECKING 1440 Do internal array bounds checking: $BOUNDS_CHECKING