1 ## Copyright (c) 2009 Openismus GmbH <http://www.openismus.com/>
3 ## This file is part of libsigc++.
5 ## libsigc++ is free software: you can redistribute it and/or modify it
6 ## under the terms of the GNU Lesser General Public License as published
7 ## by the Free Software Foundation, either version 2.1 of the License,
8 ## or (at your option) any later version.
10 ## libsigc++ is distributed in the hope that it will be useful, but
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 ## See the GNU Lesser General Public License for more details.
15 ## You should have received a copy of the GNU Lesser General Public License
16 ## along with this library. If not, see <http://www.gnu.org/licenses/>.
18 AC_INIT([libsigc++], [2.99.9],
19 [http://bugzilla.gnome.org/enter_bug.cgi?product=libsigc%2B%2B],
20 [libsigc++], [http://libsigc.sourceforge.net/])
23 AC_CONFIG_SRCDIR([sigc++/sigc++.h])
24 AC_CONFIG_AUX_DIR([build])
25 AC_CONFIG_MACRO_DIR([build])
26 AC_CONFIG_HEADERS([config.h sigc++config.h])
28 AM_INIT_AUTOMAKE([1.9 -Wno-portability check-news dist-bzip2 no-define nostdinc tar-ustar])
29 # Support silent build rules.
30 # Disable by either passing --disable-silent-rules to configure or passing V=1 to make.
31 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
33 AC_ARG_VAR([ACLOCAL_FLAGS], [aclocal flags, e.g. -I <macro dir>])
36 MM_INIT_MODULE([sigc++-3.0])
37 MM_CONFIG_DOCTOOL_DIR([docs])
40 MM_AX_CXX_COMPILE_STDCXX([14],[noext],[mandatory])
45 MM_ARG_ENABLE_DOCUMENTATION
46 MM_ARG_WITH_TAGFILE_DOC([libstdc++.tag], [mm-common-libstdc++])
50 AS_IF([test "x$config_error" = xyes],
51 [AC_MSG_FAILURE([[One or more of the required C++ compiler features is missing.]])])
53 # Evaluate the --enable-warnings=level option.
54 MM_ARG_ENABLE_WARNINGS([SIGC_WXXFLAGS],
56 [-pedantic -Wall -Wextra -Wsuggest-override -Wshadow -Wzero-as-null-pointer-constant -Wformat-security])
58 # Offer the ability to omit some API from the library.
59 MM_ARG_DISABLE_DEPRECATED_API([SIGCXX])
61 AC_ARG_ENABLE(benchmark,
62 AS_HELP_STRING([--enable-benchmark=yes|no])
65 AM_CONDITIONAL([SIGC_BUILD_BENCHMARK], [test "x$enable_benchmark" = xyes])
67 AS_IF([test "x$enable_benchmark" = xyes],[
68 #Use boost::timer for our benchmark, if it's available.
69 # See http://www.gnu.org/software/autoconf-archive/ax_boost_base.html
70 # Boost System is needed by Boost Timer
76 AC_CONFIG_FILES([Makefile
77 ${SIGCXX_MODULE_NAME}.pc:sigc++.pc.in
78 ${SIGCXX_MODULE_NAME}-uninstalled.pc:sigc++-uninstalled.pc.in
84 docs/reference/Doxyfile
85 MSVC_Net2017/sigc.rc])
87 # Copy the generated configuration headers into the MSVC project directories.
88 AC_CONFIG_COMMANDS([MSVC_Net2017/sigc++config.h],
89 [cp -f sigc++config.h MSVC_Net2017/sigc++config.h])