summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac35
1 files changed, 35 insertions, 0 deletions
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"
+)