1999-01-19 Fernando Nasser <fnasser@totem.to.cygnus.com>
[deliverable/binutils-gdb.git] / gdb / configure.in
index 96c2e3cab816d0a51a00e60b266f4c5b702a5fe1..38363e0aeb07f9c013d9c52c24b13c7e386f204d 100644 (file)
@@ -26,6 +26,7 @@ AC_CONFIG_HEADER(config.h:config.in)
 AC_PROG_CC
 AC_AIX
 AC_ISC_POSIX
+AM_PROG_CC_STDC
 
 AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/..)
 AC_CANONICAL_SYSTEM
@@ -296,6 +297,31 @@ fi
 dnl Handle optional features that can be enabled.
 ENABLE_CFLAGS=
 
+AC_ARG_ENABLE(tui,
+[  --enable-tui            Enable full-screen terminal user interface],
+[
+  case "${enable_tui}" in
+    yes | no) ;;
+    "")  enable_tui=yes ;;
+    *)
+      AC_MSG_ERROR(Bad value for --enable-tui: ${enableval})
+    ;;
+  esac
+])
+case ${enable_tui} in
+  "yes" )
+    AC_DEFINE(TUI)
+    BUILD_TUI=all-tui
+    TUI_LIBRARY=tui/libtui.a
+  ;;
+  * )
+    BUILD_TUI=
+    TUI_LIBRARY=
+  ;;
+esac
+AC_SUBST(BUILD_TUI)
+AC_SUBST(TUI_LIBRARY)
+
 AC_ARG_ENABLE(netrom,
 [  --enable-netrom         Enable NetROM support],
 [case "${enableval}" in
@@ -584,8 +610,9 @@ AC_SUBST(DLLTOOL)
 AC_SUBST(WINDRES)
 
 if test x$gdb_cv_os_cygwin = xyes; then
+    WIN32LIBS="-luser32"
     if test x$enable_ide = xyes; then
-       WIN32LIBS="-ladvapi32"
+       WIN32LIBS="$WIN32LIBS -ladvapi32"
     fi
 fi
 
@@ -661,7 +688,7 @@ if test "${enable_gdbtk}" = "yes"; then
           CONFIG_OBS="${CONFIG_OBS} gdbtk.o gdbtk-cmds.o gdbtk-hooks.o"
 
           if test x$gdb_cv_os_cygwin = xyes; then
-             WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32 -luser32"
+             WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
              WIN32LDAPP="-Wl,--subsystem,console"
              CONFIG_OBS="${CONFIG_OBS} gdbres.o"
           fi
@@ -874,7 +901,7 @@ dnl Check for exe extension set on certain hosts (e.g. Win32)
 AM_EXEEXT
 
 AC_CONFIG_SUBDIRS($configdirs)
-AC_OUTPUT(Makefile .gdbinit:gdbinit.in,
+AC_OUTPUT(Makefile tui/Makefile .gdbinit:gdbinit.in,
 [
 dnl Autoconf doesn't provide a mechanism for modifying definitions 
 dnl provided by makefile fragments.
This page took 0.024754 seconds and 4 git commands to generate.