From: Toby W. <to...@sd...> - 2002-09-26 15:39:16
|
1) In file included from MappedStudio.h:26, from AlsaDriver.cpp:34: MappedCommon.h:22: qvaluevector.h: No such file or directory In file included from MappedStudio.h:29, from AlsaDriver.cpp:34: Plugins.h:34: qvaluevector.h: No such file or directory qvaluevector.h seems to be a feature new to qt3. If you're continuing to support kde2/qt2, you'll need to find some way around this. 2) configure is broken with a non-bash shell again. This is due to the use of the substring construction ${var:offset[:length]}, which is non-posix. You can either change the configure script to explicitly require bash, or make the following change to configure.in.in, which does the same thing but only using posix substrings: --- configure.in.in.old 2002-09-26 12:39:23.000000000 +0100 +++ configure.in.in 2002-09-26 16:34:42.000000000 +0100 @@ -115,53 +115,44 @@ dir1=$kde_includes dir2=$kde_libraries -lengthDir1=`expr length ${dir1}` -lengthDir2=`expr length ${dir2}` +# Remove any trailing slashes +while test $dir1 = ${dir1%?}/; do +dir1=${dir1%?}; done +while test $dir2 = ${dir2%?}/; do +dir2=${dir2%?}; done +lengthDir1=${#dir1} +lengthDir2=${#dir2} + +# Make directory paths equal in length if test $lengthDir1 -gt $lengthDir2 then - endLength=${lengthDir2} + count=$(($lengthDir1 - $lengthDir2)) + while test $count -ne 0 + do + dir1=${dir1%?} + count=$(($count - 1)) + done else - endLength=${lengthDir1} + count=$(($lengthDir2 - $lengthDir1)) + while test $count -ne 0 + do + dir2=${dir2%?} + count=$(($count - 1)) + done fi -# remove termination character -endLength=`expr $endLength - 1` - -count=0 -matchDir="" -while test ${count} -ne ${endLength} -a \ - "${dir1:${count}:1}" = "${dir2:${count}:1}" +# Chop off a path element at a time until +# we hit root, or they're equal. +while test $dir1 != "/" -a \ + $dir1 != $dir2 do - lastChar=${dir1:${count}:1} - matchDir="${matchDir}${lastChar}" - count=`expr ${count} + 1` + dir1=${dir1%/?*}/ + dir2=${dir2%/?*}/ done - - -# Check directory exists and if it doesn't back up until we -# find a slash -# -if test ! -d $matchDir -then - # remove up to last slash - count=`expr length ${matchDir} - 1` - - while test ${count} -gt 0 -a "${matchDir:${count}:1}" != "/" - do - count=`expr $count - 1` - done - matchDir=${matchDir:0:${count}} -fi - -# append a slash if we're missing one -if test "${lastChar}" != '/'; then -then - matchDir="${matchDir}/" -fi +matchDir=$dir1 if test $prefix = "/usr/local/kde" then prefix=$matchDir fi - Toby White |