From 52bd1d6e030ce42921745d50aeb3db2b612e5cb0 Mon Sep 17 00:00:00 2001 From: Marti Maria Date: Sun, 5 Jun 2022 18:36:29 +0200 Subject: update configure to new plugin automate make check on threaded plugin --- configure.ac | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 505d63a..07b1dc4 100644 --- a/configure.ac +++ b/configure.ac @@ -154,13 +154,28 @@ then LIB_PLUGINS="$LIB_PLUGINS -llcms2_fast_float" fi +#multi threaded plugin: +AC_ARG_WITH(threaded, + AS_HELP_STRING([--with-threaded], + [build and install multi threaded plugin, use only if GPL 3.0 is acceptable]), + [ + with_threaded=$withval + ], + [ + with_threaded='no' + ]) +if test "x$with_threaded" = "xyes" +then + LIB_PLUGINS="$LIB_PLUGINS -llcms2_threaded" +fi + # # Determine POSIX threads settings # # Enable support for POSIX thread APIs AC_ARG_WITH(threads, - AS_HELP_STRING([--without-threads], - [disable POSIX threads API support]), + AS_HELP_STRING([--without-pthreads], + [disable POSIX pthreads API support]), [with_threads=$withval], [with_threads='yes']) @@ -411,6 +426,7 @@ AC_CONFIG_FILES([utils/jpgicc/Makefile]) AC_CONFIG_FILES([utils/psicc/Makefile]) AC_CONFIG_FILES([testbed/Makefile]) AM_CONDITIONAL([COND_FASTFLOAT], [test "x$with_fastfloat" = "xyes" ]) +AM_CONDITIONAL([COND_THREADED], [test "x$with_threaded" = "xyes" ]) AC_CONFIG_FILES([plugins/Makefile]) AC_CONFIG_FILES([plugins/fast_float/Makefile]) AC_CONFIG_FILES([plugins/fast_float/src/Makefile]) -- cgit v1.2.3