]> git.ipfire.org Git - thirdparty/git.git/commit - configure.ac
autoconf: #include <libintl.h> when checking for gettext()
authorVadim Kochan <vadim4j@gmail.com>
Thu, 18 Apr 2019 05:04:19 +0000 (08:04 +0300)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Apr 2019 04:57:23 +0000 (13:57 +0900)
commitb71e56a68384748f2dc712471957b719513508fb
tree2884c2c3354eedce57800b814605e463e14ea61e
parentaeb582a98374c094361cba1bd756dc6307432c42
autoconf: #include <libintl.h> when checking for gettext()

Some libc implementations like uclibc or musl provides
gettext stubs via libintl library but this case is not checked
by AC_CHECK_LIB(c, gettext ...) because gcc has gettext as builtin
which passess the check.

So check it with included libintl.h where gettext may unfold into
libintl_gettext which will cause check to fail if libintl_gettext are
needed to be linked with -lintl.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
configure.ac