]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: rl78/rx: drop unnecessary getopt.h probing
authorMike Frysinger <vapier@gentoo.org>
Tue, 20 Apr 2021 13:21:28 +0000 (09:21 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 20 Apr 2021 13:23:56 +0000 (09:23 -0400)
Since getopt.h is provided by libiberty, there's no need to probe for
a system version of it.  Plus we already assume it exists in other
parts of the sim.

sim/rl78/ChangeLog
sim/rl78/config.in
sim/rl78/configure
sim/rl78/configure.ac
sim/rl78/main.c
sim/rx/ChangeLog
sim/rx/config.in
sim/rx/configure
sim/rx/configure.ac
sim/rx/main.c

index 32cd435298243b0e10eb465a78b60315b5abcfe0..f14e4fcd219dfde83bb55256f890034c4d067b3a 100644 (file)
@@ -1,3 +1,9 @@
+2021-04-20  Mike Frysinger  <vapier@gentoo.org>
+
+       * configure.ac: Delete AC_CHECK_HEADERS_ONCE.
+       * main.c: Delete HAVE_GETOPT_H.
+       * config.in, configure: Regenerate.
+
 2021-04-18  Mike Frysinger  <vapier@gentoo.org>
 
        * configure.ac: Change AC_CHECK_HEADERS to AC_CHECK_HEADERS_ONCE.
index e4894c4c510548924a443528ff251ce7a7c6ddc5..cb5ea1b01c95768650c6885bdacf41f90c81f8a9 100644 (file)
@@ -22,9 +22,6 @@
 /* Define to 1 if you have the `ftruncate' function. */
 #undef HAVE_FTRUNCATE
 
-/* Define to 1 if you have the <getopt.h> header file. */
-#undef HAVE_GETOPT_H
-
 /* Define to 1 if you have the `getrusage' function. */
 #undef HAVE_GETRUSAGE
 
index 8ba5fd0cae5b7fe2f0adfe73aacfb292582372c1..7ad7eac31d1468b5a78bb4af8613b9b3dc17f4b8 100755 (executable)
@@ -2302,7 +2302,6 @@ as_fn_append ac_func_list " posix_fallocate"
 as_fn_append ac_func_list " sigaction"
 as_fn_append ac_func_list " time"
 as_fn_append ac_func_list " truncate"
-as_fn_append ac_header_list " getopt.h"
 # Check that the precious variables saved in the cache have kept the same
 # value.
 ac_cache_corrupted=false
@@ -11244,7 +11243,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11247 "configure"
+#line 11246 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -11350,7 +11349,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11353 "configure"
+#line 11352 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
 
 
 
-
-
-
-
 cgen_breaks=""
 if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
 cgen_breaks="break cgen_rtx_error";
index fad367ce7b6b31a38210daa628d2f7945557f355..0e5f69c7065c3c2bccb4a6bcae7465934e39f21b 100644 (file)
@@ -24,6 +24,4 @@ AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
 SIM_AC_COMMON
 SIM_AC_OPTION_WARNINGS(no)
 
-AC_CHECK_HEADERS_ONCE(getopt.h)
-
 SIM_AC_OUTPUT
index 3050863e9cc37902f4ab81dbd0602d3526695490..8d8a79d5da89b2d7e500b329ff4a56ea22c36545 100644 (file)
@@ -30,9 +30,7 @@
 #include <assert.h>
 #include <setjmp.h>
 #include <signal.h>
-#ifdef HAVE_GETOPT_H
 #include <getopt.h>
-#endif
 
 #include "libiberty.h"
 #include "bfd.h"
index be4c653cfd9a9beb0e3cdaf65a81c04f1db211db..ac9531d11f03ad944f8cd9ae2d8c7a5f45d94e63 100644 (file)
@@ -1,3 +1,9 @@
+2021-04-20  Mike Frysinger  <vapier@gentoo.org>
+
+       * configure.ac: Delete AC_CHECK_HEADERS_ONCE.
+       * main.c: Delete HAVE_GETOPT_H.
+       * config.in, configure: Regenerate.
+
 2021-04-18  Mike Frysinger  <vapier@gentoo.org>
 
        * configure.ac: Change AC_CHECK_HEADERS to AC_CHECK_HEADERS_ONCE.
index 97caf8d05327f351cfe6a201c265421c32cbbff4..7dd69ef251966b34f3670eb3e5a8372d75e6ee38 100644 (file)
@@ -28,9 +28,6 @@
 /* Define to 1 if you have the `ftruncate' function. */
 #undef HAVE_FTRUNCATE
 
-/* Define to 1 if you have the <getopt.h> header file. */
-#undef HAVE_GETOPT_H
-
 /* Define to 1 if you have the `getrusage' function. */
 #undef HAVE_GETRUSAGE
 
index ba9d433c9c7ba90f632d7d57db117d11acb30670..ab2f25dd54148043f218a3cbc8752cd721ab9134 100755 (executable)
@@ -2307,7 +2307,6 @@ as_fn_append ac_func_list " posix_fallocate"
 as_fn_append ac_func_list " sigaction"
 as_fn_append ac_func_list " time"
 as_fn_append ac_func_list " truncate"
-as_fn_append ac_header_list " getopt.h"
 # Check that the precious variables saved in the cache have kept the same
 # value.
 ac_cache_corrupted=false
@@ -11249,7 +11248,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11252 "configure"
+#line 11251 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -11355,7 +11354,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11358 "configure"
+#line 11357 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -11903,10 +11902,6 @@ _ACEOF
 
 
 
-
-
-
-
 # Check whether --enable-cycle-accurate was given.
 if test "${enable_cycle_accurate+set}" = set; then :
   enableval=$enable_cycle_accurate; case "${enableval}" in
index 344ab3967f77abef7353300a37f19236e6ae9aef..5d1076834c1d9512533532dcc051a39911fdbde9 100644 (file)
@@ -23,8 +23,6 @@ AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config])
 
 SIM_AC_COMMON
 
-AC_CHECK_HEADERS_ONCE(getopt.h)
-
 AC_ARG_ENABLE(cycle-accurate,
 [AS_HELP_STRING([--disable-cycle-accurate],
                [Disable cycle accurate simulation (faster runtime)])],
index 4a9d3ecebea5ba9a13d2300d3e61c66c8d8b0aa7..20a8434388e9bc51a570655fb0013bcd9725e214 100644 (file)
@@ -29,9 +29,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 #include <assert.h>
 #include <setjmp.h>
 #include <signal.h>
-#ifdef HAVE_GETOPT_H
 #include <getopt.h>
-#endif
 
 #include "bfd.h"