# A newline character.
nl='
'
+ # Character ranges might be problematic outside the C locale.
+ # These definitions help.
+ upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
+ lower=abcdefghijklmnopqrstuvwxyz
+ digits=0123456789
+ alpha=${upper}${lower}
-if test -z "$depmode" || test -z "$source" || test -z "$object"; then
- echo "depcomp: Variables source, object and depmode must be set" 1>&2
+if test -z "$depmode" || test -z "$object"; then
+ echo "depcomp: Variables object and depmode must be set" 1>&2
exit 1
fi
}
END
cat > sub/bar.c << 'END'
- extern int bar = 0;
+ int bar (void)
+ {
+ return 0;
+ }
END
-$ACLOCAL
-$AUTOMAKE -a
-grep include Makefile.in # For debugging.
-grep 'include.*\./\$(DEPDIR)/foo\.P' Makefile.in
-grep 'include.*\./\$(DEPDIR)/bar\.P' Makefile.in
-grep 'include.*/\./\$(DEPDIR)' Makefile.in && exit 1
-
-$AUTOCONF
-# Don't reject slower dependency extractors, for better coverage.
-./configure --enable-dependency-tracking
-$MAKE
-cross_compiling || ./zardoz
-DISTCHECK_CONFIGURE_FLAGS='--enable-dependency-tracking' $MAKE distcheck
-
-# Try again with subdir-objects option.
-
-sed 's/#x //' configure.ac >configure.int
-mv -f configure.int configure.ac
-echo AUTOMAKE_OPTIONS = subdir-objects >> Makefile.am
-
$ACLOCAL
$AUTOMAKE -a
grep include Makefile.in # For debugging.
END
mkdir sub
- echo 'extern int foo = 0;' > foo.c
- echo 'extern int bar = 0;' > sub/bar.c
+ echo 'int foo (void) { return 0; }' > foo.c
+ echo 'int bar (void) { return 0; }' > sub/bar.c
libtoolize
-
-$ACLOCAL
-$AUTOMAKE -a
-grep include Makefile.in # For debugging.
-grep 'include.*\./\$(DEPDIR)/foo\.P' Makefile.in
-grep 'include.*\./\$(DEPDIR)/bar\.P' Makefile.in
-grep 'include.*/\./\$(DEPDIR)' Makefile.in && exit 1
-
-$AUTOCONF
-# Don't reject slower dependency extractors, for better coverage.
-./configure --enable-dependency-tracking
-$MAKE
-DISTCHECK_CONFIGURE_FLAGS='--enable-dependency-tracking' $MAKE distcheck
-
-# Try again with subdir-objects option.
-
-sed 's/#x //' configure.ac >configure.int
-mv -f configure.int configure.ac
-echo AUTOMAKE_OPTIONS = subdir-objects >> Makefile.am
-
$ACLOCAL
$AUTOMAKE -a
grep include Makefile.in # For debugging.
# Vala sources and C sources in the same program. Functional test.
- required='valac cc'
-required='valac cc pkg-config GNUmake'
++required='valac cc pkg-config'
. test-init.sh
cat >> configure.ac <<'END'
# Vala sources, C and C++ sources and C and C++ headers in the same
# program. Functional test. See automake bug#10894.
- required='valac cc c++'
-required='valac cc c++ pkg-config GNUmake'
++required='valac cc c++ pkg-config'
. test-init.sh
cat >> configure.ac <<'END'
# Test to make sure compiling Vala code really works with non-recursive make.
- required="pkg-config valac gcc"
-required="pkg-config valac gcc GNUmake"
++required='valac gcc pkg-config'
. test-init.sh
mkdir src
# Vala support with parallel make.
- required='valac cc'
-required='valac cc pkg-config GNUmake'
++required='valac cc pkg-config'
. test-init.sh
cat >> configure.ac <<'END'
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
- # Test per-target flags.
+ # Test per-target flags in vala support.
-required="pkg-config valac gcc GNUmake"
+required="pkg-config valac gcc"
. test-init.sh
mkdir src
# Test and that vapi files are correctly handled by Vala support.
- required='valac cc'
-required='pkg-config valac cc GNUmake'
++required='valac cc pkg-config'
. test-init.sh
cat >> configure.ac <<'END'
# Test to make sure vala support handles from-scratch VPATH builds.
# See automake bug#8753.
- required="cc valac"
-required="cc valac pkg-config GNUmake"
++required='cc valac pkg-config'
. test-init.sh
cat >> configure.ac << 'END'