* libtextstyle/autogen.sh: Don't pass --with-tests to gnulib-tool.
(GNULIB_MODULES): Add term-ostream-tests.
* gnulib-local/modules/term-ostream-tests (Makefile.am): Don't add
@INTL_MACOSX_LIBS@ to test_term_ostream_LDADD.
* gettext-tools/gnulib-tests/Makefile.am (test_term_ostream_LDADD): Add
@INTL_MACOSX_LIBS@ here.
# Ensure that test-quotearg.c finds libintl.h.
AM_CPPFLAGS += -I../intl
+# Ensure that test-term-ostream links correctly when using --disable-shared
+# on macOS.
+test_term_ostream_LDADD += @INTL_MACOSX_LIBS@
+
# Remove .deps directories creates by 'configure'.
# I would say that this left-over is an Automake 1.16.1 bug.
TESTS += test-term-ostream-xterm.sh
TESTS_ENVIRONMENT += srcdir='$(srcdir)'
check_PROGRAMS += test-term-ostream
-test_term_ostream_LDADD = $(LIBTERMCAP) $(LDADD) @INTL_MACOSX_LIBS@
+test_term_ostream_LDADD = $(LIBTERMCAP) $(LDADD)
filename
xalloc
xconcat-filename
+
+ term-ostream-tests
'
$GNULIB_TOOL --lib=libtextstyle --source-base=lib --m4-base=gnulib-m4 --tests-base=tests \
- --with-tests --makefile-name=Makefile.gnulib --libtool \
+ --makefile-name=Makefile.gnulib --libtool \
--local-dir=gnulib-local --local-dir=../gnulib-local \
--import --avoid=hash-tests $GNULIB_MODULES
$GNULIB_TOOL --copy-file build-aux/config.guess; chmod a+x build-aux/config.guess