]> git.proxmox.com Git - mirror_ovs.git/blame - configure.ac
ovsdb: Make "ovsdb-tool create" work through a dangling symlink.
[mirror_ovs.git] / configure.ac
CommitLineData
e0edde6f 1# Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira, Inc.
064af421 2#
a14bc59f
BP
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at:
064af421 6#
a14bc59f
BP
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
064af421 14
55aa00e0 15AC_PREREQ(2.64)
945cad7f 16AC_INIT(openvswitch, 1.8.90, ovs-bugs@openvswitch.org)
064af421
BP
17AC_CONFIG_SRCDIR([datapath/datapath.c])
18AC_CONFIG_MACRO_DIR([m4])
19AC_CONFIG_AUX_DIR([build-aux])
20AC_CONFIG_HEADERS([config.h])
1b233b95 21AC_CONFIG_TESTDIR([tests])
064af421
BP
22AM_INIT_AUTOMAKE
23
24AC_PROG_CC
25AM_PROG_CC_C_O
26AC_PROG_CPP
27AC_PROG_RANLIB
28AC_PROG_MKDIR_P
c92647a4 29AC_PROG_FGREP
064af421
BP
30
31AC_ARG_VAR([PERL], [path to Perl interpreter])
32AC_PATH_PROG([PERL], perl, no)
33if test "$PERL" = no; then
34 AC_MSG_ERROR([Perl interpreter not found in $PATH or $PERL.])
35fi
36
37AC_USE_SYSTEM_EXTENSIONS
38AC_C_BIGENDIAN
39AC_SYS_LARGEFILE
40
f38b84ea 41AC_SEARCH_LIBS([pow], [m])
c73814a3 42AC_SEARCH_LIBS([clock_gettime], [rt])
6ca00f6f 43AC_SEARCH_LIBS([timer_create], [rt])
f6eb6b20 44AC_SEARCH_LIBS([pcap_open_live], [pcap])
f38b84ea 45
c2b07021 46OVS_CHECK_COVERAGE
064af421
BP
47OVS_CHECK_NDEBUG
48OVS_CHECK_NETLINK
49OVS_CHECK_OPENSSL
50OVS_CHECK_LOGDIR
3b135da3 51OVS_CHECK_PYTHON
436f27dd
AS
52OVS_CHECK_PYUIC4
53OVS_CHECK_OVSDBMONITOR
7c9b0073 54OVS_CHECK_DOT
064af421 55OVS_CHECK_IF_PACKET
9360d9b7 56OVS_CHECK_IF_DL
e50097d2 57OVS_CHECK_STRTOK_R
9cb07887
BP
58AC_CHECK_MEMBERS([struct stat.st_mtim.tv_nsec, struct stat.st_mtimensec],
59 [], [], [[#include <sys/stat.h>]])
0e191d8f 60AC_CHECK_FUNCS([mlockall strnlen strsignal getloadavg statvfs setmntent])
9ea0bccc 61AC_CHECK_HEADERS([mntent.h sys/statvfs.h linux/types.h])
064af421 62
31a7c9e7
BP
63OVS_CHECK_PKIDIR
64OVS_CHECK_RUNDIR
0e6644c3 65OVS_CHECK_BACKTRACE
31a7c9e7
BP
66OVS_CHECK_MALLOC_HOOKS
67OVS_CHECK_VALGRIND
31a7c9e7 68OVS_CHECK_SOCKET_LIBS
480ce8ab 69OVS_CHECK_LINKER_SECTIONS
ed2d4f6a 70OVS_CHECK_XENSERVER_VERSION
0027492d 71OVS_CHECK_GROFF
d8965755 72OVS_CHECK_BRCOMPAT
b4e1bf8b 73OVS_CHECK_GNU_MAKE
064af421 74
31a7c9e7
BP
75OVS_ENABLE_OPTION([-Wall])
76OVS_ENABLE_OPTION([-Wno-sign-compare])
77OVS_ENABLE_OPTION([-Wpointer-arith])
78OVS_ENABLE_OPTION([-Wdeclaration-after-statement])
79OVS_ENABLE_OPTION([-Wformat-security])
80OVS_ENABLE_OPTION([-Wswitch-enum])
81OVS_ENABLE_OPTION([-Wunused-parameter])
82OVS_ENABLE_OPTION([-Wstrict-aliasing])
83OVS_ENABLE_OPTION([-Wbad-function-cast])
84OVS_ENABLE_OPTION([-Wcast-align])
85OVS_ENABLE_OPTION([-Wstrict-prototypes])
86OVS_ENABLE_OPTION([-Wold-style-definition])
87OVS_ENABLE_OPTION([-Wmissing-prototypes])
88OVS_ENABLE_OPTION([-Wmissing-field-initializers])
89OVS_ENABLE_OPTION([-Wno-override-init])
c72e245a 90OVS_CONDITIONAL_CC_OPTION([-Wno-unused], [HAVE_WNO_UNUSED])
52af5b99 91OVS_CONDITIONAL_CC_OPTION([-Wno-unused-parameter], [HAVE_WNO_UNUSED_PARAMETER])
a64e37a1 92OVS_ENABLE_WERROR
29d935d6 93OVS_ENABLE_SPARSE
064af421
BP
94
95AC_ARG_VAR(KARCH, [Kernel Architecture String])
96AC_SUBST(KARCH)
e3438006 97OVS_CHECK_LINUX
064af421
BP
98
99AC_CONFIG_FILES([Makefile
100datapath/Makefile
22bcc0e7
JG
101datapath/linux/Kbuild
102datapath/linux/Makefile
103datapath/linux/Makefile.main
1b233b95 104tests/atlocal])
064af421 105
05b3c97b
BP
106dnl This makes sure that include/openflow gets created in the build directory.
107AC_CONFIG_COMMANDS([include/openflow/openflow.h.stamp])
108
436f27dd 109AC_CONFIG_COMMANDS([ovsdb/ovsdbmonitor/dummy], [:])
b2df0225 110AC_CONFIG_COMMANDS([utilities/bugtool/dummy], [:])
436f27dd 111
064af421 112AC_OUTPUT