2009-07-08 13:19:16 -07:00
|
|
|
# Copyright (c) 2008, 2009 Nicira Networks
|
|
|
|
#
|
2009-06-15 15:11:30 -07:00
|
|
|
# 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:
|
2009-07-08 13:19:16 -07:00
|
|
|
#
|
2009-06-15 15:11:30 -07:00
|
|
|
# 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.
|
2009-07-08 13:19:16 -07:00
|
|
|
|
2009-07-27 16:40:11 -07:00
|
|
|
AC_PREREQ(2.63)
|
2009-10-06 14:25:36 -07:00
|
|
|
AC_INIT(openvswitch, 0.90.6, ovs-bugs@openvswitch.org)
|
2009-07-08 13:19:16 -07:00
|
|
|
NX_BUILDNR
|
|
|
|
AC_CONFIG_SRCDIR([datapath/datapath.c])
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
AC_CONFIG_AUX_DIR([build-aux])
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
2009-07-27 16:40:11 -07:00
|
|
|
AC_CONFIG_TESTDIR([tests])
|
2009-07-08 13:19:16 -07:00
|
|
|
AM_INIT_AUTOMAKE
|
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
AM_PROG_CC_C_O
|
|
|
|
AC_PROG_CPP
|
|
|
|
AC_PROG_RANLIB
|
|
|
|
AC_PROG_MKDIR_P
|
|
|
|
|
|
|
|
AC_ARG_VAR([PERL], [path to Perl interpreter])
|
|
|
|
AC_PATH_PROG([PERL], perl, no)
|
|
|
|
if test "$PERL" = no; then
|
|
|
|
AC_MSG_ERROR([Perl interpreter not found in $PATH or $PERL.])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_USE_SYSTEM_EXTENSIONS
|
|
|
|
AC_C_BIGENDIAN
|
|
|
|
AC_SYS_LARGEFILE
|
|
|
|
|
2009-07-27 16:42:51 -07:00
|
|
|
OVS_CHECK_COVERAGE
|
2009-07-08 13:19:16 -07:00
|
|
|
OVS_CHECK_NDEBUG
|
|
|
|
OVS_CHECK_NETLINK
|
|
|
|
OVS_CHECK_OPENSSL
|
|
|
|
OVS_CHECK_LOGDIR
|
|
|
|
OVS_CHECK_CURSES
|
|
|
|
OVS_CHECK_LINUX_VT_H
|
|
|
|
OVS_CHECK_PCRE
|
2009-09-14 10:05:13 -07:00
|
|
|
OVS_CHECK_PYTHON
|
2009-07-08 13:19:16 -07:00
|
|
|
OVS_CHECK_IF_PACKET
|
2009-06-10 14:16:40 -07:00
|
|
|
OVS_CHECK_STRTOK_R
|
2009-07-08 13:19:16 -07:00
|
|
|
|
2009-07-29 16:48:45 -07:00
|
|
|
OVS_CHECK_PKIDIR
|
|
|
|
OVS_CHECK_RUNDIR
|
|
|
|
OVS_CHECK_MALLOC_HOOKS
|
|
|
|
OVS_CHECK_VALGRIND
|
|
|
|
OVS_CHECK_TTY_LOCK_DIR
|
|
|
|
OVS_CHECK_SOCKET_LIBS
|
|
|
|
OVS_CHECK_FAULT_LIBS
|
2009-07-08 13:19:16 -07:00
|
|
|
|
2009-07-29 16:48:45 -07:00
|
|
|
AC_CHECK_FUNCS([strsignal])
|
2009-07-08 13:19:16 -07:00
|
|
|
|
2009-07-29 16:48:45 -07:00
|
|
|
OVS_ENABLE_OPTION([-Wall])
|
|
|
|
OVS_ENABLE_OPTION([-Wno-sign-compare])
|
|
|
|
OVS_ENABLE_OPTION([-Wpointer-arith])
|
|
|
|
OVS_ENABLE_OPTION([-Wdeclaration-after-statement])
|
|
|
|
OVS_ENABLE_OPTION([-Wformat-security])
|
|
|
|
OVS_ENABLE_OPTION([-Wswitch-enum])
|
|
|
|
OVS_ENABLE_OPTION([-Wunused-parameter])
|
|
|
|
OVS_ENABLE_OPTION([-Wstrict-aliasing])
|
|
|
|
OVS_ENABLE_OPTION([-Wbad-function-cast])
|
|
|
|
OVS_ENABLE_OPTION([-Wcast-align])
|
|
|
|
OVS_ENABLE_OPTION([-Wstrict-prototypes])
|
|
|
|
OVS_ENABLE_OPTION([-Wold-style-definition])
|
|
|
|
OVS_ENABLE_OPTION([-Wmissing-prototypes])
|
|
|
|
OVS_ENABLE_OPTION([-Wmissing-field-initializers])
|
|
|
|
OVS_ENABLE_OPTION([-Wno-override-init])
|
2009-07-08 13:19:16 -07:00
|
|
|
|
|
|
|
AC_ARG_VAR(KARCH, [Kernel Architecture String])
|
|
|
|
AC_SUBST(KARCH)
|
|
|
|
OVS_CHECK_LINUX(l26, 2.6, KSRC26, L26_ENABLED)
|
|
|
|
|
|
|
|
AC_CONFIG_FILES([Makefile
|
|
|
|
datapath/Makefile
|
|
|
|
datapath/linux-2.6/Kbuild
|
|
|
|
datapath/linux-2.6/Makefile
|
2009-07-27 16:40:11 -07:00
|
|
|
datapath/linux-2.6/Makefile.main
|
|
|
|
tests/atlocal])
|
2009-07-08 13:19:16 -07:00
|
|
|
|
|
|
|
AC_OUTPUT
|