]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Since the bootstrap process requires that several of the rules for
authorGary V. Vaughan <gary@gnu.org>
Mon, 25 Apr 2005 15:06:44 +0000 (15:06 +0000)
committerGary V. Vaughan <gary@gnu.org>
Mon, 25 Apr 2005 15:06:44 +0000 (15:06 +0000)
files generated in doc and tests already lived in
$top_srcdir/Makefile.am, along with proxy rules in sub-Makefiles,
this changeset consolidates almost everything into the top
Makefile.am, simplifying things considerably:

* doc/Makefile.am, tests/Makefile.am: Removed.  All rules moved...
* Makefile.am: ...to here and adjusted to run from $top_builddir.
simplify with respect to removing much of the make recursion.
Add `doc/PLATFORMS', `doc/fdl.texi' and `doc/notes.texi'.
`defs.in' and `defs.m4sh' are in directory `tests'.
(uninstall-hook): Don't forget to uninstall libtoolize's libltdl
source tree.
(lt__cd): New make macros to work around problems with CDPATH in
some shells.
* bootstrap: Simplified dirty makefile management, and bootstrap
file creation in light of having only a single pertinent
Makefile.
* configure.ac (CONF_SUBDIRS): Add tests/ prefix to each subdir to
compensate.
(DIST_MAKEFILE_LIST): Adjust.
(AC_CONFIG_FILES): Remove doc/Makefile and tests/Makefile.
* tests/defs.m4sh (LIBTOOL, scripts): Adjust paths.
* tests/cdemo-conf.test, tests/cdemo-exec.test,
tests/cdemo-make.test, tests/cdemo-shared.test,
tests/cdemo-static.test, tests/cdemo-undef.test,
tests/demo-conf.test, tests/demo-deplibs.test,
tests/demo-exec.test, tests/demo-hardcode.test,
tests/demo-inst.test, tests/demo-make.test,
tests/demo-nofast.test, tests/demo-noinst-link.test,
tests/demo-nopic.test, tests/demo-pic.test,
tests/demo-relink.test, tests/demo-shared.test,
tests/demo-static.test, tests/demo-unst.test,
tests/depdemo-conf.test, tests/depdemo-exec.test,
tests/depdemo-inst.test, tests/depdemo-make.test,
tests/depdemo-nofast.test, tests/depdemo-relink.test,
tests/depdemo-shared.test, tests/depdemo-static.test,
tests/depdemo-unst.test, tests/f77demo-conf.test,
tests/f77demo-exec.test, tests/f77demo-make.test,
tests/f77demo-shared.test, tests/f77demo-static.test,
tests/link-2.test, tests/link.test, tests/mdemo-conf.test,
tests/mdemo-dryrun.test, tests/mdemo-exec.test,
tests/mdemo-inst.test, tests/mdemo-make.test,
tests/mdemo-unst.test, tests/mdemo2-conf.test,
tests/mdemo2-exec.test, tests/mdemo2-make.test, tests/nomode.test,
tests/objectlist.test, tests/pdemo-conf.test,
tests/pdemo-exec.test, tests/pdemo-inst.test,
tests/pdemo-make.test, tests/quote.test, tests/sh.test,
tests/suffix.test, tests/tagdemo-conf.test,
tests/tagdemo-exec.test, tests/tagdemo-make.test,
tests/tagdemo-undef.test, tests/tagtrace.test (func_cd,
func_require): Adjust paths..
* HACKING: Use lt__cd throughout.

69 files changed:
ChangeLog
HACKING
Makefile.am
bootstrap
configure.ac
tests/cdemo-conf.test
tests/cdemo-exec.test
tests/cdemo-make.test
tests/cdemo-shared.test
tests/cdemo-static.test
tests/cdemo-undef.test
tests/defs.m4sh
tests/demo-conf.test
tests/demo-deplibs.test
tests/demo-exec.test
tests/demo-hardcode.test
tests/demo-inst.test
tests/demo-make.test
tests/demo-nofast.test
tests/demo-noinst-link.test
tests/demo-nopic.test
tests/demo-pic.test
tests/demo-relink.test
tests/demo-shared.test
tests/demo-static.test
tests/demo-unst.test
tests/depdemo-conf.test
tests/depdemo-exec.test
tests/depdemo-inst.test
tests/depdemo-make.test
tests/depdemo-nofast.test
tests/depdemo-relink.test
tests/depdemo-shared.test
tests/depdemo-static.test
tests/depdemo-unst.test
tests/f77demo-conf.test
tests/f77demo-exec.test
tests/f77demo-make.test
tests/f77demo-shared.test
tests/f77demo-static.test
tests/link-2.test
tests/link.test
tests/mdemo-conf.test
tests/mdemo-dryrun.test
tests/mdemo-exec.test
tests/mdemo-inst.test
tests/mdemo-make.test
tests/mdemo-shared.test
tests/mdemo-static.test
tests/mdemo-unst.test
tests/mdemo2-conf.test
tests/mdemo2-exec.test
tests/mdemo2-make.test
tests/nomode.test
tests/objectlist.test
tests/pdemo-conf.test
tests/pdemo-exec.test
tests/pdemo-inst.test
tests/pdemo-make.test
tests/quote.test
tests/sh.test
tests/suffix.test
tests/tagdemo-conf.test
tests/tagdemo-exec.test
tests/tagdemo-make.test
tests/tagdemo-shared.test
tests/tagdemo-static.test
tests/tagdemo-undef.test
tests/tagtrace.test

index 2f90d38c243fc62007027e315b50e6d2ecc7a1bc..c026d26b6e08905cf868ad4c31881fcb215513d6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,63 @@
+2005-04-25  Gary V. Vaughan  <gary@gnu.org>,
+           Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Since the bootstrap process requires that several of the rules for
+       files generated in doc and tests already lived in
+       $top_srcdir/Makefile.am, along with proxy rules in sub-Makefiles,
+       this changeset consolidates almost everything into the top
+       Makefile.am, simplifying things considerably:
+
+       * doc/Makefile.am, tests/Makefile.am: Removed.  All rules moved...
+       * Makefile.am: ...to here and adjusted to run from $top_builddir.
+       Some reformatting to group rules and declarations by purpose, and
+       simplify with respect to removing much of the make recursion.
+       Add `doc/PLATFORMS', `doc/fdl.texi' and `doc/notes.texi'.
+       `defs.in' and `defs.m4sh' are in directory `tests'.
+       (uninstall-hook): Don't forget to uninstall libtoolize's libltdl
+       source tree.
+       (lt__cd): New make macros to work around problems with CDPATH in
+       some shells.
+       * bootstrap: Simplified dirty makefile management, and bootstrap
+       file creation in light of having only a single pertinent
+       Makefile.
+       * configure.ac (CONF_SUBDIRS): Add tests/ prefix to each subdir to
+       compensate.
+       (DIST_MAKEFILE_LIST): Adjust.
+       (AC_CONFIG_FILES): Remove doc/Makefile and tests/Makefile.
+       * tests/defs.m4sh (LIBTOOL, scripts): Adjust paths.
+       * tests/cdemo-conf.test, tests/cdemo-exec.test,
+       tests/cdemo-make.test, tests/cdemo-shared.test,
+       tests/cdemo-static.test, tests/cdemo-undef.test,
+       tests/demo-conf.test, tests/demo-deplibs.test,
+       tests/demo-exec.test, tests/demo-hardcode.test,
+       tests/demo-inst.test, tests/demo-make.test,
+       tests/demo-nofast.test, tests/demo-noinst-link.test,
+       tests/demo-nopic.test, tests/demo-pic.test,
+       tests/demo-relink.test, tests/demo-shared.test,
+       tests/demo-static.test, tests/demo-unst.test,
+       tests/depdemo-conf.test, tests/depdemo-exec.test,
+       tests/depdemo-inst.test, tests/depdemo-make.test,
+       tests/depdemo-nofast.test, tests/depdemo-relink.test,
+       tests/depdemo-shared.test, tests/depdemo-static.test,
+       tests/depdemo-unst.test, tests/f77demo-conf.test,
+       tests/f77demo-exec.test, tests/f77demo-make.test,
+       tests/f77demo-shared.test, tests/f77demo-static.test,
+       tests/link-2.test, tests/link.test, tests/mdemo-conf.test,
+       tests/mdemo-dryrun.test, tests/mdemo-exec.test,
+       tests/mdemo-inst.test, tests/mdemo-make.test,
+       tests/mdemo-shared.test, tests/mdemo-static.test,
+       tests/mdemo-unst.test, tests/mdemo2-conf.test,
+       tests/mdemo2-exec.test, tests/mdemo2-make.test, tests/nomode.test,
+       tests/objectlist.test, tests/pdemo-conf.test,
+       tests/pdemo-exec.test, tests/pdemo-inst.test,
+       tests/pdemo-make.test, tests/quote.test, tests/sh.test,
+       tests/suffix.test, tests/tagdemo-conf.test,
+       tests/tagdemo-exec.test, tests/tagdemo-make.test,
+       tests/tagdemo-shared.test, tests/tagdemo-static.test,
+       tests/tagdemo-undef.test, tests/tagtrace.test (func_cd,
+       func_require): Adjust paths..
+       * HACKING: Use lt__cd throughout.
+
 2005-04-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * m4/libtool.m4 (_LT_CC_BASENAME): Ignore `compile'.
diff --git a/HACKING b/HACKING
index 1d3b88ad7f4323592e66ce5bea8471d718f50db5..4813a5ee2ba8ddf57638461aa9e0528cf489e282 100644 (file)
--- a/HACKING
+++ b/HACKING
@@ -186,7 +186,7 @@ yyyy-mm-dd  Name of Author  <email@address>  (tiny change)
 
 * Never use basename or dirname.  Instead use sed.
 
-* Do not use `cd' within back-quotes, use `$(am__cd)' instead.
+* Do not use `cd' within back-quotes, use `$(lt__cd)' instead.
   Otherwise the directory name may be printed, depending on CDPATH.
 
 * In general, if a loop is required, it should be silent.  Then the body
