Rafael Kitover e8864b1b28 config: libintl/libiconv for gettext() detection
Detect in autoconf whether `-lintl` and possibly `-liconv` are necessary
for translation functions like `gettext()`.

The actual autoconf code is just:

```
AM_ICONV
AM_GNU_GETTEXT([external])
LIBS="$LIBS $LTLIBINTL $LTLIBICONV"
```

References:

https://www.gnu.org/software/gettext/manual/html_node/AM_005fGNU_005fGETTEXT.html
https://www.gnu.org/software/gettext/manual/html_node/AM_005fICONV.html

The reason to check for `libiconv` and add it separately is that this is
sometimes necessary if users are linking statically.

The `config/*.m4` files were added by running `gettextize` and removing
everything else.

The empty file `config/config.rpath` is necessary to avoid an error with
some versions of autotools, see:

http://ramblingfoo.blogspot.com/2007/07/required-file-configrpath-not-found.html

The `config.rpath` copied by `gettextize` does not currently work, there
is some kind of missing interaction with `libtool` and it tries to apply
`libtool` flags to the compiler.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Richard Laager <rlaager@wiktel.com>
Signed-off-by: Rafael Kitover <rkitover@gmail.com>
Closes #8554
2019-04-19 12:09:29 -07:00
..
2018-05-01 10:33:35 -07:00
2019-01-06 10:39:41 -08:00
2019-03-29 09:13:20 -07:00
2011-04-19 10:10:47 -07:00
2019-03-06 16:03:03 -08:00
2017-01-03 11:31:18 -06:00
2018-05-29 16:00:33 -07:00
2012-10-14 13:06:48 -07:00
2016-11-04 10:46:40 -07:00
2018-08-27 10:04:21 -07:00
2017-01-03 11:31:18 -06:00
2019-03-29 09:13:20 -07:00
2019-03-02 16:19:05 -08:00
2018-05-29 14:51:39 -07:00
2019-04-14 11:04:54 -07:00
2018-05-29 14:51:39 -07:00
2018-03-28 10:19:22 -07:00
2016-03-18 13:31:11 -07:00
2018-11-11 18:06:36 -08:00
2016-03-18 13:31:11 -07:00
2018-05-29 16:00:33 -07:00