]> sjero.net Git - linphone/blob - linphone/coreapi/plugins/buddylookup/configure.ac
5e61343da298923a1cbd3270a197e1872dad2957
[linphone] / linphone / coreapi / plugins / buddylookup / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ(2.61)
5 AC_INIT(buddylookup, 0.0.1, simon dot morlat at linphone dot org)
6 AC_CONFIG_SRCDIR([src/lookup.c])
7
8 AM_INIT_AUTOMAKE([tar-ustar])
9
10 AC_CANONICAL_SYSTEM
11
12 case $target_os in
13         *mingw*)
14                 mingw_found=yes
15         ;;
16 esac
17
18 AC_MSG_CHECKING([warning make an error on compilation])
19 AC_ARG_ENABLE(strict,
20 [  --enable-strict       Enable error on compilation warning [default=yes]],
21 [wall_werror=$enableval],
22 [wall_werror=yes]
23 )
24
25 dnl AC_CONFIG_HEADER([config.h])
26
27 # Checks for programs.
28 AC_PROG_CC
29 dnl LT_INIT([disable-static])
30 AC_DISABLE_STATIC
31 AC_PROG_LIBTOOL
32
33
34
35 AC_CONFIG_COMMANDS([libtool-hacking],[
36         if test "$mingw_found" = "yes" ; then
37                 echo "Hacking libtool to work with mingw..."
38                 sed -e 's/\*\" \$a_deplib \"\*/\*/' < ./libtool > libtool.tmp
39                 cp -f ./libtool.tmp ./libtool
40                 rm -f ./libtool.tmp
41         fi
42 ],[mingw_found=$mingw_found])
43
44 # Checks for libraries.
45
46 PKG_CHECK_MODULES(LIBSOUP, libsoup-2.4 >= 2.4.0)
47 PKG_CHECK_MODULES(LIBLINPHONE, linphone >= 3.0.0)
48
49 LINPHONE_PLUGINS_DIR="\$(libdir)/liblinphone/plugins/"
50 AC_SUBST(LINPHONE_PLUGINS_DIR)
51
52 # Checks for header files.
53
54 # Checks for typedefs, structures, and compiler characteristics.
55
56 # Checks for library functions.
57
58 if test "$GCC" = "yes" ; then
59 CFLAGS="$CFLAGS -Wall"
60 LDFLAGS="$LDFLAGS -rdynamic "
61
62         if test $wall_werror = yes;  then
63                 CFLAGS="$CFLAGS -Werror "
64         fi
65 fi
66
67 AM_CONDITIONAL(BUILD_WIN32, test x$mingw_found = xyes)
68
69 AC_OUTPUT(
70 Makefile
71 src/Makefile
72 )