diff options
author | Ray Donnelly <mingw.android@gmail.com> | 2015-11-06 00:20:16 +0000 |
---|---|---|
committer | Ray Donnelly <mingw.android@gmail.com> | 2015-11-13 02:17:43 +0000 |
commit | 2cf7a83fded92821a59279cf566fe85fafc35fc8 (patch) | |
tree | 1ae532250416de506df6edf79658f056106438a8 /configure.ac | |
parent | ada8ae30a89eb395e51d6f423c65a57a7dcbfb1b (diff) | |
download | crosstool-ng-2cf7a83fded92821a59279cf566fe85fafc35fc8.tar.gz crosstool-ng-2cf7a83fded92821a59279cf566fe85fafc35fc8.tar.bz2 crosstool-ng-2cf7a83fded92821a59279cf566fe85fafc35fc8.zip |
Cygwin: Link to libintl for gettext
Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
Diffstat (limited to 'configure.ac')
-rwxr-xr-x[-rw-r--r--] | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index a4a9cb9e..b922482e 100644..100755 --- a/configure.ac +++ b/configure.ac @@ -321,7 +321,7 @@ AC_FUNC_REALLOC AC_FUNC_ALLOCA #---------------------------------------- -# Check for gettext, for the kconfig frontends +# Check for gettext and libintl for the kconfig frontends AC_SUBST([gettext]) AC_CHECK_HEADERS( [libintl.h], @@ -333,6 +333,10 @@ AS_IF( [gettext=y],, [AC_INCLUDES_DEFAULT() #include <$ac_ct_gettext_hdr>])]) +SAVE_LIBS=$LIBS +AC_SEARCH_LIBS(bindtextdomain, intl, [test "$ac_res" = "none required" || INTL_LIBS="${ac_res}"]) +LIBS=$SAVE_LIBS +AC_SUBST([INTL_LIBS]) #---------------------------------------- # Check for ncurses, for the kconfig frontends |