Index: sim/erc32/configure |
diff --git a/sim/erc32/configure b/sim/erc32/configure |
index 7a74c471052051654363088ce7ad1988b335428b..dfab09d0db88fd981bef169029d59d0d797ddd7d 100755 |
--- a/sim/erc32/configure |
+++ b/sim/erc32/configure |
@@ -603,9 +603,6 @@ sim_debug |
sim_cflags |
sim_bswap |
MAINT |
-EGREP |
-GREP |
-CPP |
CATOBJEXT |
GENCAT |
INSTOBJEXT |
@@ -624,6 +621,7 @@ MAKE |
CCDEPMODE |
DEPDIR |
am__leading_dot |
+PACKAGE |
RANLIB |
AR |
HDEFINES |
@@ -631,6 +629,9 @@ CC_FOR_BUILD |
INSTALL_DATA |
INSTALL_SCRIPT |
INSTALL_PROGRAM |
+EGREP |
+GREP |
+CPP |
target_os |
target_vendor |
target_cpu |
@@ -2434,9 +2435,9 @@ sim_inline="-DDEFAULT_INLINE=0" |
# AC_PROG_CPP_WERROR |
# Test for GNAT. |
-# We require the gnatbind program, and a compiler driver that |
-# understands Ada. We use the user's CC setting, already found, |
-# and possibly add $1 to the command-line parameters. |
+# We require the gnatbind & gnatmake programs, as well as a compiler driver |
+# that understands Ada. We use the user's CC setting, already found, and |
+# possibly add $1 to the command-line parameters. |
# |
# Sets the shell variable have_gnat to yes or no as appropriate, and |
# substitutes GNATBIND and GNATMAKE. |
@@ -3363,120 +3364,6 @@ test -n "$target_alias" && |
test "$program_prefix$program_suffix$program_transform_name" = \ |
NONENONEs,x,x, && |
program_prefix=${target_alias}- |
-test "$program_prefix" != NONE && |
- program_transform_name="s&^&$program_prefix&;$program_transform_name" |
-# Use a double $ so make ignores it. |
-test "$program_suffix" != NONE && |
- program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
-# Double any \ or $. |
-# By default was `s,x,x', remove it if useless. |
-ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
-program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
- |
-# Find a good install program. We prefer a C program (faster), |
-# so one script is as good as another. But avoid the broken or |
-# incompatible versions: |
-# SysV /etc/install, /usr/sbin/install |
-# SunOS /usr/etc/install |
-# IRIX /sbin/install |
-# AIX /bin/install |
-# AmigaOS /C/install, which installs bootblocks on floppy discs |
-# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
-# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
-# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
-# OS/2's system install, which has a completely different semantic |
-# ./install, which can be erroneously created by make from ./install.sh. |
-# Reject install programs that cannot install multiple files. |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
-$as_echo_n "checking for a BSD-compatible install... " >&6; } |
-if test -z "$INSTALL"; then |
-if test "${ac_cv_path_install+set}" = set; then : |
- $as_echo_n "(cached) " >&6 |
-else |
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
-for as_dir in $PATH |
-do |
- IFS=$as_save_IFS |
- test -z "$as_dir" && as_dir=. |
- # Account for people who put trailing slashes in PATH elements. |
-case $as_dir/ in #(( |
- ./ | .// | /[cC]/* | \ |
- /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
- ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
- /usr/ucb/* ) ;; |
- *) |
- # OSF1 and SCO ODT 3.0 have their own names for install. |
- # Don't use installbsd from OSF since it installs stuff as root |
- # by default. |
- for ac_prog in ginstall scoinst install; do |
- for ac_exec_ext in '' $ac_executable_extensions; do |
- if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
- if test $ac_prog = install && |
- grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
- # AIX install. It has an incompatible calling convention. |
- : |
- elif test $ac_prog = install && |
- grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
- # program-specific install script used by HP pwplus--don't use. |
- : |
- else |
- rm -rf conftest.one conftest.two conftest.dir |
- echo one > conftest.one |
- echo two > conftest.two |
- mkdir conftest.dir |
- if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
- test -s conftest.one && test -s conftest.two && |
- test -s conftest.dir/conftest.one && |
- test -s conftest.dir/conftest.two |
- then |
- ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
- break 3 |
- fi |
- fi |
- fi |
- done |
- done |
- ;; |
-esac |
- |
- done |
-IFS=$as_save_IFS |
- |
-rm -rf conftest.one conftest.two conftest.dir |
- |
-fi |
- if test "${ac_cv_path_install+set}" = set; then |
- INSTALL=$ac_cv_path_install |
- else |
- # As a last resort, use the slow shell script. Don't cache a |
- # value for INSTALL within a source directory, because that will |
- # break other packages using the cache if that directory is |
- # removed, or if the value is a relative name. |
- INSTALL=$ac_install_sh |
- fi |
-fi |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
-$as_echo "$INSTALL" >&6; } |
- |
-# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
-# It thinks the first close brace ends the variable substitution. |
-test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
- |
-test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
- |
-test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
- |
-rm -rf .tst 2>/dev/null |
-mkdir .tst 2>/dev/null |
-if test -d .tst; then |
- am__leading_dot=. |
-else |
- am__leading_dot=_ |
-fi |
-rmdir .tst 2>/dev/null |
- |
-DEPDIR="${am__leading_dot}deps" |
- |
ac_ext=c |
ac_cpp='$CPP $CPPFLAGS' |
@@ -3877,6 +3764,181 @@ done |
+ ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
+if test "x$ac_cv_header_minix_config_h" = x""yes; then : |
+ MINIX=yes |
+else |
+ MINIX= |
+fi |
+ |
+ |
+ if test "$MINIX" = yes; then |
+ |
+$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
+ |
+ |
+$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
+ |
+ |
+$as_echo "#define _MINIX 1" >>confdefs.h |
+ |
+ fi |
+ |
+ |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
+$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
+if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : |
+ $as_echo_n "(cached) " >&6 |
+else |
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
+/* end confdefs.h. */ |
+ |
+# define __EXTENSIONS__ 1 |
+ $ac_includes_default |
+int |
+main () |
+{ |
+ |
+ ; |
+ return 0; |
+} |
+_ACEOF |
+if ac_fn_c_try_compile "$LINENO"; then : |
+ ac_cv_safe_to_define___extensions__=yes |
+else |
+ ac_cv_safe_to_define___extensions__=no |
+fi |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
+fi |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
+$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
+ test $ac_cv_safe_to_define___extensions__ = yes && |
+ $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
+ |
+ $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
+ |
+ $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
+ |
+ $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
+ |
+ $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
+ |
+ |
+test "$program_prefix" != NONE && |
+ program_transform_name="s&^&$program_prefix&;$program_transform_name" |
+# Use a double $ so make ignores it. |
+test "$program_suffix" != NONE && |
+ program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
+# Double any \ or $. |
+# By default was `s,x,x', remove it if useless. |
+ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
+program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
+ |
+# Find a good install program. We prefer a C program (faster), |
+# so one script is as good as another. But avoid the broken or |
+# incompatible versions: |
+# SysV /etc/install, /usr/sbin/install |
+# SunOS /usr/etc/install |
+# IRIX /sbin/install |
+# AIX /bin/install |
+# AmigaOS /C/install, which installs bootblocks on floppy discs |
+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
+# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
+# OS/2's system install, which has a completely different semantic |
+# ./install, which can be erroneously created by make from ./install.sh. |
+# Reject install programs that cannot install multiple files. |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
+$as_echo_n "checking for a BSD-compatible install... " >&6; } |
+if test -z "$INSTALL"; then |
+if test "${ac_cv_path_install+set}" = set; then : |
+ $as_echo_n "(cached) " >&6 |
+else |
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
+for as_dir in $PATH |
+do |
+ IFS=$as_save_IFS |
+ test -z "$as_dir" && as_dir=. |
+ # Account for people who put trailing slashes in PATH elements. |
+case $as_dir/ in #(( |
+ ./ | .// | /[cC]/* | \ |
+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
+ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
+ /usr/ucb/* ) ;; |
+ *) |
+ # OSF1 and SCO ODT 3.0 have their own names for install. |
+ # Don't use installbsd from OSF since it installs stuff as root |
+ # by default. |
+ for ac_prog in ginstall scoinst install; do |
+ for ac_exec_ext in '' $ac_executable_extensions; do |
+ if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
+ if test $ac_prog = install && |
+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
+ # AIX install. It has an incompatible calling convention. |
+ : |
+ elif test $ac_prog = install && |
+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
+ # program-specific install script used by HP pwplus--don't use. |
+ : |
+ else |
+ rm -rf conftest.one conftest.two conftest.dir |
+ echo one > conftest.one |
+ echo two > conftest.two |
+ mkdir conftest.dir |
+ if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
+ test -s conftest.one && test -s conftest.two && |
+ test -s conftest.dir/conftest.one && |
+ test -s conftest.dir/conftest.two |
+ then |
+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
+ break 3 |
+ fi |
+ fi |
+ fi |
+ done |
+ done |
+ ;; |
+esac |
+ |
+ done |
+IFS=$as_save_IFS |
+ |
+rm -rf conftest.one conftest.two conftest.dir |
+ |
+fi |
+ if test "${ac_cv_path_install+set}" = set; then |
+ INSTALL=$ac_cv_path_install |
+ else |
+ # As a last resort, use the slow shell script. Don't cache a |
+ # value for INSTALL within a source directory, because that will |
+ # break other packages using the cache if that directory is |
+ # removed, or if the value is a relative name. |
+ INSTALL=$ac_install_sh |
+ fi |
+fi |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
+$as_echo "$INSTALL" >&6; } |
+ |
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
+# It thinks the first close brace ends the variable substitution. |
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
+ |
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
+ |
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
+ |
+rm -rf .tst 2>/dev/null |
+mkdir .tst 2>/dev/null |
+if test -d .tst; then |
+ am__leading_dot=. |
+else |
+ am__leading_dot=_ |
+fi |
+rmdir .tst 2>/dev/null |
+ |
+DEPDIR="${am__leading_dot}deps" |
+ |
+ |
# autoconf.info says this should be called right after AC_INIT. |
ac_config_headers="$ac_config_headers config.h:config.in" |
@@ -3885,6 +3947,7 @@ ac_config_headers="$ac_config_headers config.h:config.in" |
+ |
# Put a plausible default for CC_FOR_BUILD in Makefile. |
if test "x$cross_compiling" = "xno"; then |
CC_FOR_BUILD='$(CC)' |
@@ -3990,6 +4053,17 @@ else |
fi |
+# Some of the common include files depend on bfd.h, and bfd.h checks |
+# that config.h is included first by testing that the PACKAGE macro |
+# is defined. |
+PACKAGE=sim |
+ |
+cat >>confdefs.h <<_ACEOF |
+#define PACKAGE "$PACKAGE" |
+_ACEOF |
+ |
+ |
+ |
# Dependency checking. |
ac_config_commands="$ac_config_commands depdir" |
@@ -4566,7 +4640,7 @@ if test "${enable_sim_trace+set}" = set; then : |
no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";; |
[-0-9]*) |
sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";; |
- [a-z]*) |
+ [[:lower:]]*) |
sim_trace="" |
for x in `echo "$enableval" | sed -e "s/,/ /g"`; do |
if test x"$sim_trace" = x; then |
@@ -4765,38 +4839,61 @@ $as_echo "$sim_cv_os_cygwin" >&6; } |
if test x$sim_cv_os_cygwin = xyes; then |
TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32' |
else |
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltermcap" >&5 |
-$as_echo_n "checking for main in -ltermcap... " >&6; } |
-if test "${ac_cv_lib_termcap_main+set}" = set; then : |
+ # Keep in sync with gdb's configure.ac list. |
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 |
+$as_echo_n "checking for library containing tgetent... " >&6; } |
+if test "${ac_cv_search_tgetent+set}" = set; then : |
$as_echo_n "(cached) " >&6 |
else |
- ac_check_lib_save_LIBS=$LIBS |
-LIBS="-ltermcap $LIBS" |
+ ac_func_search_save_LIBS=$LIBS |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
/* end confdefs.h. */ |
- |
+/* Override any GCC internal prototype to avoid an error. |
+ Use char because int might match the return type of a GCC |
+ builtin and then its argument prototype would still apply. */ |
+#ifdef __cplusplus |
+extern "C" |
+#endif |
+char tgetent (); |
int |
main () |
{ |
-return main (); |
+return tgetent (); |
; |
return 0; |
} |
_ACEOF |
-if ac_fn_c_try_link "$LINENO"; then : |
- ac_cv_lib_termcap_main=yes |
-else |
- ac_cv_lib_termcap_main=no |
+for ac_lib in '' termcap tinfo curses ncurses; do |
+ if test -z "$ac_lib"; then |
+ ac_res="none required" |
+ else |
+ ac_res=-l$ac_lib |
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
+ fi |
+ if ac_fn_c_try_link "$LINENO"; then : |
+ ac_cv_search_tgetent=$ac_res |
fi |
rm -f core conftest.err conftest.$ac_objext \ |
- conftest$ac_exeext conftest.$ac_ext |
-LIBS=$ac_check_lib_save_LIBS |
+ conftest$ac_exeext |
+ if test "${ac_cv_search_tgetent+set}" = set; then : |
+ break |
fi |
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_main" >&5 |
-$as_echo "$ac_cv_lib_termcap_main" >&6; } |
-if test "x$ac_cv_lib_termcap_main" = x""yes; then : |
- TERMCAP=-ltermcap |
+done |
+if test "${ac_cv_search_tgetent+set}" = set; then : |
+ |
+else |
+ ac_cv_search_tgetent=no |
+fi |
+rm conftest.$ac_ext |
+LIBS=$ac_func_search_save_LIBS |
+fi |
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 |
+$as_echo "$ac_cv_search_tgetent" >&6; } |
+ac_res=$ac_cv_search_tgetent |
+if test "$ac_res" != no; then : |
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
+ TERMCAP=$ac_cv_search_tgetent |
else |
TERMCAP="" |
fi |