Fixes pattern in gw_CHECK_QT not to match files that the linker won't
use, for example libqt.so.3 . Needed if both libqt and libqt-mt shared
libraries are installed, but only the libqt-mt development library.
Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
fi
fi
- if test "x`ls $QTDIR/lib/libqt.* 2> /dev/null`" != x ; then
+ if test "x`ls $QTDIR/lib/libqt.{a,so} 2> /dev/null`" != x ; then
QT_LIB="-lqt"
QT_IS_MT="no"
- elif test "x`ls $QTDIR/lib/libqt-mt.* 2> /dev/null`" != x ; then
+ elif test "x`ls $QTDIR/lib/libqt-mt.{a,so} 2> /dev/null`" != x ; then
QT_LIB="-lqt-mt"
QT_IS_MT="yes"
- elif test "x`ls $QTDIR/lib/libqte.* 2> /dev/null`" != x ; then
+ elif test "x`ls $QTDIR/lib/libqte.{a,so} 2> /dev/null`" != x ; then
QT_LIB="-lqte"
QT_IS_MT="no"
QT_IS_EMBEDDED="yes"
- elif test "x`ls $QTDIR/lib/libqte-mt.* 2> /dev/null`" != x ; then
+ elif test "x`ls $QTDIR/lib/libqte-mt.{a,so} 2> /dev/null`" != x ; then
QT_LIB="-lqte-mt"
QT_IS_MT="yes"
QT_IS_EMBEDDED="yes"