1 # Copyright (c) 2008, 2009 Nicira Networks
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:
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 AC_INIT(openvswitch, 0.90.2, bugs@openvswitch.org)
18 AC_CONFIG_SRCDIR([datapath/datapath.c])
19 AC_CONFIG_MACRO_DIR([m4])
20 AC_CONFIG_AUX_DIR([build-aux])
21 AC_CONFIG_HEADERS([config.h])
30 AC_ARG_VAR([PERL], [path to Perl interpreter])
31 AC_PATH_PROG([PERL], perl, no)
32 if test "$PERL" = no; then
33 AC_MSG_ERROR([Perl interpreter not found in $PATH or $PERL.])
36 AC_USE_SYSTEM_EXTENSIONS
51 if $build_userspace; then
54 OVS_CHECK_MALLOC_HOOKS
56 OVS_CHECK_TTY_LOCK_DIR
60 AC_CHECK_FUNCS([strsignal])
62 OVS_ENABLE_OPTION([-Wall])
63 OVS_ENABLE_OPTION([-Wno-sign-compare])
64 OVS_ENABLE_OPTION([-Wpointer-arith])
65 OVS_ENABLE_OPTION([-Wdeclaration-after-statement])
66 OVS_ENABLE_OPTION([-Wformat-security])
67 OVS_ENABLE_OPTION([-Wswitch-enum])
68 OVS_ENABLE_OPTION([-Wunused-parameter])
69 OVS_ENABLE_OPTION([-Wstrict-aliasing])
70 OVS_ENABLE_OPTION([-Wbad-function-cast])
71 OVS_ENABLE_OPTION([-Wcast-align])
72 OVS_ENABLE_OPTION([-Wstrict-prototypes])
73 OVS_ENABLE_OPTION([-Wold-style-definition])
74 OVS_ENABLE_OPTION([-Wmissing-prototypes])
75 OVS_ENABLE_OPTION([-Wmissing-field-initializers])
76 OVS_ENABLE_OPTION([-Wno-override-init])
79 AC_ARG_VAR(KARCH, [Kernel Architecture String])
81 OVS_CHECK_LINUX(l26, 2.6, KSRC26, L26_ENABLED)
83 AC_CONFIG_FILES([Makefile
85 datapath/linux-2.6/Kbuild
86 datapath/linux-2.6/Makefile
87 datapath/linux-2.6/Makefile.main])