index af4d72e2159290429b72e0af07fec0eedb2020a6..8c5a62960923bebf6e3f2e252b3ef7758583b8f4 100644 (file)
 
 ACLOCAL_AMFLAGS  = -I m4
 
+BUILD_SUBDIRS  = . libltdl
+SUBDIRS                = $(BUILD_SUBDIRS)
+DIST_SUBDIRS   = $(BUILD_SUBDIRS)
+EXTRA_DIST     =
+
+# Using `cd' in backquotes may print the directory name, use this instead:
+lt__cd         = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+
+
+## ---------------- ##
+## Libtool scripts. ##
+## ---------------- ##
+
+# The libtool distributor and the standalone libtool script.
+bin_SCRIPTS = libtoolize libtool
+
+libtoolize: $(srcdir)/libtoolize.in
+       rm -f libtoolize.tmp libtoolize
+       $(timestamp); \
+       input="libtoolize.m4sh"; \
+       $(edit) -e "s,@TIMESTAMP\@,$$TIMESTAMP,g" \
+               -e 's,@aclocal_DATA\@,$(aclocal_DATA),g' \
+               -e "s,@pkgvltdl_files\@,$(ltdldatafiles),g" \
+               $(srcdir)/libtoolize.in > libtoolize.tmp
+       chmod a+x libtoolize.tmp
+       chmod a-w libtoolize.tmp
+       mv -f libtoolize.tmp libtoolize
+
+# Use `$(srcdir)' for the benefit of non-GNU makes: this is
+# how libtoolize.in appears in our dependencies.
+EXTRA_DIST += libtoolize.m4sh
+$(srcdir)/libtoolize.in: $(sh_files) libtoolize.m4sh Makefile.am
+       cd $(srcdir); \
+       rm -f libtoolize.in; \
+       $(M4SH) -B ./config libtoolize.m4sh > libtoolize.in
+
+libtool: $(top_builddir)/config.status $(srcdir)/config/ltmain.sh \
+        $(srcdir)/stamp-vcl
+       cd $(top_builddir) && $(SHELL) ./config.status $@
+
+.PHONY: configure-subdirs
+configure-subdirs distdir: $(DIST_MAKEFILE_LIST)
+@DIST_MAKEFILE_LIST@:
+       dir=`echo $@ | sed 's,^[^/]*$$,.,;s,/[^/]*$$,,'`; \
+       test -d $$dir || mkdir $$dir || exit 1; \
+       abs_srcdir=`$(lt__cd) $(srcdir) && pwd`; \
+       (cd $$dir && $$abs_srcdir/$$dir/configure) || exit 1
+
+
+# ---------- #
+# Bootstrap. #
+# ---------- #
+
 edit = sed \
        -e 's,@EGREP\@,$(EGREP),g' \
        -e 's,@FGREP\@,$(FGREP),g' \
@@ -26,56 +79,58 @@ edit = sed \
        -e 's,@LN_S\@,$(LN_S),g' \
        -e 's,@MACRO_VERSION\@,$(VERSION),g' \
        -e 's,@PACKAGE\@,$(PACKAGE),g' \
+       -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
+       -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
+       -e 's,@PACKAGE_STRING\@,$(PACKAGE) $(VERSION),g' \
+       -e 's,@PACKAGE_TARNAME\@,$(PACKAGE),g' \
+       -e 's,@PACKAGE_VERSION\@,$(VERSION),g' \
        -e 's,@SED\@,$(SED),g' \
        -e 's,@VERSION\@,$(VERSION),g' \
-       -e 's,@prefix\@,$(prefix),g' \
-       -e 's,@datadir\@,$(datadir),g' \
-       -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
        -e 's,@aclocaldir\@,$(aclocaldir),g' \
+       -e 's,@datadir\@,$(datadir),g' \
        -e 's,@host_triplet\@,$(host_triplet),g' \
+       -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
+       -e 's,@prefix\@,$(prefix),g' \
        -e "s,@configure_input\@,Generated from $$input; do not edit by hand,g"
 
-timestamp = set dummy `$(MKSTAMP) < $(top_srcdir)/ChangeLog`; shift; \
+timestamp = set dummy `$(MKSTAMP) < $(srcdir)/ChangeLog`; shift; \
        case $(VERSION) in \
          *[acegikmoqsuwy]) TIMESTAMP=" $$1 $$2 $$3" ;; \
          *) TIMESTAMP="" ;; \
        esac
 
-BUILD_SUBDIRS = . libltdl doc tests
-SUBDIRS = $(BUILD_SUBDIRS)
-DIST_SUBDIRS = $(BUILD_SUBDIRS)
-
-sh_files = config/general.m4sh config/getopt.m4sh
-EXTRA_DIST = bootstrap libtoolize.in config/ltmain.m4sh config/mkstamp \
-       $(sh_files) stamp-vcl ChangeLog.1996 ChangeLog.1997 ChangeLog.1998 \
-       ChangeLog.1999 ChangeLog.2000 ChangeLog.2001 ChangeLog.2002 \
-       ChangeLog.2003
-CLEANFILES = libtool libtoolize \
-       libtoolize.tmp config/ltmain.tmp m4/ltversion.tmp
+sh_files       = config/general.m4sh config/getopt.m4sh
+EXTRA_DIST     += bootstrap libtoolize.in config/ltmain.m4sh config/mkstamp \
+                 $(sh_files) stamp-vcl ChangeLog.1996 ChangeLog.1997 \
+                 ChangeLog.1998 ChangeLog.1999 ChangeLog.2000 ChangeLog.2001 \
+                 ChangeLog.2002 ChangeLog.2003
+CLEANFILES     = libtool libtoolize \
+                 libtoolize.tmp config/ltmain.tmp m4/ltversion.tmp
+DISTCLEANFILES =
 
 # These are required by libtoolize and must be executable when installed.
 # Since _SCRIPTS gets the program transform applied we make them
 # executable by hand
-dist_pkgdata_DATA = config/config.guess config/config.sub config/ltmain.sh \
-       config/install-sh
+nobase_dist_pkgdata_DATA = config/config.guess config/config.sub \
+       config/ltmain.sh config/install-sh
 
 # Everything that gets picked up by aclocal is automatically distributed,
 # this is the list of macro files we install on the user's system.
-aclocal_DATA = m4/argz.m4 m4/libtool.m4 m4/ltdl.m4 \
+nobase_aclocal_DATA = m4/argz.m4 m4/libtool.m4 m4/ltdl.m4 \
        m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4
 
-## We know that $(top_srcdir)/ChangeLog has been edited if stamp-vcl
-## needs updating, so we assume we have write access to $(top_srcdir).
+## We know that $(srcdir)/ChangeLog has been edited if stamp-vcl
+## needs updating, so we assume we have write access to $(srcdir).
 ## If we try to maintain ./stamp-vcl to avoid writing to a possibly
-## read-only $(top_srcdir), then when the two stamp-vcls differ, distcheck
+## read-only $(srcdir), then when the two stamp-vcls differ, distcheck
 ## will try to update the one in the read-only source tree it makes.
-MKSTAMP = $(SHELL) $(top_srcdir)/config/mkstamp
-$(top_srcdir)/stamp-vcl: vcl-tmp clean-ltmain-sh ChangeLog
+MKSTAMP = $(SHELL) $(srcdir)/config/mkstamp
+$(srcdir)/stamp-vcl: vcl-tmp clean-ltmain-sh ChangeLog
 vcl-tmp:
