2 # Copyright (C) 1997, 1998, 2000, 2001, 2002, 2010, 2011 Free Software
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2, or (at your option)
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # Test for multiple replacement functions.
23 cat >> configure.
in << 'END'
27 # `am__dummy_function' is there to ensure that at least one function is
28 # replaced, to avoid creating an empty archive which can cause problems
29 # with e.g. Solaris ar.
30 AC_REPLACE_FUNCS
([basename dirname am__dummy_function
])
34 cat > Makefile.am
<< 'END'
35 noinst_LIBRARIES
= libtu.a
37 libtu_a_LIBADD
= @LIBOBJS@
38 check-local
: test1 test2 test3
39 .PHONY
: test1 test2 test3
43 @
echo DIST_COMMON
= $
(DIST_COMMON
)
44 echo ' ' $
(DIST_COMMON
) ' ' |
grep '[ /]basename\.c '
45 echo ' ' $
(DIST_COMMON
) ' ' |
grep '[ /]dirname\.c '
46 echo ' ' $
(DIST_COMMON
) ' ' |
grep '[ /]am__dummy_function\.c '
48 test -f $
(distdir
)/basename.c
49 test -f $
(distdir
)/dirname.c
50 test -f $
(distdir
)/am__dummy_function.c
53 cat > basename.c
<<'END'
56 cat > dirname.c
<<'END'
59 cat > am__dummy_function.c
<<'END'
65 $AUTOMAKE --add-missing