aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2003-02-20 23:38:58 +0000
committerAlexandre Oliva <aoliva@redhat.com>2003-02-20 23:38:58 +0000
commit715d16565f7550032de4a2501316f9b826749b75 (patch)
tree5b77b372cc7e486840ab94def67af6947b193bf0 /gdb/configure.in
parent29767ab1281ea1bda02e5d3bfe7da66ec7621dc8 (diff)
downloadgdb-715d16565f7550032de4a2501316f9b826749b75.zip
gdb-715d16565f7550032de4a2501316f9b826749b75.tar.gz
gdb-715d16565f7550032de4a2501316f9b826749b75.tar.bz2
* configure.in (TARGET_SYSTEM_ROOT): Set default to
${exec_prefix}/${target_alias}/sys-root. Match explicit '${exec_prefix}' (in addition to the expansion thereof) as relocatable. * configure: Rebuilt.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index eb946f3..63f2daa 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -905,7 +905,7 @@ AC_ARG_WITH(sysroot,
[ --with-sysroot[=DIR] Search for usr/lib et al within DIR.],
[
case ${with_sysroot} in
- yes) AC_ERROR(with-sysroot must specify path) ;;
+ yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
*) TARGET_SYSTEM_ROOT=$with_sysroot ;;
esac
@@ -921,7 +921,8 @@ AC_ARG_WITH(sysroot,
test_prefix=$exec_prefix
fi
case ${TARGET_SYSTEM_ROOT} in
- ${test_prefix}*)
+ "${test_prefix}"|"${test_prefix}/"*|\
+ '${exec_prefix}'|'${exec_prefix}/'*)
t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
TARGET_SYSTEM_ROOT_DEFINE="$t"
;;