source: skype/configure.ac @ 7415989

Last change on this file since 7415989 was 752a591, checked in by Miklos Vajna <vmiklos@…>, at 2008-09-05T19:54:45Z

make bitlbee dependency optional as well

this way it's possible to build bitlbee-skype on a client where only
skyped will be running, so messing with the plugin makes no sense

  • Property mode set to 100644
File size: 2.0 KB
Line 
1AC_INIT([Skype plugin for BitlBee], 1.0, [vmiklos@vmiklos.hu], bitlbee-skype)
2AC_PROG_CC
3AC_PROG_INSTALL
4
5AC_ARG_ENABLE([debug], AS_HELP_STRING([--enable-debug], [Enable debug support (default: disabled)]), debug=yes)
6AC_MSG_CHECKING(for debug mode request)
7if test "x$debug" = "xyes" ; then
8        CFLAGS="-g -Wall -Werror"
9        AC_MSG_RESULT(yes)
10else
11        AC_MSG_RESULT(no)
12fi
13
14case "`$CC -dumpmachine`" in
15        *linux*)
16                SHARED_FLAGS="-shared"
17                SHARED_EXT="so"
18                ;;
19        *apple-darwin*)
20                SHARED_FLAGS="-dynamiclib -Wl,-headerpad_max_install_names,-undefined,dynamic_lookup"
21                SHARED_EXT="dylib"
22                ;;
23        *)
24                AC_MSG_ERROR([Your machine is not yet supported])
25                ;;
26esac
27AC_SUBST(SHARED_FLAGS)
28AC_SUBST(SHARED_EXT)
29
30dnl Check for bitlbee
31AC_MSG_CHECKING(for BitlBee)
32pkg-config --exists bitlbee
33if test "$?" != "0"; then
34        AC_MSG_RESULT(no)
35        BITLBEE="no"
36else
37        AC_MSG_RESULT(yes)
38        BITLBEE="yes"
39        if test -z "$CFLAGS"; then
40                CFLAGS="`pkg-config --cflags bitlbee`"
41        else
42                CFLAGS="$CFLAGS `pkg-config --cflags bitlbee`"
43        fi
44        if test -z "$LDFLAGS"; then
45                LDFLAGS="`pkg-config --libs bitlbee`"
46        else
47                LDFLAGS="$LDFLAGS `pkg-config --libs bitlbee`"
48        fi
49        prefix=`pkg-config --variable=prefix bitlbee`
50fi
51AC_SUBST(BITLBEE)
52
53dnl Check for Skype4Py
54AC_MSG_CHECKING(for Python module Skype4Py)
55python -c "import Skype4Py" 2>&AS_MESSAGE_LOG_FD
56if test "$?" != "0"; then
57        AC_MSG_RESULT(no)
58        SKYPE4PY="no"
59else
60        AC_MSG_RESULT(yes)
61        SKYPE4PY="yes"
62fi
63AC_SUBST(SKYPE4PY)
64
65if test "$BITLBEE" = "no" -a "$SKYPE4PY" = "no"; then
66        AC_ERROR([In order to use bitlbee-skype you need at least BitlBee or Skype4Py installed.])
67fi
68
69AC_OUTPUT(config.mak)
70AC_OUTPUT(skyped.conf.dist)
71
72echo "
73        BitlBee plugin:                 $BITLBEE
74        skyped:                         $SKYPE4PY
75        prefix:                         $prefix
76        install program:                $INSTALL"
77if test "$BITLBEE" = "yes"; then
78        echo "  compiler flags:                 $CFLAGS
79        linker flags:                   $LDFLAGS
80        shared object flags:            $SHARED_FLAGS
81        shared object extension:        $SHARED_EXT"
82fi
83if test "$SKYPE4PY" = "yes"; then
84        echo "  sysconfig dir:                  $sysconfdir/skyped"
85fi
86echo
Note: See TracBrowser for help on using the repository browser.