aboutsummaryrefslogtreecommitdiff
path: root/gas/configure.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-08-08 15:56:55 +0000
committerIan Lance Taylor <ian@airs.com>1999-08-08 15:56:55 +0000
commit76a279225c1083f38452b06001eba27f1e42b90e (patch)
tree8002e8b36938c3a649c30ea4ff233de8d2224b1c /gas/configure.in
parent6ca3858e7c49e2972850222991576d0774f9aa1b (diff)
downloadgdb-76a279225c1083f38452b06001eba27f1e42b90e.zip
gdb-76a279225c1083f38452b06001eba27f1e42b90e.tar.gz
gdb-76a279225c1083f38452b06001eba27f1e42b90e.tar.bz2
* configure.in: Define and substitute GDBINIT. Change AC_OUTPUT
line to crate ${GDBINIT} rather than .gdbinit. * configure, Makefile.in, doc/Makefile.in: Rebuild.
Diffstat (limited to 'gas/configure.in')
-rw-r--r--gas/configure.in12
1 files changed, 11 insertions, 1 deletions
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