|
|
@ -21,9 +21,11 @@ AX_BUILD_EXAMPLES |
|
|
|
AC_ARG_ENABLE(pkcs11-download, |
|
|
|
AC_ARG_ENABLE(pkcs11-download, |
|
|
|
[AS_HELP_STRING([--enable-pkcs11-download], |
|
|
|
[AS_HELP_STRING([--enable-pkcs11-download], |
|
|
|
[download pkcs11 header])], |
|
|
|
[download pkcs11 header])], |
|
|
|
[have_pedantic="$enableval" |
|
|
|
[download_pkcs11="$enableval"], |
|
|
|
|
|
|
|
[if test -z "$MINGW"; then download_pkcs11="no"; else download_pkcs11="yes"; fi]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test "$download_pkcs11" != "no"; then |
|
|
|
AC_MSG_NOTICE([downloading pkcs11 library headers]) |
|
|
|
AC_MSG_NOTICE([downloading pkcs11 library headers]) |
|
|
|
if test "$enableval" = "yes"; then |
|
|
|
|
|
|
|
test -d usr/include || mkdir -p usr/include |
|
|
|
test -d usr/include || mkdir -p usr/include |
|
|
|
cd usr/include |
|
|
|
cd usr/include |
|
|
|
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 |
|
|
@ -37,8 +39,7 @@ AC_ARG_ENABLE(pkcs11-download, |
|
|
|
fi |
|
|
|
fi |
|
|
|
AM_CPPFLAGS+=" -I$(pwd)" |
|
|
|
AM_CPPFLAGS+=" -I$(pwd)" |
|
|
|
cd - |
|
|
|
cd - |
|
|
|
fi |
|
|
|
fi |
|
|
|
]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# qt features |
|
|
|
# qt features |
|
|
|
AX_CHECK_QT([QTGUI], [QtCore QtGui], [QtWidgets]) |
|
|
|
AX_CHECK_QT([QTGUI], [QtCore QtGui], [QtWidgets]) |
|
|
@ -64,3 +65,10 @@ AX_PKG_REQUIRE([mrwcxx], [mrw-c++], [mrw/checkcxx11.hxx]) |
|
|
|
|
|
|
|
|
|
|
|
# create output |
|
|
|
# create output |
|
|
|
AC_OUTPUT |
|
|
|
AC_OUTPUT |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if test "${HAVE_QTGUI}" -ne 1; then |
|
|
|
|
|
|
|
AC_MSG_WARN([QtGui not found, ${HAVE_QTGUI} Qt GUI features disabled]) |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
if test "${HAVE_QTNETWORK}" -ne 1; then |
|
|
|
|
|
|
|
AC_MSG_WARN([QtNetwork5 not found, ${HAVE_QTNETWORK} Qt Network features disabled]) |
|
|
|
|
|
|
|
fi |
|
|
|