[vlc-commits] configure: extract top_srcdir from Makefile at external of quotes

KO Myung-Hun git at videolan.org
Tue Aug 12 10:04:34 CEST 2014


vlc | branch: master | KO Myung-Hun <komh at chollian.net> | Wed Jul 30 12:28:39 2014 +0900| [58c4552afaad92181fca01315f084be5ae46c2eb] | committer: Rafaël Carré

configure: extract top_srcdir from Makefile at external of quotes

This fixes the following error on pdksh v5.2.14.

-----
sed: -e expression #1, char 1: unknown command: `"'
-----

Signed-off-by: Rafaël Carré <funman at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=58c4552afaad92181fca01315f084be5ae46c2eb
---

 configure.ac |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 4852f2c..3699c61 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4273,11 +4273,12 @@ if test -n $SHELL; then
   SHELL=${CONFIG_SHELL-/bin/sh}
 fi
 rm -f compile
+compile_top_srcdir=`sed -ne "s/^top_srcdir *= *//p" < Makefile`
 echo "#! $SHELL
 rm -f .error\$\$
 ERROR=0
 export PATH=\"$PATH\" LANG=C
-($MAKE V=1 \$@ 2>&1 || touch .error\$\$)| `sed -ne \"s/^top_srcdir *= *//p\" < Makefile`/extras/buildsystem/make.pl
+($MAKE V=1 \$@ 2>&1 || touch .error\$\$)| $compile_top_srcdir/extras/buildsystem/make.pl
 test -f .error\$\$ && ERROR=1
 rm -f .error\$\$
 exit \$ERROR" >compile



More information about the vlc-commits mailing list