master
Marc Wäckerlin 8 years ago
parent 070ce378ff
commit c86e96f568
  1. 4
      configure.ac

@ -28,11 +28,11 @@ AC_ARG_ENABLE(pkcs11-download,
for f in $(wget -qO- ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/ 2>&1 | html2 | sed -n 's,.*/a/@href=\(.*\.h\)$,\1,gp'); do for f in $(wget -qO- ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/ 2>&1 | html2 | sed -n 's,.*/a/@href=\(.*\.h\)$,\1,gp'); do
wget --unlink $f wget --unlink $f
if ! test -f "${f##*/}"; then if ! test -f "${f##*/}"; then
AC_MSG_ERROR([download failed of PKCS#11 header file: ${f##*/}]) AC_MSG_ERROR([download failed of PKCS11 header file: $f])
fi fi
done done
if ! test -f cryptoki.h; then if ! test -f cryptoki.h; then
AC_MSG_ERROR([download failed of PKCS#11 - have you installed xml2?]) AC_MSG_ERROR([download failed of PKCS11 - have you installed xml2?])
fi fi
AM_CPPFLAGS+=" -I$(pwd)" AM_CPPFLAGS+=" -I$(pwd)"
cd - cd -

Loading…
Cancel
Save