From 9a4ba891a9fdc8a8cb4302b7595110ed781246d5 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 09 Apr 2019 23:54:48 -0400 Subject: configure.ac: Configure usign --- diff --git a/configure.ac b/configure.ac index f486c94..600820f 100644 --- a/configure.ac +++ b/configure.ac @@ -169,3 +169,38 @@ AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([config.sh]) AC_CONFIG_FILES([tests/aux/defs.sh]) AC_OUTPUT() + +# +# usign +# +AC_ARG_WITH( + [cmake], + [AS_HELP_STRING([--with-cmake=PATH], [path to cmake utility])], + [ + case "${withval}" in + 'yes'|'') + AC_MSG_ERROR( + [--with-cmake requires an argument]) + ;; + 'no') + AC_MSG_ERROR([cmake is required]) + ;; + *) + CMAKE="${withval}" + AC_SUBST([CMAKE]) + ;; + esac + ], + [ + AC_PATH_PROG([CMAKE], [cmake]) + if test -z "${CMAKE}"; then + AC_MSG_ERROR([cmake not found]) + fi + ] +) +AS_MKDIR_P([3rdparty/usign]) +abs_srcdir="$(cd "${srcdir}" && pwd)" +( + cd 3rdparty/usign + "${CMAKE}" -D USE_LIBUBOX:BOOL=OFF "${abs_srcdir}/3rdparty/usign" +) -- cgit v0.9.1