diff options
author | Joseph Myers <joseph@codesourcery.com> | 2009-04-21 10:13:05 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2009-04-21 10:13:05 +0000 |
commit | 29b0e8a24aad93899d3d81d9e43493adfa83c930 (patch) | |
tree | 320900356a949dd9b985d39cb6be0c3c0eaab724 /gdb/configure | |
parent | ccabeb57ba166e3c9a5ec72fec715f05e1a93e2a (diff) | |
download | gdb-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')
-rwxr-xr-x | gdb/configure | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gdb/configure b/gdb/configure index 0ba6d2c..d37c4f2 100755 --- a/gdb/configure +++ b/gdb/configure @@ -882,6 +882,8 @@ Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug + --with-relocated-sources=PATH + Automatically relocate this path for source files --with-libunwind Use libunwind frame unwinding support --with-curses use the curses library instead of the termcap library @@ -7133,6 +7135,25 @@ _ACEOF esac +# Check whether --with-relocated-sources or --without-relocated-sources was given. +if test "${with_relocated_sources+set}" = set; then + withval="$with_relocated_sources" + reloc_srcdir="${withval}" + + test "x$prefix" = xNONE && prefix="$ac_default_prefix" + test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + ac_define_dir=`eval echo $reloc_srcdir` + ac_define_dir=`eval echo $ac_define_dir` + +cat >>confdefs.h <<_ACEOF +#define RELOC_SRCDIR "$ac_define_dir" +_ACEOF + + + +fi; + + subdirs="$subdirs doc testsuite" |