From: Bruno Haible Date: Fri, 17 Nov 2023 21:31:15 +0000 (+0100) Subject: build: Obey --disable-threads also regarding msgmerge and OpenMP. X-Git-Tag: v0.22.4~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5024c838929e3343e578a89151b48698a94b573;p=thirdparty%2Fgettext.git build: Obey --disable-threads also regarding msgmerge and OpenMP. * gettext-tools/configure.ac: If --disable-threads was specified, just set OPENMP_CFLAGS to empty. --- diff --git a/gettext-tools/configure.ac b/gettext-tools/configure.ac index 4a4203c76..4790ad414 100644 --- a/gettext-tools/configure.ac +++ b/gettext-tools/configure.ac @@ -213,7 +213,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