clixon/test/cicd/clixon-config.sh
Olof hagsand 1808015cf6 Fixed: SEGV when starting FCGI restconf program
- Reverted removal of CLICON_RESTCONF_PATH since it was used there
Misc fixes: initialized variables, docs, removed obsolete --enable-optyang
2021-12-30 16:35:54 +01:00

16 lines
341 B
Bash

#!/bin/sh
# A top-level configurer for clixon
set -eux
if [ $# -ne 1 ]; then
echo "usage: $0 <restconf>"
echo " where <restconf> is fcgi or native"
exit -1
fi
restconf=$1
if [ $(uname) = "FreeBSD" ]; then
./configure --with-cligen=/usr/local --with-restconf=$restconf
else
./configure --with-restconf=$restconf
fi