1#! /bin/sh 2# Copyright (C) 2001-2021 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# 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/>. 16 17# Test to make sure that noinst_* and check_* are not installed. 18# From Pavel Roskin. 19 20required=cc 21. test-init.sh 22 23cat > Makefile.am << 'END' 24noinst_SCRIPTS = foo.sh 25noinst_DATA = foo.xpm 26noinst_LIBRARIES = libfoo.a 27noinst_PROGRAMS = foo 28noinst_HEADERS = foo.h 29check_SCRIPTS = bar.sh 30check_DATA = bar.xpm 31check_LIBRARIES = libbar.a 32check_PROGRAMS = bar 33check_HEADERS = bar.h 34END 35 36cat >> configure.ac << 'END' 37AC_PROG_CC 38AM_PROG_AR 39AC_PROG_RANLIB 40AC_OUTPUT 41END 42 43: > ar-lib 44 45$ACLOCAL 46$AUTOMAKE 47 48$EGREP '(noinst|check)dir' Makefile.in && exit 1 49 50$AUTOCONF 51./configure --prefix="$(pwd)/inst" 52 53echo 'int main (void) { return 0; }' > foo.c 54echo 'int main (void) { return 0; }' > bar.c 55 56echo 'int foo (void) { return 0; }' > libfoo.c 57echo 'int bar (void) { return 0; }' > libbar.c 58 59: > foo.sh 60: > foo.xpm 61: > foo.h 62: > bar.sh 63: > bar.xpm 64: > bar.h 65 66$MAKE 67$MAKE install 68test ! -e inst 69 70: 71