- added more code to dump extra descriptors during device discovery,
[barry.git] / opensync-plugin / configure.ac
blobfe7e73390eadb0a425154f2b9a3172b2f579b7fd
1 dnl Process this file with autoconf to produce a configure script.
3 AC_PREREQ(2.58)
4 AC_INIT([Barry OpenSync Plugin], 0.01, [], barryplugin)
5 AM_INIT_AUTOMAKE(foreign)
6 AC_CONFIG_SRCDIR(src/barry_sync.cc)
7 AC_CONFIG_HEADER(config.h)
9 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/usr/lib/pkgconfig:$prefix/lib/pkgconfig:/usr/local/lib/pkgconfig
10 pkg_modules="opensync-1.0 glib-2.0"
11 PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
12 AC_SUBST(PACKAGE_CFLAGS)
13 AC_SUBST(PACKAGE_LIBS)
15 AC_ISC_POSIX
16 AC_PROG_CC
17 AM_PROG_CC_STDC
18 AC_HEADER_STDC
19 AC_PROG_CXX
20 AC_DISABLE_STATIC
21 AC_PROG_LIBTOOL
23 AC_LANG([C++])
25 AC_ARG_WITH(barry,
26         [  --with-barry=<path>     root path of Barry installation],
27         [BARRY_LIB_PATH="$with_barry/lib"
28          BARRY_INC_PATH="$with_barry/include"],
29         [BARRY_LIB_PATH="../../src/install/lib"
30          BARRY_INC_PATH="../../src/install/include"])
32 AC_ARG_WITH(libusb,
33         [  --with-libusb=<path>    root path of libusb installation],
34         [LIBUSB_LIB_PATH="$with_libusb/lib"
35          LIBUSB_INC_PATH="$with_libusb/include"],
36         [LIBUSB_LIB_PATH="/usr/lib"
37          LIBUSB_INC_PATH="/usr/include"])
39 OPENSYNC_CONFIGDIR=$(pkg-config --variable=configdir opensync-1.0)
40 OPENSYNC_PLUGINDIR=$(pkg-config --variable=plugindir opensync-1.0)
41 OPENSYNC_FORMATSDIR=$(pkg-config --variable=formatsdir opensync-1.0)
42 OPENSYNC_HEADERDIR=$(pkg-config --variable=headerdir opensync-1.0)
44 AC_SUBST(OPENSYNC_CONFIGDIR) ## This is the place where you can install the default configuration files of your plugin
45 AC_SUBST(OPENSYNC_PLUGINDIR) ## This is the dir where you plugin will be installed
46 AC_SUBST(OPENSYNC_FORMATSDIR) ## Here are format plugins installed (if any)
47 AC_SUBST(OPENSYNC_HEADERDIR) ## Here are the headers that a user interface may need (if any)
48 AC_SUBST(BARRY_LIB_PATH)
49 AC_SUBST(BARRY_INC_PATH)
50 AC_SUBST(LIBUSB_LIB_PATH)
51 AC_SUBST(LIBUSB_INC_PATH)
53 AC_OUTPUT([
54 Makefile
55 src/Makefile