diff options
author | Stan Shebs <shebs@codesourcery.com> | 1999-04-26 18:34:20 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1999-04-26 18:34:20 +0000 |
commit | 7a292a7adf506b866905b06b3024c0fd411c4583 (patch) | |
tree | 5b208bb48269b8a82d5c3a5f19c87b45a62a22f4 /gdb/configure.in | |
parent | 1996fae84682e8ddd146215dd2959ad1ec924c09 (diff) | |
download | gdb-7a292a7adf506b866905b06b3024c0fd411c4583.zip gdb-7a292a7adf506b866905b06b3024c0fd411c4583.tar.gz gdb-7a292a7adf506b866905b06b3024c0fd411c4583.tar.bz2 |
import gdb-19990422 snapshot
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 58 |
1 files changed, 56 insertions, 2 deletions
diff --git a/gdb/configure.in b/gdb/configure.in index d658118..363438a 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -54,6 +54,7 @@ changequote(,)dnl dnl changequote([,])dnl +AC_PROG_AWK AC_PROG_INSTALL AC_CHECK_TOOL(AR, ar) AC_CHECK_TOOL(RANLIB, ranlib, :) @@ -69,7 +70,7 @@ AC_CHECK_HEADERS(ctype.h curses.h endian.h link.h \ memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \ string.h sys/procfs.h sys/ptrace.h sys/reg.h \ term.h termio.h termios.h unistd.h wait.h sys/wait.h \ - wchar.h wctype.h asm/debugreg.h sys/debugreg.h) + wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h) AC_HEADER_STAT AC_C_CONST @@ -109,16 +110,20 @@ AC_MSG_RESULT($gdb_cv_hpux_sswide) # Also detect which type of /proc is in use, such as for Unixware. if test "${target}" = "${host}"; then + gdb_cv_hostos_is_solaris=no case "${host}" in i[[3456]]86-*-linux*) AC_DEFINE(START_INFERIOR_TRAPS_EXPECTED,2) AC_DEFINE(sys_quotactl) ;; + *-*-solaris*) + gdb_cv_hostos_is_solaris=yes ;; esac AC_MSG_CHECKING(for directory proc entries) # The [gdb_host != sun4sol2] hack is because Solaris does provide the # multiple procfs files as of Solaris 2.6, but GDB can't use it right now. - if test "$ac_cv_header_sys_procfs_h" = yes -a "$gdb_host" != sun4sol2 \ + if test "$ac_cv_header_sys_procfs_h" = yes -a \ + "$gdb_cv_hostos_is_solaris" = no \ -a -d /proc/$$ \ -a -f /proc/$$/ctl \ -a -f /proc/$$/as \ @@ -405,6 +410,19 @@ if test x$want_mmalloc = xtrue; then MMALLOC='../mmalloc/libmmalloc.a' fi + +# In the Cygwin environment, we need some additional flags. +AC_CACHE_CHECK([for cygwin], gdb_cv_os_cygwin, +[AC_EGREP_CPP(lose, [ +#if defined (__CYGWIN__) || defined (__CYGWIN32__) +lose +#endif],[gdb_cv_os_cygwin=yes],[gdb_cv_os_cygwin=no])]) + +DLLTOOL=${DLLTOOL-dlltool} +WINDRES=${WINDRES-windres} +AC_SUBST(DLLTOOL) +AC_SUBST(WINDRES) + dnl Figure out which term library to use. if test x$gdb_cv_os_cygwin = xyes; then TERM_LIB='`if test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi`' @@ -425,8 +443,44 @@ fi AC_SUBST(TERM_LIB) + + AC_PATH_X + +# Unlike the sim directory, whether a simulator is linked is controlled by +# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file. +# This code just checks for a few cases where we'd like to ignore those +# definitions, even when they're present in the '.mt' file. These cases +# are when --disable-sim is specified, or if the simulator directory is +# not part of the soruce tree. +# +AC_ARG_ENABLE(sim, +[ --enable-sim Link gdb with simulator], +[echo "enable_sim = $enable_sim"; + echo "enableval = ${enableval}"; + case "${enableval}" in + yes) ignore_sim=false ;; + no) ignore_sim=true ;; + *) ignore_sim=false ;; + esac], +[ignore_sim=false]) + +if test ! -d "${srcdir}/../sim"; then + ignore_sim=true +fi + +if test "${ignore_sim}" = "true"; then + IGNORE_SIM="SIM=" + IGNORE_SIM_OBS="SIM_OBS=" +else + IGNORE_SIM="" + IGNORE_SIM_OBS="" + AC_DEFINE(WITH_SIM) +fi +AC_SUBST(IGNORE_SIM) +AC_SUBST(IGNORE_SIM_OBS) + AC_SUBST(ENABLE_CFLAGS) AC_SUBST(CONFIG_OBS) |