charconv: Add autogen.sh script

AM_ICONV macro depends on gettext installation. Unfortunately autoreconf is
not able to install config.rpath file so do it manually in autogen.sh.

See reported bug:
https://lists.gnu.org/archive/html/bug-gettext/2011-10/msg00012.html
This commit is contained in:
Pali Rohár 2019-06-23 10:47:44 +02:00
parent 0dec6a7a55
commit b657ede4ab
4 changed files with 19 additions and 4 deletions

1
.gitignore vendored
View File

@ -18,6 +18,7 @@ aclocal.m4
autom4te.cache
config.guess
config.log
config.rpath
config.status
config.sub
configure

4
README
View File

@ -49,5 +49,5 @@ repository, you will find that you can not run "./configure" straight away
because it, like other autogenerated files for the build system, is not included
in the repository.
First, autoconf and automake have to be installed. Then you can run
"autoreconf -i" to generate all the required files.
First, autoconf, automake and gettext have to be installed. Then you can run
"./autogen.sh" to generate all the required files.

View File

@ -52,5 +52,5 @@ repository, you will find that you can not run `./configure` straight away
because it, like other autogenerated files for the build system, is not included
in the repository.
First, autoconf and automake have to be installed. Then you can run `autoreconf
-i` to generate all the required files.
First, autoconf, automake and gettext have to be installed. Then you can run
`./autogen.sh` to generate all the required files.

14
autogen.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
# Install config.rpath which is needed for AM_ICONV macro
for dir in "$GETTEXT_DIR" /usr/share/gettext /usr/local/share/gettext; do
if test -f "$dir/config.rpath"; then
test -f config.rpath || echo "autogen.sh: installing './config.rpath'"
cp -f "$dir/config.rpath" .
break
fi
done
aclocal --force
autoconf --force
automake --add-missing --copy --force-missing