make/chklib.sh@13b934b7d03e
make/chklib.sh
Thu, 10 Sep 2026 16:48:33 +0200
- author
- Mike Becker <universe@uap-core.de>
- date
- Thu, 10 Sep 2026 16:48:33 +0200
- changeset 228
- 13b934b7d03e
- parent 197
-
9cbd4f09a22f
- permissions
- -rwxr-xr-x
add possibility to specify the width for a PGN move block + function to generate only the move block
somehow also relates to #924 and issue #970
#!/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