source: skype/configure.ac @ 4834307

Last change on this file since 4834307 was df1a59d4, checked in by Miklos Vajna <vmiklos@…>, at 2008-03-07T12:38:58Z

add support for osx

  • Property mode set to 100644
File size: 871 bytes
Line 
1AC_INIT([Skype plugin for BitlBee], 1.0, [vmiklos@frugalware.org], 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="dynlib"
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
31PKG_CHECK_MODULES(BITLBEE, bitlbee)
32CFLAGS="$CFLAGS $BITLBEE_CFLAGS"
33LDFLAGS="$LDFLAGS $BITLBEE_LIBS"
34AC_OUTPUT(config.mak)
35AC_OUTPUT(skyped.conf.dist)
Note: See TracBrowser for help on using the repository browser.