objcxx-basic.sh 1019 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #! /bin/sh
  2. # Copyright (C) 2012-2017 Free Software Foundation, Inc.
  3. #
  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.
  8. #
  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.
  13. # Basic tests on the Objective C++ support that don't actually
  14. # require an Objective-C++ compiler.
  15. # See also sister test 'objc-basic.sh'.
  16. . test-init.sh
  17. cat > Makefile.am <<'END'
  18. bin_PROGRAMS = hello
  19. hello_SOURCES = hello.mm
  20. END
  21. $ACLOCAL
  22. AUTOMAKE_fails
  23. grep "'OBJCXX'.* undefined" stderr
  24. grep "add .*'AC_PROG_OBJCXX'" stderr
  25. rm -rf autom4te*.cache
  26. cat >> configure.ac <<'END'
  27. AC_PROG_OBJCXX
  28. END
  29. $ACLOCAL
  30. $AUTOMAKE
  31. $EGREP '^\.SUFFIXES:.* \.mm( |$)' Makefile.in
  32. :