summaryrefslogtreecommitdiffstats
path: root/kstars/configure.in.in
diff options
context:
space:
mode:
Diffstat (limited to 'kstars/configure.in.in')
-rw-r--r--kstars/configure.in.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/kstars/configure.in.in b/kstars/configure.in.in
index 5bc872a4..19f17c3b 100644
--- a/kstars/configure.in.in
+++ b/kstars/configure.in.in
@@ -42,6 +42,17 @@ AC_ARG_ENABLE(libusb,
dnl check if libusb is available
if test "${use_libusb}" != false ; then
+ AC_LANG_SAVE
+ AC_LANG_CPLUSPLUS
+ ac_save_CXXFLAGS="$CXXFLAGS"
+ ac_save_LDFLAGS="$LDFLAGS"
+ if test -z "$qt_includes"; then
+ CXXFLAGS="$CXXFLAGS"
+ else
+ CXXFLAGS="$CXXFLAGS -I$qt_includes"
+ fi
+ LDFLAGS="$LDFLAGS -ltqt"
+
AC_SUBST(LIBUSB)
AC_CHECK_HEADERS(usb.h, [have_libusb="yes"],
[ AC_MSG_WARN([usb.h not found, use --enable-libusb=PATH. Otherwise, INDI will compile without Apogee USB support.]) ])
@@ -52,6 +63,10 @@ if test "${use_libusb}" != false ; then
[ AC_MSG_WARN([libusb not found. INDI will compile without Apogee USB support.]) ])
LIBS="$ac_save_LIBS"
+ CXXFLAGS="$ac_save_CXXFLAGS"
+ LDFLAGS="$ac_save_LDFLAGS"
+ AC_LANG_RESTORE
+
fi
dnl check if v4l2 is available