diff options
author | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2009-09-27 17:17:32 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2009-09-27 17:17:32 +0200 |
commit | 9dcb3e8be2cd52a795605548e43d6bfc149b2ea5 (patch) | |
tree | 786c5441ad7c75ce1060a3fcc8af217d4ebaa62b /m4 | |
parent | ed4a6f1cfc7ccd2717d939841c092347c3307547 (diff) |
Fix the linking not to use the .so directly but the lib
Fixes check on cygwin
Diffstat (limited to 'm4')
-rw-r--r-- | m4/qt.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -69,7 +69,7 @@ if test "x$have_qt" = "xyes"; then save_CXXFLAGS=$CXXFLAGS save_LIBS=$LIBS CXXFLAGS="$CXXFLAGS -I$qt_incdir" - LIBS="$LIBS $qt_libdir/$qt_test_library" + LIBS="$LIBS -L$qt_libdir -lqt-mt" AC_MSG_CHECKING([if Qt needs -pthread]) AC_TRY_LINK([#include <qt.h>], [QString s;], [pthread_needed=no], [pthread_needed=yes]) if test "x$pthread_needed" = "xyes"; then @@ -89,7 +89,7 @@ if test "x$have_qt" = "xyes"; then fi $1[]_CXXFLAGS="-I$qt_incdir" - $1[]_LIBS="$qtpthread $qt_libdir/$qt_test_library" + $1[]_LIBS="$qtpthread -L$qt_libdir -lqt-mt" ifelse([$2], , :, [$2]) else ifelse([$3], , [AC_MSG_FAILURE(dnl |