Blame SOURCES/nvptx-tools-glibc.patch

ac4b94
--- nvptx-tools/configure.ac.jj	2017-01-13 12:48:31.000000000 +0100
ac4b94
+++ nvptx-tools/configure.ac	2017-05-03 10:26:57.076092259 +0200
ac4b94
@@ -66,6 +66,8 @@ CPPFLAGS=$save_CPPFLAGS
ac4b94
 LDFLAGS=$save_LDFLAGS
ac4b94
 LIBS=$save_LIBS
ac4b94
 
ac4b94
+AC_CHECK_DECLS(getopt)
ac4b94
+
ac4b94
 AC_CONFIG_SUBDIRS([libiberty])
ac4b94
 AC_CONFIG_FILES([Makefile dejagnu.exp])
ac4b94
 AC_OUTPUT
ac4b94
--- nvptx-tools/configure.jj	2017-01-13 12:48:54.000000000 +0100
ac4b94
+++ nvptx-tools/configure	2017-05-03 10:27:13.503876809 +0200
ac4b94
@@ -3963,6 +3963,18 @@ CPPFLAGS=$save_CPPFLAGS
ac4b94
 LDFLAGS=$save_LDFLAGS
ac4b94
 LIBS=$save_LIBS
ac4b94
 
ac4b94
+ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
ac4b94
+if test "x$ac_cv_have_decl_getopt" = x""yes; then :
ac4b94
+  ac_have_decl=1
ac4b94
+else
ac4b94
+  ac_have_decl=0
ac4b94
+fi
ac4b94
+
ac4b94
+cat >>confdefs.h <<_ACEOF
ac4b94
+#define HAVE_DECL_GETOPT $ac_have_decl
ac4b94
+_ACEOF
ac4b94
+
ac4b94
+
ac4b94
 
ac4b94
 
ac4b94
 subdirs="$subdirs libiberty"