-       @set dummy `$(MKSTAMP) < $(top_srcdir)/ChangeLog`; shift; \
+       @set dummy `$(MKSTAMP) < $(srcdir)/ChangeLog`; shift; \
        echo "$$1" > vcl.tmp; \
-       cmp -s vcl.tmp $(top_srcdir)/stamp-vcl \
-         || (echo "Updating stamp-vcl"; cp vcl.tmp $(top_srcdir)/stamp-vcl)
+       cmp -s vcl.tmp $(srcdir)/stamp-vcl \
+         || (echo "Updating stamp-vcl"; cp vcl.tmp $(srcdir)/stamp-vcl)
        -@rm -f vcl.tmp
 
 ## We used to build ltmain.sh in the build tree, but now it is created
@@ -83,7 +138,7 @@ vcl-tmp:
 ## previous builds left behind in the build tree, that would override the
 ## source tree version in current builds.
 clean-ltmain-sh:
-       @-test "$(top_srcdir)" = "$(top_builddir)" || \
+       @-test "$(srcdir)" = "$(top_builddir)" || \
          rm -f "$(top_builddir)/config/ltmain.sh"
 
 # We build ltversion.m4 here, instead of from config.status,
@@ -91,12 +146,12 @@ clean-ltmain-sh:
 # dependencies change and ltversion.m4 happens to be a configure
 # dependency.  configure and ltversion.m4 would be rebuilt in
 # a loop otherwise.
-# Use `$(top_srcdir)/m4' for the benefit of non-GNU makes: this is
+# Use `$(srcdir)/m4' for the benefit of non-GNU makes: this is
 # how ltversion.m4 appears in our dependencies.
 EXTRA_DIST += m4/ltversion.in m4/ltversion.m4
-$(top_srcdir)/m4/ltversion.m4: m4/ltversion.in configure.ac $(top_srcdir)/stamp-vcl
-       set dummy `$(MKSTAMP) < $(top_srcdir)/ChangeLog`; shift; \
-       cd $(top_srcdir); \
+$(srcdir)/m4/ltversion.m4: m4/ltversion.in configure.ac $(srcdir)/stamp-vcl
+       set dummy `$(MKSTAMP) < $(srcdir)/ChangeLog`; shift; \
+       cd $(srcdir); \
        rm -f m4/ltversion.tmp; \
        serial=`echo $$1 | sed 's,^1[.],,g'`; \
        input="ltversion.in"; \
@@ -108,16 +163,16 @@ $(top_srcdir)/m4/ltversion.m4: m4/ltversion.in configure.ac $(top_srcdir)/stamp-
 
 ## And for similar reasons, ltmain.sh can't be built from config.status.
 ## WARNING: If you edit this rule to change the contents of ltmain.sh,
-##          you must `touch $(top_srcdir)/config/ltmain.in' from the
+##          you must `touch $(srcdir)/config/ltmain.in' from the
 ##          shell if you need ltmain.sh to be regenerated.  Ideally, we
 ##          should make this rule depend on Makefile but that will break
 ##          distcheck (at least) by rebuilding ltmain.sh in the source
 ##          tree whenever config.status regenerates the Makefile.
 EXTRA_DIST += config/ltmain.sh
-$(top_srcdir)/config/ltmain.sh: $(sh_files) config/ltmain.m4sh configure.ac \
-                               $(top_srcdir)/stamp-vcl
+$(srcdir)/config/ltmain.sh: $(sh_files) config/ltmain.m4sh configure.ac \
+                               $(srcdir)/stamp-vcl
        $(timestamp); \
-       cd $(top_srcdir); \
+       cd $(srcdir); \
        rm -f config/ltmain.in config/ltmain.tmp config/ltmain.sh; \
        $(M4SH) -B ./config config/ltmain.m4sh > config/ltmain.in; \
        input="ltmain.m4sh"; \
@@ -128,59 +183,19 @@ $(top_srcdir)/config/ltmain.sh: $(sh_files) config/ltmain.m4sh configure.ac \
        chmod a-w config/ltmain.tmp; \
        mv -f config/ltmain.tmp config/ltmain.sh
 
-# The libtool distributor and the standalone libtool script.
-bin_SCRIPTS = libtoolize libtool
 
-libtoolize: $(top_srcdir)/libtoolize.in
-       rm -f libtoolize.tmp libtoolize
-       $(timestamp); \
-       input="libtoolize.m4sh"; \
-       $(edit) -e "s,@TIMESTAMP\@,$$TIMESTAMP,g" \
-               -e 's,@aclocal_DATA\@,$(aclocal_DATA),g' \
-               -e "s,@pkgvltdl_files\@,$(ltdldatafiles),g" \
-               $(top_srcdir)/libtoolize.in > libtoolize.tmp
-       chmod a+x libtoolize.tmp
-       chmod a-w libtoolize.tmp
-       mv -f libtoolize.tmp libtoolize
-
-# Use `$(top_srcdir)' for the benefit of non-GNU makes: this is
-# how libtoolize.in appears in our dependencies.
-EXTRA_DIST += libtoolize.m4sh
-$(top_srcdir)/libtoolize.in: $(sh_files) libtoolize.m4sh Makefile.am
-       cd $(top_srcdir); \
-       rm -f libtoolize.in; \
-       $(M4SH) -B ./config libtoolize.m4sh > libtoolize.in
-
-# The defs script shouldn't be recreated whenever the Makefile is
-# regenerated since the source tree can be read-only.
-check-recursive: tests/defs
-tests/defs: $(top_srcdir)/tests/defs.in
-       rm -f tests/defs.tmp tests/defs; \
-       input="defs.m4sh"; \
-       $(edit) $(top_srcdir)/tests/defs.in > tests/defs.tmp; \
-       mv -f tests/defs.tmp tests/defs
+## -------------- ##
+## Documentation. ##
+## -------------- ##
 
-# Use `$(top_srcdir)/tests' for the benefit of non-GNU makes: this is
-# how defs.in appears in our dependencies.
-# No need to EXTRA_DIST defs.m4sh here, that is handled in tests/Makefile.am.
-$(top_srcdir)/tests/defs.in: config/general.m4sh tests/defs.m4sh Makefile.am
-       cd $(top_srcdir); \
-       rm -f tests/defs.in; \
-       $(M4SH) -B ./config tests/defs.m4sh > tests/defs.in
+info_TEXINFOS          = doc/libtool.texi
+libtool_TEXINFOS       = doc/PLATFORMS doc/fdl.texi
+EXTRA_DIST            += $(libtool_TEXINFOS)
 
-# Automake doesn't want us to generate distributed files from config.status,
-# but the alternative (see libtool-1.4.3) was even uglier!
-libtool: $(top_builddir)/config.status $(top_srcdir)/config/ltmain.sh \
-        $(top_srcdir)/stamp-vcl
-       cd $(top_builddir) && $(SHELL) ./config.status $@
 
-.PHONY: configure-subdirs
-configure-subdirs distdir: $(DIST_MAKEFILE_LIST)
-@DIST_MAKEFILE_LIST@:
-       dir=`echo $@ | sed 's,^[^/]*$$,.,;s,/[^/]*$$,,'`; \
-       test -d $$dir || mkdir $$dir || exit 1; \
-       abs_srcdir=`cd $(top_srcdir) && pwd`; \
-       (cd $$dir && $$abs_srcdir/$$dir/configure) || exit 1
+## ------------- ##
+## Installation. ##
+## ------------- ##
 
 ## These are installed as a subdirectory of pkgdatadir so that
 ## libtoolize --ltdl can find them later:
@@ -227,6 +242,18 @@ install-data-hook:
        chmod +x $(DESTDIR)$(pkgdatadir)/config.sub
        chmod +x $(DESTDIR)$(pkgdatadir)/install-sh
 
+
+## ------------- ##
+## Distribution. ##
+## ------------- ##
+
+uninstall-hook:
+       @for f in $(ltdldatafiles); do \
+         echo " rm -rf '$(DESTDIR)$(ltdldatadir)/$$f'"; \
+         rm -rf "$(DESTDIR)$(ltdldatadir)/$$f"; \
+       done
+
+
 ## Ship README.alpha only in alpha release, but renamed to README
 dist-hook:
        -@test -f $(distdir)/README.alpha && \
@@ -234,3 +261,114 @@ dist-hook:
          *[a-z]) mv $(distdir)/README.alpha $(distdir)/README ;; \
          *)      rm -f $(distdir)/README.alpha ;; \
        esac
