# looks for the native product and collects it's environment (used by make_env())
try_native(){
qwthome="`find_in_path libqwt.so.4.2.0 ${LD_LIBRARY_PATH}`"
+if [ -z "${qwthome}" ] ; then
+ qwthome="`find_in_path libqwt.so.4.2.0 /usr/lib`"
+fi
if [ -n "${qwthome}" ] ; then
- qwthome=`cd ${qwthome}/..; pwd`
- tmp="\${QWTHOME}/lib ${QWTHOME}/lib \${LD_LIBRARY_PATH} ${LD_LIBRARY_PATH}";
+ tmp="${qwthome} ${qwthome} \${LD_LIBRARY_PATH} ${LD_LIBRARY_PATH}";
ld_library_path=`sort_path ${tmp}`
cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
#$DELIM ${PRODUCT_TYPE} $DELIM
-export QWTHOME=${qwthome}
export LD_LIBRARY_PATH=${ld_library_path}
##
EOF