From 48c77ec11c316e0c8e4d163b3aba58034ba07c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=BA=C5=A1=20Olek=C5=A1=C3=A1k?= Date: Wed, 7 Mar 2018 15:03:49 +0100 Subject: Added AC_CONFIG_AUX_DIR support for autopoint To solve https://github.com/sabotage-linux/gettext-tiny/issues/18, config.rpath should be placed at the right place asked by configure.ac, as well as ABOUT-NLS. --- src/autopoint.in | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/autopoint.in b/src/autopoint.in index a7ddc51..dca1c81 100755 --- a/src/autopoint.in +++ b/src/autopoint.in @@ -6,7 +6,17 @@ for i in $m4src/*.m4 ; do cp -f $i m4/ done -touch config.rpath ABOUT-NLS +dirprefix="" +while read line +do + if [ "${line##*AC_CONFIG_AUX_DIR}" != "$line" ]; then + dirprefix=${line##*([} + dirprefix=${dirprefix%%])*} + mkdir -p ${dirprefix} + fi +done < "configure.ac" + +touch ./${dirprefix}/config.rpath ./${dirprefix}/ABOUT-NLS for i in intl/Makefile.in po/Makefile.in.in ; do install -D -m 644 @datadir@/data/autopoint_Makefile.in "$i" -- cgit v1.2.1