lib: fixed display bug in Date's operator<<
[barry.git] / opensync-plugin-0.4x / configure.ac
blob8535577454eac2fd709c7e0d3a9f3f1c23918ea3
1 dnl Process this file with autoconf to produce a configure script.
3 AC_PREREQ(2.61)
4 AC_INIT([Barry OpenSync Plugin 0.4x], [0.17], [barry-devel@lists.sourceforge.net])
5 AC_CONFIG_SRCDIR(src/barry_sync.cc)
6 AC_CONFIG_HEADER(config.h)
7 AC_CONFIG_AUX_DIR([.])
8 AC_CONFIG_MACRO_DIR([m4])
9 AM_INIT_AUTOMAKE(foreign)
11 pkg_modules="libopensync1 glib-2.0"
12 PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
13 AC_SUBST(PACKAGE_CFLAGS)
14 AC_SUBST(PACKAGE_LIBS)
16 AC_ISC_POSIX
17 AC_PROG_CC
18 AM_PROG_CC_STDC
19 AC_HEADER_STDC
20 AC_PROG_CXX
21 AC_DISABLE_STATIC
22 AC_PROG_LIBTOOL
24 AX_C_CHECK_FLAG([-fvisibility=hidden], [], [],
25         [HAVE_C_GCCVISIBILITY=1],
26         [HAVE_C_GCCVISIBILITY=0])
27 AX_CXX_CHECK_FLAG([-fvisibility=hidden], [], [],
28         [HAVE_CXX_GCCVISIBILITY=1],
29         [HAVE_CXX_GCCVISIBILITY=0])
30 AM_CONDITIONAL([WITH_GCCVISIBILITY], [test "$HAVE_C_GCCVISIBILITY" = "1" -a "$HAVE_CXX_GCCVISIBILITY" = "1"])
32 AC_LANG([C++])
34 PKG_CHECK_MODULES([BARRY], [libbarry-0 libbarrysync-0])
36 # Carry the special tree build environment variables from parent configure,
37 # just in case user is doing a complete tree build with --enable-opensync-plugin
38 AC_SUBST(TREE_BUILD_CXXFLAGS)
39 AC_SUBST(TREE_BUILD_LDFLAGS)
41 OPENSYNC_CONFIGDIR=$(pkg-config --variable=configdir libopensync1)
42 OPENSYNC_PLUGINDIR=$(pkg-config --variable=plugindir libopensync1)
43 OPENSYNC_FORMATSDIR=$(pkg-config --variable=formatsdir libopensync1)
44 OPENSYNC_HEADERDIR=$(pkg-config --variable=headerdir libopensync1)
46 AC_SUBST(OPENSYNC_CONFIGDIR) ## This is the place where you can install the default configuration files of your plugin
47 AC_SUBST(OPENSYNC_PLUGINDIR) ## This is the dir where you plugin will be installed
48 AC_SUBST(OPENSYNC_FORMATSDIR) ## Here are format plugins installed (if any)
49 AC_SUBST(OPENSYNC_HEADERDIR) ## Here are the headers that a user interface may need (if any)
51 AC_OUTPUT([
52 Makefile
53 src/Makefile