|
a/configure.ac |
|
b/configure.ac |
|
... |
|
... |
27 |
|
27 |
|
28 |
AC_PREREQ([2.53])
|
28 |
AC_PREREQ([2.53])
|
29 |
AC_CONFIG_SRCDIR([libupnpp/upnpplib.hxx])
|
29 |
AC_CONFIG_SRCDIR([libupnpp/upnpplib.hxx])
|
30 |
AC_CONFIG_HEADERS([libupnpp/config.h])
|
30 |
AC_CONFIG_HEADERS([libupnpp/config.h])
|
31 |
AH_BOTTOM([#include "libupnpp/conf_post.h"])
|
31 |
AH_BOTTOM([#include "libupnpp/conf_post.h"])
|
|
|
32 |
|
|
|
33 |
AC_CANONICAL_HOST
|
|
|
34 |
build_linux=no
|
|
|
35 |
build_mac=no
|
|
|
36 |
# Detect the target system
|
|
|
37 |
case "${host_os}" in
|
|
|
38 |
linux*) build_linux=yes;;
|
|
|
39 |
darwin*) build_mac=yes;;
|
|
|
40 |
*) AC_MSG_ERROR(["OS $host_os is not supported"]);;
|
|
|
41 |
esac
|
|
|
42 |
# Pass the conditionals to automake
|
|
|
43 |
AM_CONDITIONAL([LINUX], [test "$build_linux" = "yes"])
|
|
|
44 |
AM_CONDITIONAL([OSX], [test "$build_mac" = "yes"])
|
32 |
|
45 |
|
33 |
AM_INIT_AUTOMAKE([1.10 no-define subdir-objects foreign])
|
46 |
AM_INIT_AUTOMAKE([1.10 no-define subdir-objects foreign])
|
34 |
AC_DISABLE_STATIC
|
47 |
AC_DISABLE_STATIC
|
35 |
LT_INIT
|
48 |
LT_INIT
|
36 |
|
49 |
|