Index: Makefile.am =================================================================== RCS file: /cvsroot/libtool/libtool/Makefile.am,v retrieving revision 1.192 diff -u -r1.192 Makefile.am --- Makefile.am 9 Feb 2006 15:31:11 -0000 1.192 +++ Makefile.am 28 Feb 2006 17:22:31 -0000 @@ -398,6 +398,7 @@ tests/template.at \ tests/early-libtool.at \ tests/deplibs-ident.at \ + tests/need_lib_prefix.at \ tests/stresstest.at EXTRA_DIST += $(srcdir)/$(TESTSUITE) $(TESTSUITE_AT) $(srcdir)/tests/package.m4 --- /dev/null 1970-01-01 00:00:01.000000000 +0100 +++ tests/need_lib_prefix.at 2006-01-31 14:15:51.000000000 +0100 @@ -0,0 +1,39 @@ +# Hand crafted tests for GNU Libtool. -*- Autotest -*- +# Copyright 2006 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. + +# need_lib_prefix.test - make sure libltdl works on systems that need this + +AT_SETUP([Test libltdl with need_lib_prefix.]) + +# This does not work with BSD make. Require GNU make to be sure. +AT_CHECK([$MAKE --version | grep 'GNU Make' || (exit 77)], [0], [stdout], [ignore]) + +# we just configure the whole Libtool package here again. +AT_CHECK([$abs_top_srcdir/configure $configure_options], 0, [ignore], [ignore]) +sed 's,^need_lib_prefix=.*,need_lib_prefix=unknown,' < ./libtool > ./libtool-new +mv -f ./libtool-new ./libtool +chmod +x ./libtool +LT_AT_MAKE([check], [TESTS=tests/mdemo-conf.test VERBOSE=x TESTSUITE_FLAGS=-V]) +sed 's,^need_lib_prefix=.*,need_lib_prefix=unknown,' \ + < tests/mdemo/libtool > tests/mdemo/libtool-new +mv -f tests/mdemo/libtool-new tests/mdemo/libtool +chmod +x tests/mdemo/libtool +LT_AT_MAKE([check], + [TESTS='tests/mdemo-make.test tests/mdemo-exec.test' VERBOSE=x TESTSUITE_FLAGS=-V]) + +AT_CLEANUP