diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-08-06 22:46:03 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-08-06 22:46:03 +0000 |
commit | 597e25914ec5895fba8097946514d4b8c878eb0a (patch) | |
tree | fdc7d79e1329f02cd7685d15e9dc98a2d5072989 /ld/configure.in | |
parent | 4a607dcc2c50b3c622c4e12c405ef33d85ee7f5f (diff) | |
download | gdb-597e25914ec5895fba8097946514d4b8c878eb0a.zip gdb-597e25914ec5895fba8097946514d4b8c878eb0a.tar.gz gdb-597e25914ec5895fba8097946514d4b8c878eb0a.tar.bz2 |
* emultempl/ostring.sed: Rename from stringify.sed.
* emultempl/astring.sed: New file.
* Makefile.am (stringify.sed): New target.
(GEN_DEPENDS): Change $(srcdir)/emultempl/stringify.sed to
stringify.sed.
* configure.in: Define and substitute STRINGIFY.
* emultempl/*.em: Use stringify.sed from build directory rather
than source directory.
* emultempl/elf32.em: Use stringify.sed rather than inline sed
script.
* emultempl/gld960.em, emultempl/gld960c.em: Likewise.
* emultempl/hppaelf.em, emultempl/linux.em: Likewise.
* emultempl/lnk960.em, emultempl/sunos.em: Likewise.
* configure, Makefile.in: Rebuild.
Diffstat (limited to 'ld/configure.in')
-rw-r--r-- | ld/configure.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ld/configure.in b/ld/configure.in index 01b802e..a3546c7 100644 --- a/ld/configure.in +++ b/ld/configure.in @@ -68,6 +68,23 @@ BFD_NEED_DECLARATION(sbrk) BFD_NEED_DECLARATION(getenv) BFD_NEED_DECLARATION(environ) +# When converting linker scripts into strings for use in emulation +# files, use astring.sed if the compiler supports ANSI string +# concatenation, or ostring.sed otherwise. This is to support the +# broken Microsoft MSVC compiler, which limits the length of string +# constants, while still supporting pre-ANSI compilers which do not +# support string concatenation. +AC_CACHE_VAL(ld_cv_string_concatenation, +[AC_TRY_COMPILE(,[char *a = "a" "a";], + [ld_cv_string_concatenation=true], + [ld_cv_string_concatenation=false])]) +if test "$ld_cv_string_concatenation" = "true"; then + STRINGIFY=astring.sed +else + STRINGIFY=ostring.sed +fi +AC_SUBST(STRINGIFY) + # target-specific stuff: all_targets= |