[maemo-developers] [maemo-developers] about configure.ac
From: Pinghang.Koon at tietoenator.com Pinghang.Koon at tietoenator.comDate: Fri Jun 2 04:29:02 EEST 2006
- Previous message: [maemo-developers] bluetooth scanning from unit to unit
- Next message: [maemo-developers] about configure.ac - 2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I had written something about that. This document is describing how to include additional library in an automake/autoconf project. 1) Check if the library is pkg-config enabled, usually the library would have the .pc file in the /usr/lib/pkgconfig directory. 2) From the .pc file, edit and check the version of the library. 3) At the configure.ac add the following: PKG_CHECK_MODULES(<MACRO_LIBRARY_NAME>, <library_name> >= <VERSION> AC_SUBST(<MACRO_LIBRARY_NAME>_LIBS) AC_SUBST(<MACRO_LIBRARY_NAME>_CFLAGS) 4) At the Makefile.am at the src directory, add the following: Append $(<MACRO_LIBRARY_NAME>_CFLAGS) in the INCLUDES line. Append $(<MACRO_LIBRARY_NAME>_LIBS) in the LDADD line. ________________________________________ From: maemo-developers-bounces at maemo.org [mailto:maemo-developers-bounces at maemo.org] On Behalf Of geu oopsie Sent: Thursday, June 01, 2006 6:32 PM To: maemo-developers at maemo.org Subject: [maemo-developers] about configure.ac For example, in maemopad, the configure.ac defines the use of gnome-vfs-2.0 with PKG_CHECK_MODULES(OSSO, libosso >= 0.8.4 gnome-vfs-2.0 >=2.2 gnome-vfs-module-2.0 >= 2.2) AC_SUBST(OSSO_LIBS) AC_SUBST(OSSO_CFLAGS) how can I define openobex-1.2 and bluez-libs-2.21 like maemopad example above? or if there are links about PKG_CHECK_MODULES syntax please inform me. thanks, geuis
- Previous message: [maemo-developers] bluetooth scanning from unit to unit
- Next message: [maemo-developers] about configure.ac - 2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]