X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tools-for-build%2Fgrovel-features.sh;h=81f171fc43eac7c29673a16dd54a1740087ecab1;hb=830db48da09c88c0e91b11e2991d21b2a1af2579;hp=0ba0760820cd216c2dabd53db61088244c0ac2c0;hpb=888637f090872d0e00a12be331d6a637d4d99dd3;p=sbcl.git diff --git a/tools-for-build/grovel-features.sh b/tools-for-build/grovel-features.sh index 0ba0760..81f171f 100644 --- a/tools-for-build/grovel-features.sh +++ b/tools-for-build/grovel-features.sh @@ -1,20 +1,15 @@ -# Automated platform feature testing - -DIR=tools-for-build +# Automated platform feature testing +cd ./tools-for-build > /dev/null # FIXME: Use this to test for dlopen presence and hence # load-shared-object buildability -# $1 feature -# $2 additional flags -# # Assumes the presence of $1-test.c, which when built and # run should return with 104 if the feature is present. -# featurep() { - bin="$DIR/$1-test" + bin="$1-test" rm -f $bin - cc $DIR/$1-test.c $2 -o $bin > /dev/null 2>&1 && $bin > /dev/null 2>&1 + $GNUMAKE $bin -I ../src/runtime > /dev/null 2>&1 && ./$bin > /dev/null 2>&1 if [ "$?" = 104 ] then printf " :$1" @@ -22,4 +17,10 @@ featurep() { rm -f $bin } -featurep os-provides-dladdr -ldl +# KLUDGE: ppc/darwin dlopen is special cased in make-config.sh, as +# we fake it with a shim. +featurep os-provides-dlopen + +featurep os-provides-dladdr + +featurep os-provides-putwc