diff --git a/tests/XSLT/Makefile.am b/tests/XSLT/Makefile.am index c4372e21..9393e98e 100755 --- a/tests/XSLT/Makefile.am +++ b/tests/XSLT/Makefile.am @@ -1,25 +1,31 @@ - -check_PROGRAMS = xslt_test -if WANT_TESTS - TESTS = $(check_PROGRAMS) -endif - -ELEPHANT_INCLUDE = @ELEPHANT_INCLUDES@ -LIBELEPHANT = @ELEPHANT_LIBS@ - -AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include @PARSER_HEADERS@ @BOOST_CPPFLAGS@ $(ELEPHANT_INCLUDE) -LIBARABICA = $(top_builddir)/src/libarabica.la -LIBSILLY = ../CppUnit/libsillystring.la -TESTLIBS = $(LIBARABICA) ../CppUnit/libcppunit.la -SYSLIBS = @PARSER_LIBS@ - -test_sources = scope_test.hpp \ - xslt_test.hpp \ - xslt_test.cpp - - -xslt_test_SOURCES = main.cpp \ - $(test_sources) -xslt_test_LDADD = $(TESTLIBS) $(LIBELEPHANT) $(SYSLIBS) -xslt_test_DEPENDENCIES = $(TESTLIBS) - + +check_PROGRAMS = xslt_test +if HAS_STD_WSTRING + check_PROGRAMS += xslt_test_wide +endif +if WANT_TESTS + TESTS = $(check_PROGRAMS) +endif + +ELEPHANT_INCLUDE = @ELEPHANT_INCLUDES@ +LIBELEPHANT = @ELEPHANT_LIBS@ + +AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include @PARSER_HEADERS@ @BOOST_CPPFLAGS@ $(ELEPHANT_INCLUDE) +LIBARABICA = $(top_builddir)/src/libarabica.la +LIBSILLY = ../CppUnit/libsillystring.la +TESTLIBS = $(LIBARABICA) ../CppUnit/libcppunit.la +SYSLIBS = @PARSER_LIBS@ + +test_sources = scope_test.hpp \ + xslt_test.hpp + +xslt_test_SOURCES = main.cpp \ + $(test_sources) +xslt_test_LDADD = $(TESTLIBS) $(LIBELEPHANT) $(SYSLIBS) +xslt_test_DEPENDENCIES = $(TESTLIBS) + +xslt_test_wide_SOURCES = main_wide.cpp \ + $(test_sources) +xslt_test_wide_LDADD = $(TESTLIBS) $(LIBELEPHANT) $(SYSLIBS) +xslt_test_wide_DEPENDENCIES = $(TESTLIBS) +