Mercurial > vim
comparison src/auto/configure @ 7609:77a14f3bc18b v7.4.1104
commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 16 16:20:38 2016 +0100
patch 7.4.1104
Problem: Various problems building with MzScheme/Racket.
Solution: Make it work with new versions of Racket. (Yukihiro Nakadaira, Ken
Takata)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 16 Jan 2016 16:30:04 +0100 |
parents | c9fc24b76293 |
children | 6157052a0e58 |
comparison
equal
deleted
inserted
replaced
7608:161471eae904 | 7609:77a14f3bc18b |
---|---|
5205 fi | 5205 fi |
5206 | 5206 |
5207 | 5207 |
5208 if test "X$with_plthome" != "X"; then | 5208 if test "X$with_plthome" != "X"; then |
5209 vi_cv_path_mzscheme_pfx="$with_plthome" | 5209 vi_cv_path_mzscheme_pfx="$with_plthome" |
5210 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" | |
5210 else | 5211 else |
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5 | 5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5 |
5212 $as_echo_n "checking PLTHOME environment var... " >&6; } | 5213 $as_echo_n "checking PLTHOME environment var... " >&6; } |
5213 if test "X$PLTHOME" != "X"; then | 5214 if test "X$PLTHOME" != "X"; then |
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5 | 5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5 |
5215 $as_echo "\"$PLTHOME\"" >&6; } | 5216 $as_echo "\"$PLTHOME\"" >&6; } |
5216 vi_cv_path_mzscheme_pfx="$PLTHOME" | 5217 vi_cv_path_mzscheme_pfx="$PLTHOME" |
5218 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" | |
5217 else | 5219 else |
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 | 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 |
5219 $as_echo "not set" >&6; } | 5221 $as_echo "not set" >&6; } |
5220 # Extract the first word of "mzscheme", so it can be a program name with args. | 5222 # Extract the first word of "mzscheme", so it can be a program name with args. |
5221 set dummy mzscheme; ac_word=$2 | 5223 set dummy mzscheme; ac_word=$2 |
5283 rm -f mzdirs.scm | 5285 rm -f mzdirs.scm |
5284 fi | 5286 fi |
5285 fi | 5287 fi |
5286 fi | 5288 fi |
5287 | 5289 |
5288 SCHEME_INC= | |
5289 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then | 5290 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 | 5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5 |
5292 $as_echo_n "checking for racket include directory... " >&6; } | |
5293 SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'` | |
5294 if test "X$SCHEME_INC" != "X"; then | |
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5 | |
5296 $as_echo "${SCHEME_INC}" >&6; } | |
5297 else | |
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
5299 $as_echo "not found" >&6; } | |
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 | |
5291 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; } | 5301 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; } |
5292 if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then | 5302 if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then |
5293 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include | 5303 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include |
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5295 $as_echo "yes" >&6; } | |
5296 else | |
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5298 $as_echo "no" >&6; } | |
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 | |
5300 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; } | |
5301 if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then | |
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5303 $as_echo "yes" >&6; } | 5305 $as_echo "yes" >&6; } |
5304 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt | |
5305 else | 5306 else |
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5307 $as_echo "no" >&6; } | 5308 $as_echo "no" >&6; } |
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5 | 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 |
5309 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; } | 5310 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; } |
5310 if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then | 5311 if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then |
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5312 $as_echo "yes" >&6; } | 5313 $as_echo "yes" >&6; } |
5313 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket | 5314 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt |
5314 else | 5315 else |
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5316 $as_echo "no" >&6; } | 5317 $as_echo "no" >&6; } |
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5 | 5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5 |
5318 $as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; } | 5319 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; } |
5319 if test -f /usr/include/plt/scheme.h; then | 5320 if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then |
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5321 $as_echo "yes" >&6; } | 5322 $as_echo "yes" >&6; } |
5322 SCHEME_INC=/usr/include/plt | 5323 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket |
5323 else | 5324 else |
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5325 $as_echo "no" >&6; } | 5326 $as_echo "no" >&6; } |
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5 | 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5 |
5327 $as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; } | 5328 $as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; } |
5328 if test -f /usr/include/racket/scheme.h; then | 5329 if test -f /usr/include/plt/scheme.h; then |
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5330 $as_echo "yes" >&6; } | 5331 $as_echo "yes" >&6; } |
5331 SCHEME_INC=/usr/include/racket | 5332 SCHEME_INC=/usr/include/plt |
5332 else | 5333 else |
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5334 $as_echo "no" >&6; } | 5335 $as_echo "no" >&6; } |
5335 vi_cv_path_mzscheme_pfx= | 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5 |
5337 $as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; } | |
5338 if test -f /usr/include/racket/scheme.h; then | |
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5340 $as_echo "yes" >&6; } | |
5341 SCHEME_INC=/usr/include/racket | |
5342 else | |
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5344 $as_echo "no" >&6; } | |
5345 vi_cv_path_mzscheme_pfx= | |
5346 fi | |
5336 fi | 5347 fi |
5337 fi | 5348 fi |
5338 fi | 5349 fi |
5339 fi | 5350 fi |
5340 fi | 5351 fi |
5341 fi | 5352 fi |
5342 | 5353 |
5343 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then | 5354 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
5344 if test "x$MACOSX" = "xyes"; then | 5355 |
5345 MZSCHEME_LIBS="-framework Racket" | 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5 |
5346 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" | 5357 $as_echo_n "checking for racket lib directory... " >&6; } |
5347 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then | 5358 SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'` |
5348 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a" | 5359 if test "X$SCHEME_LIB" != "X"; then |
5349 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" | 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5 |
5350 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket3m.a"; then | 5361 $as_echo "${SCHEME_LIB}" >&6; } |
5351 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libracket3m.a" | |
5352 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" | |
5353 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket.a"; then | |
5354 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libracket.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a" | |
5355 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a"; then | |
5356 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a" | |
5357 else | 5362 else |
5358 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then | 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
5359 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m" | 5364 $as_echo "not found" >&6; } |
5360 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" | 5365 fi |
5361 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket3m.so"; then | 5366 |
5362 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lracket3m" | 5367 for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do |
5363 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" | 5368 if test "X$path" != "X"; then |
5364 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libracket.so"; then | 5369 if test "x$MACOSX" = "xyes"; then |
5365 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lracket -lmzgc" | 5370 MZSCHEME_LIBS="-framework Racket" |
5366 else | 5371 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" |
5367 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc" | 5372 elif test -f "${path}/libmzscheme3m.a"; then |
5373 MZSCHEME_LIBS="${path}/libmzscheme3m.a" | |
5374 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" | |
5375 elif test -f "${path}/libracket3m.a"; then | |
5376 MZSCHEME_LIBS="${path}/libracket3m.a" | |
5377 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" | |
5378 elif test -f "${path}/libracket.a"; then | |
5379 MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a" | |
5380 elif test -f "${path}/libmzscheme.a"; then | |
5381 MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a" | |
5382 else | |
5383 if test -f "${path}/libmzscheme3m.so"; then | |
5384 MZSCHEME_LIBS="-L${path} -lmzscheme3m" | |
5385 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" | |
5386 elif test -f "${path}/libracket3m.so"; then | |
5387 MZSCHEME_LIBS="-L${path} -lracket3m" | |
5388 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" | |
5389 elif test -f "${path}/libracket.so"; then | |
5390 MZSCHEME_LIBS="-L${path} -lracket -lmzgc" | |
5391 else | |
5392 if test "$path" != "$SCHEME_LIB"; then | |
5393 continue | |
5394 fi | |
5395 MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc" | |
5396 fi | |
5397 if test "$GCC" = yes; then | |
5398 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}" | |
5399 elif test "`(uname) 2>/dev/null`" = SunOS && | |
5400 uname -r | grep '^5' >/dev/null; then | |
5401 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}" | |
5402 fi | |
5403 fi | |
5368 fi | 5404 fi |
5369 if test "$GCC" = yes; then | 5405 if test "X$MZSCHEME_LIBS" != "X"; then |
5370 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib" | 5406 break |
5371 elif test "`(uname) 2>/dev/null`" = SunOS && | |
5372 uname -r | grep '^5' >/dev/null; then | |
5373 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib" | |
5374 fi | 5407 fi |
5408 done | |
5409 | |
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5 | |
5411 $as_echo_n "checking if racket requires -pthread... " >&6; } | |
5412 if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then | |
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5414 $as_echo "yes" >&6; } | |
5415 MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread" | |
5416 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread" | |
5417 else | |
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5419 $as_echo "no" >&6; } | |
5420 fi | |
5421 | |
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5 | |
5423 $as_echo_n "checking for racket config directory... " >&6; } | |
5424 SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'` | |
5425 if test "X$SCHEME_CONFIGDIR" != "X"; then | |
5426 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'" | |
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5 | |
5428 $as_echo "${SCHEME_CONFIGDIR}" >&6; } | |
5429 else | |
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
5431 $as_echo "not found" >&6; } | |
5375 fi | 5432 fi |
5376 | 5433 |
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5 | 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5 |
5378 $as_echo_n "checking for racket collects directory... " >&6; } | 5435 $as_echo_n "checking for racket collects directory... " >&6; } |
5379 if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then | 5436 SCHEME_COLLECTS=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-collects-dir))) (when (path? p) (let-values (((base _1 _2) (split-path p))) (display base))))'` |
5380 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/ | 5437 if test "X$SCHEME_COLLECTS" = "X"; then |
5381 else | 5438 if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then |
5382 if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then | 5439 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/ |
5383 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/ | |
5384 else | 5440 else |
5385 if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then | 5441 if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then |
5386 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/ | 5442 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/ |
5387 else | 5443 else |
5388 if test -d "$vi_cv_path_mzscheme_pfx/collects"; then | 5444 if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then |
5389 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/ | 5445 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/ |
5446 else | |
5447 if test -d "$vi_cv_path_mzscheme_pfx/collects"; then | |
5448 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/ | |
5449 fi | |
5390 fi | 5450 fi |
5391 fi | 5451 fi |
5392 fi | 5452 fi |
5393 fi | 5453 fi |
5394 if test "X$SCHEME_COLLECTS" != "X" ; then | 5454 if test "X$SCHEME_COLLECTS" != "X" ; then |
5418 fi | 5478 fi |
5419 fi | 5479 fi |
5420 fi | 5480 fi |
5421 if test "X$MZSCHEME_EXTRA" != "X" ; then | 5481 if test "X$MZSCHEME_EXTRA" != "X" ; then |
5422 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE" | 5482 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE" |
5423 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" | |
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5 | 5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5 |
5425 $as_echo "needed" >&6; } | 5484 $as_echo "needed" >&6; } |
5426 else | 5485 else |
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5 | 5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5 |
5428 $as_echo "not needed" >&6; } | 5487 $as_echo "not needed" >&6; } |