From 76a279225c1083f38452b06001eba27f1e42b90e Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sun, 8 Aug 1999 15:56:55 +0000 Subject: * configure.in: Define and substitute GDBINIT. Change AC_OUTPUT line to crate ${GDBINIT} rather than .gdbinit. * configure, Makefile.in, doc/Makefile.in: Rebuild. --- gas/configure.in | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'gas/configure.in') diff --git a/gas/configure.in b/gas/configure.in index 24ba82e..cce1faa 100644 --- a/gas/configure.in +++ b/gas/configure.in @@ -43,6 +43,16 @@ using_cgen=no # Generate a header file AM_CONFIG_HEADER(config.h:config.in) +# If we are on a DOS filesystem, we must use gdb.ini rather than +# .gdbinit. +GDBINIT=".gdbinit" +case "${host}" in + *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) + GDBINIT="gdb.ini" + ;; +esac +AC_SUBST(GDBINIT) + te_file=generic # Makefile target for installing gas in $(tooldir)/bin. @@ -757,7 +767,7 @@ dnl the build directory which include the right .h file. Make sure dnl the old symlinks don't exist, so that a reconfigure in an existing dnl directory behaves reasonably. -AC_OUTPUT(Makefile doc/Makefile .gdbinit:gdbinit.in po/Makefile.in:po/Make-in, +AC_OUTPUT(Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in, [rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h -- cgit v1.1