Fixed PWlib version comparation for good (or until version gets 3 digits)

git-svn-id: http://yate.null.ro/svn/yate/trunk@746 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2006-04-11 23:39:09 +00:00
parent 35bc141dc4
commit d94cf90a1d
1 changed files with 3 additions and 1 deletions

View File

@ -347,7 +347,9 @@ prtti=`$ac_cv_use_pwlib/bin/ptlib-config --ccflags 2>/dev/null | sed -n 's/^.*\(
incpw="$ac_cv_use_pwlib/include/ptlib.h"
libpw="$ac_cv_use_pwlib/lib/libpt.so"
PWLIB_INC="-I$ac_cv_use_pwlib/include/ptlib"
if [[ "$verpw" '<' "1.6.0" -a "$verpw" '<' "1.10.0" ]]; then
# convert version into something comparable lexicographically
vpw=`echo "$verpw" | sed 's/\(^\|[[^1-9]]\)\([[0-9]]\)/\10\2/g'`
if [[ "$vpw" '<' "01.06.00" ]]; then
PWLIB_INC="-I$ac_cv_use_pwlib/include/ptlib/unix/ptlib -I$ac_cv_use_pwlib/include/ptlib/unix $PWLIB_INC"
fi
if [[ -f "$incpw" -a -f "$libpw" ]]; then