~markwright/scalestack/zeromq

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#
# Scale Stack
#
# Copyright 2010 Eric Day
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

AC_INIT([Scale Stack],
        [0.2],
        [https://bugs.launchpad.net/scalestack],
        [scalestack],
        [http://scalestack.org/])
AC_CONFIG_SRCDIR([scalestack/kernel/core.h])
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_MACRO_DIR([m4])

PANDORA_CANONICAL_TARGET(require-cxx, warnings-always-on)

# Increment if interfaces have been added, removed, or changed.
LIBSCALESTACK_VERSION_CURRENT=1

# Increment if source code has changed, set to zero if current is incremented.
LIBSCALESTACK_VERSION_REVISION=0

# Increment if interfaces have been added, set to zero if interfaces have been
# removed or changed.
LIBSCALESTACK_VERSION_AGE=0

AC_SUBST(LIBSCALESTACK_VERSION_CURRENT)
AC_SUBST(LIBSCALESTACK_VERSION_REVISION)
AC_SUBST(LIBSCALESTACK_VERSION_AGE)

AC_DEFINE_UNQUOTED([LIBSCALESTACK_VERSION_CURRENT],
                   [$LIBSCALESTACK_VERSION_CURRENT],
                   [Current portion of libscalestack version])
AC_DEFINE_UNQUOTED([LIBSCALESTACK_VERSION_REVISION],
                   [$LIBSCALESTACK_VERSION_REVISION],
                   [Revision portion of libscalestack version])
AC_DEFINE_UNQUOTED([LIBSCALESTACK_VERSION_AGE],
                   [$LIBSCALESTACK_VERSION_AGE],
                   [Age portion of libscalestack version])

LIBSCALESTACK_VERSION=$LIBSCALESTACK_VERSION_CURRENT:\
$LIBSCALESTACK_VERSION_REVISION:$LIBSCALESTACK_VERSION_AGE

AC_SUBST(LIBSCALESTACK_VERSION)

AC_LANG_PUSH(C++)
PANDORA_REQUIRE_LIBDL
AC_LANG_POP

PANDORA_PLUGINS

AC_DEFINE_UNQUOTED([SCALESTACK_MODULE_EXTENSION],
                   ["$acl_cv_shlibext"],
                   [Extension to use for modules.])

AC_CONFIG_FILES(Makefile scalestack/kernel/macros.h docs/header.html)

AC_OUTPUT

echo ""
echo "Configuration summary for $PACKAGE_NAME $PACKAGE_VERSION:"
echo "  * Installation prefix: $prefix"
echo "  * System type:         $host_vendor-$host_os"
echo "  * Host CPU:            $host_cpu"
echo "  * C++ Compiler:        $CXX_VERSION"
echo "  * Assertions enabled:  $ac_cv_assert"
echo "  * Debug enabled:       $with_debug"
echo "  * Profiling enabled:   $ac_profiling"
echo "  * Coverage enabled:    $ac_coverage"
echo "  * Warnings as errors:  $ac_cv_warnings_as_errors"
echo ""
echo "Configured modules:"

for module in `echo $PANDORA_PLUGIN_LIST | sed 's/_/::/g' | tr ',' '\n' | sort`
do
  echo "  * $module"
done

echo ""