2 # Copyright (C) 2012 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)
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'.
20 cat > Makefile.am <<'END'
22 hello_SOURCES = hello.mm
27 grep "'OBJCXX'.* undefined" stderr
28 grep "add .*'AC_PROG_OBJCXX'" stderr
30 rm -rf autom4te*.cache
32 cat >> configure.ac <<'END'
33 dnl Support for Object C++ was introduced only in Autoconf 2.65.
39 : We have a modern enough autoconf, go ahead.
40 elif test $? -eq 63; then
41 skip_ "Object C++ support requires Autoconf 2.65 or later"
43 exit 1 # Some other aclocal failure.
47 $EGREP '^\.SUFFIXES:.* \.mm( |$)' Makefile.in