From: JINMEI Tatuya Date: Tue, 5 Feb 2013 21:49:10 +0000 (-0800) Subject: [2661] deal with space after -L in python-config output; it helps some solaris. X-Git-Tag: bind10-1.0.0-rc-release~20^2~1^2~2^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ec905f87eaebf01ae956b1ec5ac05afbfae9836;p=thirdparty%2Fkea.git [2661] deal with space after -L in python-config output; it helps some solaris. --- diff --git a/configure.ac b/configure.ac index 2075a74df6..fad1e20823 100644 --- a/configure.ac +++ b/configure.ac @@ -298,7 +298,11 @@ AC_SUBST(COMMON_PYTHON_PATH) if test -x ${PYTHON}-config; then PYTHON_INCLUDES=`${PYTHON}-config --includes` - for flag in `${PYTHON}-config --ldflags`; do + # make a copy of python-config --ldflags, removing any spaces and tabs + # between "-L" and its argument (some instances of python-config + # insert a space, which would confuse the code below) + python_config_ldflags=`${PYTHON}-config --ldflags | sed -ne 's/\([ \t]*-L\)[ ]*\([^ \t]*[ \t]*\)/\1\2/pg'` + for flag in $python_config_ldflags; do # add any '-L..." flags to PYTHON_LDFLAGS flag=`echo $flag | sed -ne 's/^\(\-L.*\)$/\1/p'` if test "X${flag}" != X; then