|
a/configure.ac |
|
b/configure.ac |
|
... |
|
... |
32 |
AC_DISABLE_STATIC
|
32 |
AC_DISABLE_STATIC
|
33 |
LT_INIT
|
33 |
LT_INIT
|
34 |
|
34 |
|
35 |
AC_PROG_CXX
|
35 |
AC_PROG_CXX
|
36 |
|
36 |
|
|
|
37 |
# Check for where to find unordered_map etc.
|
|
|
38 |
AC_LANG_PUSH([C++])
|
|
|
39 |
AC_CHECK_HEADER(tr1/unordered_map,[AC_DEFINE([HAVE_TR1_UNORDERED],
|
|
|
40 |
[],["Have tr1"])],[])
|
|
|
41 |
CPPFLAGS_=$CPPFLAGS
|
|
|
42 |
CPPFLAGS=-std=c++0x
|
|
|
43 |
export CPPFLAGS
|
|
|
44 |
AC_CHECK_HEADER(unordered_map,[AC_DEFINE([HAVE_CXX0X_UNORDERED],
|
|
|
45 |
[],["Have C++0x"])],[])
|
|
|
46 |
CPPFLAGS=$CPPFLAGS_
|
|
|
47 |
export CPPFLAGS
|
|
|
48 |
AC_LANG_POP([C++])
|
|
|
49 |
|
37 |
# libupnp is configured with large file support, and we need to do the same,
|
50 |
# libupnp is configured with large file support, and we need to do the same,
|
38 |
# else a difference in off_t size impacts struct File_Info and prevents the
|
51 |
# else a difference in off_t size impacts struct File_Info and prevents the
|
39 |
# vdir to work. This does make a difference, for exemple, for Raspbian
|
52 |
# vdir to work. This does make a difference, for exemple, for Raspbian
|
40 |
# on the Raspberry PI. Use the same directives as libupnp's configure.ac
|
53 |
# on the Raspberry PI. Use the same directives as libupnp's configure.ac
|
41 |
AC_TYPE_SIZE_T
|
54 |
AC_TYPE_SIZE_T
|