Fixed building the modules/ilbccodec.yate if the source path contains spaces or some special characters.

Refuse to configure in a separate build directory if the source path has spaces or special characters in name.


git-svn-id: http://voip.null.ro/svn/yate@4132 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2011-02-25 11:16:30 +00:00
parent 071c85ecb0
commit 167bc5a0e9
1 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,10 @@ AC_INIT(Yate, 3.1.1)
AC_CONFIG_SRCDIR([README])
AC_PREREQ(2.52)
if echo "$srcdir" | grep -q '[[[:space:]\$\"'\'']]'; then
AC_ERROR([Unsupported character(s) in source directory name])
fi
PACKAGE_RELEASE="1"
PACKAGE_STATUS="alpha"
PACKAGE_REVISION=`cat packing/revision.txt 2>/dev/null`
@ -668,8 +672,8 @@ AC_MSG_CHECKING([for iLBC in libs])
incilbc="libs/ilbc"
if [[ -f "$basedir/$incilbc/iLBC_encode.h" ]]; then
HAVE_ILBC=yes
basedir=`sed 's/\([[^\]]\)\([[[:space:]\$\"'\'']]\)/\1\\\2/g'`
ILBC_INC="-I$basedir/$incilbc"
ILBC_DEP="../$incilbc/libilbc.a"
fi
AC_MSG_RESULT([$HAVE_ILBC])
fi