+2010-09-02 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ Improve code for requiring libtool and gettext in tests.
+ * tests/defs.in: Stricter (and more correct) detection of wheter
+ libtool, libtoolize and/or gettext are in $required.
+
2010-08-31 Peter Rosin <peda@lysator.liu.se>
Do file name conversion for object files in the compile wrapper.
# files from an old version of Automake that we don't want to use.
# Use `-Wno-syntax' because we do not want our test suite to fail because
# some third-party .m4 file is underquoted.
-case $required in
- *libtool* | *gettext* )
+case " $required " in
+ *' libtool '* | *' libtoolize '* | *' gettext '* )
aclocaldir='@prefix@/share/aclocal'
extra_includes=""
if test -f $aclocaldir/dirlist; then
gettext_found=yes
fi
done
- case $required in
- *libtool* ) test $libtool_found = yes || Exit 77 ;;
- *gettext* ) test $gettext_found = yes || Exit 77 ;;
+ case " $required " in
+ *' libtool '* | *' libtoolize '* ) test $libtool_found = yes || Exit 77 ;;
+ *' gettext '* ) test $gettext_found = yes || Exit 77 ;;
esac
# Libtool cannot cope with spaces in the build tree. Our testsuite setup
# cannot cope with spaces in the source tree name for Libtool and gettext