Add info command to print out flags values
[deliverable/binutils-gdb.git] / gdb / configure.in
index b4baf279879fdf5de5c9678baa35ba72822e21aa..b7ee297de4b64838e46490939d04f86a01682faa 100644 (file)
@@ -28,6 +28,9 @@ AC_AIX
 AC_MINIX
 AC_ISC_POSIX
 
+DLLTOOL=${DLLTOOL-dlltool}
+AC_SUBST(DLLTOOL)
+
 AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/..)
 AC_CANONICAL_SYSTEM
 
@@ -223,21 +226,6 @@ if test "${enable_netrom}" = "yes"; then
        CONFIG_OBS="${CONFIG_OBS} remote-nrom.o" 
 fi
 
-# start-sanitize-gm
-ENABLE_GM=
-
-AC_ARG_ENABLE(gm,
-[  --enable-gm ],
-[case "${enableval}" in
-yes)   CONFIG_OBS="${CONFIG_OBS} gmagic.o"
-       ENABLE_CFLAGS=-DGENERAL_MAGIC
-       ;;
-no)    ;;
-*)     AC_MSG_ERROR(bad value ${enableval} given for gm option) ;;
-esac])
-
-# end-sanitize-gm
-
 # start-sanitize-gdbtk
 ENABLE_IDE=
 AC_ARG_ENABLE(ide, [  --enable-ide            Enable IDE support])
@@ -280,14 +268,25 @@ case "$host" in
     esac
 ])
 
-case "${target}" in
-*-cygwin32)
-       configdir="win"
-       ;;
-*)
-       configdir="unix"
-       ;;
-esac
+# In the cygwin32 environment, we need some additional flags.
+AC_CACHE_CHECK([for cygwin32], gdb_cv_os_cygwin32,
+[AC_EGREP_CPP(lose, [
+#ifdef __CYGWIN32__
+lose
+#endif],[gdb_cv_os_cygwin32=yes],[gdb_cv_os_cygwin32=no])])
+
+WIN32LIBS=
+WIN32LDAPP=
+AC_SUBST(WIN32LIBS)
+AC_SUBST(WIN32LDAPP)
+
+if test x$gdb_cv_os_cygwin32 = xyes; then
+    if test x$enable_ide = xyes; then
+       WIN32LIBS="-ladvapi32"
+    fi
+fi
+
+configdir="unix"
 
 if test "${enable_gdbtk}" = "yes"; then
 
@@ -305,6 +304,23 @@ if test "${enable_gdbtk}" = "yes"; then
           CY_AC_PATH_ITCLH
           CY_AC_PATH_TIX
 
+          # now look for tix library stuff
+          TIXVERSION=4.1.8.0
+          . ${ac_cv_c_tclconfig}/tclConfig.sh
+          case "${host}" in
+          *-*-cygwin32*)
+               tixdir=../tix/win/tcl8.0
+               ;;
+          *)
+               tixdir=../tix/unix/tk8.0
+               ;;
+          esac 
+          if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
+               TIXLIB="-L${tixdir} -ltix${TIXVERSION}"
+          else
+               TIXLIB="-L${tixdir} -ltix`echo ${TIXVERSION} | tr -d .`"
+          fi
+
           ENABLE_GDBTK=1
 
           # Include some libraries that Tcl and Tk want.
@@ -318,6 +334,11 @@ if test "${enable_gdbtk}" = "yes"; then
           # after Tcl/Tk.
           LIBS="${LIBS} ${TCL_LIBS} ${TK_LIBS}"
           CONFIG_OBS="${CONFIG_OBS} gdbtk.o"
+
+          if test x$gdb_cv_os_cygwin32 = xyes; then
+             WIN32LIBS="${WIN32LIBS} -luser32"
+             WIN32LDAPP="-Wl,--subsystem,windows"
+          fi
        fi
     fi
 fi
@@ -326,6 +347,7 @@ AC_SUBST(ENABLE_GDBTK)
 AC_SUBST(X_CFLAGS)
 AC_SUBST(X_LDFLAGS)
 AC_SUBST(X_LIBS)
+AC_SUBST(TIXLIB)
 # end-sanitize-gdbtk
 
 AC_SUBST(ENABLE_CFLAGS)
This page took 0.024567 seconds and 4 git commands to generate.