summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2011-12-20 19:02:08 +0000
committerDJ Delorie <dj@delorie.com>2011-12-20 19:02:08 +0000
commit50300bc7ec875dcd364035b3ec1f4ae8a303feda (patch)
tree74d39f581fe8c8e388878b3995de648c24462600 /libiberty
parent8b142e7aea2536e7181a704fb7197cf7863bed00 (diff)
downloadbinutils-redhat-50300bc7ec875dcd364035b3ec1f4ae8a303feda.tar.gz
merge from gcc
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog5
-rw-r--r--libiberty/aclocal.m42
-rwxr-xr-xlibiberty/configure2
3 files changed, 7 insertions, 2 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 5633af078f..b5366111c1 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -2,6 +2,11 @@
* configure: Regenerate.
+2011-12-20 Tristan Gingold <gingold@adacore.com>
+
+ * aclocal.m4: Assume strncmp works in cross case.
+ * configure: Regenerate
+
2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
* configure: Regenerate.
diff --git a/libiberty/aclocal.m4 b/libiberty/aclocal.m4
index a528604d70..bf8a907100 100644
--- a/libiberty/aclocal.m4
+++ b/libiberty/aclocal.m4
@@ -72,7 +72,7 @@ main ()
exit (0);
}
], ac_cv_func_strncmp_works=yes, ac_cv_func_strncmp_works=no,
- ac_cv_func_strncmp_works=no)
+ ac_cv_func_strncmp_works=yes)
rm -f core core.* *.core])
if test $ac_cv_func_strncmp_works = no ; then
AC_LIBOBJ([strncmp])
diff --git a/libiberty/configure b/libiberty/configure
index 9bccb8e878..9bdea73f95 100755
--- a/libiberty/configure
+++ b/libiberty/configure
@@ -6824,7 +6824,7 @@ if test "${ac_cv_func_strncmp_works+set}" = set; then :
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then :
- ac_cv_func_strncmp_works=no
+ ac_cv_func_strncmp_works=yes
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */