2 # Copyright (C) 1997-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 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Test for multiple replacement functions.
22 cat >> configure.ac << 'END'
26 # 'am__dummy_function' is there to ensure that at least one function is
27 # replaced, to avoid creating an empty archive which can cause problems
28 # with e.g. Solaris ar.
29 AC_REPLACE_FUNCS([basename dirname am__dummy_function])
33 cat > Makefile.am << 'END'
34 noinst_LIBRARIES = libtu.a
36 libtu_a_LIBADD = @LIBOBJS@
37 check-local: test1 test2 test3
38 .PHONY: test1 test2 test3
42 @echo DIST_COMMON = $(DIST_COMMON)
43 echo ' ' $(DIST_COMMON) ' ' | grep '[ /]basename\.c '
44 echo ' ' $(DIST_COMMON) ' ' | grep '[ /]dirname\.c '
45 echo ' ' $(DIST_COMMON) ' ' | grep '[ /]am__dummy_function\.c '
47 test -f $(distdir)/basename.c
48 test -f $(distdir)/dirname.c
49 test -f $(distdir)/am__dummy_function.c
52 cat > basename.c <<'END'
55 cat > dirname.c <<'END'
58 cat > am__dummy_function.c <<'END'
64 $AUTOMAKE --add-missing