diff options
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 8 | ||||
-rw-r--r-- | ld/aclocal.m4 | 1 | ||||
-rw-r--r-- | ld/config.in | 6 | ||||
-rwxr-xr-x | ld/configure | 40 | ||||
-rw-r--r-- | ld/configure.in | 4 |
5 files changed, 55 insertions, 4 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 1d5e511..cd3e4cc 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,11 @@ +2012-04-05 Nick Clifton <nickc@redhat.com> + + * configure.in (AC_CHECK_FUNCS): Add setlocale. + (AM_LC_MESSAGES): Add. + * aclocal.m4: Regenerate. + * config.in: Regenerate. + * configure: Regenerate. + 2012-04-03 Roland McGrath <mcgrathr@google.com> * configure.tgt (i[3-7]86-*-nacl*, x86_64-*-nacl*): Handle them. diff --git a/ld/aclocal.m4 b/ld/aclocal.m4 index 2f88266..6585160 100644 --- a/ld/aclocal.m4 +++ b/ld/aclocal.m4 @@ -995,6 +995,7 @@ m4_include([../config/acx.m4]) m4_include([../config/depstand.m4]) m4_include([../config/gettext-sister.m4]) m4_include([../config/largefile.m4]) +m4_include([../config/lcmessage.m4]) m4_include([../config/lead-dot.m4]) m4_include([../config/nls.m4]) m4_include([../config/override.m4]) diff --git a/ld/config.in b/ld/config.in index a3867f3..fc013fa 100644 --- a/ld/config.in +++ b/ld/config.in @@ -67,6 +67,9 @@ /* Define to 1 if you have the <inttypes.h> header file. */ #undef HAVE_INTTYPES_H +/* Define if your <locale.h> file defines LC_MESSAGES. */ +#undef HAVE_LC_MESSAGES + /* Define to 1 if you have the <limits.h> header file. */ #undef HAVE_LIMITS_H @@ -97,6 +100,9 @@ /* Define to 1 if you have the <stdlib.h> header file. */ #undef HAVE_STDLIB_H +/* Define to 1 if you have the `setlocale' function. */ +#undef HAVE_SETLOCALE + /* Define to 1 if you have the <strings.h> header file. */ #undef HAVE_STRINGS_H diff --git a/ld/configure b/ld/configure index 4e62427..a41921c 100755 --- a/ld/configure +++ b/ld/configure @@ -4713,6 +4713,40 @@ fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 +$as_echo_n "checking for LC_MESSAGES... " >&6; } +if test "${am_cv_val_LC_MESSAGES+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include <locale.h> +int +main () +{ +return LC_MESSAGES + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + am_cv_val_LC_MESSAGES=yes +else + am_cv_val_LC_MESSAGES=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 +$as_echo "$am_cv_val_LC_MESSAGES" >&6; } + if test $am_cv_val_LC_MESSAGES = yes; then + +$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h + + fi + + ac_config_headers="$ac_config_headers config.h:config.in" @@ -12140,7 +12174,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12143 "configure" +#line 12177 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12246,7 +12280,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12249 "configure" +#line 12283 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -16182,7 +16216,7 @@ fi done -for ac_func in glob mkstemp realpath sbrk waitpid +for ac_func in glob mkstemp realpath sbrk setlocale waitpid do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" diff --git a/ld/configure.in b/ld/configure.in index a5df0fa..99648cf 100644 --- a/ld/configure.in +++ b/ld/configure.in @@ -120,6 +120,8 @@ esac AM_BINUTILS_WARNINGS +AM_LC_MESSAGES + AC_CONFIG_HEADERS([config.h:config.in]) if test -z "$target" ; then @@ -162,7 +164,7 @@ AC_SUBST(NATIVE_LIB_DIRS) AC_CHECK_HEADERS(string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h) AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h sys/stat.h) -AC_CHECK_FUNCS(glob mkstemp realpath sbrk waitpid) +AC_CHECK_FUNCS(glob mkstemp realpath sbrk setlocale waitpid) AC_CHECK_FUNCS(open lseek close) AC_HEADER_DIRENT |