Was removed by mistake on 2002-04-13.
* tests/transform.test: New file.
* tests/Makefile.am (TESTS): Add transform.test.
Reported by Nicolas Joly.
+2002-06-10 Alexandre Duret-Lutz <duret_g@epita.fr>
+
+ * lib/am/header-vars.am (transform): Define.
+ Was removed by mistake on 2002-04-13.
+ * tests/transform.test: New file.
+ * tests/Makefile.am (TESTS): Add transform.test.
+ Reported by Nicolas Joly.
+
2002-06-10 Alexandre Duret-Lutz <duret_g@epita.fr>
* tests/dollar.test: Require GNU make.
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
## These are defined because otherwise make on NetBSD V1.1 will print
## (eg): $(NORMAL_INSTALL) expands to empty string.
texinfo8.test \
texinfo9.test \
texinfo10.test \
+transform.test \
unused.test \
vars.test \
vartar.test \
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
+transform = @program_transform_name@
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
texinfo8.test \
texinfo9.test \
texinfo10.test \
+transform.test \
unused.test \
vars.test \
vartar.test \
--- /dev/null
+#! /bin/sh
+
+# Make sure that --program-transform works.
+
+. $srcdir/defs || exit 1
+
+set -e
+
+cat >>configure.in <<'END'
+AC_PROG_CC
+AC_OUTPUT
+END
+
+cat >Makefile.am <<'EOF'
+bin_PROGRAMS = h
+bin_SCRIPTS = h.sh
+man_MANS = h.1
+EOF
+
+cat >h.c <<'EOF'
+int
+main ()
+{
+ return 0;
+}
+EOF
+
+: > h.sh
+: > h.1
+
+$ACLOCAL
+$AUTOCONF
+$AUTOMAKE
+
+./configure --program-prefix=gnu- --prefix `pwd`/inst
+$MAKE
+$MAKE install
+test -f inst/bin/gnu-h
+test -f inst/bin/gnu-h.sh
+test -f inst/man/man1/gnu-h.1
+$MAKE uninstall
+test `find inst/foo -type f -print | wc -l` = 0