1 # version of this package
2 m4_define(pidgin_sipe_version, 1.2.0)
4 # lower and upper-bound versions of Pidgin
5 m4_define(pidgin_version_max, 2.0.0)
8 AM_INIT_AUTOMAKE(pidgin_sipe, pidgin_sipe_version)
17 LIBTOOL="$LIBTOOL --silent"
21 GAIM_MIN=pidgin_version_min
22 GAIM_MAX=pidgin_version_max
26 # tell pkgconfig to look in the same prefix we're installing this to,
27 # as that's likely where gaim will be found if it's not in the default
29 PREFIX=$ac_default_prefix
30 if test "$prefix" != "NONE"; then
34 PKG_CONFIG_PATH="$PKG_CONFIG_PATH":"$PREFIX/lib/pkgconfig"
35 export PKG_CONFIG_PATH
39 [ --enable-debug compile with debugging support],,
42 if test "$enable_debug" = yes; then
43 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
47 PKG_CHECK_MODULES(libpurple,
48 [pidgin >= pidgin_version_max],
50 AC_DEFINE(HAVE_PIDGIN, 1, [Define if we've found pidgin.])
53 PIDGIN_CFLAGS=`$PKG_CONFIG --cflags purple`
54 PIDGIN_LIBS=`$PKG_CONFIG --libs purple`
56 AC_SUBST(PIDGIN_CFLAGS)
59 dnl Check for inet_aton
60 AC_CHECK_FUNC(inet_aton, , [AC_CHECK_LIB(resolv, inet_aton, ,
61 [AC_ERROR(inet_aton not found)])])
63 SIPE_LIBA=`$PKG_CONFIG sipe --variable=libarchive`
66 AC_ARG_ENABLE(static-sipe,
67 [ --enable-static-sipe statically link in Simple Exchange],
68 sipe_static="yes", sipe_static="no")
70 AM_CONDITIONAL(SIPE_STATIC, test $sipe_static = yes)
72 # substitutions and generated files
88 echo -n "Simple Exchange linking mode... : "
89 if test "$sipe_static" = "yes" ; then
91 echo "Simple Exchange library... : $SIPE_LIBA"
97 echo configure complete, now run \`make\`