Rev | Line | |
---|
[ca911b4] | 1 | AC_INIT([Skype plugin for BitlBee], 1.0, [vmiklos@vmiklos.hu], bitlbee-skype) |
---|
[68312b8] | 2 | AC_PROG_CC |
---|
| 3 | AC_PROG_INSTALL |
---|
| 4 | |
---|
| 5 | AC_ARG_ENABLE([debug], AS_HELP_STRING([--enable-debug], [Enable debug support (default: disabled)]), debug=yes) |
---|
| 6 | AC_MSG_CHECKING(for debug mode request) |
---|
[eb4b91c] | 7 | if test "x$debug" = "xyes" ; then |
---|
[68312b8] | 8 | CFLAGS="-g -Wall -Werror" |
---|
| 9 | AC_MSG_RESULT(yes) |
---|
| 10 | else |
---|
| 11 | AC_MSG_RESULT(no) |
---|
| 12 | fi |
---|
| 13 | |
---|
[df1a59d4] | 14 | case "`$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" |
---|
[446c6ff] | 21 | SHARED_EXT="dylib" |
---|
[df1a59d4] | 22 | ;; |
---|
| 23 | *) |
---|
| 24 | AC_MSG_ERROR([Your machine is not yet supported]) |
---|
| 25 | ;; |
---|
| 26 | esac |
---|
| 27 | AC_SUBST(SHARED_FLAGS) |
---|
| 28 | AC_SUBST(SHARED_EXT) |
---|
| 29 | |
---|
[68312b8] | 30 | dnl Check for bitlbee |
---|
| 31 | PKG_CHECK_MODULES(BITLBEE, bitlbee) |
---|
| 32 | CFLAGS="$CFLAGS $BITLBEE_CFLAGS" |
---|
| 33 | LDFLAGS="$LDFLAGS $BITLBEE_LIBS" |
---|
[b7fbeb4] | 34 | prefix=`$PKG_CONFIG --variable=prefix bitlbee` |
---|
[68312b8] | 35 | AC_OUTPUT(config.mak) |
---|
[c7304b2] | 36 | AC_OUTPUT(skyped.conf.dist) |
---|
[aa4e3ed] | 37 | |
---|
| 38 | echo " |
---|
| 39 | compiler flags: $CFLAGS |
---|
| 40 | linker flags: $LDFLAGS |
---|
| 41 | shared object flags: $SHARED_FLAGS |
---|
| 42 | shared object extension: $SHARED_EXT |
---|
| 43 | install program: $INSTALL |
---|
| 44 | prefix: $prefix |
---|
| 45 | sysconfig dir: $sysconfdir/skyped |
---|
| 46 | " |
---|
Note: See
TracBrowser
for help on using the repository browser.