From: Pedro Alves Date: Fri, 20 Apr 2012 17:58:49 +0000 (+0000) Subject: 2012-04-20 Pedro Alves X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=38ea300a20224b953f2102a8ab1ffb5cef49b480;p=binutils-gdb.git 2012-04-20 Pedro Alves gdb/ * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute $srcdir. * configure: Regenerate. gdb/gdbserver/ * configure: Regenerate. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 31a8b5a0208..9d8244a2c7d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2012-04-20 Pedro Alves + + * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute + $srcdir. + * configure: Regenerate. + 2012-04-20 Sergio Durigan Junior * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC diff --git a/gdb/acx_configure_dir.m4 b/gdb/acx_configure_dir.m4 index 57a64a62f49..e4318751478 100644 --- a/gdb/acx_configure_dir.m4 +++ b/gdb/acx_configure_dir.m4 @@ -89,7 +89,12 @@ AC_DEFUN([ACX_CONFIGURE_DIR], _AS_ECHO([$ac_msg]) AS_MKDIR_P(["$ac_dir"]) - ac_srcdir=../$srcdir/$in_src + case $srcdir in + [[\\/]]* | ?:[[\\/]]* ) + ac_srcdir=$srcdir/$in_src ;; + *) # Relative name. + ac_srcdir=../$srcdir/$in_src ;; + esac cd "$ac_dir" diff --git a/gdb/configure b/gdb/configure index dd1c80a110f..54c2399080d 100755 --- a/gdb/configure +++ b/gdb/configure @@ -4648,7 +4648,12 @@ fi $as_echo "$ac_msg" >&6 as_dir="$ac_dir"; as_fn_mkdir_p - ac_srcdir=../$srcdir/$in_src + case $srcdir in + [\\/]* | ?:[\\/]* ) + ac_srcdir=$srcdir/$in_src ;; + *) # Relative name. + ac_srcdir=../$srcdir/$in_src ;; + esac cd "$ac_dir" diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 7b48e194fde..d584b29e7cf 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2012-04-20 Pedro Alves + + * configure: Regenerate. + 2012-04-19 Pedro Alves * Makefile.in (GNULIB_BUILDDIR): New. diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure index 5ab18856efd..63e25c239ea 100755 --- a/gdb/gdbserver/configure +++ b/gdb/gdbserver/configure @@ -4391,7 +4391,12 @@ done $as_echo "$ac_msg" >&6 as_dir="$ac_dir"; as_fn_mkdir_p - ac_srcdir=../$srcdir/$in_src + case $srcdir in + [\\/]* | ?:[\\/]* ) + ac_srcdir=$srcdir/$in_src ;; + *) # Relative name. + ac_srcdir=../$srcdir/$in_src ;; + esac cd "$ac_dir"