File: configure.in

package info (click to toggle)
libopensync-plugin-gnokii 0.22-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,564 kB
  • ctags: 89
  • sloc: sh: 8,767; ansic: 1,888; makefile: 91
file content (55 lines) | stat: -rw-r--r-- 1,807 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
dnl Process this file with autoconf to produce a configure script.

AC_PREREQ(2.58)
AC_INIT([OpenSync Plugin gnokii-sync], 0.22, [dgollub@suse.de], [libopensync-plugin-gnokii])
AM_INIT_AUTOMAKE(foreign)
AC_CONFIG_SRCDIR(src/gnokii_sync.c)
AC_CONFIG_HEADER(config.h)

export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/usr/lib/pkgconfig:$prefix/lib/pkgconfig:/usr/local/lib/pkgconfig
pkg_modules="opensync-1.0 glib-2.0 libxml-2.0 gnokii >= 0.6.14"
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)

AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC
AC_DISABLE_STATIC
AC_PROG_LIBTOOL

OPENSYNC_CONFIGDIR=$(pkg-config --variable=configdir opensync-1.0)
OPENSYNC_PLUGINDIR=$(pkg-config --variable=plugindir opensync-1.0)
OPENSYNC_FORMATSDIR=$(pkg-config --variable=formatsdir opensync-1.0)
OPENSYNC_HEADERDIR=$(pkg-config --variable=headerdir opensync-1.0)

AC_SUBST(OPENSYNC_CONFIGDIR) ## This is the place where you can install the default configuration files of your plugin
AC_SUBST(OPENSYNC_PLUGINDIR) ## This is the dir where you plugin will be installed
AC_SUBST(OPENSYNC_FORMATSDIR) ## Here are format plugins installed (if any)
AC_SUBST(OPENSYNC_HEADERDIR) ## Here are the headers that a user interface may need (if any)

AC_ARG_ENABLE(contact,
  AS_HELP_STRING([--disable-contact], [Disable contact support]),
  disable_contact=$enableval)
if test "x$disable_contact" != "xno"; then
	AC_DEFINE(HAVE_CONTACT,1,[Enabled contact support])
        AC_SUBST(HAVE_CONTACT)
fi


AC_ARG_ENABLE(event,
  AS_HELP_STRING([--disable-event], [Disable event/calendar support]),
  disable_event=$enableval)
if test "x$disable_event" != "xno"; then
	AC_DEFINE(HAVE_EVENT,1,[Enabled event/calendar support])
        AC_SUBST(HAVE_EVENT)
fi


AC_OUTPUT([
Makefile
src/Makefile
])