Bug 67992

Summary: configure fails to detect gnokii if gnokii is built with bluetooth support
Product: [Unmaintained] kab3 Reporter: tim
Component: generalAssignee: 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
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5) 
OS:          Linux

As per the subject. This is a compilation problem - don't see where else to file it. Patch fixing problem to follow.
Comment 1 tim 2003-11-12 13:37:43 UTC
Created attachment 3174 [details]
Patch for kdepim configure.in.in &c to detect bluetooth libs
Comment 2 Tobias Koenig 2003-11-15 16:45:15 UTC
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


Comment 3 Tobias Koenig 2009-08-05 16:01:12 UTC
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.