+
+
+## ----------- ##
+## Test suite. ##
+## ----------- ##
+
+
+CXX_TESTS = \
+       tests/tagdemo-static.test tests/tagdemo-make.test \
+       tests/tagdemo-exec.test tests/tagdemo-conf.test \
+       tests/tagdemo-make.test tests/tagdemo-exec.test \
+       tests/tagdemo-shared.test tests/tagdemo-make.test \
+       tests/tagdemo-exec.test tests/tagdemo-undef.test \
+       tests/tagdemo-make.test tests/tagdemo-exec.test
+
+F77_TESTS = \
+       tests/f77demo-static.test tests/f77demo-make.test \
+       tests/f77demo-exec.test tests/f77demo-conf.test \
+       tests/f77demo-make.test tests/f77demo-exec.test \
+       tests/f77demo-shared.test tests/f77demo-make.test \
+       tests/f77demo-exec.test
+
+COMMON_TESTS = \
+       tests/link.test tests/link-2.test tests/nomode.test \
+       tests/objectlist.test tests/quote.test tests/sh.test \
+       tests/suffix.test tests/tagtrace.test \
+       tests/cdemo-static.test tests/cdemo-make.test tests/cdemo-exec.test \
+       tests/demo-static.test tests/demo-make.test tests/demo-exec.test \
+       tests/demo-inst.test tests/demo-unst.test \
+       tests/depdemo-static.test tests/depdemo-make.test \
+       tests/depdemo-exec.test tests/depdemo-inst.test \
+       tests/depdemo-unst.test \
+       tests/mdemo-static.test tests/mdemo-make.test tests/mdemo-exec.test \
+       tests/mdemo-inst.test tests/mdemo-unst.test \
+       tests/cdemo-conf.test tests/cdemo-make.test tests/cdemo-exec.test \
+       tests/demo-conf.test tests/demo-make.test tests/demo-exec.test \
+       tests/demo-inst.test tests/demo-unst.test tests/demo-deplibs.test \
+       tests/depdemo-conf.test tests/depdemo-make.test \
+       tests/depdemo-exec.test tests/depdemo-inst.test \
+       tests/depdemo-unst.test \
+       tests/mdemo-conf.test tests/mdemo-make.test tests/mdemo-exec.test \
+       tests/mdemo-inst.test tests/mdemo-unst.test tests/mdemo-dryrun.test \
+       tests/mdemo2-conf.test tests/mdemo2-make.test tests/mdemo2-exec.test \
+       tests/pdemo-conf.test tests/pdemo-make.test tests/pdemo-exec.test \
+       tests/pdemo-inst.test \
+       tests/demo-nofast.test tests/demo-make.test tests/demo-exec.test \
+       tests/demo-inst.test tests/demo-unst.test \
+       tests/depdemo-nofast.test tests/depdemo-make.test \
+       tests/depdemo-exec.test tests/depdemo-inst.test \
+       tests/depdemo-unst.test \
+       tests/demo-pic.test tests/demo-make.test tests/demo-exec.test \
+       tests/demo-nopic.test tests/demo-make.test tests/demo-exec.test \
+       tests/cdemo-shared.test tests/cdemo-make.test tests/cdemo-exec.test \
+       tests/demo-shared.test tests/demo-make.test tests/demo-exec.test \
+       tests/demo-inst.test tests/demo-hardcode.test tests/demo-relink.test \
+       tests/demo-noinst-link.test tests/demo-unst.test \
+       tests/depdemo-shared.test tests/depdemo-make.test \
+       tests/depdemo-exec.test tests/depdemo-inst.test \
+       tests/depdemo-relink.test tests/depdemo-unst.test \
+       tests/mdemo-shared.test tests/mdemo-make.test tests/mdemo-exec.test \
+       tests/mdemo-inst.test tests/mdemo-unst.test \
+       tests/cdemo-undef.test tests/cdemo-make.test tests/cdemo-exec.test
+
+if HAVE_CXX
+if HAVE_F77
+TESTS = $(COMMON_TESTS) $(CXX_TESTS) $(F77_TESTS)
+else
+TESTS = $(COMMON_TESTS) $(CXX_TESTS)
+endif
+else
+if HAVE_F77
+TESTS = $(COMMON_TESTS) $(F77_TESTS)
+else
+TESTS = $(COMMON_TESTS)
+endif
+endif
+
+tests/demo-conf.test: libtool
+
+EXTRA_DIST     += tests/defs.in tests/defs.m4sh \
+                 $(COMMON_TESTS) $(CXX_TESTS) $(F77_TESTS)
+DIST_SUBDIRS   += $(CONF_SUBDIRS)
+
+# The defs script shouldn't be recreated whenever the Makefile is
+# regenerated since the source tree can be read-only.
+check-recursive: tests/defs
+tests/defs: $(srcdir)/tests/defs.in
+       test -d tests || mkdir tests
+       rm -f tests/defs.tmp tests/defs
+       input="defs.m4sh"; \
+       $(edit) $(srcdir)/tests/defs.in > tests/defs.tmp; \
+       mv -f tests/defs.tmp tests/defs
+
+# Use `$(srcdir)/tests' for the benefit of non-GNU makes: this is
+# how defs.in appears in our dependencies.
+$(srcdir)/tests/defs.in: config/general.m4sh tests/defs.m4sh Makefile.am
+       cd $(srcdir); \
+       rm -f tests/defs.in; \
+       $(M4SH) -B ./config tests/defs.m4sh > tests/defs.in
+
+# We need to remove any files that the above tests created.
+clean-local:
+       -cd tests; \
+       for dir in cdemo demo depdemo f77demo mdemo mdemo2 pdemo tagdemo; \
+       do \
+           test -f $$dir/Makefile && ( cd $$dir && $(MAKE) distclean; ); \
+       done
+       rm -rf _inst
+
+$(TESTS): tests/defs
+DISTCLEANFILES += tests/defs
index 60cd234001c0d9524343a12fed695a3b5f3c8ac9..1a9308a3bfa78b31dfcbb891ca68be2f760423d6 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -1,7 +1,7 @@
 #! /bin/sh
 # bootstrap -- Helps bootstrapping libtool, when checked out from CVS.
 #
-# Copyright (C) 2003, 2004, 2005 Free Software Foundation
+# Copyright (C) 2003, 2004, 2005 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
 # better features, and configure.ac documents oldest version of each
 # required for bootstrap (AC_PREREQ, and AM_INIT_AUTOMAKE).
 
