summaryrefslogtreecommitdiffstats
path: root/kstars/configure.in.in
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
commita374efce3a207b39514be3c52264091400ce297e (patch)
tree77bdf654b55826d4f59b53a5621310206bcaead1 /kstars/configure.in.in
parentf81a494f3957d5cf38c787973415597941934727 (diff)
downloadtdeedu-a374efce3a207b39514be3c52264091400ce297e.tar.gz
tdeedu-a374efce3a207b39514be3c52264091400ce297e.zip
TQt4 port kdeedu
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1236073 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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