doc: update Vala documentation
[automake.git] / t / objcxx-basic.sh
blobda6582ee4ec73f65c2153f4333a71f451f670348
1 #! /bin/sh
2 # Copyright (C) 2012-2024 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 # Basic tests on the Objective C++ support that don't actually
15 # require an Objective-C++ compiler.
16 # See also sister test 'objc-basic.sh'.
18 . test-init.sh
20 cat > Makefile.am <<'END'
21 bin_PROGRAMS = hello
22 hello_SOURCES = hello.mm
23 END
25 $ACLOCAL
26 AUTOMAKE_fails
27 grep "'OBJCXX'.* undefined" stderr
28 grep "add .*'AC_PROG_OBJCXX'" stderr
30 rm -rf autom4te*.cache
32 cat >> configure.ac <<'END'
33 AC_PROG_OBJCXX
34 END
36 $ACLOCAL
37 $AUTOMAKE
38 $EGREP '^\.SUFFIXES:.* \.mm( |$)' Makefile.in