Summary: | configure fails to detect gnokii if gnokii is built with bluetooth support | ||
---|---|---|---|
Product: | [Unmaintained] kab3 | Reporter: | tim |
Component: | general | Assignee: | Tobias Koenig <tokoe> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Patch for kdepim configure.in.in &c to detect bluetooth libs |
Description
tim
2003-11-12 13:36:22 UTC
Created attachment 3174 [details]
Patch for kdepim configure.in.in &c to detect bluetooth libs
Subject: kdepim CVS commit by tokoe: Applyed patch from #67992 which adds configure check for libbluetooth which may be requiered by libgnokii. @Tim: Thank you very much for the patch CCMAIL:67992-done@bugs.kde.org M +15 -2 configure.in.in 1.31 M +2 -1 kaddressbook/xxport/configure.in.in 1.3 --- kdepim/configure.in.in #1.30:1.31 @@ -24,4 +24,17 @@ CXXFLAGS="$CXXFLAGS $KDE_DEFAULT_CXXFLAGS" +# check for libbluetooth (Bluetooth library) because gnokii may require it +AC_DEFUN(KDE_CHECK_BLUETOOTH, +[ + AC_CHECK_HEADERS(bluetooth/bluetooth.h) + LIB_BLUETOOTH= + AC_CHECK_LIB(bluetooth, hci_open_dev, + [ LIB_BLUETOOTH="-lbluetooth" ], + [], + [] ) + AC_SUBST(LIB_BLUETOOTH) +]) + + # check for libgnokii (Nokia mobile phone library) AC_DEFUN(KDE_CHECK_GNOKII, @@ -31,7 +44,7 @@ LIB_GNOKII= AC_CHECK_LIB(gnokii, gn_cfg_read, - [ LIB_GNOKII="-lgnokii" ], + [ LIB_GNOKII="-lgnokii $LIB_BLUETOOTH" ], [], - $all_libraries -lXpm -lX11 ) + $all_libraries -lXpm -lX11 $LIB_BLUETOOTH ) AC_SUBST(LIB_GNOKII) ]) --- kdepim/kaddressbook/xxport/configure.in.in #1.2:1.3 @@ -1,3 +1,4 @@ # $Id$ +KDE_CHECK_BLUETOOTH KDE_CHECK_GNOKII The development of the old KAddressBook will be discontinued for KDE 4.4. Since the new application has the same name, but a completly new code base we close all bug reports against the old version and ask the submitters to resend there reports against the new product. |