summaryrefslogtreecommitdiffstats
path: root/configure.in.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in.in')
-rw-r--r--configure.in.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.in.in b/configure.in.in
index 2678141..79d4ecb 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -155,6 +155,8 @@ dnl
dnl
CPPFLAGS="$CPPFLAGS $PISOCK_INCLUDE"
if test "$HAVE_PISOCK" = "1" ; then
+ LDFLAGS_save="$LDFLAGS"
+ LDFLAGS="$LDFLAGS -ltqt"
AC_MSG_CHECKING([pilot-link version])
AC_TRY_RUN([
#include <pi-version.h>
@@ -173,6 +175,7 @@ if test "$HAVE_PISOCK" = "1" ; then
[AC_MSG_RESULT([Cross-compiling KPilot is doomed])
HAVE_PISOCK="0"
])
+ LDFLAGS="$LDFLAGS_save"
fi
if test "x$with_pilot_link" = "xCHECK" ; then
@@ -180,6 +183,8 @@ if test "x$with_pilot_link" = "xCHECK" ; then
# Fairly random collection of possible extra libraries needed
# to link pilot-link against.
if test "$HAVE_PISOCK" = "1" ; then
+ LDFLAGS_save="$LDFLAGS"
+ LDFLAGS="$LDFLAGS -ltqt"
HAVE_PISOCK=0
AC_CHECK_LIB(pisock,
@@ -217,6 +222,7 @@ if test "$HAVE_PISOCK" = "1" ; then
)
]
)
+ LDFLAGS="$LDFLAGS_save"
fi
fi