+: ${AUTORECONF=autoreconf}
+: ${AUTOM4TE=autom4te}
+: ${MAKE=make}
+: ${GREP=grep}
+: ${EGREP=egrep}
+: ${FGREP=fgrep}
+: ${SED=sed}
+: ${LN_S='ln -s'}
+
 test -f ./configure.ac || {
   echo "bootstrap: can't find ./configure.ac, please rerun from top_srcdir"
   exit 1
@@ -49,24 +58,29 @@ if test -z "$reconfdirs"; then
 fi
 
 # Extract the package name and version number from configure.ac:
-set dummy `sed '/AC_INIT/{s/[][,()]/ /g; p;};d' configure.ac`
+set dummy `$SED '/AC_INIT/{s/[][,()]/ /g; p;};d' configure.ac`
 shift
 
+# Whip up a dirty Makefile:
+test -f Makefile \
+  || $SED '/^if /,/^endif$/d;/^else$/,/^endif$/d' Makefile.am > Makefile
+
 # Building distributed files from configure is bad for automake, so we
 # generate them here, and have Makefile rules to keep them up to date.
 # We don't have all the substitution values to build ltmain.sh from this
 # script yet, but we need config/ltmain.sh for the libtool commands in
 # configure, and ltversion.m4 to generate configure in the first place:
 rm -f ./config/ltmain.sh ./m4/ltversion.m4
-test -f Makefile || { makefile=Makefile; cp Makefile.am $makefile; }
-make ./config/ltmain.sh ./m4/ltversion.m4 ./libtoolize.in ./tests/defs.in \
-    top_srcdir=. PACKAGE="$2" VERSION="$3" M4SH="autom4te -l m4sh"
 
-test -f clcommit.m4sh && make -f Makefile.maint commit \
-    top_srcdir=. PACKAGE="$2" VERSION="$3" M4SH="autom4te -l m4sh" \
-    SED=sed GREP=grep FGREP=fgrep EGREP=egrep LN_S="ln -s"
+$MAKE ./config/ltmain.sh ./m4/ltversion.m4 ./libtoolize.in ./tests/defs.in \
+    srcdir=. top_srcdir=. PACKAGE="$2" VERSION="$3" \
+    PACKAGE_BUGREPORT="bug-$2@gnu.org" M4SH="$AUTOM4TE --language=m4sh"
+
+test -f clcommit.m4sh && $MAKE -f Makefile.maint commit \
+    srcdir=. top_srcdir=. PACKAGE="$2" VERSION="$3" M4SH="autom4te -l m4sh" \
+    SED="$SED" GREP="$GREP" FGREP="$FGREP" EGREP="$EGREP" LN_S="$LN_S"
 
-test -z "$makefile" || rm -f "$makefile"
+rm -f Makefile
 
 # Make a dummy libtoolize script for autoreconf:
 test -f clcommit.m4sh && cat > ./config/libtoolize <<'EOF'
@@ -83,7 +97,7 @@ LIBTOOLIZE=`pwd`/config/libtoolize
 export LIBTOOLIZE
 
 for sub in $reconfdirs; do
-  autoreconf --force --verbose --install $sub
+  $AUTORECONF --force --verbose --install $sub
 done
 
 # Remove our dummy libtoolize
index a5e541b3c0bf226ca4cb9403006ce3df2cbab804..a7d16726c3d8999fc8607470adcfcea493a8bd11 100644 (file)
@@ -136,14 +136,14 @@ if test x"${enable_ltdl_install+set}" != xset; then
 fi
 
 # All subdirectories that are configured on demand, but that must be
-# included in the distribution.  This substitution is for tests/Makefile.am,
-# so the directory names are relative to that directory.
-CONF_SUBDIRS="cdemo demo depdemo f77demo mdemo mdemo2 pdemo tagdemo"
+# included in the distribution.
+CONF_SUBDIRS="tests/cdemo tests/demo tests/depdemo tests/f77demo tests/mdemo \
+       tests/mdemo2 tests/pdemo tests/tagdemo"
 AC_SUBST([CONF_SUBDIRS])
 
 DIST_MAKEFILE_LIST=
 for dir in $CONF_SUBDIRS; do
-  DIST_MAKEFILE_LIST="${DIST_MAKEFILE_LIST}tests/$dir/Makefile "
+  DIST_MAKEFILE_LIST="${DIST_MAKEFILE_LIST}$dir/Makefile "
 done
 AC_SUBST([DIST_MAKEFILE_LIST])
 
@@ -184,5 +184,5 @@ AM_CONDITIONAL(HAVE_RC, [test -n "[$]_LT_TAGVAR(compiler, RC)"])
 ## -------- ##
 ## Outputs. ##
 ## -------- ##
-AC_CONFIG_FILES([Makefile libltdl/Makefile doc/Makefile tests/Makefile])
+AC_CONFIG_FILES([Makefile libltdl/Makefile])
 AC_OUTPUT
index 52a1a6b4af09e76984fe336026ae1c334a7a9b9a..2c94addaf789c469a6580876ac7ff44c6277762c 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_mkprefixdir
-func_cd "cdemo"
+func_cd "tests/cdemo"
 func_make_distclean
 func_configure
 func_check_static_shared "yes" "yes"
index d5ed6877d132af56f4b99e9c39b90c1a31245406..ff74ea05040eee68ef1ca8a0b63fd09de347334f 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "cdemo-make" "cdemo/cdemo$EXEEXT"
+func_require "cdemo-make" "tests/cdemo/cdemo$EXEEXT"
 
 func_rmprefixdir
 func_exec_init "uninstalled"
-func_exec "cdemo/cdemo"
+func_exec "tests/cdemo/cdemo"
 
 exit $exec_status
index 7d82f9cff2b6ee51a6a0592cef81185c636db55b..93454c1d7c896bdb64185b637285a43ef6ad68f0 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "cdemo-conf" "cdemo/Makefile"
+func_require "cdemo-conf" "tests/cdemo/Makefile"
 
 func_rmprefixdir
-func_cd "cdemo"
+func_cd "tests/cdemo"
 func_make
 
 exit 0
index f7e3273dce301dbbe74ad71a91cd9ce0a9191df5..3ee4bb015faf7869f943886d22beab55d3919332 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_mkprefixdir
-func_cd "cdemo"
+func_cd "tests/cdemo"
 func_make_distclean
 func_configure "--disable-static"
 func_check_static_shared "no" "yes"
index 02f3969ab1fb6739b9f8517ae17922b047b20558..1a5c56205c204c1a5707e69aac767946fea85624 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_mkprefixdir
-func_cd "cdemo"
+func_cd "tests/cdemo"
 func_make_distclean
 func_configure "--disable-shared"
 func_check_static_shared "yes" "no"
index e143fa8a93893782c39d08a8676855af3cf2ba3d..a06a6390e29005549aa6edb7517cc3444a482666 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_mkprefixdir
-func_cd "cdemo"
+func_cd "tests/cdemo"
 func_make_distclean
 func_configure "--disable-static"
 
index 3f36fe86a0393a8942421d56dcf0aa91893c2775..bf9b8545ff4f68fcfb71cfc3d6616e54fd9fe28e 100644 (file)
@@ -5,7 +5,7 @@ m4_divert_push([SCRIPT])# @configure_input@
 # Gord Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 # Gary V. Vaughan <gary@gnu.org>, 2003
 
-# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
 # This is free software; see the source for copying conditions.  There is NO
 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
@@ -31,7 +31,7 @@ $as_unset CDPATH
 m4_include([general.m4sh])
 
 : ${AUTOCONF="autoconf"}
-: ${LIBTOOL="../libtool"}
+: ${LIBTOOL="./libtool"}
 
 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
 Xsed="$SED -e 1s/^X//"
@@ -178,7 +178,7 @@ func_configure ()
     $opt_debug
     my_args=${1+"$@"}
     my_dir=`pwd | $SED "$basename"`
-    my_testdir="$srcdir/$my_dir"
+    my_testdir="$srcdir/tests/$my_dir"
 
     test -n "$my_args" && my_args=" $my_args"
     my_args="--srcdir="\""$my_testdir"\"" --prefix="\""$prefix"\""$my_args"
@@ -322,7 +322,7 @@ func_exec ()
 # Shared global variables for test scripts
 prefix="./_inst"
 srcdir=`cd $srcdir && pwd`
-scripts="$srcdir/../config/ltmain.sh ../libtoolize"
+scripts="$srcdir/config/ltmain.sh ./libtoolize"
 
 func_msg "Running $progname"
 
index 7aa59e697d002f8f9b865feb551da0372d0430ff..f87d57fb6585198281a595f9e21d464d4d2fcc5e 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_mkprefixdir
-func_cd "demo"
+func_cd "tests/demo"
 func_make_distclean
 func_configure
 func_check_static_shared "yes" "yes"
index 2650611650723f99a4c3e7212a84cb82cc19d347..b4532d8160c1a5f75654b7ad24f667daf66e068e 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "demo-conf" "demo/libhello.la"
+func_require "demo-conf" "tests/demo/libhello.la"
 
 func_mkprefixdir
-func_cd "demo"
+func_cd "tests/demo"
 echo "linking a shared library against a static library"
 func_make "deplibs-check"
 func_exec_init "uninstalled"
index d196a688e0233a50a6a355bc84cc90466898fb80..67fb4f4cc200cf1615e06ffa27ff9263db12a80b 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 # demo-exec.test - check that programs in the ../demo subdirectory are viable
 
-# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
 # This is free software; see the source for copying conditions.  There is NO
 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "demo-make" "demo/hell$EXEEXT"
+func_require "demo-make" "tests/demo/hell$EXEEXT"
 
 func_rmprefixdir
 func_exec_init "uninstalled"
-func_exec "demo/hell_static" 'Welcome to GNU Hell'
-func_exec "demo/hell" 'Welcome to GNU Hell'
-func_exec "demo/helldl" '(Welcome to .*GNU Hell|unsupported)'
+func_exec "tests/demo/hell_static" 'Welcome to GNU Hell'
+func_exec "tests/demo/hell" 'Welcome to GNU Hell'
+func_exec "tests/demo/helldl" '(Welcome to .*GNU Hell|unsupported)'
 
 exit $exec_status
index b039a63e1aa052920fab81367a697a2d44157d7b..f7afaf7605b4f06752de6569fca9fca6050e12f8 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_require "demo-inst" "$prefix/lib/libhello.la"
 
 func_mkprefixdir
-func_cd "demo"
+func_cd "tests/demo"
 
 # Check to make sure we have a dynamic library.
 func_get_config "library_names" "cat ./libhello.la"
index 75d54d44b3085772bd6a51d45a3d501e10283b09..aae14ba16b68e7155f2dbbcb4eb0ff43a3d7e112 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "demo-make" "demo/hell$EXEEXT"
+func_require "demo-make" "tests/demo/hell$EXEEXT"
 
 func_mkprefixdir
-func_cd "demo"
+func_cd "tests/demo"
 func_make "install"
 func_exec_init "installed"
 func_exec "$prefix/bin/hell_static" 'Welcome to GNU Hell'
index a1c4f9ae5841f4d50dfed4d01d8cf43cff7324c3..681539ba70c937041e8358b651630207bc8dde5d 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "demo-conf" "demo/Makefile"
+func_require "demo-conf" "tests/demo/Makefile"
 
 func_rmprefixdir
-func_cd "demo"
+func_cd "tests/demo"
 func_make
 
 exit 0
index 5f02332d71d05d7fa7c1fa19fa3abc434f1c85a9..2aad0d080304260be7ba965299d71c48ac105f35 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_mkprefixdir
-func_cd "demo"
+func_cd "tests/demo"
 func_make_distclean
 func_configure "--enable-fast-install=no"
 
index 1b4f9a194d30141991d125652a855c6a28efae6f..bb60088700230425f661b5afc3d1300edeee72aa 100755 (executable)
@@ -22,7 +22,7 @@
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_restore_files ()
 {
@@ -42,7 +42,7 @@ func_save_files ()
 func_require "demo-inst" "$prefix/lib/libhello.la"
 
 func_mkprefixdir
-func_cd "demo"
+func_cd "tests/demo"
 func_save_files
 
 func_msg "removing \`libhello.la' and \`hell' from demo"
index 0ef1ce7c890868f4a449906a003c7c18675262f9..c04cf9061100bec2d3a311d3a9a3de05fc6ea151 100755 (executable)
@@ -21,7 +21,7 @@
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 case "$host" in
 hppa*|x86_64*|s390*)
@@ -33,7 +33,7 @@ hppa*|x86_64*|s390*)
 esac
 
 func_rmprefixdir
