AC_MINIX
AC_ISC_POSIX
+DLLTOOL=${DLLTOOL-dlltool}
+AC_SUBST(DLLTOOL)
+
AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/..)
AC_CANONICAL_SYSTEM
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])
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
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.
# 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
AC_SUBST(X_CFLAGS)
AC_SUBST(X_LDFLAGS)
AC_SUBST(X_LIBS)
+AC_SUBST(TIXLIB)
# end-sanitize-gdbtk
AC_SUBST(ENABLE_CFLAGS)