source: trunk/avango-ensemble/configure.ac @ 409

Revision 409, 4.4 KB checked in by tholt, 2 years ago (diff)

More copyright header corrections

Line 
1# -*- Mode:Autoconf -*-
2
3##########################################################################
4#                                                                        #
5# This file is part of AVANGO.                                           #
6#                                                                        #
7# Copyright 1997 - 2008 Fraunhofer-Gesellschaft zur Foerderung der       #
8# angewandten Forschung (FhG), Munich, Germany.                          #
9#                                                                        #
10# AVANGO is free software: you can redistribute it and/or modify         #
11# it under the terms of the GNU Lesser General Public License as         #
12# published by the Free Software Foundation, version 3.                  #
13#                                                                        #
14# AVANGO is distributed in the hope that it will be useful,              #
15# but WITHOUT ANY WARRANTY; without even the implied warranty of         #
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the           #
17# GNU General Public License for more details.                           #
18#                                                                        #
19# You should have received a copy of the GNU Lesser General Public       #
20# License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. #
21#                                                                        #
22##########################################################################
23
24# Init
25
26AC_PREREQ(2.59)
27AC_INIT(avango-ensemble, 1.90.1)
28AC_CONFIG_SRCDIR([bootstrap])
29AC_CONFIG_AUX_DIR([config])
30AC_CONFIG_HEADERS([config/config.h])
31AC_CANONICAL_TARGET
32AC_LANG_CPLUSPLUS
33AC_DISABLE_STATIC
34
35AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability])
36
37# Versioning
38
39AVANGO_ENSEMBLE_VERSION=AC_PACKAGE_VERSION
40AVANGO_ENSEMBLE_VERSION_MAJOR=`echo ${AVANGO_ENSEMBLE_VERSION} | cut -d'.' -f1`
41AVANGO_ENSEMBLE_VERSION_MINOR=`echo ${AVANGO_ENSEMBLE_VERSION} | cut -d'.' -f2`
42AVANGO_ENSEMBLE_VERSION_MAINT=`echo ${AVANGO_ENSEMBLE_VERSION} | cut -d'.' -f3`
43AC_SUBST(AVANGO_ENSEMBLE_VERSION)
44AC_SUBST(AVANGO_ENSEMBLE_VERSION_MAJOR)
45AC_SUBST(AVANGO_ENSEMBLE_VERSION_MINOR)
46AC_SUBST(AVANGO_ENSEMBLE_VERSION_MAINT)
47
48# Build options
49
50AC_ARG_ENABLE(debug,
51  AS_HELP_STRING(
52    [--enable-debug],
53    [enable debug code and compiler flags [[default=no]]]),
54  [if test "${enableval}" = "yes"; then
55     AVANGO_ENSEMBLE_DEBUG=1
56   else
57     AVANGO_ENSEMBLE_DEBUG=0
58   fi
59  ],[AVANGO_ENSEMBLE_DEBUG=0])
60AC_SUBST(AVANGO_ENSEMBLE_DEBUG)
61AM_CONDITIONAL([AVANGO_ENSEMBLE_DEBUG], [test $AVANGO_ENSEMBLE_DEBUG -eq 1])
62
63# Check platform/compiler support
64
65AC_MSG_RESULT([])
66
67case "${target}" in
68  i?86*-linux-* | i?86*-*-linux | x86_64-*-linux-* )
69    AVANGO_ENSEMBLE_SETUP_LINUX
70  ;;
71
72  *)
73    AC_MSG_ERROR([Sorry, ${target} not a supported platform.])
74  ;;
75esac
76
77# Checks for programs.
78
79AC_PROG_LIBTOOL
80AC_PROG_CXX
81
82# Internal checks
83
84AC_MSG_RESULT([])
85
86AVANGO_ENSEMBLE_CHECK_COMPILER_VERSION
87AVANGO_ENSEMBLE_SETUP_POST
88
89AVANGO_ENSEMBLE_CHECK_OCAML
90AVANGO_ENSEMBLE_SETUP_ENSEMBLE
91
92# Additional macros
93
94CP="cp -f -p"
95AC_SUBST(CP)
96
97MKDIR="mkdir -p"
98AC_SUBST(MKDIR)
99
100MV="mv -f"
101AC_SUBST(MV)
102
103# allow gnu make conditionals in Makefile.am
104# usage:
105#
106# @MK@ifeq(...)
107#   ...
108# @MK@endif
109#
110# don't put automake magic variables (things like
111# foo_SOURCES, foo_LDFLAGS, etc.) inside ifeq/endif,
112# otherwise automake gets confused.
113#
114MK=
115AC_SUBST(MK)
116
117package_version=${PACKAGE_VERSION}
118AC_SUBST(package_version)
119
120# Output
121
122AC_CONFIG_FILES([
123  Makefile \
124  dist/Makefile \
125  dist/pkg-config/avango-ensemble.pc \
126  dist/pkg-config/Makefile \
127  include/Makefile \
128  include/avango/Makefile \
129  include/avango/ensemble/Config.h \
130  include/avango/ensemble/Makefile \
131  include/avango/ensemble/hot/Makefile \
132  include/avango/ensemble/maestro/Makefile \
133  src/Makefile \
134  src/avango/Makefile \
135  src/avango/ensemble/Makefile \
136  src/avango/ensemble/ensemble/Makefile \
137  src/avango/ensemble/ensemble/socket/Makefile \
138  src/avango/ensemble/ensemble/socket/u/Makefile \
139  src/avango/ensemble/ensemble/socket/s/Makefile \
140  src/avango/ensemble/hot/Makefile \
141  src/avango/ensemble/maestro/Makefile \
142  src/avango/ensemble/tests/Makefile \
143])
144AC_OUTPUT
145
146AC_MSG_RESULT([])
147AC_MSG_RESULT([To start the build process run 'make' in here.])
148AC_MSG_RESULT([])
149AC_MSG_RESULT([Configuration for building ${PACKAGE_NAME}-${PACKAGE_VERSION} on ${target} done.])
150AC_MSG_RESULT([])
Note: See TracBrowser for help on using the repository browser.