comparison configure.in @ 3822:1a809dae77db

[project @ 2001-04-26 16:07:17 by jwe]
author jwe
date Thu, 26 Apr 2001 16:07:18 +0000
parents f0ab8a324da7
children 0ee55719541a
comparison
equal deleted inserted replaced
3821:b370019103de 3822:1a809dae77db
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.343 $) 24 AC_REVISION($Revision: 1.344 $)
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)
128 dnl if $USE_PLPLOT; then 128 dnl if $USE_PLPLOT; then
129 dnl AC_DEFINE(USE_PLPLOT, 1) 129 dnl AC_DEFINE(USE_PLPLOT, 1)
130 dnl fi 130 dnl fi
131 AC_SUBST(LIBPLPLOT) 131 AC_SUBST(LIBPLPLOT)
132 AC_SUBST(PLPLOT_DIR) 132 AC_SUBST(PLPLOT_DIR)
133
134 ### Allow the user disable support for command line editing using GNU
135 ### readline.
136
137 READLINE_DIR=readline
138 USE_READLINE=true
139 LIBREADLINE='$(TOPDIR)/readline/libreadline.$(LIBEXT)'
140 AC_ARG_ENABLE(readline,
141 [ --enable-readline use readline library (default is yes)],
142 [if test "$enableval" = no; then
143 USE_READLINE=false;
144 LIBREADLINE="";
145 READLINE_DIR="";
146 fi], [])
147 if $USE_READLINE; then
148 AC_DEFINE(USE_READLINE, 1)
149 fi
150 AC_SUBST(LIBREADLINE)
151 AC_SUBST(READLINE_DIR)
152 133
153 LIBKPATHSEA='$(TOPDIR)/kpathsea/libkpathsea.$(LIBEXT)' 134 LIBKPATHSEA='$(TOPDIR)/kpathsea/libkpathsea.$(LIBEXT)'
154 AC_SUBST(LIBKPATHSEA) 135 AC_SUBST(LIBKPATHSEA)
155 136
156 ### Make it possible to have Octave's array and matrix classes do bounds 137 ### Make it possible to have Octave's array and matrix classes do bounds
1154 AC_STRUCT_TIMEZONE 1135 AC_STRUCT_TIMEZONE
1155 AC_FUNC_CLOSEDIR_VOID 1136 AC_FUNC_CLOSEDIR_VOID
1156 1137
1157 OCTAVE_STRUCT_GR_PASSWD 1138 OCTAVE_STRUCT_GR_PASSWD
1158 1139
1159 TERMLIBS=""
1160 for termlib in ncurses curses termcap terminfo termlib; do 1140 for termlib in ncurses curses termcap terminfo termlib; do
1161 AC_CHECK_LIB(${termlib}, tputs, [TERMLIBS="${TERMLIBS} -l${termlib}"]) 1141 AC_CHECK_LIB(${termlib}, tputs, [TERMLIBS="${TERMLIBS} -l${termlib}"])
1162 case "${TERMLIBS}" in 1142 case "${TERMLIBS}" in
1163 *-l${termlib}*) 1143 *-l${termlib}*)
1164 AC_MSG_RESULT([defining TERMLIBS to be $TERMLIBS]) 1144 LIBS="$TERMLIBS $LIBS"
1165 break 1145 break
1166 ;; 1146 ;;
1167 esac 1147 esac
1168 done 1148 done
1169 AC_SUBST(TERMLIBS)
1170 1149
1171 if test "$ac_cv_lib_termcap_tputs" = yes \ 1150 if test "$ac_cv_lib_termcap_tputs" = yes \
1172 || test "$ac_cv_lib_terminfo_tputs" = yes \ 1151 || test "$ac_cv_lib_terminfo_tputs" = yes \
1173 || test "$ac_cv_lib_ncurses_tputs" = yes \ 1152 || test "$ac_cv_lib_ncurses_tputs" = yes \
1174 || test "$ac_cv_lib_curses_tputs" = yes \ 1153 || test "$ac_cv_lib_curses_tputs" = yes \
1176 true 1155 true
1177 else 1156 else
1178 warn_termlibs="I couldn't find -ltermcap, -lterminfo, -lncurses, -lcurses, or -ltermlib!" 1157 warn_termlibs="I couldn't find -ltermcap, -lterminfo, -lncurses, -lcurses, or -ltermlib!"
1179 AC_MSG_WARN($warn_termlibs) 1158 AC_MSG_WARN($warn_termlibs)
1180 fi 1159 fi
1160
1161 OCTAVE_ENABLE_READLINE
1181 1162
1182 AC_MSG_CHECKING([for struct exception in math.h]) 1163 AC_MSG_CHECKING([for struct exception in math.h])
1183 AC_TRY_LINK([#include <math.h>], 1164 AC_TRY_LINK([#include <math.h>],
1184 [struct exception *x; x->type; x->name;], 1165 [struct exception *x; x->type; x->name;],
1185 AC_MSG_RESULT(yes) 1166 AC_MSG_RESULT(yes)
1208 AC_TYPE_UID_T 1189 AC_TYPE_UID_T
1209 AC_CHECK_TYPE(dev_t, short) 1190 AC_CHECK_TYPE(dev_t, short)
1210 AC_CHECK_TYPE(ino_t, unsigned long) 1191 AC_CHECK_TYPE(ino_t, unsigned long)
1211 AC_CHECK_TYPE(nlink_t, short) 1192 AC_CHECK_TYPE(nlink_t, short)
1212 OCTAVE_CHECK_TYPE(sigset_t, [#include <signal.h>], int) 1193 OCTAVE_CHECK_TYPE(sigset_t, [#include <signal.h>], int)
1213
1214 ### Define VOID_SIGHANDLER for readline.
1215
1216 case "$RETSIGTYPE" in
1217 int)
1218 ;;
1219 *)
1220 VOID_SIGHANDLER="-DVOID_SIGHANDLER=1"
1221 AC_MSG_RESULT([defining VOID_SIGHANDLER to be 1])
1222 ;;
1223 esac
1224 AC_SUBST(VOID_SIGHANDLER)
1225 1194
1226 ### A system dependent kluge or two. 1195 ### A system dependent kluge or two.
1227 1196
1228 AC_CHECK_FUNCS(getrusage times) 1197 AC_CHECK_FUNCS(getrusage times)
1229 case "$canonical_host_type" in 1198 case "$canonical_host_type" in
1334 1303
1335 export CC 1304 export CC
1336 export CXX 1305 export CXX
1337 export F77 1306 export F77
1338 1307
1339 AC_CONFIG_SUBDIRS($GLOB_DIR kpathsea scripts $PLPLOT_DIR $READLINE_DIR) 1308 AC_CONFIG_SUBDIRS($GLOB_DIR kpathsea scripts $PLPLOT_DIR)
1340 1309
1341 ### Do the substitutions in all the Makefiles. 1310 ### Do the substitutions in all the Makefiles.
1342 1311
1343 AC_OUTPUT(Makefile octMakefile Makeconf install-octave \ 1312 AC_OUTPUT(Makefile octMakefile Makeconf install-octave \
1344 test/Makefile dlfcn/Makefile \ 1313 test/Makefile dlfcn/Makefile \
1376 C++ compiler: $CXX $XTRA_CXXFLAGS $CXXFLAGS 1345 C++ compiler: $CXX $XTRA_CXXFLAGS $CXXFLAGS
1377 Fortran compiler: $FORT 1346 Fortran compiler: $FORT
1378 Fortran libraries: $FLIBS 1347 Fortran libraries: $FLIBS
1379 BLAS libraries: $BLAS_LIBS 1348 BLAS libraries: $BLAS_LIBS
1380 HDF5 libraries: $HDF5_LIBS 1349 HDF5 libraries: $HDF5_LIBS
1381 Use GNU readline: $USE_READLINE 1350 LIBS: $LIBS
1382 Default pager: $DEFAULT_PAGER 1351 Default pager: $DEFAULT_PAGER
1383 gnuplot: $GNUPLOT_BINARY 1352 gnuplot: $GNUPLOT_BINARY
1384 1353
1385 Do internal array bounds checking: $BOUNDS_CHECKING 1354 Do internal array bounds checking: $BOUNDS_CHECKING
1386 Build static libraries: $STATIC_LIBS 1355 Build static libraries: $STATIC_LIBS
1423 warn_msg_printed=true 1392 warn_msg_printed=true
1424 fi 1393 fi
1425 1394
1426 if test -n "$warn_f2c_no_lib"; then 1395 if test -n "$warn_f2c_no_lib"; then
1427 AC_MSG_WARN($warn_f2c_no_lib) 1396 AC_MSG_WARN($warn_f2c_no_lib)
1397 warn_msg_printed=true
1398 fi
1399
1400 if test -n "$warn_readline"; then
1401 AC_MSG_WARN($warn_readline)
1428 warn_msg_printed=true 1402 warn_msg_printed=true
1429 fi 1403 fi
1430 1404
1431 if test -n "$warn_termlibs"; then 1405 if test -n "$warn_termlibs"; then
1432 AC_MSG_WARN($warn_termlibs) 1406 AC_MSG_WARN($warn_termlibs)