PR binutils/12110

* configure.ac: Error when source path contains spaces.
	* configure: Regenerate.
This commit is contained in:
Alan Modra 2010-11-02 00:22:10 +00:00
parent ab2a306104
commit 6d0cd39eb2
3 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2010-11-02 Alan Modra <amodra@gmail.com>
PR binutils/12110
* configure.ac: Error when source path contains spaces.
* configure: Regenerate.
2010-10-20 Ian Lance Taylor <iant@google.com>
* Makefile.def (target_modules): Set lib_path to src/.libs for

5
configure vendored
View File

@ -1393,6 +1393,11 @@ fi
case $srcdir in
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
esac
case $srcdir in
*" "*)
as_fn_error "path to source, $srcdir, contains spaces"
;;
esac
ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
for ac_var in $ac_precious_vars; do

View File

@ -221,7 +221,14 @@ target_configdirs=`echo ${target_libraries} ${target_tools}`
build_configdirs=`echo ${build_libs} ${build_tools}`
m4_divert_text([PARSE_ARGS],
[ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
[case $srcdir in
*" "*)
m4_pushdef([AS_MESSAGE_LOG_FD], [])dnl
AC_MSG_ERROR([path to source, $srcdir, contains spaces])
m4_popdef([AS_MESSAGE_LOG_FD])dnl
;;
esac
ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
])
################################################################################