-func_cd "demo"
+func_cd "tests/demo"
 func_make_distclean
 func_configure "--with-pic=no"
 
index 48dfb8303fed1954051d7673ad11df475c02e961..6d2e2f7573fd0b619a1a6a06c9c4ddd9ef52af5c 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_rmprefixdir
-func_cd "demo"
+func_cd "tests/demo"
 func_make_distclean
 func_configure "--with-pic=yes"
 
index 94ce0bf3a1522b875c63912d751eec47abb55d85..f1d0214a5fb86dd1de05874336268abe4c7b16e6 100755 (executable)
@@ -21,7 +21,7 @@
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_restore_files ()
 {
@@ -38,10 +38,10 @@ func_save_files ()
     trap "func_restore_files" 0 1 2 13 15
 }
 
-func_require "demo-inst" "$prefix/lib/libhello.la"  "demo/libhello.la"
+func_require "demo-inst" "$prefix/lib/libhello.la"  "tests/demo/libhello.la"
 
 func_mkprefixdir
-func_cd "demo"
+func_cd "tests/demo"
 
 # Check to make sure we have a dynamic library.
 func_get_config "library_names" "cat libhello.la"
index 7c992077d6c467a33b531073f65bfa819f73e146..ada956f63c2a16e0c6a2ac79c40ff893a03f6f7c 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_mkprefixdir
-func_cd "demo"
+func_cd "tests/demo"
 func_make_distclean
 func_configure "--disable-static"
 func_check_static_shared "no" "yes"
index e3a4728974403b8dfd80b8f60f97fd8cee61ee46..29cc657d4ab1c8e897d95eb698e551d1ff437ffa 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_mkprefixdir
-func_cd "demo"
+func_cd "tests/demo"
 func_make_distclean
 func_configure "--disable-shared"
 func_check_static_shared "yes" "no"
index 236142852f89837820b1d1ec9e210dfc6d6d21eb..59dd2b03f8b5a54c6283f4cbb170cbd31e57260c 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "demo-inst" "$prefix/bin/hell$EXEEXT" "demo/Makefile"
+func_require "demo-inst" "$prefix/bin/hell$EXEEXT" "tests/demo/Makefile"
 
 func_mkprefixdir
-func_cd "demo"
+func_cd "tests/demo"
 func_make_uninstall
 
 exit 0
index 4eb26653fd9b0ed9e5b6e5d0878b53657a472e45..7d7a46dac9148a4a0cbdac89a6b68eb3276a27c9 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_mkprefixdir
-func_cd "depdemo"
+func_cd "tests/depdemo"
 func_make_distclean
 func_configure
 func_check_static_shared "yes" "yes"
index 7ba6d5b20ad3c84a356035607d299f7da39f5ab4..f011ef70bd75bb46375000d9c76bb43e74bb49e9 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 # depdemo-exec.test - check that programs in the depdemo subdirectory are viable
 
-# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
 # This is free software; see the source for copying conditions.  There is NO
 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "depdemo-make" "depdemo/depdemo$EXEEXT"
+func_require "depdemo-make" "tests/depdemo/depdemo$EXEEXT"
 
 func_rmprefixdir
 func_exec_init "uninstalled"
-func_exec "depdemo/depdemo_static"
-func_exec "depdemo/depdemo"
+func_exec "tests/depdemo/depdemo_static"
+func_exec "tests/depdemo/depdemo"
 
 exit $exec_status
index ddf6cdb3bbd0e2eb2249075a9539b0c95e7213a4..a190195823a5d67da1df960ae79bf2be02afbe7f 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "depdemo-make" "depdemo/depdemo$EXEEXT"
+func_require "depdemo-make" "tests/depdemo/depdemo$EXEEXT"
 
 func_mkprefixdir
-func_cd "depdemo"
+func_cd "tests/depdemo"
 func_make "install"
 func_exec_init "installed"
 func_exec "$prefix/bin/depdemo_static"
index 5eea40754a9c1cc77fe123d9c9e5b35604398149..f4ac92b7a4d590b47db0d8e8d0c1efe6f50dd51d 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "depdemo-conf" "depdemo/Makefile"
+func_require "depdemo-conf" "tests/depdemo/Makefile"
 
 func_rmprefixdir
-func_cd "depdemo"
+func_cd "tests/depdemo"
 func_make
 
 exit 0
index ab8cc46f5080d35f5b9c85aa915bca3808fee2db..ac118195605262c9cfb638b3f81738de0fa635d1 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_mkprefixdir
-func_cd "depdemo"
+func_cd "tests/depdemo"
 func_make_distclean
 func_configure "--enable-fast-install=no"
 
index 53760853e620f5b1aff1075edd144a38e93fce7b..da9e66b8c1b39ff3acbb535aa522ba6ebc2910f4 100755 (executable)
@@ -21,7 +21,7 @@
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_restore_files ()
 {
@@ -48,10 +48,10 @@ func_save_files ()
     trap "func_restore_files" 0 1 2 13 15
 }
 
-func_require "depdemo-inst" "$prefix/lib/libl3.la"  "depdemo/l3/libl3.la"
+func_require "depdemo-inst" "$prefix/lib/libl3.la"  "tests/depdemo/l3/libl3.la"
 
 func_mkprefixdir
-func_cd "depdemo"
+func_cd "tests/depdemo"
 
 # Check to make sure we have a dynamic library.
 func_get_config "library_names" "cat l3/libl3.la"
index 6a490a59ab1240fb29c58bd67720aaf4f3bc94a2..3b0d196f2749e8587fa088c78e4eaaecbdbfa421 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_mkprefixdir
-func_cd "depdemo"
+func_cd "tests/depdemo"
 func_make_distclean
 func_configure "--disable-static"
 func_check_static_shared "no" "yes"
index 21d05518b3c97c9bc66172017fb5e74488d440d3..be5f91703cd46ad11a2554a8802a7e91f9caae0b 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_mkprefixdir
-func_cd "depdemo"
+func_cd "tests/depdemo"
 func_make_distclean
 func_configure "--disable-shared"
 func_check_static_shared "yes" "no"
index 9291a002418548494913570f96027072a28436d8..349fcfeb67198f802298e885fe22da402cf90930 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "depdemo-inst" "$prefix/bin/depdemo$EXEEXT" "depdemo/Makefile"
+func_require "depdemo-inst" "$prefix/bin/depdemo$EXEEXT" "tests/depdemo/Makefile"
 
 func_mkprefixdir
-func_cd "depdemo"
+func_cd "tests/depdemo"
 func_make_uninstall
 
 exit 0
index 67d3ab0215ae3192140180be105efd9ed722c23a..ccf08cfb0201867d07c72d2bb94eb88b611e32b1 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_mkprefixdir
-func_cd "f77demo"
+func_cd "tests/f77demo"
 func_make_distclean
 func_configure
 func_check_static_shared "yes" "yes"
