tests: Let 'ltorder.sh' run successfully with Guix dynamic loader
[automake.git] / t / subobj11c.sh
blobd5e5d54d6cc145e246f711a6e9896598327e3a4d
1 #! /bin/sh
2 # Copyright (C) 2010-2018 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
7 # any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <https://www.gnu.org/licenses/>.
17 # Automatic dependency tracking with subdir-objects option active:
18 # check for a pathological case of slash-collapsing in the name of
19 # included makefile fragments (containing dependency info).
20 # See also related tests 'subobj11a.sh' and 'subobj11b.sh'.
22 . test-init.sh
24 echo AC_PROG_CC >> configure.ac
26 cat > Makefile.am << 'END'
27 AUTOMAKE_OPTIONS = subdir-objects
28 bin_PROGRAMS = foo
29 foo_SOURCES = //zardoz.c
30 END
32 $ACLOCAL
33 $AUTOMAKE -a
36 # This check depends on automake internals, but presently this is
37 # the only way to test the code path we are interested in.
38 # Please update these checks when (and if) the relevant automake
39 # internals are changed.
41 # Be a little lax in the regexp, to account for automake conditionals,
42 # quoting, and similar stuff.
44 # FIXME: Are we sure this is the most sensible output in our situation?
46 grep 'am__depfiles_remade =.* //\$(DEPDIR)/zardoz\.Po' Makefile.in