aboutsummaryrefslogtreecommitdiff
path: root/gas/configure
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2012-04-05 08:43:41 +0000
committerNick Clifton <nickc@redhat.com>2012-04-05 08:43:41 +0000
commit443507505d3a8bac2b5dc2e8578af2006f68cc80 (patch)
tree23720063ed46adcf849f831e44f9048334bf7c46 /gas/configure
parent78a761e2471d7f4bfb6e4d58693bdd932b10409b (diff)
downloadgdb-443507505d3a8bac2b5dc2e8578af2006f68cc80.zip
gdb-443507505d3a8bac2b5dc2e8578af2006f68cc80.tar.gz
gdb-443507505d3a8bac2b5dc2e8578af2006f68cc80.tar.bz2
* configure.in (AC_CHECK_FUNCS): Add setlocale.
(AM_LC_MESSAGES): Add. * aclocal.m4: Regenerate. * config.in: Regenerate. * configure: Regenerate.
Diffstat (limited to 'gas/configure')
-rwxr-xr-xgas/configure45
1 files changed, 45 insertions, 0 deletions
diff --git a/gas/configure b/gas/configure
index 6b4d11c..148ce78 100755
--- a/gas/configure
+++ b/gas/configure
@@ -13457,6 +13457,51 @@ fi
done
+for ac_func in setlocale
+do :
+ ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
+if test "x$ac_cv_func_setlocale" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_SETLOCALE 1
+_ACEOF
+
+fi
+done
+
+
+ { $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
+
+
# do we need the math library?
case "${need_libm}" in
yes)