dnl Autoconf configure script for GDB, the GNU debugger.
-dnl Copyright 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+dnl Copyright 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
dnl
dnl This file is part of GDB.
dnl
dnl Process this file with autoconf to produce a configure script.
-AC_PREREQ(2.5)dnl
+AC_PREREQ(2.12.1)dnl
AC_INIT(main.c)
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
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 Enable NetROM support],
[case "${enableval}" in
yes) enable_netrom=yes ;;
no) enable_netrom=no ;;
fi
AC_ARG_ENABLE(build-warnings,
-[ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
+[ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
[build_warnings="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
case "${enableval}" in
yes) ;;
# significant backward compatibility.
AC_ARG_ENABLE(carp,
-[ --enable-carp Configure alternative readaptive paradigm ],
+[ --enable-carp Configure alternative readaptive paradigm ],
[case "${enableval}" in
yes) enable_carp=yes ;;
no) enable_carp=no ;;
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
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
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.