summaryrefslogtreecommitdiff
path: root/opcodes/configure
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2012-05-11 14:25:25 +0000
committerNick Clifton <nickc@redhat.com>2012-05-11 14:25:25 +0000
commitc8f4db3137c73c932e34c919b1797e8d88b8d09b (patch)
treebbc3d4ad5a60929d211c457fbecc1ccd6e349419 /opcodes/configure
parent39bcaf6f7f1dccbd4ddc8e9168aa21bb2d286ce9 (diff)
downloadbinutils-redhat-c8f4db3137c73c932e34c919b1797e8d88b8d09b.tar.gz
PR binutils/14028
* configure.in: Invoke ACX_HEADER_STRING. * configure: Regenerate. * config.in: Regenerate. * sysdep.h: If STRINGS_WITH_STRING is defined then include both string.h and strings.h.
Diffstat (limited to 'opcodes/configure')
-rwxr-xr-xopcodes/configure32
1 files changed, 32 insertions, 0 deletions
diff --git a/opcodes/configure b/opcodes/configure
index ec7434683e..1613ae055e 100755
--- a/opcodes/configure
+++ b/opcodes/configure
@@ -12089,6 +12089,38 @@ fi
done
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
+$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
+if test "${gcc_cv_header_string+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <string.h>
+#include <strings.h>
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ gcc_cv_header_string=yes
+else
+ gcc_cv_header_string=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
+$as_echo "$gcc_cv_header_string" >&6; }
+if test $gcc_cv_header_string = yes; then
+
+$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
+
+fi
+
ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
if test "x$ac_cv_have_decl_basename" = x""yes; then :