Added configure option --with-mib-generated-yang-dir=DIR with default value /usr/share/mibyang where generated YANGs from MIBs should be placed so that SNMP tests know where to find the YANGs.
98 lines
3.3 KiB
Bash
Executable file
98 lines
3.3 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
#
|
|
# Copyright (C) 2020-2022 Olof Hagsand and Rubicon Communications, LLC
|
|
#
|
|
# This file is part of CLIXON
|
|
#
|
|
# 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
|
|
#
|
|
# 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.
|
|
#
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
# the GNU General Public License Version 3 or later (the "GPL"),
|
|
# in which case the provisions of the GPL are applicable instead
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
# under the terms of the GPL, and not to allow others to
|
|
# use your version of this file under the terms of Apache License version 2,
|
|
# indicate your decision by deleting the provisions above and replace them with
|
|
# the notice and other provisions required by the GPL. If you do not delete
|
|
# the provisions above, a recipient may use your version of this file under
|
|
# the terms of any one of the Apache License version 2 or the GPL.
|
|
#
|
|
# ***** END LICENSE BLOCK *****
|
|
#
|
|
# Generated from autotools, ie from the ./configure run,
|
|
# See configure.ac for source
|
|
# See also site.sh
|
|
|
|
# This is for RESTCONF. There are three options:
|
|
# --without-restconf No restconf support
|
|
# --with-restconf=fcgi FCGI interface for separate web reverse proxy like nginx
|
|
# --with-restconf=native Integration with embedded web server
|
|
WITH_RESTCONF=@with_restconf@ # native, fcgi or ""
|
|
|
|
# HTTP/2?
|
|
# If set, curl options are set to use --http2 which may not be what you want, ie
|
|
# you may want to force it to http/1 for example
|
|
# If so, override before test
|
|
: ${HAVE_LIBNGHTTP2:=@HAVE_LIBNGHTTP2@}
|
|
HAVE_HTTP1=@HAVE_HTTP1@
|
|
|
|
# This is for libxml2 XSD regex engine
|
|
# Note this only enables the compiling of the code. In order to actually
|
|
# use it you need to set Clixon config option CLICON_YANG_REGEXP to libxml2
|
|
WITH_LIBXML2=@with_libxml2@
|
|
|
|
# Check if we have support for Net-SNMP enabled or not.
|
|
WITH_NETSNMP=@enable_netsnmp@
|
|
|
|
# C++ compiler
|
|
CXX=@CXX@
|
|
|
|
# C compiler
|
|
CC=@CC@
|
|
|
|
# Top src dir
|
|
TOP_SRCDIR=@top_srcdir@
|
|
|
|
# Clixon version
|
|
CLIXON_VERSION=@CLIXON_VERSION@
|
|
|
|
# Which XML symbol to add to top datastore config level
|
|
# see also DATASTORE_TOP_SYMBOL
|
|
DATASTORE_TOP="config"
|
|
|
|
# clixon yang revisions occuring in tests (see eg yang/clixon/Makefile.in)
|
|
CLIXON_AUTOCLI_REV="2022-02-11"
|
|
CLIXON_LIB_REV="2021-12-05"
|
|
CLIXON_CONFIG_REV="2022-03-21"
|
|
CLIXON_RESTCONF_REV="2022-03-21"
|
|
CLIXON_EXAMPLE_REV="2020-12-01"
|
|
|
|
# Length of TSL RSA key
|
|
# Problem with small key such as 1024 not allowed in centos8 for example (why is this)
|
|
# Problem with long keys are they take time to generate, eg on ARM
|
|
CERTKEYLEN=2048
|
|
|
|
# CFLAGS for compile tests
|
|
CFLAGS="@CFLAGS@"
|
|
# Linking: static or dynamic
|
|
LINKAGE=@LINKAGE@
|
|
SH_SUFFIX=@SH_SUFFIX@
|
|
LIBSTATIC_SUFFIX=@LIBSTATIC_SUFFIX@
|
|
LIBS="@LIBS@"
|
|
CLIXON_YANG_PATCH=@CLIXON_YANG_PATCH@
|
|
YANG_STANDARD_DIR=@YANG_STANDARD_DIR@
|
|
|
|
YANG_INSTALLDIR=@YANG_INSTALLDIR@
|
|
|
|
MIB_GENERATED_YANG_DIR=@MIB_GENERATED_YANG_DIR@
|