diff options
author | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2006-03-20 20:31:29 +0000 |
---|---|---|
committer | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2006-03-20 20:31:29 +0000 |
commit | b9df3285f2c32960ebeb979bbc6d76ea3e438ba4 (patch) | |
tree | 070fd72637ad1d5c9f70c778e03ffb9f815359e3 /tests/objc.test | |
parent | 2b1fba958daecc7c862aeda1e6acc41821bf8c70 (diff) | |
download | automake-b9df3285f2c32960ebeb979bbc6d76ea3e438ba4.tar.gz |
* m4/init.m4 (AM_INIT_AUTOMAKE): Add `_AM_DEPENDENCIES(OBJC)'
to `AC_PROG_OBJC' if provided, to fix Objective C depmode
handling.
* lib/Automake/Variable.pm (%_ac_macro_for_var): Add entries for
OBJC and OBJCFLAGS.
* tests/ext.test: Adjust.
* tests/objc.test, tests/objc2.test: New tests.
* tests/Makefile.am: Adjust.
* doc/automake.texi (Objective C Support): New node.
(Support for Other Languages): Adjust.
* NEWS: Update.
Diffstat (limited to 'tests/objc.test')
-rwxr-xr-x | tests/objc.test | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/objc.test b/tests/objc.test new file mode 100755 index 000000000..73b885b19 --- /dev/null +++ b/tests/objc.test @@ -0,0 +1,38 @@ +#! /bin/sh +# Copyright (C) 2001, 2002, 2006 Free Software Foundation, Inc. +# +# This file is part of GNU Automake. +# +# GNU Automake is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# GNU Automake is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Automake; see the file COPYING. If not, write to +# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +# Boston, MA 02110-1301, USA. + +# Test that `.m' extension works. +# From Ralf Corsepius (for C++). + +. ./defs || exit 1 + +cat >> configure.in << 'END' +AC_PROG_OBJC +END + +cat > Makefile.am << 'END' +bin_PROGRAMS = hello +hello_SOURCES = hello.m +END + +$ACLOCAL || exit 1 +$AUTOMAKE || exit 1 + +grep '^\.SUFFIXES:.*\.m' Makefile.in |