make/chklib.sh@1e9751f8eb0d
make/chklib.sh
Fri, 04 Sep 2026 13:49:48 +0200
- author
- Mike Becker <universe@uap-core.de>
- date
- Fri, 04 Sep 2026 13:49:48 +0200
- changeset 218
- 1e9751f8eb0d
- parent 197
-
9cbd4f09a22f
- permissions
- -rwxr-xr-x
add function to reconstruct a board from a FEN string
resolves #939 in principle, but there are many TODOs left
#!/bin/sh
libname="$1"
cc="$CC"
if test -z "$cc"; then cc=cc; fi
if test -z "$libname"; then exit 1; fi
echo 'int main(){return 0;}' > .chklib-test.c
if $cc -o /dev/null .chklib-test.c "-l$libname" ; then
rm .chklib-test.c
exit 0
else
rm .chklib-test.c
exit 1
fi