2 # Copyright (C) 2009-2024 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 3 of the License, or
7 # (at your option) any later version.
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 <https://www.gnu.org/licenses/>.
17 # Test to make sure _RANLIB variables are detected and used as documented.
21 cat >> configure.ac
<< 'END'
28 cat > Makefile.am
<< 'END'
29 EXTRA_LIBRARIES
= libfoo.a libbar.a
30 libfoo_a_SOURCES
= foo.c
31 libfoo_a_RANLIB
= $
(RANLIB
)
32 libbar_a_SOURCES
= bar.c
38 # We should use libfoo_a_RANLIB not RANLIB.
39 grep '.\$(libfoo_a_RANLIB) *libfoo.a' Makefile.
in
40 grep '.\$(RANLIB).*libfoo.a' Makefile.
in && exit 1
42 # We should use default RANLIB.
43 grep '^ *libbar_a_RANLIB *=.*\$(RANLIB)' Makefile.
in
45 # Silent make rules should use AM_V_at as they're silenced.
46 grep '.\$(AM_V_at)\$(libfoo_a_RANLIB)' Makefile.
in
47 grep '.\$(AM_V_at)\$(libbar_a_RANLIB)' Makefile.
in