]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
build: Obey --disable-threads also regarding msgmerge and OpenMP.
authorBruno Haible <bruno@clisp.org>
Fri, 17 Nov 2023 21:31:15 +0000 (22:31 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 17 Nov 2023 21:31:15 +0000 (22:31 +0100)
* gettext-tools/configure.ac: If --disable-threads was specified, just set
OPENMP_CFLAGS to empty.

gettext-tools/configure.ac

index a135ae6d0ef93cf492332a26f4c1bbd5a30f2f2e..edb846b9749b233273b8326fbae9c50e8fb721b0 100644 (file)
@@ -214,7 +214,11 @@ fi
 AC_SUBST([MSGMERGE_LIBM])
 
 dnl Test whether msgmerge can make use of OpenMP.
-AC_OPENMP
+if test "$gl_use_threads" != no; then
+  AC_OPENMP
+else
+  OPENMP_CFLAGS=
+fi
 
 dnl Checks for header files, functions and declarations.
 gl_INIT