comparison configure.in @ 3892:56db014d8980

[project @ 2002-04-05 04:08:56 by jwe]
author jwe
date Fri, 05 Apr 2002 04:08:56 +0000
parents 70ebd3d672a1
children efa508da7d5c
comparison
equal deleted inserted replaced
3891:e2cbe8e31e06 3892:56db014d8980
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.354 $) 25 AC_REVISION($Revision: 1.355 $)
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.])
350 AC_CHECK_LIB(z, deflate, [ 350 AC_CHECK_LIB(z, deflate, [
351 AC_CHECK_HEADERS(hdf5.h, [ 351 AC_CHECK_HEADERS(hdf5.h, [
352 WITH_HDF5=true 352 WITH_HDF5=true
353 HDF5_LIBS="-l$hdf5_lib -lz" 353 HDF5_LIBS="-l$hdf5_lib -lz"
354 LIBS="$HDF5_LIBS $LIBS" 354 LIBS="$HDF5_LIBS $LIBS"
355 AC_DEFINE(HAVE_HDF5,1,[Define if HDF5 is available.])])])]) 355 AC_DEFINE(HAVE_HDF5, 1, [Define if HDF5 is available.])])])])
356 fi 356 fi
357 357
358 # Checks for FFTW header and library. 358 # Checks for FFTW header and library.
359 359
360 # subdirectories of libcruft to build if they aren't found on the system: 360 # subdirectories of libcruft to build if they aren't found on the system:
380 fi 380 fi
381 fi 381 fi
382 382
383 if test "$with_fftw" = yes; then 383 if test "$with_fftw" = yes; then
384 FFT_DIR='' 384 FFT_DIR=''
385 AC_DEFINE(HAVE_FFTW,1,[Define if the FFTW library is available.]) 385 AC_DEFINE(HAVE_FFTW, 1, [Define if the FFTW library is available.])
386 fi 386 fi
387 387
388 # ---------------------------------------------------------------------- 388 # ----------------------------------------------------------------------
389 389
390 ### We need these before trying to find libf2c. 390 ### We need these before trying to find libf2c.
1012 1012
1013 AC_STRUCT_TM 1013 AC_STRUCT_TM
1014 AC_STRUCT_TIMEZONE 1014 AC_STRUCT_TIMEZONE
1015 AC_FUNC_CLOSEDIR_VOID 1015 AC_FUNC_CLOSEDIR_VOID
1016 1016
1017 OCTAVE_STRUCT_GR_PASSWD 1017 AC_CHECK_MEMBERS(struct group.gr_passwd)
1018 1018
1019 octave_found_termlib=no 1019 octave_found_termlib=no
1020 for termlib in ncurses curses termcap terminfo termlib; do 1020 for termlib in ncurses curses termcap terminfo termlib; do
1021 AC_CHECK_LIB(${termlib}, tputs, [TERMLIBS="${TERMLIBS} -l${termlib}"]) 1021 AC_CHECK_LIB(${termlib}, tputs, [TERMLIBS="${TERMLIBS} -l${termlib}"])
1022 case "${TERMLIBS}" in 1022 case "${TERMLIBS}" in
1061 AC_TYPE_MODE_T 1061 AC_TYPE_MODE_T
1062 AC_TYPE_OFF_T 1062 AC_TYPE_OFF_T
1063 AC_TYPE_PID_T 1063 AC_TYPE_PID_T
1064 AC_TYPE_SIZE_T 1064 AC_TYPE_SIZE_T
1065 AC_TYPE_UID_T 1065 AC_TYPE_UID_T
1066 AC_CHECK_TYPE(dev_t, short) 1066 AC_CHECK_TYPES([dev_t, ino_t, nlink_t, nlink_t])
1067 AC_CHECK_TYPE(ino_t, unsigned long) 1067 AC_CHECK_TYPES(sigset_t, , , [#include <signal.h>])
1068 AC_CHECK_TYPE(nlink_t, short)
1069 OCTAVE_CHECK_TYPE(sigset_t, [#include <signal.h>], int)
1070 1068
1071 ### A system dependent kluge or two. 1069 ### A system dependent kluge or two.
1072 1070
1073 AC_CHECK_FUNCS(getrusage times) 1071 AC_CHECK_FUNCS(getrusage times)
1074 case "$canonical_host_type" in 1072 case "$canonical_host_type" in
1119 AC_SUBST(INSTALL_SCRIPT) 1117 AC_SUBST(INSTALL_SCRIPT)
1120 1118
1121 OCTAVE_PROG_GNUPLOT 1119 OCTAVE_PROG_GNUPLOT
1122 OCTAVE_PROG_PAGER 1120 OCTAVE_PROG_PAGER
1123 OCTAVE_PROG_GPERF 1121 OCTAVE_PROG_GPERF
1124
1125 EXE=
1126 case "$canonical_host_type" in
1127 *-*-cygwin32)
1128 EXE=.exe
1129 ;;
1130 esac
1131 AC_SUBST(EXE)
1132 1122
1133 ### Even though we include config.h, we need to have the preprocessor 1123 ### Even though we include config.h, we need to have the preprocessor
1134 ### defines available in a variable for the octave-bug script. Use 1124 ### defines available in a variable for the octave-bug script. Use
1135 ### UGLY_DEFS for that. 1125 ### UGLY_DEFS for that.
1136 1126