@@ -13517,6 +13517,38 @@ fi
1351713517
1351813518
1351913519
13520+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13521+ $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13522+ if ${sim_cv_decl_getopt_unistd_h+:} false; then :
13523+ $as_echo_n "(cached) " >&6
13524+ else
13525+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13526+ /* end confdefs.h. */
13527+ #include <unistd.h>
13528+ int
13529+ main ()
13530+ {
13531+ extern int getopt (int, char *const*, const char *);
13532+ ;
13533+ return 0;
13534+ }
13535+ _ACEOF
13536+ if ac_fn_c_try_compile "$LINENO"; then :
13537+ sim_cv_decl_getopt_unistd_h=yes
13538+ else
13539+ sim_cv_decl_getopt_unistd_h=no
13540+ fi
13541+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13542+ fi
13543+
13544+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_decl_getopt_unistd_h" >&5
13545+ $as_echo "$sim_cv_decl_getopt_unistd_h" >&6; }
13546+ if test $sim_cv_decl_getopt_unistd_h = yes; then
13547+
13548+ $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
13549+
13550+ fi
13551+
1352013552
1352113553
1352213554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
@@ -16300,38 +16332,6 @@ $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
1630016332fi
1630116333
1630216334
16303- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16304- $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16305- if ${sim_cv_decl_getopt_unistd_h+:} false; then :
16306- $as_echo_n "(cached) " >&6
16307- else
16308- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16309- /* end confdefs.h. */
16310- #include <unistd.h>
16311- int
16312- main ()
16313- {
16314- extern int getopt (int, char *const*, const char *);
16315- ;
16316- return 0;
16317- }
16318- _ACEOF
16319- if ac_fn_c_try_compile "$LINENO"; then :
16320- sim_cv_decl_getopt_unistd_h=yes
16321- else
16322- sim_cv_decl_getopt_unistd_h=no
16323- fi
16324- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16325- fi
16326-
16327- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_decl_getopt_unistd_h" >&5
16328- $as_echo "$sim_cv_decl_getopt_unistd_h" >&6; }
16329- if test $sim_cv_decl_getopt_unistd_h = yes; then
16330-
16331- $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
16332-
16333- fi
16334-
1633516335
1633616336
1633716337
0 commit comments