871
871
Optional Packages:
872
872
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
873
873
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
874
--without-maximum-compile-warnings
875
Disable maximum warning verbosity
874
876
--with-libm=STRING math library
875
877
--with-libc=STRING C library
876
878
--with-x use the X Window System
879
--without-alllang Disable all languages
880
--without-tcl Disable Tcl
877
881
--with-tclconfig=path Set location of tclConfig.sh
878
882
--with-tcl=path Set location of Tcl package
879
883
--with-tclincl=path Set location of Tcl include directory
880
884
--with-tcllib=path Set location of Tcl library directory
885
--without-python Disable Python
881
886
--with-python=path Set location of Python executable
887
--without-perl5 Disable Perl5
882
888
--with-perl5=path Set location of Perl5 executable
889
--without-java Disable Java
883
890
--with-java=path Set location of Java executable
884
891
--with-javac=path Set location of Javac executable
885
892
--with-javaincl=path Set location of Java include directory
886
--with-guile-config=path Set location of guile-config
887
--with-guile-prefix=path Set location of Guile tree
893
--without-guile Disable Guile
894
--with-guile-config=path
895
Set location of guile-config
896
--with-guile-prefix=path
897
Set location of Guile tree
888
898
--with-guile=path Set location of Guile executable
889
899
--with-guileincl=path Set location of Guile include directory
890
900
--with-guilelib=path Set location of Guile library directory
901
--without-mzscheme Disable MzScheme
902
--with-mzscheme=path Set location of MzScheme executable
903
--with-mzc=path Set location of MzScheme's mzc
904
--without-ruby Disable Ruby
891
905
--with-ruby=path Set location of Ruby executable
892
--with-php4=path Set location of PHP4 executable
906
--without-php4 Disable PHP4
907
--with-php4=path Set location of PHP4 executable
908
--without-ocaml Disable OCaml
893
909
--with-ocaml=path Set location of ocaml executable
894
910
--with-ocamlc=path Set location of ocamlc executable
895
911
--with-ocamldlgen=path Set location of ocamldlgen
896
912
--with-ocamlfind=path Set location of ocamlfind
897
913
--with-ocamlmktop=path Set location of ocamlmktop executable
914
--without-pike Disable Pike
898
915
--with-pike=path Set location of Pike executable
916
--with-pike-config=path Set location of pike-config script
899
917
--with-pikeincl=path Set location of Pike include directory
918
--without-chicken Disable CHICKEN
900
919
--with-chicken=path Set location of CHICKEN executable
901
920
--with-chickencsc=path Set location of csc executable
902
921
--with-chickencsi=path Set location of csi executable
1608
1632
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1609
# Keeping the `.' argument allows $(mkdir_p) to be used without
1610
# argument. Indeed, we sometimes output rules like
1633
# We used to keeping the `.' as first argument, in order to
1634
# allow $(mkdir_p) to be used without argument. As in
1611
1635
# $(mkdir_p) $(somedir)
1612
# where $(somedir) is conditionally defined.
1613
# (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1614
# expensive solution, as it forces Make to start a sub-shell.)
1615
mkdir_p='mkdir -p -- .'
1636
# where $(somedir) is conditionally defined. However this is wrong
1638
# 1. if the package is installed by a user who cannot write `.'
1639
# make install will fail,
1640
# 2. the above comment should most certainly read
1641
# $(mkdir_p) $(DESTDIR)$(somedir)
1642
# so it does not work when $(somedir) is undefined and
1643
# $(DESTDIR) is not.
1644
# To support the latter case, we have to write
1645
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1646
# so the `.' trick is pointless.
1647
mkdir_p='mkdir -p --'
1617
1649
# On NextStep and OpenStep, the `mkdir' command does not
1618
1650
# recognize any option. It will interpret all options as
3688
3735
echo "$as_me:$LINENO: checking maximum warning verbosity option" >&5
3689
3736
echo $ECHO_N "checking maximum warning verbosity option... $ECHO_C" >&6
3692
if test "$GXX" = "yes"
3694
ac_compile_warnings_opt='-Wall -ansi -pedantic'
3696
CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
3697
ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
3702
if test "$GCC" = "yes"
3704
ac_compile_warnings_opt='-Wall -ansi -pedantic'
3706
CFLAGS="$CFLAGS $ac_compile_warnings_opt"
3707
ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
3709
echo "$as_me:$LINENO: result: $ac_compile_warnings_msg" >&5
3741
# Check whether --with-maximum-compile-warnings or --without-maximum-compile-warnings was given.
3742
if test "${with_maximum_compile_warnings+set}" = set; then
3743
withval="$with_maximum_compile_warnings"
3744
ac_compile_warnings_on="$withval"
3746
ac_compile_warnings_on=""
3749
if test x"$ac_compile_warnings_on" = xno
3751
ac_compile_warnings_msg=no
3755
if test "$GXX" = "yes"
3757
ac_compile_warnings_opt='-Wall -W -ansi -pedantic'
3759
CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
3760
ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
3765
if test "$GCC" = "yes"
3767
ac_compile_warnings_opt='-Wall -W -ansi -pedantic'
3769
CFLAGS="$CFLAGS $ac_compile_warnings_opt"
3770
ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
3773
echo "$as_me:$LINENO: result: $ac_compile_warnings_msg" >&5
3710
3774
echo "${ECHO_T}$ac_compile_warnings_msg" >&6
3711
unset ac_compile_warnings_msg
3712
unset ac_compile_warnings_opt
3775
unset ac_compile_warnings_msg
3776
unset ac_compile_warnings_opt
3713
3777
# Increase warning levels
6541
6626
# Look for MzScheme
6542
6627
#----------------------------------------------------------------
6544
# Extract the first word of "mzc", so it can be a program name with args.
6630
# Check whether --with-mzscheme or --without-mzscheme was given.
6631
if test "${with_mzscheme+set}" = set; then
6632
withval="$with_mzscheme"
6633
MZSCHEMEBIN="$withval"
6638
# Check whether --with-mzc or --without-mzc was given.
6639
if test "${with_mzc+set}" = set; then
6646
# First, check for "--without-mzscheme" or "--with-mzscheme=no".
6647
if test x"${MZSCHEMEBIN}" = xno -o x"${with_alllang}" = xno ; then
6648
{ echo "$as_me:$LINENO: Disabling MzScheme" >&5
6649
echo "$as_me: Disabling MzScheme" >&6;}
6652
if test -z "$MZSCHEMEBIN"; then
6653
# Extract the first word of "mzscheme", so it can be a program name with args.
6654
set dummy mzscheme; ac_word=$2
6655
echo "$as_me:$LINENO: checking for $ac_word" >&5
6656
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6657
if test "${ac_cv_path_MZSCHEME+set}" = set; then
6658
echo $ECHO_N "(cached) $ECHO_C" >&6
6662
ac_cv_path_MZSCHEME="$MZSCHEME" # Let the user override the test with a path.
6665
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669
test -z "$as_dir" && as_dir=.
6670
for ac_exec_ext in '' $ac_executable_extensions; do
6671
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6672
ac_cv_path_MZSCHEME="$as_dir/$ac_word$ac_exec_ext"
6673
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682
MZSCHEME=$ac_cv_path_MZSCHEME
6684
if test -n "$MZSCHEME"; then
6685
echo "$as_me:$LINENO: result: $MZSCHEME" >&5
6686
echo "${ECHO_T}$MZSCHEME" >&6
6688
echo "$as_me:$LINENO: result: no" >&5
6689
echo "${ECHO_T}no" >&6
6693
MZSCHEME="$MZSCHEMEBIN"
6696
if test -z "$MZCBIN"; then
6697
# Extract the first word of "mzc", so it can be a program name with args.
6545
6698
set dummy mzc; ac_word=$2
6546
6699
echo "$as_me:$LINENO: checking for $ac_word" >&5
6547
6700
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6580
6733
echo "${ECHO_T}no" >&6
6583
# Extract the first word of "mzscheme", so it can be a program name with args.
6584
set dummy mzscheme; ac_word=$2
6585
echo "$as_me:$LINENO: checking for $ac_word" >&5
6586
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6587
if test "${ac_cv_path_MZSCHEME+set}" = set; then
6588
echo $ECHO_N "(cached) $ECHO_C" >&6
6592
ac_cv_path_MZSCHEME="$MZSCHEME" # Let the user override the test with a path.
6595
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599
test -z "$as_dir" && as_dir=.
6600
for ac_exec_ext in '' $ac_executable_extensions; do
6601
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6602
ac_cv_path_MZSCHEME="$as_dir/$ac_word$ac_exec_ext"
6603
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612
MZSCHEME=$ac_cv_path_MZSCHEME
6614
if test -n "$MZSCHEME"; then
6615
echo "$as_me:$LINENO: result: $MZSCHEME" >&5
6616
echo "${ECHO_T}$MZSCHEME" >&6
6618
echo "$as_me:$LINENO: result: no" >&5
6619
echo "${ECHO_T}no" >&6
6623
6740
if test -n "$MZSCHEME"; then
6624
6741
echo "$as_me:$LINENO: checking for MzScheme dynext object" >&5
7249
7409
PIKE="$PIKEBIN"
7413
# Check for pike-config
7414
# Priority: configure option, guessed from $PIKE, search from list
7416
# Check whether --with-pike-config or --without-pike-config was given.
7417
if test "${with_pike_config+set}" = set; then
7418
withval="$with_pike_config"
7419
PIKECONFIG="$withval"
7424
if test -z "$PIKECONFIG" -a -n "$PIKE"; then
7425
for ac_prog in $PIKE-config pike-config \
7426
pike7.6-config pike7.4-config pike7.2-config
7428
# Extract the first word of "$ac_prog", so it can be a program name with args.
7429
set dummy $ac_prog; ac_word=$2
7430
echo "$as_me:$LINENO: checking for $ac_word" >&5
7431
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7432
if test "${ac_cv_prog_PIKECONFIG+set}" = set; then
7433
echo $ECHO_N "(cached) $ECHO_C" >&6
7435
if test -n "$PIKECONFIG"; then
7436
ac_cv_prog_PIKECONFIG="$PIKECONFIG" # Let the user override the test.
7438
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442
test -z "$as_dir" && as_dir=.
7443
for ac_exec_ext in '' $ac_executable_extensions; do
7444
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445
ac_cv_prog_PIKECONFIG="$ac_prog"
7446
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7454
PIKECONFIG=$ac_cv_prog_PIKECONFIG
7455
if test -n "$PIKECONFIG"; then
7456
echo "$as_me:$LINENO: result: $PIKECONFIG" >&5
7457
echo "${ECHO_T}$PIKECONFIG" >&6
7459
echo "$as_me:$LINENO: result: no" >&5
7460
echo "${ECHO_T}no" >&6
7463
test -n "$PIKECONFIG" && break
7252
7468
# Check for a --with-pikeincl option to configure
7469
# Priority: configure option, info from $PIKECONFIG, guessed by pike script
7255
7471
# Check whether --with-pikeincl or --without-pikeincl was given.
7256
7472
if test "${with_pikeincl+set}" = set; then
7257
7473
withval="$with_pikeincl"
7259
PIKEINCLUDE="-I$withval"
7474
PIKEINCLUDE="-I$withval"
7264
7479
echo "$as_me:$LINENO: checking for Pike header files" >&5
7265
7480
echo $ECHO_N "checking for Pike header files... $ECHO_C" >&6
7266
if test -z "$PIKEINCLUDE"; then
7267
if test -n "$PIKE"; then
7481
if test -z "$PIKEINCLUDE" -a -n "$PIKECONFIG"; then
7482
PIKEINCLUDE=`$PIKECONFIG --cflags`
7484
if test -z "$PIKEINCLUDE" -a -n "$PIKE"; then
7268
7485
PIKEPATH=`which $PIKE`
7269
7486
PIKEINCLUDE=`$PIKE Tools/check-include-path.pike $PIKEPATH`
7270
echo "$as_me:$LINENO: result: $PIKEINCLUDE" >&5
7271
echo "${ECHO_T}$PIKEINCLUDE" >&6
7272
7487
PIKEINCLUDE="-I$PIKEINCLUDE"
7274
7490
if test -z "$PIKEINCLUDE"; then
7275
7491
echo "$as_me:$LINENO: result: not found" >&5
7276
7492
echo "${ECHO_T}not found" >&6
7279
7494
echo "$as_me:$LINENO: result: $PIKEINCLUDE" >&5
7280
7495
echo "${ECHO_T}$PIKEINCLUDE" >&6
7916
8152
#----------------------------------------------------------------
8154
#----------------------------------------------------------------
8162
# Check whether --with-lua or --without-lua was given.
8163
if test "${with_lua+set}" = set; then
8170
# Check whether --with-luaincl or --without-luaincl was given.
8171
if test "${with_luaincl+set}" = set; then
8172
withval="$with_luaincl"
8174
LUAINCLUDE="$ISYSTEM$withval"
8179
# Check whether --with-lualib or --without-lualib was given.
8180
if test "${with_lualib+set}" = set; then
8181
withval="$with_lualib"
8188
# First, check for "--without-lua" or "--with-lua=no".
8189
if test x"${LUABIN}" = xno -o x"${with_alllang}" = xno ; then
8190
{ echo "$as_me:$LINENO: Disabling Lua" >&5
8191
echo "$as_me: Disabling Lua" >&6;}
8195
if test -z "$LUABIN"; then
8196
# Extract the first word of "lua", so it can be a program name with args.
8197
set dummy lua; ac_word=$2
8198
echo "$as_me:$LINENO: checking for $ac_word" >&5
8199
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8200
if test "${ac_cv_path_LUABIN+set}" = set; then
8201
echo $ECHO_N "(cached) $ECHO_C" >&6
8205
ac_cv_path_LUABIN="$LUABIN" # Let the user override the test with a path.
8208
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212
test -z "$as_dir" && as_dir=.
8213
for ac_exec_ext in '' $ac_executable_extensions; do
8214
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8215
ac_cv_path_LUABIN="$as_dir/$ac_word$ac_exec_ext"
8216
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8225
LUABIN=$ac_cv_path_LUABIN
8227
if test -n "$LUABIN"; then
8228
echo "$as_me:$LINENO: result: $LUABIN" >&5
8229
echo "${ECHO_T}$LUABIN" >&6
8231
echo "$as_me:$LINENO: result: no" >&5
8232
echo "${ECHO_T}no" >&6
8237
# check version: we need Lua 5.x
8238
if test "$LUABIN"; then
8239
echo "$as_me:$LINENO: checking Lua version" >&5
8240
echo $ECHO_N "checking Lua version... $ECHO_C" >&6
8242
LUAV5=`$LUABIN -e 'if string.sub(_VERSION,5,5)=="5" then print "1" end'`
8243
# if not version 5.0
8244
LUAV51=`$LUABIN -e 'if string.sub(_VERSION,5,7)~="5.0" then print "1" end'`
8246
if test -z "$LUAV5"; then
8247
{ echo "$as_me:$LINENO: WARNING: Not Lua 5.x" >&5
8248
echo "$as_me: WARNING: Not Lua 5.x" >&2;}
8250
elif test -z "$LUAV51"; then
8251
echo "$as_me:$LINENO: result: Lua 5.0.x" >&5
8252
echo "${ECHO_T}Lua 5.0.x" >&6
8253
# note: different versions of lua use different libs
8254
LUALIBRARY="-llua -llualib"
8256
echo "$as_me:$LINENO: result: Lua 5.1 or later" >&5
8257
echo "${ECHO_T}Lua 5.1 or later" >&6
8258
# note: different versions of lua use different libs
8263
if test "$LUABIN"; then
8264
echo "$as_me:$LINENO: checking whether Lua dynamic loading is enabled" >&5
8265
echo $ECHO_N "checking whether Lua dynamic loading is enabled... $ECHO_C" >&6
8266
# using Lua to check Lua
8267
# lua 5.0 & 5.1 have different fn names
8268
if test -z "$LUAV51"; then
8269
LUADYNAMICLOADLIB=`$LUABIN -e '_,_,c=loadlib("no_such_lib","") if c~="absent" then print "1" end'`
8271
LUADYNAMICLOADLIB=`$LUABIN -e '_,_,c=package.loadlib("no_such_lib","") if c~="absent" then print "1" end'`
8274
if test -z "$LUADYNAMICLOADLIB"; then
8275
echo "$as_me:$LINENO: result: no" >&5
8276
echo "${ECHO_T}no" >&6
8278
echo "$as_me:$LINENO: result: yes" >&5
8279
echo "${ECHO_T}yes" >&6
8283
# look for the header files
8284
echo "$as_me:$LINENO: checking for Lua header files" >&5
8285
echo $ECHO_N "checking for Lua header files... $ECHO_C" >&6
8286
if test -z "$LUAINCLUDE"; then
8287
#AC_TRY_CPP([#include <lua.h>], , LUAINCLUDE="")
8288
cat >conftest.$ac_ext <<_ACEOF
8291
cat confdefs.h >>conftest.$ac_ext
8292
cat >>conftest.$ac_ext <<_ACEOF
8293
/* end confdefs.h. */
8296
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8297
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8299
grep -v '^ *+' conftest.er1 >conftest.err
8301
cat conftest.err >&5
8302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303
(exit $ac_status); } >/dev/null; then
8304
if test -s conftest.err; then
8305
ac_cpp_err=$ac_c_preproc_warn_flag
8306
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8313
if test -z "$ac_cpp_err"; then
8316
echo "$as_me: failed program was:" >&5
8317
sed 's/^/| /' conftest.$ac_ext >&5
8321
rm -f conftest.err conftest.$ac_ext
8322
if test -z "$LUAINCLUDE"; then
8323
dirs="/usr/local/include /usr/include /opt/local/include"
8325
if test -r $i/lua.h; then
8326
echo "$as_me:$LINENO: result: $i" >&5
8327
echo "${ECHO_T}$i" >&6
8328
LUAINCLUDE="$ISYSTEM$i"
8334
if test -z "$LUAINCLUDE"; then
8335
echo "$as_me:$LINENO: result: not found" >&5
8336
echo "${ECHO_T}not found" >&6
8338
echo "$as_me:$LINENO: result: $LUAINCLUDE" >&5
8339
echo "${ECHO_T}$LUAINCLUDE" >&6
8342
# look for the library files
8343
echo "$as_me:$LINENO: checking for Lua library" >&5
8344
echo $ECHO_N "checking for Lua library... $ECHO_C" >&6
8345
if test -z "$LUALIB"; then
8346
dirs="/usr/local/lib /usr/lib /opt/local/lib"
8348
if test -r $i/liblua.a; then
8349
echo "$as_me:$LINENO: result: $i" >&5
8350
echo "${ECHO_T}$i" >&6
8356
if test -z "$LUALIB"; then
8357
echo "$as_me:$LINENO: result: not found" >&5
8358
echo "${ECHO_T}not found" >&6
8360
echo "$as_me:$LINENO: result: $LUALIB" >&5
8361
echo "${ECHO_T}$LUALIB" >&6
8364
# copied from PYTHON code, but I think this is not needed for lua...
8365
# Cygwin (Windows) needs the library for dynamic linking
8367
#*-*-cygwin* | *-*-mingw*) LUADYNAMICLINKING="-L$LUALIB $PYLINK"
8368
# PYINCLUDE="-DUSE_DL_IMPORT $PYINCLUDE"
8370
#*)LUADYNAMICLINKING="";;
8373
fi # if not disabled
8381
#----------------------------------------------------------------
7917
8382
# Determine which languages to use for examples/test-suite
7918
8383
#----------------------------------------------------------------
8888
9364
s,@CSHARPLIBRARYPREFIX@,$CSHARPLIBRARYPREFIX,;t t
8889
9365
s,@CSHARPCFLAGS@,$CSHARPCFLAGS,;t t
8890
9366
s,@CSHARPSO@,$CSHARPSO,;t t
9367
s,@LUABIN@,$LUABIN,;t t
9368
s,@LUADYNAMICLINKING@,$LUADYNAMICLINKING,;t t
9369
s,@LUAINCLUDE@,$LUAINCLUDE,;t t
9370
s,@LUALIB@,$LUALIB,;t t
9371
s,@LUALIBRARY@,$LUALIBRARY,;t t
8891
9372
s,@SKIP_TCL@,$SKIP_TCL,;t t
8892
9373
s,@SKIP_PERL5@,$SKIP_PERL5,;t t
8893
9374
s,@SKIP_PYTHON@,$SKIP_PYTHON,;t t
9538
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9539
# Extract the definition of DEP_FILES from the Makefile without
10020
# Extract the definition of DEPDIR, am__include, and am__quote
10021
# from the Makefile without running `make'.
9541
10022
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9542
10023
test -z "$DEPDIR" && continue
10024
am__include=`sed -n 's/^am__include = //p' < "$mf"`
10025
test -z "am__include" && continue
10026
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9543
10027
# When using ansi2knr, U may be empty or an underscore; expand it
9544
10028
U=`sed -n 's/^U = //p' < "$mf"`
9545
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9546
# We invoke sed twice because it is the simplest approach to
9547
# changing $(DEPDIR) to its actual value in the expansion.
9548
for file in `sed -n '
9549
/^DEP_FILES = .*\\\\$/ {
9558
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10029
# Find all dependency output files, they are included files with
10030
# $(DEPDIR) in their names. We invoke sed twice because it is the
10031
# simplest approach to changing $(DEPDIR) to its actual value in the
10033
for file in `sed -n "
10034
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9559
10035
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9560
10036
# Make sure the directory exists.
9561
10037
test -f "$dirpart/$file" && continue