aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2009-04-21 10:13:05 +0000
committerJoseph Myers <joseph@codesourcery.com>2009-04-21 10:13:05 +0000
commit29b0e8a24aad93899d3d81d9e43493adfa83c930 (patch)
tree320900356a949dd9b985d39cb6be0c3c0eaab724 /gdb/configure.ac
parentccabeb57ba166e3c9a5ec72fec715f05e1a93e2a (diff)
downloadgdb-29b0e8a24aad93899d3d81d9e43493adfa83c930.zip
gdb-29b0e8a24aad93899d3d81d9e43493adfa83c930.tar.gz
gdb-29b0e8a24aad93899d3d81d9e43493adfa83c930.tar.bz2
gdb:
* configure.ac (--with-relocated-sources): New. * configure, config.in: Regenerate. * source.c (add_substitute_path_rule): Remove static. * source.h (add_substitute_path_rule): Declare. * main.c: Include "source.h". (captured_main): Add substitution rule if RELOC_SRCDIR. gdb/doc: * gdb.texinfo (Source Path): Document --with-relocated-sources.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index b8555c8..68c8e4a 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -118,6 +118,13 @@ case ${debugdir} in
;;
esac
+AC_ARG_WITH(relocated-sources,
+AC_HELP_STRING([--with-relocated-sources=PATH], [Automatically relocate this path for source files]),
+[reloc_srcdir="${withval}"
+ AC_DEFINE_DIR(RELOC_SRCDIR, reloc_srcdir,
+ [Relocated directory for source files. ])
+])
+
AC_CONFIG_SUBDIRS(doc testsuite)
# Check whether to support alternative target configurations