diff --git a/config/python.m4 b/config/python.m4 index de346fb53a..fc6afab9f9 100644 --- a/config/python.m4 +++ b/config/python.m4 @@ -45,7 +45,7 @@ if a == b: else: print(a + ' ' + b)"` if test "$PORTNAME" = win32 ; then - python_includespec=`echo $python_includespec | sed 's,[\],/,g'` + python_includespec=`echo $python_includespec | sed 's,[[\]],/,g'` fi AC_MSG_RESULT([$python_includespec]) diff --git a/configure b/configure index 191e8f0326..24c04301a6 100755 --- a/configure +++ b/configure @@ -7488,7 +7488,7 @@ if a == b: else: print(a + ' ' + b)"` if test "$PORTNAME" = win32 ; then - python_includespec=`echo $python_includespec | sed 's,\,/,g'` + python_includespec=`echo $python_includespec | sed 's,[\],/,g'` fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_includespec" >&5 $as_echo "$python_includespec" >&6; }