Add SSH_BIN compile-time option

Clarify documentation of internal netconf message struct
This commit is contained in:
Olof hagsand 2022-12-07 11:28:45 +01:00
parent 407860ccc7
commit 100f15b699
9 changed files with 67 additions and 9 deletions

48
configure vendored
View file

@ -623,6 +623,7 @@ ac_subst_vars='LTLIBOBJS
LIBOBJS
EGREP
GREP
SSH_BIN
LEXLIB
LEX_OUTPUT_ROOT
LEX
@ -4563,6 +4564,53 @@ if test "$LEX" = ":"; then
as_fn_error $? "CLIXON does not find lex or flex." "$LINENO" 5
fi
# SSH binary path
# Extract the first word of "ssh", so it can be a program name with args.
set dummy ssh; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
if ${ac_cv_path_SSH_BIN+:} false; then :
$as_echo_n "(cached) " >&6
else
case $SSH_BIN in
[\\/]* | ?:[\\/]*)
ac_cv_path_SSH_BIN="$SSH_BIN" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_path_SSH_BIN="$as_dir/$ac_word$ac_exec_ext"
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
IFS=$as_save_IFS
;;
esac
fi
SSH_BIN=$ac_cv_path_SSH_BIN
if test -n "$SSH_BIN"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSH_BIN" >&5
$as_echo "$SSH_BIN" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
cat >>confdefs.h <<_ACEOF
#define SSH_BIN $SSH_BIN
_ACEOF
# Get "bison" from bison -y or other string
if test "$YACC" = "${YACC##bison}" ; then
as_fn_error $? "CLIXON does not find bison. There are several problems with yacc and byacc. Please install bison. YACC=\"$YACC\"" "$LINENO" 5