aboutsummaryrefslogtreecommitdiff
path: root/sim/configure
diff options
context:
space:
mode:
Diffstat (limited to 'sim/configure')
-rwxr-xr-xsim/configure165
1 files changed, 161 insertions, 4 deletions
diff --git a/sim/configure b/sim/configure
index 85a72bf..34cd1c9 100755
--- a/sim/configure
+++ b/sim/configure
@@ -694,6 +694,9 @@ am__isrc
MAINT
MAINTAINER_MODE_FALSE
MAINTAINER_MODE_TRUE
+READLINE_CFLAGS
+READLINE_LIB
+TERMCAP_LIB
SDL_LIBS
SDL_CFLAGS
lt_cv_dlopen_libs
@@ -870,7 +873,6 @@ mips
mn10300
or1k
riscv
-erc32
ppc
v850'
@@ -12178,7 +12180,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12181 "configure"
+#line 12183 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12284,7 +12286,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12287 "configure"
+#line 12289 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12846,6 +12848,144 @@ fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
+$as_echo_n "checking for cygwin... " >&6; }
+if ${sim_cv_os_cygwin+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#ifdef __CYGWIN__
+lose
+#endif
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "lose" >/dev/null 2>&1; then :
+ sim_cv_os_cygwin=yes
+else
+ sim_cv_os_cygwin=no
+fi
+rm -f conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
+$as_echo "$sim_cv_os_cygwin" >&6; }
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
+$as_echo_n "checking for library containing tgetent... " >&6; }
+if ${ac_cv_search_tgetent+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ 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 tgetent ();
+ ;
+ return 0;
+}
+_ACEOF
+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
+ if ${ac_cv_search_tgetent+:} false; then :
+ break
+fi
+done
+if ${ac_cv_search_tgetent+:} false; 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_LIB=$ac_cv_search_tgetent
+else
+ TERMCAP_LIB=""
+fi
+
+if test x$sim_cv_os_cygwin = xyes; then
+ TERMCAP_LIB="${TERMCAP_LIB} -luser32"
+fi
+
+
+if test -r ../readline/Makefile; then
+ READLINE_LIB=../../readline/readline/libreadline.a
+ READLINE_CFLAGS='-I$(READLINE_SRC)/..'
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
+$as_echo_n "checking for readline in -lreadline... " >&6; }
+if ${ac_cv_lib_readline_readline+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lreadline $TERMCAP_LIB $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 readline ();
+int
+main ()
+{
+return readline ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_readline_readline=yes
+else
+ ac_cv_lib_readline_readline=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
+$as_echo "$ac_cv_lib_readline_readline" >&6; }
+if test "x$ac_cv_lib_readline_readline" = xyes; then :
+ READLINE_LIB=-lreadline
+else
+ as_fn_error $? "the required \"readline\" library is missing" "$LINENO" 5
+fi
+
+ READLINE_CFLAGS=
+fi
+
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
@@ -14058,8 +14198,11 @@ subdirs="$subdirs bfin"
if test "${targ}" = "${target}"; then
SIM_PRIMARY_TARGET=erc32
fi
- subdirs="$subdirs erc32"
+ ac_config_files="$ac_config_files erc32/Makefile.sim:erc32/Makefile.in"
+
+ ac_config_commands="$ac_config_commands erc32/Makefile"
+ as_fn_append SIM_SUBDIRS " erc32"
ac_config_commands="$ac_config_commands depdir-erc32"
@@ -15651,6 +15794,8 @@ do
"sh/Makefile.sim") CONFIG_FILES="$CONFIG_FILES sh/Makefile.sim:sh/Makefile.in" ;;
"sh/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS sh/Makefile" ;;
"depdir-sh") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-sh" ;;
+ "erc32/Makefile.sim") CONFIG_FILES="$CONFIG_FILES erc32/Makefile.sim:erc32/Makefile.in" ;;
+ "erc32/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS erc32/Makefile" ;;
"depdir-erc32") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-erc32" ;;
"depdir-ppc") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-ppc" ;;
"depdir-v850") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir-v850" ;;
@@ -17218,6 +17363,18 @@ $as_echo X"$file" |
rm -f sh/Makesim1.tmp sh/Makesim2.tmp
;;
"depdir-sh":C) $SHELL $ac_aux_dir/mkinstalldirs sh/$DEPDIR ;;
+ "erc32/Makefile":C) sed -n \
+ -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ {
+ /^srcdir = / s:$:/erc32:
+ p
+ }' \
+ <Make-common.sim >erc32/Makesim1.tmp
+ sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >erc32/Makesim2.tmp
+ sed -e '/^## COMMON_PRE_/ r erc32/Makesim1.tmp' \
+ -e '/^## COMMON_POST_/ r erc32/Makesim2.tmp' \
+ <erc32/Makefile.sim >erc32/Makefile
+ rm -f erc32/Makesim1.tmp erc32/Makesim2.tmp
+ ;;
"depdir-erc32":C) $SHELL $ac_aux_dir/mkinstalldirs erc32/$DEPDIR ;;
"depdir-ppc":C) $SHELL $ac_aux_dir/mkinstalldirs ppc/$DEPDIR ;;
"depdir-v850":C) $SHELL $ac_aux_dir/mkinstalldirs v850/$DEPDIR ;;