index 4120566d66f4664430339b07b8ca1e988e8c2de5..91a9de9cc195a21390f7d4a656bba3feec3dee28 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 # f77demo-exec.test - check that programs in the f77demo subdirectory are viable
 
-# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
 # This is free software; see the source for copying conditions.  There is NO
 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "f77demo-make" "f77demo/fprogram$EXEEXT" "f77demo/cprogram$EXEEXT"
+func_require "f77demo-make" "tests/f77demo/fprogram$EXEEXT" "tests/f77demo/cprogram$EXEEXT"
 
 func_rmprefixdir
 func_exec_init "uninstalled"
-func_exec "f77demo/fprogram"
-func_exec "f77demo/cprogram"
+func_exec "tests/f77demo/fprogram"
+func_exec "tests/f77demo/cprogram"
 
 exit $exec_status
index a6c826d8aaaca5d8540d07dc5f86bbcfe09c326f..91e642ffcab595024ef74a553890cdd6bf04d6db 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "f77demo-conf" "f77demo/Makefile"
+func_require "f77demo-conf" "tests/f77demo/Makefile"
 
 func_rmprefixdir
-func_cd "f77demo"
+func_cd "tests/f77demo"
 # May fail make on some platforms, simply "skip" in that case
 #func_make
 eval $MAKE || func_skip "The improved fortran tests catch a known failure mode"
index ce3d91e4c52c2b9386f309362c55a4ef1cec272b..ccc81fc9cea7db711a2afad9e920139fe87fb05d 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_mkprefixdir
-func_cd "f77demo"
+func_cd "tests/f77demo"
 func_make_distclean
 func_configure "--disable-static"
 func_check_static_shared "no" "yes"
index f38c47da7814cf253898321bdac5873bfc081bc4..ccbb929f093cd704ef162ba1e5136c02c3c12a73 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_mkprefixdir
-func_cd "f77demo"
+func_cd "tests/f77demo"
 func_make_distclean
 func_configure "--disable-shared"
 func_check_static_shared "yes" "no"
index 9e3be40cd86f1c08ff489064fb12581ccca742e3..84b1c022fa8b62f89c8f67f7c62c873f744db022 100755 (executable)
@@ -21,7 +21,7 @@
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 rm -f hell.lo
 cat > hell.lo <<EOF
index a5af5d4ffe637ffc64640f9343d0ba9bf71f031f..f59102d3115e77685f6452d5257c0129900f1db7 100755 (executable)
@@ -21,7 +21,7 @@
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 # Try a sample link command.
 linkresult=`$LIBTOOL -n --mode=link $CC -o gettext ../lib/libnlsut.a`
index 3714002122f95573bc723aaae1722134e5dec7c3..f2f02652fe4e9e479dee5c95cb3fe702c2a37f7a 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_mkprefixdir
-func_cd "mdemo"
+func_cd "tests/mdemo"
 func_make_distclean
 func_configure
 func_check_static_shared "yes" "yes"
index 753cb10b60afcd21aa297456e81a78d9f39f3466..bec35c363e70656798c32fb1c86cdf9cd4075e4d 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "mdemo-conf" "mdemo/Makefile"
+func_require "mdemo-conf" "tests/mdemo/Makefile"
 
 func_mkprefixdir
-func_cd "mdemo"
+func_cd "tests/mdemo"
 func_make "clean"
 
 # create `before' and `after' in a directory deep within objdir,
index aea7458addeef8917ade206fb0e4525c8e90b424..b9f00bf19b32b857a46075f9f4f3caf67022ed98 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 # mdemo-exec.test - check that programs in the mdemo subdirectory are viable
 
-# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
 # This is free software; see the source for copying conditions.  There is NO
 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "mdemo-make" "mdemo/mdemo$EXEEXT"
+func_require "mdemo-make" "tests/mdemo/mdemo$EXEEXT"
 
 func_rmprefixdir
 func_exec_init "uninstalled"
-func_exec "mdemo/mdemo_static mdemo/foo1.la mdemo/libfoo2.la"
-func_exec "mdemo/mdemo mdemo/foo1.la mdemo/libfoo2.la"
+func_exec "tests/mdemo/mdemo_static tests/mdemo/foo1.la tests/mdemo/libfoo2.la"
+func_exec "tests/mdemo/mdemo tests/mdemo/foo1.la tests/mdemo/libfoo2.la"
 
 exit $exec_status
index 6769e09a1ecdc16f6ffb53df835bfac5afe6c4f0..f63f6517a8874ac192ecbba71a2aa444c3395894 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "mdemo-make" "mdemo/mdemo$EXEEXT"
+func_require "mdemo-make" "tests/mdemo/mdemo$EXEEXT"
 
 func_mkprefixdir
-func_cd "mdemo"
+func_cd "tests/mdemo"
 func_make "install"
 func_exec_init "installed"
 func_exec "$prefix/bin/mdemo_static $prefix/lib/foo1.la $prefix/lib/libfoo2.la"
index 87ef28f5c11e17d6a789dee560f577485b127ecd..d56e0223916b11b603378e7d786641813fabf17a 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "mdemo-conf" "mdemo/Makefile"
+func_require "mdemo-conf" "tests/mdemo/Makefile"
 
 func_rmprefixdir
-func_cd "mdemo"
+func_cd "tests/mdemo"
 func_make
 
 exit 0
index 79843926cec9e67016dd80a0624e55e3e845cda4..b4328e9a975143da5cb2434dabe83076cb5ca3cb 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_mkprefixdir
-func_cd "mdemo"
+func_cd "tests/mdemo"
 func_make_distclean
 func_configure "--disable-static"
 func_check_static_shared "no" "yes"
index bf2a46df39fe87afce3fcddc6d376fd5fafd5fd2..22e63243333ba3e5251595c6a7e3743bdc1c8b99 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_mkprefixdir
-func_cd "mdemo"
+func_cd "tests/mdemo"
 func_make_distclean
 func_configure "--disable-shared"
 func_check_static_shared "yes" "no"
index f28bf7410e1956e137e4077239f536b148a7ea6b..a6946bb9a10139d03f24c4ed4016a968c507d36f 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "mdemo-inst" "$prefix/bin/mdemo$EXEEXT" "mdemo/Makefile"
+func_require "mdemo-inst" "$prefix/bin/mdemo$EXEEXT" "tests/mdemo/Makefile"
 
 func_mkprefixdir
-func_cd "mdemo"
+func_cd "tests/mdemo"
 func_make_uninstall
 
 exit 0
index 065d6980a23d436674c640b827c615a8f5d256c2..e8c0fcb7f8f1807cafb733535a1695a8a1e75c53 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_mkprefixdir
-func_cd "mdemo2"
+func_cd "tests/mdemo2"
 func_make_distclean
 func_configure
 func_check_static_shared "yes" "yes"
index 4a412b47658ac9f6bf6e8bc2d4674b66912c00e6..9698f87c866bbbe6a76ba9e8997842de978de5b9 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "mdemo2-make" "mdemo2/mdemo2$EXEEXT"
+func_require "mdemo2-make" "tests/mdemo2/mdemo2$EXEEXT"
 
 func_rmprefixdir
 func_exec_init "uninstalled"
-func_exec "mdemo2/mdemo2_static mdemo/foo1.la mdemo/libfoo2.la"
-func_exec "mdemo2/mdemo2 mdemo/foo1.la mdemo/libfoo2.la"
+func_exec "tests/mdemo2/mdemo2_static tests/mdemo/foo1.la tests/mdemo/libfoo2.la"
+func_exec "tests/mdemo2/mdemo2 tests/mdemo/foo1.la tests/mdemo/libfoo2.la"
 
 exit $exec_status
index f59f1dce27a35a26786f0947cb2d48a9ac45d15f..4dfcbd22263005eb383644d67343fd0fbf9df16f 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "mdemo2-conf" "mdemo2/Makefile"
-func_require "mdemo-make" "mdemo/libmlib.la"
+func_require "mdemo2-conf" "tests/mdemo2/Makefile"
+func_require "mdemo-make" "tests/mdemo/libmlib.la"
 
 func_rmprefixdir
-func_cd "mdemo2"
+func_cd "tests/mdemo2"
 func_make
 
 exit 0
index 5b30ba05409f4b119b1101f055de505213e73099..61eb106a417414e0b9d1aac51b8a8a536c62f647 100755 (executable)
@@ -21,7 +21,7 @@
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 status=$EXIT_SUCCESS
 if $LIBTOOL --help 2>&1 | grep '^Usage:' >/dev/null; then :
index 7b46449041cea1b743cb0b4a81a832be3f83ee18..c07541aeb53683e603306433736dd0d824b7c383 100755 (executable)
@@ -2,7 +2,7 @@
 # objectlist.test - make sure that a nonexisting objectlist file is
 # properly mentioned and that the argument may contain spaces.
 
-# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
 # This is free software; see the source for copying conditions.  There is NO
 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
@@ -22,7 +22,7 @@
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 # Try a sample link command.
 linkresult=`$LIBTOOL -n --mode=link $CC -objectlist nonexistant 2>&1`
@@ -41,6 +41,6 @@ rm -f "$objlist"
 echo "$linkresult" | ${EGREP} "spaces" >/dev/null 2>&1 && {
   func_msg "$progname: -objectlist with spaces in filename not recognized."
   exit $EXIT_FAILURE
-} 
+}
 
 exit $EXIT_SUCCESS
index 8b9740bc7528c9d2205fdcd99336ef39ff505a4e..95c8d9a05b8bd5e674f79e8a97f668645d72f567 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_mkprefixdir
-func_cd "pdemo"
+func_cd "tests/pdemo"
 func_make_distclean
 func_configure
 func_check_static_shared "yes" "yes"
index 4edc73c52ef161a3c80b70bd7c2165fac176394b..f70ae2126ea4d0fefc61fc50c59d0e49763decb1 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 # pdemo-exec.test - check that programs in the pdemo subdirectory are viable
 
-# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
 # This is free software; see the source for copying conditions.  There is NO
 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "pdemo-make" "pdemo/hell$EXEEXT"
+func_require "pdemo-make" "tests/pdemo/hell$EXEEXT"
 
 func_rmprefixdir
 func_exec_init "uninstalled"
-func_exec "pdemo/hell_static" 'Welcome to GNU Hell'
-func_exec "pdemo/hell" 'Welcome to GNU Hell'
-func_exec "pdemo/helldl" '(Welcome to .*GNU Hell|unsupported)'
+func_exec "tests/pdemo/hell_static" 'Welcome to GNU Hell'
+func_exec "tests/pdemo/hell" 'Welcome to GNU Hell'
+func_exec "tests/pdemo/helldl" '(Welcome to .*GNU Hell|unsupported)'
 
 exit $exec_status
index 580232017f87b705e9a75fae4f477bfc4cfcfa66..b728b09f94dc429c8cbda33e9663472053421d86 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "pdemo-make" "pdemo/hell$EXEEXT"
+func_require "pdemo-make" "tests/pdemo/hell$EXEEXT"
 
 func_mkprefixdir
-func_cd "pdemo"
+func_cd "tests/pdemo"
 func_make "install"
 func_exec_init "installed"
 func_exec "$prefix/bin/hell_static" 'Welcome to GNU Hell'
index 879a3e82597e93a61c27ddf8e9d44fba5f9eee3b..ba3c0f93e26d240e7ff03f09fb79e8f5cf80cbd6 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "pdemo-conf" "pdemo/Makefile"
+func_require "pdemo-conf" "tests/pdemo/Makefile"
 
 func_rmprefixdir
-func_cd "pdemo"
+func_cd "tests/pdemo"
 func_make
 
 exit 0
index 35642c5b85f5098857a503ec69e23c8691e3614c..dc7b2db576e6b9791940981b10c2abd9749fb979 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 # quote.test - make sure that shell metacharacters do not blow up libtool
 
-# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
 # This is free software; see the source for copying conditions.  There is NO
 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
@@ -21,7 +21,7 @@
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 # Do the torture test.
 status=$EXIT_SUCCESS
@@ -30,13 +30,13 @@ case $1 in
   --no-reexec)
     ;;
   *)
-    func_get_config "SHELL" "../libtool --config"
+    func_get_config "SHELL" "$LIBTOOL --config"
     exec $SHELL "$0" --no-reexec ${1+"$@"}
     ;;
 esac
 
-func_get_config "ECHO" "../libtool --config"
-func_get_config "wl" "../libtool --config"
+func_get_config "ECHO" "$LIBTOOL --config"
+func_get_config "wl" "$LIBTOOL --config"
 
 for mode in compile link install; do
   $ECHO "== $mode mode"
index 900f79cdb5adc48d075ae00ce535990eef39d467..93beadaaa6338384fb155b235907a4de6e106031 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 # sh.test - check that we haven't forgotten a `test' command
 
-# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
 # This is free software; see the source for copying conditions.  There is NO
 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
@@ -21,7 +21,7 @@
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 # Check all the "portable" shell scripts.
 status=$EXIT_SUCCESS
@@ -105,7 +105,7 @@ func_foo ()
   fi
 done
 
-for s in "$srcdir/../m4/libtool.m4"
+for s in "$srcdir/m4/libtool.m4"
 do
   if $SED -n '/case \$cc_basename in/,/esac/ {
              /^[       ]*[a-zA-Z][a-zA-Z0-9+]*[^*][    ]*)/p
index 911efcf6bf6fc8225af7c479c647b758adcd5729..ac0b6cdd2af5e203c771e958bc6f1cddf41532ea 100755 (executable)
@@ -26,7 +26,7 @@
 extensions="C F S ada adb ads asm c c++ cc cpp cxx f f90 for m s"
 bad_names="foo."
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 status=$EXIT_SUCCESS
 for ext in $extensions; do
index 5343b8f8752215a19cdacaee1c3a330f07fe4268..82730711eb507bea182d752dace59313c5dc5e18 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_mkprefixdir
-func_cd "tagdemo"
+func_cd "tests/tagdemo"
 func_make_distclean
 func_configure
 func_check_static_shared "yes" "yes"
index dce3f038619d0a4d306287896e5ee720ccfa4025..ada43cd1d1723d520087c4a6986b1e2d341fc1b8 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 # tagdemo-exec.test - check that programs in the tagdemo subdirectory are viable
 
-# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
 # This is free software; see the source for copying conditions.  There is NO
 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "tagdemo-make" "tagdemo/tagdemo$EXEEXT"
+func_require "tagdemo-make" "tests/tagdemo/tagdemo$EXEEXT"
 
 func_rmprefixdir
 func_exec_init "uninstalled"
-func_exec "tagdemo/tagdemo"
+func_exec "tests/tagdemo/tagdemo"
 
 exit $exec_status
index 63c6e8ff41c77fb75323d7b2ddae3c1fa7dfa440..6d15b521a78da4754d861e11c6477de78f0c7ff2 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-func_require "tagdemo-conf" "tagdemo/Makefile"
+func_require "tagdemo-conf" "tests/tagdemo/Makefile"
 
 func_rmprefixdir
-func_cd "tagdemo"
+func_cd "tests/tagdemo"
 func_make
 
 exit 0
index cb3ace98766e7982179e2fa84480f5f8ad310877..785f8009ccf6bf8ac770b08838973fbcc0da35df 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_mkprefixdir
-func_cd "tagdemo"
+func_cd "tests/tagdemo"
 func_make_distclean
 func_configure "--disable-static"
 func_check_static_shared "no" "yes"
index c72463a0bac4ecea9c137b847a26deea71ea9bfc..193d110ff7e1c3abfae096e5aa5c20396657af6d 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 func_mkprefixdir
-func_cd "tagdemo"
+func_cd "tests/tagdemo"
 func_make_distclean
 func_configure "--disable-shared"
 func_check_static_shared "yes" "no"
index c84942fca0b91ab444b53c12a09a6d7f0d5b3e8e..fd7b02c40e33a578ed4f4312d260b252cf52ee2a 100755 (executable)
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
 
 func_mkprefixdir
-func_cd "tagdemo"
+func_cd "tests/tagdemo"
 func_make_distclean
 func_configure "--disable-static"
 
index edb5288f77e4269c5cc42b4eedc4040e855a9490..38366a9657879e10e83372636af98d3509a9c251 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 # tagtrace.test - check the LT_SUPPORTED_TAGS interface
 
-# Copyright (C) 2004 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
 # This is free software; see the source for copying conditions.  There is NO
 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
@@ -21,9 +21,9 @@
 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-. ./defs || exit 1
+. tests/defs || exit 1
 
-: ${fnord=$srcdir/../fnord$$}
+: ${fnord=$srcdir/fnord$$}
 
 "$AUTOCONF" --version > /dev/null 2>&1 || func_skip "This test requires GNU Autoconf"
 if touch $fnord; then
@@ -36,7 +36,7 @@ fi
 set -e
 
 # Retrieve the list of tags supported by our main libtool script.
-traced_tags=`cd "$srcdir/.." && "$AUTOCONF" --trace 'LT_SUPPORTED_TAG:$1'`
+traced_tags=`cd "$srcdir" && "$AUTOCONF" --trace 'LT_SUPPORTED_TAG:$1'`
 
 test -n "$traced_tags"