X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tools-for-build%2Fgrovel-features.sh;h=bfae72361148da97bf5fd212666f20f441a9bcd0;hb=9304704f68a18894fa8eb985b387465e5d25e1d5;hp=0931c18fa58ed88d18b1d16e93b00ab34e73d2a1;hpb=4bc6b918bb99e8dcd17bbe6479a06e52b2d04a6c;p=sbcl.git diff --git a/tools-for-build/grovel-features.sh b/tools-for-build/grovel-features.sh index 0931c18..bfae723 100644 --- a/tools-for-build/grovel-features.sh +++ b/tools-for-build/grovel-features.sh @@ -1,25 +1,34 @@ -# 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 2>&1 > /dev/null && $bin 2>&1 /dev/null + $GNUMAKE $bin -I ../src/runtime > /dev/null 2>&1 && echo "input" | ./$bin> /dev/null 2>&1 if [ "$?" = 104 ] then - printf " :$1" + printf " :$1" fi 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 + +featurep os-provides-blksize-t + +featurep os-provides-suseconds-t + +featurep os-provides-getprotoby-r + +featurep os-provides-poll