1 --- a/src/modules/rlm_krb5/configure
2 +++ b/src/modules/rlm_krb5/configure
5 # From configure.ac Revision.
6 # Guess values for system-dependent variables and create Makefiles.
7 -# Generated by GNU Autoconf 2.69.
8 +# Generated by GNU Autoconf 2.71.
11 -# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 +# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
16 # This configure script is free software; the Free Software Foundation
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 +if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
27 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28 # is contrary to our usage. Disable this feature.
29 alias -g '${1+"$@"}'='"$@"'
33 case `(set -o) 2>/dev/null` in #(
36 @@ -32,46 +35,46 @@ esac
41 +# Reset variables that may have inherited troublesome values from
44 +# IFS needs to be set, to space, tab, and newline, in precisely that order.
45 +# (If _AS_PATH_WALK were called with IFS unset, it would have the
46 +# side effect of setting IFS to empty, thus disabling word splitting.)
47 +# Quoting is to prevent editors from complaining about space-tab.
51 -# Printing a long string crashes Solaris 7 /usr/bin/printf.
52 -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
53 -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
54 -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
55 -# Prefer a ksh shell builtin over an external printf program on Solaris,
56 -# but without wasting forks for bash or zsh.
57 -if test -z "$BASH_VERSION$ZSH_VERSION" \
58 - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
59 - as_echo='print -r --'
60 - as_echo_n='print -rn --'
61 -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
62 - as_echo='printf %s\n'
63 - as_echo_n='printf %s'
65 - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
66 - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
67 - as_echo_n='/usr/ucb/echo -n'
69 - as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
70 - as_echo_n_body='eval
74 - expr "X$arg" : "X\\(.*\\)$as_nl";
75 - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
77 - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
79 - export as_echo_n_body
80 - as_echo_n='sh -c $as_echo_n_body as_echo'
83 - as_echo='sh -c $as_echo_body as_echo'
91 +# Ensure predictable behavior from utilities with locale-dependent output.
97 +# We cannot yet rely on "unset" to work, but we need these variables
98 +# to be unset--not just set to an empty or harmless value--now, to
99 +# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
100 +# also avoids known problems related to "unset" and subshell syntax
101 +# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
102 +for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
103 +do eval test \${$as_var+y} \
104 + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
107 +# Ensure that fds 0, 1, and 2 are open.
108 +if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
109 +if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
110 +if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
112 # The user is always right.
113 -if test "${PATH_SEPARATOR+set}" != set; then
114 +if ${PATH_SEPARATOR+false} :; then
116 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
117 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
118 @@ -80,13 +83,6 @@ if test "${PATH_SEPARATOR+set}" != set;
123 -# We need space, tab and new line, in precisely that order. Quoting is
124 -# there to prevent editors from complaining about space-tab.
125 -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
126 -# splitting by setting IFS to empty value.)
129 # Find who we are. Look in the path if we contain no directory separator.
132 @@ -95,8 +91,12 @@ case $0 in #((
136 - test -z "$as_dir" && as_dir=.
137 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
138 + case $as_dir in #(((
141 + *) as_dir=$as_dir/ ;;
143 + test -r "$as_dir$0" && as_myself=$as_dir$0 && break
147 @@ -108,30 +108,10 @@ if test "x$as_myself" = x; then
150 if test ! -f "$as_myself"; then
151 - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
152 + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
156 -# Unset variables that we do not need and which cause bugs (e.g. in
157 -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
158 -# suppresses any "Segmentation fault" message there. '((' could
159 -# trigger a bug in pdksh 5.2.14.
160 -for as_var in BASH_ENV ENV MAIL MAILPATH
161 -do eval test x\${$as_var+set} = xset \
162 - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
175 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
177 # Use a proper internal environment variable to ensure we don't fall
178 # into an infinite loop, continuously re-executing ourselves.
179 @@ -153,20 +133,22 @@ esac
180 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
181 # Admittedly, this is quite paranoid, since all the known shells bail
182 # out after a failed `exec'.
183 -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
185 +printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
188 # We don't want this to propagate to other subprocesses.
189 { _as_can_reexec=; unset _as_can_reexec;}
190 if test "x$CONFIG_SHELL" = x; then
191 - as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
192 + as_bourne_compatible="as_nop=:
193 +if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
197 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
198 # is contrary to our usage. Disable this feature.
199 alias -g '\${1+\"\$@\"}'='\"\$@\"'
203 case \`(set -o) 2>/dev/null\` in #(
206 @@ -186,41 +168,52 @@ as_fn_success || { exitcode=1; echo as_f
207 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
208 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
209 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
210 -if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
211 +if ( set x; as_fn_ret_success y && test x = \"\$1\" )
216 exitcode=1; echo positional parameters were not saved.
218 test x\$exitcode = x0 || exit 1
219 +blah=\$(echo \$(echo blah))
220 +test x\"\$blah\" = xblah || exit 1
222 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
223 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
224 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
225 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
226 - if (eval "$as_required") 2>/dev/null; then :
227 + if (eval "$as_required") 2>/dev/null
234 - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
235 + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
242 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245 - test -z "$as_dir" && as_dir=.
246 + case $as_dir in #(((
249 + *) as_dir=$as_dir/ ;;
254 for as_base in sh bash ksh sh5; do
255 # Try only shells that exist, to save several forks.
256 - as_shell=$as_dir/$as_base
257 + as_shell=$as_dir$as_base
258 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
259 - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
260 + as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
262 CONFIG_SHELL=$as_shell as_have_required=yes
263 - if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
264 + if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
269 @@ -228,14 +221,21 @@ fi
273 -$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
274 - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
275 - CONFIG_SHELL=$SHELL as_have_required=yes
282 + if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
283 + as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
285 + CONFIG_SHELL=$SHELL as_have_required=yes
290 - if test "x$CONFIG_SHELL" != x; then :
291 + if test "x$CONFIG_SHELL" != x
294 # We cannot yet assume a decent shell, so we have to provide a
295 # neutralization value for shells without unset; and this also
296 @@ -253,18 +253,19 @@ esac
297 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
298 # Admittedly, this is quite paranoid, since all the known shells bail
299 # out after a failed `exec'.
300 -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
301 +printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
305 - if test x$as_have_required = xno; then :
306 - $as_echo "$0: This script requires a shell more modern than all"
307 - $as_echo "$0: the shells that I found on your system."
308 - if test x${ZSH_VERSION+set} = xset ; then
309 - $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
310 - $as_echo "$0: be upgraded to zsh 4.3.4 or later."
311 + if test x$as_have_required = xno
313 + printf "%s\n" "$0: This script requires a shell more modern than all"
314 + printf "%s\n" "$0: the shells that I found on your system."
315 + if test ${ZSH_VERSION+y} ; then
316 + printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
317 + printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
319 - $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
320 + printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
321 $0: including any error possibly output before this
322 $0: message. Then install a modern shell, or manually run
323 $0: the script under such a shell if you do have one."
324 @@ -291,6 +292,7 @@ as_fn_unset ()
329 # as_fn_set_status STATUS
330 # -----------------------
331 # Set $? to STATUS, without forking.
332 @@ -308,6 +310,14 @@ as_fn_exit ()
338 +# Do nothing but, unlike ":", preserve the value of $?.
347 @@ -322,7 +332,7 @@ as_fn_mkdir_p ()
351 - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
352 + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
355 as_dirs="'$as_qdir' $as_dirs"
356 @@ -331,7 +341,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/
357 X"$as_dir" : 'X\(//\)[^/]' \| \
358 X"$as_dir" : 'X\(//\)$' \| \
359 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
360 -$as_echo X"$as_dir" |
361 +printf "%s\n" X"$as_dir" |
362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
365 @@ -370,12 +380,13 @@ as_fn_executable_p ()
366 # advantage of any shell optimizations that allow amortized linear growth over
367 # repeated appends, instead of the typical quadratic growth present in naive
369 -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
370 +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
372 eval 'as_fn_append ()
381 @@ -387,18 +398,27 @@ fi # as_fn_append
382 # Perform arithmetic evaluation on the ARGs, and store the result in the
383 # global $as_val. Take advantage of shells that can avoid forks. The arguments
384 # must be portable across $(()) and expr.
385 -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
386 +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
396 as_val=`expr "$@" || test $? -eq 1`
402 +# Do nothing but, unlike ":", preserve the value of $?.
409 # as_fn_error STATUS ERROR [LINENO LOG_FD]
410 # ----------------------------------------
411 @@ -410,9 +430,9 @@ as_fn_error ()
412 as_status=$1; test $as_status -eq 0 && as_status=1
414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415 - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
416 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 - $as_echo "$as_me: error: $2" >&2
419 + printf "%s\n" "$as_me: error: $2" >&2
420 as_fn_exit $as_status
423 @@ -439,7 +459,7 @@ as_me=`$as_basename -- "$0" ||
424 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
425 X"$0" : 'X\(//\)$' \| \
426 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
428 +printf "%s\n" X/"$0" |
429 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 @@ -483,7 +503,7 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
435 chmod +x "$as_me.lineno" ||
436 - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
437 + { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
439 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
440 # already done that, so ensure we don't try to do so again and fall
441 @@ -497,6 +517,10 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
446 +# Determine whether it's possible to make 'echo' print without a newline.
447 +# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
448 +# for compatibility with existing Makefiles.
449 ECHO_C= ECHO_N= ECHO_T=
450 case `echo -n x` in #(((((
452 @@ -510,6 +534,13 @@ case `echo -n x` in #(((((
456 +# For backward compatibility with old third-party macros, we provide
457 +# the shell variables $as_echo and $as_echo_n. New code should use
458 +# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
459 +as_echo='printf %s\n'
460 +as_echo_n='printf %s'
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 @@ -575,19 +606,19 @@ MFLAGS=
469 # Identity of this package.
480 +PACKAGE_BUGREPORT=''
483 ac_unique_file="rlm_krb5.c"
484 ac_subst_vars='LTLIBOBJS
493 @@ -616,6 +647,7 @@ infodir
501 @@ -688,6 +720,7 @@ datadir='${datarootdir}'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 +runstatedir='${localstatedir}/run'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 docdir='${datarootdir}/doc/${PACKAGE}'
509 @@ -717,8 +750,6 @@ do
513 - # Accept the important Cygnus configure options, so we can diagnose typos.
515 case $ac_dashdash$ac_option in
518 @@ -759,9 +790,9 @@ do
519 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
520 # Reject names that are not valid shell variable names.
521 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
522 - as_fn_error $? "invalid feature name: $ac_useropt"
523 + as_fn_error $? "invalid feature name: \`$ac_useropt'"
524 ac_useropt_orig=$ac_useropt
525 - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
526 + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
527 case $ac_user_opts in
530 @@ -785,9 +816,9 @@ do
531 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
532 # Reject names that are not valid shell variable names.
533 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
534 - as_fn_error $? "invalid feature name: $ac_useropt"
535 + as_fn_error $? "invalid feature name: \`$ac_useropt'"
536 ac_useropt_orig=$ac_useropt
537 - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
538 + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
539 case $ac_user_opts in
542 @@ -940,6 +971,15 @@ do
543 | -silent | --silent | --silen | --sile | --sil)
546 + -runstatedir | --runstatedir | --runstatedi | --runstated \
547 + | --runstate | --runstat | --runsta | --runst | --runs \
548 + | --run | --ru | --r)
549 + ac_prev=runstatedir ;;
550 + -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
551 + | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
552 + | --run=* | --ru=* | --r=*)
553 + runstatedir=$ac_optarg ;;
555 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
557 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
558 @@ -989,9 +1029,9 @@ do
559 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
562 - as_fn_error $? "invalid package name: $ac_useropt"
563 + as_fn_error $? "invalid package name: \`$ac_useropt'"
564 ac_useropt_orig=$ac_useropt
565 - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
566 + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
567 case $ac_user_opts in
570 @@ -1005,9 +1045,9 @@ do
571 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
572 # Reject names that are not valid shell variable names.
573 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
574 - as_fn_error $? "invalid package name: $ac_useropt"
575 + as_fn_error $? "invalid package name: \`$ac_useropt'"
576 ac_useropt_orig=$ac_useropt
577 - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
578 + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
579 case $ac_user_opts in
582 @@ -1051,9 +1091,9 @@ Try \`$0 --help' for more information"
585 # FIXME: should be removed in autoconf 3.0.
586 - $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
587 + printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
588 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
589 - $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
590 + printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
591 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
594 @@ -1069,7 +1109,7 @@ if test -n "$ac_unrecognized_opts"; then
595 case $enable_option_checking in
597 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
598 - *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
599 + *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
603 @@ -1077,7 +1117,7 @@ fi
604 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
605 datadir sysconfdir sharedstatedir localstatedir includedir \
606 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
607 - libdir localedir mandir
608 + libdir localedir mandir runstatedir
610 eval ac_val=\$$ac_var
611 # Remove trailing slashes.
612 @@ -1133,7 +1173,7 @@ $as_expr X"$as_myself" : 'X\(.*[^/]\)//*
613 X"$as_myself" : 'X\(//\)[^/]' \| \
614 X"$as_myself" : 'X\(//\)$' \| \
615 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
616 -$as_echo X"$as_myself" |
617 +printf "%s\n" X"$as_myself" |
618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
621 @@ -1230,6 +1270,7 @@ Fine tuning of the installation director
622 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
623 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
624 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
625 + --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
626 --libdir=DIR object code libraries [EPREFIX/lib]
627 --includedir=DIR C header files [PREFIX/include]
628 --oldincludedir=DIR C header files for non-gcc [/usr/include]
629 @@ -1256,8 +1297,8 @@ if test -n "$ac_init_help"; then
631 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
632 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
633 - --with-rlm_krb5 build rlm_krb5. (default=yes)
634 - --with-rlm-krb5-dir=DIR Directory for krb5 files
635 + --without-rlm_krb5 build without Kerberos support
636 + --with-rlm-krb5-dir=DIR directory where krb5 files are installed
638 Some influential environment variables:
639 CC C compiler command
640 @@ -1288,9 +1329,9 @@ if test "$ac_init_help" = "recursive"; t
642 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
644 - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
645 + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
646 # A ".." for each directory in $ac_dir_suffix.
647 - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
648 + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
649 case $ac_top_builddir_sub in
650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
652 @@ -1318,7 +1359,8 @@ esac
653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
655 cd "$ac_dir" || { ac_status=$?; continue; }
656 - # Check for guested configure.
657 + # Check for configure.gnu first; this name is used for a wrapper for
658 + # Metaconfig's "Configure" on case-insensitive file systems.
659 if test -f "$ac_srcdir/configure.gnu"; then
661 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
662 @@ -1326,7 +1368,7 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_
664 $SHELL "$ac_srcdir/configure" --help=recursive
666 - $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
667 + printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
669 cd "$ac_pwd" || { ac_status=$?; break; }
671 @@ -1336,9 +1378,9 @@ test -n "$ac_init_help" && exit $ac_stat
672 if $ac_init_version; then
675 -generated by GNU Autoconf 2.69
676 +generated by GNU Autoconf 2.71
678 -Copyright (C) 2012 Free Software Foundation, Inc.
679 +Copyright (C) 2021 Free Software Foundation, Inc.
680 This configure script is free software; the Free Software Foundation
681 gives unlimited permission to copy, distribute and modify it.
683 @@ -1349,20 +1391,25 @@ fi
684 ## Autoconf initialization. ##
685 ## ------------------------ ##
688 +echo Running tests for rlm_krb5
692 # ac_fn_c_try_compile LINENO
693 # --------------------------
694 # Try to compile conftest.$ac_ext, and return whether this succeeded.
695 ac_fn_c_try_compile ()
697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
698 - rm -f conftest.$ac_objext
699 + rm -f conftest.$ac_objext conftest.beam
700 if { { ac_try="$ac_compile"
702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
703 *) ac_try_echo=$ac_try;;
705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
706 -$as_echo "$ac_try_echo"; } >&5
707 +printf "%s\n" "$ac_try_echo"; } >&5
708 (eval "$ac_compile") 2>conftest.err
710 if test -s conftest.err; then
711 @@ -1370,14 +1417,15 @@ $as_echo "$ac_try_echo"; } >&5
713 mv -f conftest.er1 conftest.err
715 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
716 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
717 test $ac_status = 0; } && {
718 test -z "$ac_c_werror_flag" ||
719 test ! -s conftest.err
720 - } && test -s conftest.$ac_objext; then :
721 + } && test -s conftest.$ac_objext
725 - $as_echo "$as_me: failed program was:" >&5
727 + printf "%s\n" "$as_me: failed program was:" >&5
728 sed 's/^/| /' conftest.$ac_ext >&5
731 @@ -1399,7 +1447,7 @@ case "(($ac_try" in
732 *) ac_try_echo=$ac_try;;
734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
735 -$as_echo "$ac_try_echo"; } >&5
736 +printf "%s\n" "$ac_try_echo"; } >&5
737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
739 if test -s conftest.err; then
740 @@ -1407,14 +1455,15 @@ $as_echo "$ac_try_echo"; } >&5
742 mv -f conftest.er1 conftest.err
744 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
745 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
746 test $ac_status = 0; } > conftest.i && {
747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
748 test ! -s conftest.err
754 - $as_echo "$as_me: failed program was:" >&5
756 + printf "%s\n" "$as_me: failed program was:" >&5
757 sed 's/^/| /' conftest.$ac_ext >&5
760 @@ -1430,14 +1479,14 @@ fi
763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
764 - rm -f conftest.$ac_objext conftest$ac_exeext
765 + rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
766 if { { ac_try="$ac_link"
768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
769 *) ac_try_echo=$ac_try;;
771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
772 -$as_echo "$ac_try_echo"; } >&5
773 +printf "%s\n" "$ac_try_echo"; } >&5
774 (eval "$ac_link") 2>conftest.err
776 if test -s conftest.err; then
777 @@ -1445,17 +1494,18 @@ $as_echo "$ac_try_echo"; } >&5
779 mv -f conftest.er1 conftest.err
781 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
782 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
783 test $ac_status = 0; } && {
784 test -z "$ac_c_werror_flag" ||
785 test ! -s conftest.err
786 } && test -s conftest$ac_exeext && {
787 test "$cross_compiling" = yes ||
788 test -x conftest$ac_exeext
794 - $as_echo "$as_me: failed program was:" >&5
796 + printf "%s\n" "$as_me: failed program was:" >&5
797 sed 's/^/| /' conftest.$ac_ext >&5
800 @@ -1476,11 +1526,12 @@ fi
801 ac_fn_c_check_func ()
803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
804 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
805 -$as_echo_n "checking for $2... " >&6; }
806 -if eval \${$3+:} false; then :
807 - $as_echo_n "(cached) " >&6
809 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
810 +printf %s "checking for $2... " >&6; }
811 +if eval test \${$3+y}
813 + printf %s "(cached) " >&6
815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
816 /* end confdefs.h. */
817 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
818 @@ -1488,16 +1539,9 @@ else
819 #define $2 innocuous_$2
821 /* System header to define __stub macros and hopefully few prototypes,
822 - which can conflict with char $2 (); below.
823 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
824 - <limits.h> exists even on freestanding compilers. */
827 -# include <limits.h>
829 -# include <assert.h>
831 + which can conflict with char $2 (); below. */
836 /* Override any GCC internal prototype to avoid an error.
837 @@ -1515,32 +1559,33 @@ choke me
849 -if ac_fn_c_try_link "$LINENO"; then :
850 +if ac_fn_c_try_link "$LINENO"
857 -rm -f core conftest.err conftest.$ac_objext \
858 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
859 conftest$ac_exeext conftest.$ac_ext
862 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
863 -$as_echo "$ac_res" >&6; }
864 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
865 +printf "%s\n" "$ac_res" >&6; }
866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
868 } # ac_fn_c_check_func
870 # ac_fn_c_try_run LINENO
871 # ----------------------
872 -# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
873 -# that executables *can* be run.
874 +# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
875 +# executables *can* be run.
878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
879 @@ -1550,25 +1595,26 @@ case "(($ac_try" in
880 *) ac_try_echo=$ac_try;;
882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
883 -$as_echo "$ac_try_echo"; } >&5
884 +printf "%s\n" "$ac_try_echo"; } >&5
885 (eval "$ac_link") 2>&5
887 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
888 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
889 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
890 { { case "(($ac_try" in
891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
892 *) ac_try_echo=$ac_try;;
894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
895 -$as_echo "$ac_try_echo"; } >&5
896 +printf "%s\n" "$ac_try_echo"; } >&5
897 (eval "$ac_try") 2>&5
899 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
900 - test $ac_status = 0; }; }; then :
901 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
902 + test $ac_status = 0; }; }
906 - $as_echo "$as_me: program exited with status $ac_status" >&5
907 - $as_echo "$as_me: failed program was:" >&5
909 + printf "%s\n" "$as_me: program exited with status $ac_status" >&5
910 + printf "%s\n" "$as_me: failed program was:" >&5
911 sed 's/^/| /' conftest.$ac_ext >&5
914 @@ -1578,14 +1624,34 @@ fi
915 as_fn_set_status $ac_retval
918 +ac_configure_args_raw=
923 + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
925 + as_fn_append ac_configure_args_raw " '$ac_arg'"
928 +case $ac_configure_args_raw in
930 + ac_safe_unquote= ;;
932 + ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
933 + ac_unsafe_a="$ac_unsafe_z#~"
934 + ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
935 + ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
938 cat >config.log <<_ACEOF
939 This file contains any messages produced by compilers while
940 running configure, to aid debugging if configure makes a mistake.
942 It was created by $as_me, which was
943 -generated by GNU Autoconf 2.69. Invocation command line was
944 +generated by GNU Autoconf 2.71. Invocation command line was
947 + $ $0$ac_configure_args_raw
951 @@ -1618,8 +1684,12 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
955 - test -z "$as_dir" && as_dir=.
956 - $as_echo "PATH: $as_dir"
957 + case $as_dir in #(((
960 + *) as_dir=$as_dir/ ;;
962 + printf "%s\n" "PATH: $as_dir"
966 @@ -1654,7 +1724,7 @@ do
967 | -silent | --silent | --silen | --sile | --sil)
970 - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
971 + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
974 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
975 @@ -1689,11 +1759,13 @@ done
976 # WARNING: Use '\'' to represent an apostrophe within the trap.
977 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
981 # Save into config.log some information that might help in debugging.
985 - $as_echo "## ---------------- ##
986 + printf "%s\n" "## ---------------- ##
987 ## Cache variables. ##
988 ## ---------------- ##"
990 @@ -1704,8 +1776,8 @@ trap 'exit_status=$?
994 - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
995 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
996 + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
997 +printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1000 _ | IFS | as_nl) ;; #(
1001 @@ -1729,7 +1801,7 @@ $as_echo "$as_me: WARNING: cache variabl
1005 - $as_echo "## ----------------- ##
1006 + printf "%s\n" "## ----------------- ##
1007 ## Output variables. ##
1008 ## ----------------- ##"
1010 @@ -1737,14 +1809,14 @@ $as_echo "$as_me: WARNING: cache variabl
1012 eval ac_val=\$$ac_var
1014 - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1015 + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1017 - $as_echo "$ac_var='\''$ac_val'\''"
1018 + printf "%s\n" "$ac_var='\''$ac_val'\''"
1022 if test -n "$ac_subst_files"; then
1023 - $as_echo "## ------------------- ##
1024 + printf "%s\n" "## ------------------- ##
1025 ## File substitutions. ##
1026 ## ------------------- ##"
1028 @@ -1752,15 +1824,15 @@ $as_echo "$as_me: WARNING: cache variabl
1030 eval ac_val=\$$ac_var
1032 - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1033 + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1035 - $as_echo "$ac_var='\''$ac_val'\''"
1036 + printf "%s\n" "$ac_var='\''$ac_val'\''"
1041 if test -s confdefs.h; then
1042 - $as_echo "## ----------- ##
1043 + printf "%s\n" "## ----------- ##
1047 @@ -1768,8 +1840,8 @@ $as_echo "$as_me: WARNING: cache variabl
1050 test "$ac_signal" != 0 &&
1051 - $as_echo "$as_me: caught signal $ac_signal"
1052 - $as_echo "$as_me: exit $exit_status"
1053 + printf "%s\n" "$as_me: caught signal $ac_signal"
1054 + printf "%s\n" "$as_me: exit $exit_status"
1056 rm -f core *.core core.conftest.* &&
1057 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1058 @@ -1783,63 +1855,48 @@ ac_signal=0
1059 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1060 rm -f -r conftest* confdefs.h
1062 -$as_echo "/* confdefs.h */" > confdefs.h
1063 +printf "%s\n" "/* confdefs.h */" > confdefs.h
1065 # Predefined preprocessor variables.
1067 -cat >>confdefs.h <<_ACEOF
1068 -#define PACKAGE_NAME "$PACKAGE_NAME"
1070 +printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1072 -cat >>confdefs.h <<_ACEOF
1073 -#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1075 +printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1077 -cat >>confdefs.h <<_ACEOF
1078 -#define PACKAGE_VERSION "$PACKAGE_VERSION"
1080 +printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1082 -cat >>confdefs.h <<_ACEOF
1083 -#define PACKAGE_STRING "$PACKAGE_STRING"
1085 +printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1087 -cat >>confdefs.h <<_ACEOF
1088 -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1090 +printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1092 -cat >>confdefs.h <<_ACEOF
1093 -#define PACKAGE_URL "$PACKAGE_URL"
1095 +printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1098 # Let the site file select an alternate cache file if it wants to.
1099 # Prefer an explicitly selected file to automatically selected ones.
1102 if test -n "$CONFIG_SITE"; then
1103 - # We do not want a PATH search for config.site.
1104 - case $CONFIG_SITE in #((
1105 - -*) ac_site_file1=./$CONFIG_SITE;;
1106 - */*) ac_site_file1=$CONFIG_SITE;;
1107 - *) ac_site_file1=./$CONFIG_SITE;;
1109 + ac_site_files="$CONFIG_SITE"
1110 elif test "x$prefix" != xNONE; then
1111 - ac_site_file1=$prefix/share/config.site
1112 - ac_site_file2=$prefix/etc/config.site
1113 + ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1115 - ac_site_file1=$ac_default_prefix/share/config.site
1116 - ac_site_file2=$ac_default_prefix/etc/config.site
1117 + ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1119 -for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1121 +for ac_site_file in $ac_site_files
1123 - test "x$ac_site_file" = xNONE && continue
1124 - if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1125 - { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1126 -$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1127 + case $ac_site_file in #(
1131 + ac_site_file=./$ac_site_file ;;
1133 + if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1134 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1135 +printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1136 sed 's/^/| /' "$ac_site_file" >&5
1138 - || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1139 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1140 + || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1141 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1142 as_fn_error $? "failed to load site script $ac_site_file
1143 See \`config.log' for more details" "$LINENO" 5; }
1145 @@ -1849,19 +1906,327 @@ if test -r "$cache_file"; then
1146 # Some versions of bash will fail to source /dev/null (special files
1147 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1148 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1149 - { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1150 -$as_echo "$as_me: loading cache $cache_file" >&6;}
1151 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1152 +printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1154 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1155 *) . "./$cache_file";;
1159 - { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1160 -$as_echo "$as_me: creating cache $cache_file" >&6;}
1161 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1162 +printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1166 +# Test code for whether the C compiler supports C89 (global declarations)
1167 +ac_c_conftest_c89_globals='
1168 +/* Does the compiler advertise C89 conformance?
1169 + Do not test the value of __STDC__, because some compilers set it to 0
1170 + while being otherwise adequately conformant. */
1171 +#if !defined __STDC__
1172 +# error "Compiler does not advertise C89 conformance"
1175 +#include <stddef.h>
1176 +#include <stdarg.h>
1178 +/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
1179 +struct buf { int x; };
1180 +struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1181 +static char *e (p, i)
1187 +static char *f (char * (*g) (char **, int), char **p, ...)
1192 + s = g (p, va_arg (v,int));
1197 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1198 + function prototypes and stuff, but not \xHH hex character constants.
1199 + These do not provoke an error unfortunately, instead are silently treated
1200 + as an "x". The following induces an error, until -std is added to get
1201 + proper ANSI mode. Curiously \x00 != x always comes out true, for an
1202 + array size at least. It is necessary to write \x00 == 0 to get something
1203 + that is true only with -std. */
1204 +int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
1206 +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
1207 + inside strings and character constants. */
1208 +#define FOO(x) '\''x'\''
1209 +int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
1211 +int test (int i, double x);
1212 +struct s1 {int (*f) (int a);};
1213 +struct s2 {int (*f) (double a);};
1214 +int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
1217 +# Test code for whether the C compiler supports C89 (body of main).
1218 +ac_c_conftest_c89_main='
1219 +ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
1222 +# Test code for whether the C compiler supports C99 (global declarations)
1223 +ac_c_conftest_c99_globals='
1224 +// Does the compiler advertise C99 conformance?
1225 +#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
1226 +# error "Compiler does not advertise C99 conformance"
1229 +#include <stdbool.h>
1230 +extern int puts (const char *);
1231 +extern int printf (const char *, ...);
1232 +extern int dprintf (int, const char *, ...);
1233 +extern void *malloc (size_t);
1235 +// Check varargs macros. These examples are taken from C99 6.10.3.5.
1236 +// dprintf is used instead of fprintf to avoid needing to declare
1237 +// FILE and stderr.
1238 +#define debug(...) dprintf (2, __VA_ARGS__)
1239 +#define showlist(...) puts (#__VA_ARGS__)
1240 +#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
1242 +test_varargs_macros (void)
1247 + debug ("X = %d\n", x);
1248 + showlist (The first, second, and third items.);
1249 + report (x>y, "x is %d but y is %d", x, y);
1252 +// Check long long types.
1253 +#define BIG64 18446744073709551615ull
1254 +#define BIG32 4294967295ul
1255 +#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
1257 + #error "your preprocessor is broken"
1261 + #error "your preprocessor is broken"
1263 +static long long int bignum = -9223372036854775807LL;
1264 +static unsigned long long int ubignum = BIG64;
1266 +struct incomplete_array
1272 +struct named_init {
1274 + const wchar_t *name;
1278 +typedef const char *ccp;
1281 +test_restrict (ccp restrict text)
1283 + // See if C++-style comments work.
1284 + // Iterate through items via the restricted pointer.
1285 + // Also check for declarations in for loops.
1286 + for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
1291 +// Check varargs and va_copy.
1293 +test_varargs (const char *format, ...)
1296 + va_start (args, format);
1297 + va_list args_copy;
1298 + va_copy (args_copy, args);
1300 + const char *str = "";
1302 + float fnumber = 0;
1306 + switch (*format++)
1308 + case '\''s'\'': // string
1309 + str = va_arg (args_copy, const char *);
1311 + case '\''d'\'': // int
1312 + number = va_arg (args_copy, int);
1314 + case '\''f'\'': // float
1315 + fnumber = va_arg (args_copy, double);
1321 + va_end (args_copy);
1324 + return *str && number && fnumber;
1328 +# Test code for whether the C compiler supports C99 (body of main).
1329 +ac_c_conftest_c99_main='
1331 + _Bool success = false;
1332 + success |= (argc != 0);
1334 + // Check restrict.
1335 + if (test_restrict ("String literal") == 0)
1337 + char *restrict newvar = "Another string";
1340 + success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
1341 + test_varargs_macros ();
1343 + // Check flexible array members.
1344 + struct incomplete_array *ia =
1345 + malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
1346 + ia->datasize = 10;
1347 + for (int i = 0; i < ia->datasize; ++i)
1348 + ia->data[i] = i * 1.234;
1350 + // Check named initializers.
1351 + struct named_init ni = {
1353 + .name = L"Test wide string",
1354 + .average = 543.34343,
1359 + int dynamic_array[ni.number];
1360 + dynamic_array[0] = argv[0][0];
1361 + dynamic_array[ni.number - 1] = 543;
1363 + // work around unused variable warnings
1364 + ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
1365 + || dynamic_array[ni.number - 1] != 543);
1368 +# Test code for whether the C compiler supports C11 (global declarations)
1369 +ac_c_conftest_c11_globals='
1370 +// Does the compiler advertise C11 conformance?
1371 +#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
1372 +# error "Compiler does not advertise C11 conformance"
1376 +char _Alignas (double) aligned_as_double;
1377 +char _Alignas (0) no_special_alignment;
1378 +extern char aligned_as_int;
1379 +char _Alignas (0) _Alignas (int) aligned_as_int;
1384 + int_alignment = _Alignof (int),
1385 + int_array_alignment = _Alignof (int[100]),
1386 + char_alignment = _Alignof (char)
1388 +_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
1390 +// Check _Noreturn.
1391 +int _Noreturn does_not_return (void) { for (;;) continue; }
1393 +// Check _Static_assert.
1394 +struct test_static_assert
1397 + _Static_assert (sizeof (int) <= sizeof (long int),
1398 + "_Static_assert does not work in struct");
1402 +// Check UTF-8 literals.
1403 +#define u8 syntax error!
1404 +char const utf8_literal[] = u8"happens to be ASCII" "another string";
1406 +// Check duplicate typedefs.
1407 +typedef long *long_ptr;
1408 +typedef long int *long_ptr;
1409 +typedef long_ptr long_ptr;
1411 +// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
1415 + struct { int i; int j; };
1416 + struct { int k; long int l; } w;
1422 +# Test code for whether the C compiler supports C11 (body of main).
1423 +ac_c_conftest_c11_main='
1424 + _Static_assert ((offsetof (struct anonymous, i)
1425 + == offsetof (struct anonymous, w.k)),
1426 + "Anonymous union alignment botch");
1432 +# Test code for whether the C compiler supports C11 (complete).
1433 +ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
1434 +${ac_c_conftest_c99_globals}
1435 +${ac_c_conftest_c11_globals}
1438 +main (int argc, char **argv)
1441 + ${ac_c_conftest_c89_main}
1442 + ${ac_c_conftest_c99_main}
1443 + ${ac_c_conftest_c11_main}
1448 +# Test code for whether the C compiler supports C99 (complete).
1449 +ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
1450 +${ac_c_conftest_c99_globals}
1453 +main (int argc, char **argv)
1456 + ${ac_c_conftest_c89_main}
1457 + ${ac_c_conftest_c99_main}
1462 +# Test code for whether the C compiler supports C89 (complete).
1463 +ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
1466 +main (int argc, char **argv)
1469 + ${ac_c_conftest_c89_main}
1474 # Check that the precious variables saved in the cache have kept the same
1476 ac_cache_corrupted=false
1477 @@ -1872,12 +2237,12 @@ for ac_var in $ac_precious_vars; do
1478 eval ac_new_val=\$ac_env_${ac_var}_value
1479 case $ac_old_set,$ac_new_set in
1481 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1482 -$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1483 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1484 +printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1485 ac_cache_corrupted=: ;;
1487 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1488 -$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1489 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1490 +printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1491 ac_cache_corrupted=: ;;
1494 @@ -1886,24 +2251,24 @@ $as_echo "$as_me: error: \`$ac_var' was
1495 ac_old_val_w=`echo x $ac_old_val`
1496 ac_new_val_w=`echo x $ac_new_val`
1497 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1498 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1499 -$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1500 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1501 +printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1502 ac_cache_corrupted=:
1504 - { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1505 -$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1506 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1507 +printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1508 eval $ac_var=\$ac_old_val
1510 - { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1511 -$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1512 - { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1513 -$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1514 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1515 +printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
1516 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1517 +printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
1520 # Pass precious variables to config.status.
1521 if test "$ac_new_set" = set; then
1523 - *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1524 + *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1525 *) ac_arg=$ac_var=$ac_new_val ;;
1527 case " $ac_configure_args " in
1528 @@ -1913,11 +2278,12 @@ $as_echo "$as_me: current value: \`$ac
1531 if $ac_cache_corrupted; then
1532 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1533 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1534 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1535 -$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1536 - as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1537 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1538 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1539 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1540 +printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
1541 + as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
1542 + and start over" "$LINENO" 5
1544 ## -------------------- ##
1545 ## Main body of script. ##
1546 @@ -1934,15 +2300,39 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
1553 # Check whether --with-rlm_krb5 was given.
1554 -if test "${with_rlm_krb5+set}" = set; then :
1555 +if test ${with_rlm_krb5+y}
1557 withval=$with_rlm_krb5;
1561 -if test x$with_rlm_krb5 != xno; then
1568 +: > "config.report"
1569 +: > "config.report.tmp"
1573 +if test x"$with_rlm_krb5" != xno; then
1586 ac_cpp='$CPP $CPPFLAGS'
1587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1589 @@ -1950,11 +2340,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
1590 if test -n "$ac_tool_prefix"; then
1591 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1592 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1593 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1594 -$as_echo_n "checking for $ac_word... " >&6; }
1595 -if ${ac_cv_prog_CC+:} false; then :
1596 - $as_echo_n "(cached) " >&6
1598 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1599 +printf %s "checking for $ac_word... " >&6; }
1600 +if test ${ac_cv_prog_CC+y}
1602 + printf %s "(cached) " >&6
1604 if test -n "$CC"; then
1605 ac_cv_prog_CC="$CC" # Let the user override the test.
1607 @@ -1962,11 +2353,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 - test -z "$as_dir" && as_dir=.
1612 + case $as_dir in #(((
1615 + *) as_dir=$as_dir/ ;;
1617 for ac_exec_ext in '' $ac_executable_extensions; do
1618 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1619 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1620 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1621 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1626 @@ -1977,11 +2372,11 @@ fi
1629 if test -n "$CC"; then
1630 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1631 -$as_echo "$CC" >&6; }
1632 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1633 +printf "%s\n" "$CC" >&6; }
1635 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1636 -$as_echo "no" >&6; }
1637 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1638 +printf "%s\n" "no" >&6; }
1642 @@ -1990,11 +2385,12 @@ if test -z "$ac_cv_prog_CC"; then
1644 # Extract the first word of "gcc", so it can be a program name with args.
1645 set dummy gcc; ac_word=$2
1646 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1647 -$as_echo_n "checking for $ac_word... " >&6; }
1648 -if ${ac_cv_prog_ac_ct_CC+:} false; then :
1649 - $as_echo_n "(cached) " >&6
1651 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1652 +printf %s "checking for $ac_word... " >&6; }
1653 +if test ${ac_cv_prog_ac_ct_CC+y}
1655 + printf %s "(cached) " >&6
1657 if test -n "$ac_ct_CC"; then
1658 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1660 @@ -2002,11 +2398,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 - test -z "$as_dir" && as_dir=.
1665 + case $as_dir in #(((
1668 + *) as_dir=$as_dir/ ;;
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_ac_ct_CC="gcc"
1674 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1679 @@ -2017,11 +2417,11 @@ fi
1681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1682 if test -n "$ac_ct_CC"; then
1683 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1684 -$as_echo "$ac_ct_CC" >&6; }
1685 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1686 +printf "%s\n" "$ac_ct_CC" >&6; }
1688 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1689 -$as_echo "no" >&6; }
1690 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1691 +printf "%s\n" "no" >&6; }
1694 if test "x$ac_ct_CC" = x; then
1695 @@ -2029,8 +2429,8 @@ fi
1697 case $cross_compiling:$ac_tool_warned in
1699 -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1700 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1701 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1702 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1703 ac_tool_warned=yes ;;
1706 @@ -2043,11 +2443,12 @@ if test -z "$CC"; then
1707 if test -n "$ac_tool_prefix"; then
1708 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1709 set dummy ${ac_tool_prefix}cc; ac_word=$2
1710 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1711 -$as_echo_n "checking for $ac_word... " >&6; }
1712 -if ${ac_cv_prog_CC+:} false; then :
1713 - $as_echo_n "(cached) " >&6
1715 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1716 +printf %s "checking for $ac_word... " >&6; }
1717 +if test ${ac_cv_prog_CC+y}
1719 + printf %s "(cached) " >&6
1721 if test -n "$CC"; then
1722 ac_cv_prog_CC="$CC" # Let the user override the test.
1724 @@ -2055,11 +2456,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728 - test -z "$as_dir" && as_dir=.
1729 + case $as_dir in #(((
1732 + *) as_dir=$as_dir/ ;;
1734 for ac_exec_ext in '' $ac_executable_extensions; do
1735 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1736 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1737 ac_cv_prog_CC="${ac_tool_prefix}cc"
1738 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1743 @@ -2070,11 +2475,11 @@ fi
1746 if test -n "$CC"; then
1747 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1748 -$as_echo "$CC" >&6; }
1749 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1750 +printf "%s\n" "$CC" >&6; }
1752 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1753 -$as_echo "no" >&6; }
1754 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1755 +printf "%s\n" "no" >&6; }
1759 @@ -2083,11 +2488,12 @@ fi
1760 if test -z "$CC"; then
1761 # Extract the first word of "cc", so it can be a program name with args.
1762 set dummy cc; ac_word=$2
1763 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1764 -$as_echo_n "checking for $ac_word... " >&6; }
1765 -if ${ac_cv_prog_CC+:} false; then :
1766 - $as_echo_n "(cached) " >&6
1768 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1769 +printf %s "checking for $ac_word... " >&6; }
1770 +if test ${ac_cv_prog_CC+y}
1772 + printf %s "(cached) " >&6
1774 if test -n "$CC"; then
1775 ac_cv_prog_CC="$CC" # Let the user override the test.
1777 @@ -2096,15 +2502,19 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781 - test -z "$as_dir" && as_dir=.
1782 + case $as_dir in #(((
1785 + *) as_dir=$as_dir/ ;;
1787 for ac_exec_ext in '' $ac_executable_extensions; do
1788 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1790 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1791 + if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1792 ac_prog_rejected=yes
1796 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1797 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1801 @@ -2120,18 +2530,18 @@ if test $ac_prog_rejected = yes; then
1802 # However, it has the same basename, so the bogon will be chosen
1803 # first if we set CC to just the basename; use the full file name.
1805 - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1806 + ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
1812 if test -n "$CC"; then
1813 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1814 -$as_echo "$CC" >&6; }
1815 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1816 +printf "%s\n" "$CC" >&6; }
1818 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1819 -$as_echo "no" >&6; }
1820 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1821 +printf "%s\n" "no" >&6; }
1825 @@ -2142,11 +2552,12 @@ if test -z "$CC"; then
1827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1829 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1830 -$as_echo_n "checking for $ac_word... " >&6; }
1831 -if ${ac_cv_prog_CC+:} false; then :
1832 - $as_echo_n "(cached) " >&6
1834 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1835 +printf %s "checking for $ac_word... " >&6; }
1836 +if test ${ac_cv_prog_CC+y}
1838 + printf %s "(cached) " >&6
1840 if test -n "$CC"; then
1841 ac_cv_prog_CC="$CC" # Let the user override the test.
1843 @@ -2154,11 +2565,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 - test -z "$as_dir" && as_dir=.
1848 + case $as_dir in #(((
1851 + *) as_dir=$as_dir/ ;;
1853 for ac_exec_ext in '' $ac_executable_extensions; do
1854 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1855 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1856 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1857 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1858 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1862 @@ -2169,11 +2584,11 @@ fi
1865 if test -n "$CC"; then
1866 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1867 -$as_echo "$CC" >&6; }
1868 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1869 +printf "%s\n" "$CC" >&6; }
1871 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1872 -$as_echo "no" >&6; }
1873 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1874 +printf "%s\n" "no" >&6; }
1878 @@ -2186,11 +2601,12 @@ if test -z "$CC"; then
1880 # Extract the first word of "$ac_prog", so it can be a program name with args.
1881 set dummy $ac_prog; ac_word=$2
1882 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1883 -$as_echo_n "checking for $ac_word... " >&6; }
1884 -if ${ac_cv_prog_ac_ct_CC+:} false; then :
1885 - $as_echo_n "(cached) " >&6
1887 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1888 +printf %s "checking for $ac_word... " >&6; }
1889 +if test ${ac_cv_prog_ac_ct_CC+y}
1891 + printf %s "(cached) " >&6
1893 if test -n "$ac_ct_CC"; then
1894 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1896 @@ -2198,11 +2614,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 - test -z "$as_dir" && as_dir=.
1901 + case $as_dir in #(((
1904 + *) as_dir=$as_dir/ ;;
1906 for ac_exec_ext in '' $ac_executable_extensions; do
1907 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1909 ac_cv_prog_ac_ct_CC="$ac_prog"
1910 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1915 @@ -2213,11 +2633,11 @@ fi
1917 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1918 if test -n "$ac_ct_CC"; then
1919 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1920 -$as_echo "$ac_ct_CC" >&6; }
1921 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1922 +printf "%s\n" "$ac_ct_CC" >&6; }
1924 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1925 -$as_echo "no" >&6; }
1926 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1927 +printf "%s\n" "no" >&6; }
1931 @@ -2229,34 +2649,138 @@ done
1933 case $cross_compiling:$ac_tool_warned in
1935 -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1936 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1937 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
1938 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1939 +ac_tool_warned=yes ;;
1946 +if test -z "$CC"; then
1947 + if test -n "$ac_tool_prefix"; then
1948 + # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
1949 +set dummy ${ac_tool_prefix}clang; ac_word=$2
1950 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1951 +printf %s "checking for $ac_word... " >&6; }
1952 +if test ${ac_cv_prog_CC+y}
1954 + printf %s "(cached) " >&6
1956 + if test -n "$CC"; then
1957 + ac_cv_prog_CC="$CC" # Let the user override the test.
1959 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960 +for as_dir in $PATH
1963 + case $as_dir in #(((
1966 + *) as_dir=$as_dir/ ;;
1968 + for ac_exec_ext in '' $ac_executable_extensions; do
1969 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1970 + ac_cv_prog_CC="${ac_tool_prefix}clang"
1971 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1981 +if test -n "$CC"; then
1982 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1983 +printf "%s\n" "$CC" >&6; }
1985 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1986 +printf "%s\n" "no" >&6; }
1991 +if test -z "$ac_cv_prog_CC"; then
1993 + # Extract the first word of "clang", so it can be a program name with args.
1994 +set dummy clang; ac_word=$2
1995 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1996 +printf %s "checking for $ac_word... " >&6; }
1997 +if test ${ac_cv_prog_ac_ct_CC+y}
1999 + printf %s "(cached) " >&6
2001 + if test -n "$ac_ct_CC"; then
2002 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2004 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 +for as_dir in $PATH
2008 + case $as_dir in #(((
2011 + *) as_dir=$as_dir/ ;;
2013 + for ac_exec_ext in '' $ac_executable_extensions; do
2014 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2015 + ac_cv_prog_ac_ct_CC="clang"
2016 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2025 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
2026 +if test -n "$ac_ct_CC"; then
2027 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2028 +printf "%s\n" "$ac_ct_CC" >&6; }
2030 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2031 +printf "%s\n" "no" >&6; }
2034 + if test "x$ac_ct_CC" = x; then
2037 + case $cross_compiling:$ac_tool_warned in
2039 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2040 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2041 ac_tool_warned=yes ;;
2046 + CC="$ac_cv_prog_CC"
2052 -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2053 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2054 +test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2055 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2056 as_fn_error $? "no acceptable C compiler found in \$PATH
2057 See \`config.log' for more details" "$LINENO" 5; }
2059 # Provide some information about the compiler.
2060 -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2061 +printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2064 -for ac_option in --version -v -V -qversion; do
2065 +for ac_option in --version -v -V -qversion -version; do
2066 { { ac_try="$ac_compiler $ac_option >&5"
2068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069 *) ac_try_echo=$ac_try;;
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 -$as_echo "$ac_try_echo"; } >&5
2073 +printf "%s\n" "$ac_try_echo"; } >&5
2074 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2076 if test -s conftest.err; then
2077 @@ -2266,7 +2790,7 @@ $as_echo "$ac_try_echo"; } >&5
2078 cat conftest.er1 >&5
2080 rm -f conftest.er1 conftest.err
2081 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2082 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2083 test $ac_status = 0; }
2086 @@ -2274,7 +2798,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
2087 /* end confdefs.h. */
2095 @@ -2286,9 +2810,9 @@ ac_clean_files="$ac_clean_files a.out a.
2096 # Try to create an executable without -o first, disregard a.out.
2097 # It will help us diagnose broken compilers, and finding out an intuition
2099 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2100 -$as_echo_n "checking whether the C compiler works... " >&6; }
2101 -ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2102 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2103 +printf %s "checking whether the C compiler works... " >&6; }
2104 +ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2106 # The possible output files:
2107 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2108 @@ -2309,11 +2833,12 @@ case "(($ac_try" in
2109 *) ac_try_echo=$ac_try;;
2111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2112 -$as_echo "$ac_try_echo"; } >&5
2113 +printf "%s\n" "$ac_try_echo"; } >&5
2114 (eval "$ac_link_default") 2>&5
2116 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117 - test $ac_status = 0; }; then :
2118 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2119 + test $ac_status = 0; }
2121 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2122 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2123 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2124 @@ -2330,7 +2855,7 @@ do
2128 - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2129 + if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
2131 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2133 @@ -2346,44 +2871,46 @@ do
2135 test "$ac_cv_exeext" = no && ac_cv_exeext=
2141 -if test -z "$ac_file"; then :
2142 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2143 -$as_echo "no" >&6; }
2144 -$as_echo "$as_me: failed program was:" >&5
2145 +if test -z "$ac_file"
2147 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2148 +printf "%s\n" "no" >&6; }
2149 +printf "%s\n" "$as_me: failed program was:" >&5
2150 sed 's/^/| /' conftest.$ac_ext >&5
2152 -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2153 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2154 +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2155 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2156 as_fn_error 77 "C compiler cannot create executables
2157 See \`config.log' for more details" "$LINENO" 5; }
2159 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2160 -$as_echo "yes" >&6; }
2162 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2163 -$as_echo_n "checking for C compiler default output file name... " >&6; }
2164 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2165 -$as_echo "$ac_file" >&6; }
2167 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2168 +printf "%s\n" "yes" >&6; }
2170 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2171 +printf %s "checking for C compiler default output file name... " >&6; }
2172 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2173 +printf "%s\n" "$ac_file" >&6; }
2174 ac_exeext=$ac_cv_exeext
2176 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2177 ac_clean_files=$ac_clean_files_save
2178 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2179 -$as_echo_n "checking for suffix of executables... " >&6; }
2180 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2181 +printf %s "checking for suffix of executables... " >&6; }
2182 if { { ac_try="$ac_link"
2184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185 *) ac_try_echo=$ac_try;;
2187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2188 -$as_echo "$ac_try_echo"; } >&5
2189 +printf "%s\n" "$ac_try_echo"; } >&5
2190 (eval "$ac_link") 2>&5
2192 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2193 - test $ac_status = 0; }; then :
2194 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195 + test $ac_status = 0; }
2197 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2198 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2199 # work properly (i.e., refer to `conftest.exe'), while it won't with
2200 @@ -2397,15 +2924,15 @@ for ac_file in conftest.exe conftest con
2205 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2208 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2209 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2210 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2211 See \`config.log' for more details" "$LINENO" 5; }
2213 rm -f conftest conftest$ac_cv_exeext
2214 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2215 -$as_echo "$ac_cv_exeext" >&6; }
2216 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2217 +printf "%s\n" "$ac_cv_exeext" >&6; }
2219 rm -f conftest.$ac_ext
2220 EXEEXT=$ac_cv_exeext
2221 @@ -2414,7 +2941,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
2222 /* end confdefs.h. */
2228 FILE *f = fopen ("conftest.out", "w");
2229 return ferror (f) || fclose (f) != 0;
2230 @@ -2426,8 +2953,8 @@ _ACEOF
2231 ac_clean_files="$ac_clean_files conftest.out"
2232 # Check that the compiler produces executables we can run. If not, either
2233 # the compiler is broken, or we cross compile.
2234 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2235 -$as_echo_n "checking whether we are cross compiling... " >&6; }
2236 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2237 +printf %s "checking whether we are cross compiling... " >&6; }
2238 if test "$cross_compiling" != yes; then
2239 { { ac_try="$ac_link"
2241 @@ -2435,10 +2962,10 @@ case "(($ac_try" in
2242 *) ac_try_echo=$ac_try;;
2244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2245 -$as_echo "$ac_try_echo"; } >&5
2246 +printf "%s\n" "$ac_try_echo"; } >&5
2247 (eval "$ac_link") 2>&5
2249 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2250 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2251 test $ac_status = 0; }
2252 if { ac_try='./conftest$ac_cv_exeext'
2253 { { case "(($ac_try" in
2254 @@ -2446,39 +2973,40 @@ $as_echo "$ac_try_echo"; } >&5
2255 *) ac_try_echo=$ac_try;;
2257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2258 -$as_echo "$ac_try_echo"; } >&5
2259 +printf "%s\n" "$ac_try_echo"; } >&5
2260 (eval "$ac_try") 2>&5
2262 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2264 test $ac_status = 0; }; }; then
2267 if test "$cross_compiling" = maybe; then
2270 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2271 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2272 -as_fn_error $? "cannot run C compiled programs.
2273 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2274 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2275 +as_fn_error 77 "cannot run C compiled programs.
2276 If you meant to cross compile, use \`--host'.
2277 See \`config.log' for more details" "$LINENO" 5; }
2281 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2282 -$as_echo "$cross_compiling" >&6; }
2283 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2284 +printf "%s\n" "$cross_compiling" >&6; }
2286 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2287 ac_clean_files=$ac_clean_files_save
2288 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2289 -$as_echo_n "checking for suffix of object files... " >&6; }
2290 -if ${ac_cv_objext+:} false; then :
2291 - $as_echo_n "(cached) " >&6
2293 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2294 +printf %s "checking for suffix of object files... " >&6; }
2295 +if test ${ac_cv_objext+y}
2297 + printf %s "(cached) " >&6
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h. */
2308 @@ -2492,11 +3020,12 @@ case "(($ac_try" in
2309 *) ac_try_echo=$ac_try;;
2311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2312 -$as_echo "$ac_try_echo"; } >&5
2313 +printf "%s\n" "$ac_try_echo"; } >&5
2314 (eval "$ac_compile") 2>&5
2316 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317 - test $ac_status = 0; }; then :
2318 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2319 + test $ac_status = 0; }
2321 for ac_file in conftest.o conftest.obj conftest.*; do
2322 test -f "$ac_file" || continue;
2324 @@ -2505,31 +3034,32 @@ $as_echo "$ac_try_echo"; } >&5
2329 - $as_echo "$as_me: failed program was:" >&5
2331 + printf "%s\n" "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2334 -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2335 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2336 +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2337 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2338 as_fn_error $? "cannot compute suffix of object files: cannot compile
2339 See \`config.log' for more details" "$LINENO" 5; }
2341 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2343 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2344 -$as_echo "$ac_cv_objext" >&6; }
2345 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2346 +printf "%s\n" "$ac_cv_objext" >&6; }
2347 OBJEXT=$ac_cv_objext
2349 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2350 -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2351 -if ${ac_cv_c_compiler_gnu+:} false; then :
2352 - $as_echo_n "(cached) " >&6
2354 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
2355 +printf %s "checking whether the compiler supports GNU C... " >&6; }
2356 +if test ${ac_cv_c_compiler_gnu+y}
2358 + printf %s "(cached) " >&6
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2369 @@ -2539,29 +3069,33 @@ main ()
2373 -if ac_fn_c_try_compile "$LINENO"; then :
2374 +if ac_fn_c_try_compile "$LINENO"
2381 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2383 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2386 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2387 -$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2388 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2389 +printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
2390 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
2392 if test $ac_compiler_gnu = yes; then
2397 -ac_test_CFLAGS=${CFLAGS+set}
2398 +ac_test_CFLAGS=${CFLAGS+y}
2399 ac_save_CFLAGS=$CFLAGS
2400 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2401 -$as_echo_n "checking whether $CC accepts -g... " >&6; }
2402 -if ${ac_cv_prog_cc_g+:} false; then :
2403 - $as_echo_n "(cached) " >&6
2405 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2406 +printf %s "checking whether $CC accepts -g... " >&6; }
2407 +if test ${ac_cv_prog_cc_g+y}
2409 + printf %s "(cached) " >&6
2411 ac_save_c_werror_flag=$ac_c_werror_flag
2412 ac_c_werror_flag=yes
2414 @@ -2570,57 +3104,60 @@ else
2415 /* end confdefs.h. */
2426 -if ac_fn_c_try_compile "$LINENO"; then :
2427 +if ac_fn_c_try_compile "$LINENO"
2433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2434 /* end confdefs.h. */
2445 -if ac_fn_c_try_compile "$LINENO"; then :
2446 +if ac_fn_c_try_compile "$LINENO"
2451 ac_c_werror_flag=$ac_save_c_werror_flag
2453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h. */
2465 -if ac_fn_c_try_compile "$LINENO"; then :
2466 +if ac_fn_c_try_compile "$LINENO"
2470 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2471 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2473 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2474 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2476 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2477 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2478 ac_c_werror_flag=$ac_save_c_werror_flag
2480 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2481 -$as_echo "$ac_cv_prog_cc_g" >&6; }
2482 -if test "$ac_test_CFLAGS" = set; then
2483 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2484 +printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
2485 +if test $ac_test_CFLAGS; then
2486 CFLAGS=$ac_save_CFLAGS
2487 elif test $ac_cv_prog_cc_g = yes; then
2488 if test "$GCC" = yes; then
2489 @@ -2635,94 +3172,144 @@ else
2493 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2494 -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2495 -if ${ac_cv_prog_cc_c89+:} false; then :
2496 - $as_echo_n "(cached) " >&6
2498 - ac_cv_prog_cc_c89=no
2500 +if test x$ac_prog_cc_stdc = xno
2502 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
2503 +printf %s "checking for $CC option to enable C11 features... " >&6; }
2504 +if test ${ac_cv_prog_cc_c11+y}
2506 + printf %s "(cached) " >&6
2508 + ac_cv_prog_cc_c11=no
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2512 -#include <stdarg.h>
2515 -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2516 -struct buf { int x; };
2517 -FILE * (*rcsopen) (struct buf *, struct stat *, int);
2518 -static char *e (p, i)
2524 -static char *f (char * (*g) (char **, int), char **p, ...)
2529 - s = g (p, va_arg (v,int));
2534 -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2535 - function prototypes and stuff, but not '\xHH' hex character constants.
2536 - These don't provoke an error unfortunately, instead are silently treated
2537 - as 'x'. The following induces an error, until -std is added to get
2538 - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2539 - array size at least. It's necessary to write '\x00'==0 to get something
2540 - that's true only with -std. */
2541 -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2542 +$ac_c_conftest_c11_program
2544 +for ac_arg in '' -std=gnu11
2546 + CC="$ac_save_CC $ac_arg"
2547 + if ac_fn_c_try_compile "$LINENO"
2549 + ac_cv_prog_cc_c11=$ac_arg
2551 +rm -f core conftest.err conftest.$ac_objext conftest.beam
2552 + test "x$ac_cv_prog_cc_c11" != "xno" && break
2554 +rm -f conftest.$ac_ext
2558 -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2559 - inside strings and character constants. */
2561 -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2562 +if test "x$ac_cv_prog_cc_c11" = xno
2564 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2565 +printf "%s\n" "unsupported" >&6; }
2567 + if test "x$ac_cv_prog_cc_c11" = x
2569 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2570 +printf "%s\n" "none needed" >&6; }
2572 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
2573 +printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
2574 + CC="$CC $ac_cv_prog_cc_c11"
2576 + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
2577 + ac_prog_cc_stdc=c11
2580 +if test x$ac_prog_cc_stdc = xno
2582 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
2583 +printf %s "checking for $CC option to enable C99 features... " >&6; }
2584 +if test ${ac_cv_prog_cc_c99+y}
2586 + printf %s "(cached) " >&6
2588 + ac_cv_prog_cc_c99=no
2590 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 +/* end confdefs.h. */
2592 +$ac_c_conftest_c99_program
2594 +for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
2596 + CC="$ac_save_CC $ac_arg"
2597 + if ac_fn_c_try_compile "$LINENO"
2599 + ac_cv_prog_cc_c99=$ac_arg
2601 +rm -f core conftest.err conftest.$ac_objext conftest.beam
2602 + test "x$ac_cv_prog_cc_c99" != "xno" && break
2604 +rm -f conftest.$ac_ext
2608 -int test (int i, double x);
2609 -struct s1 {int (*f) (int a);};
2610 -struct s2 {int (*f) (double a);};
2611 -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2617 -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2621 +if test "x$ac_cv_prog_cc_c99" = xno
2623 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2624 +printf "%s\n" "unsupported" >&6; }
2626 + if test "x$ac_cv_prog_cc_c99" = x
2628 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2629 +printf "%s\n" "none needed" >&6; }
2631 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
2632 +printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
2633 + CC="$CC $ac_cv_prog_cc_c99"
2635 + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
2636 + ac_prog_cc_stdc=c99
2639 +if test x$ac_prog_cc_stdc = xno
2641 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
2642 +printf %s "checking for $CC option to enable C89 features... " >&6; }
2643 +if test ${ac_cv_prog_cc_c89+y}
2645 + printf %s "(cached) " >&6
2647 + ac_cv_prog_cc_c89=no
2649 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650 +/* end confdefs.h. */
2651 +$ac_c_conftest_c89_program
2653 -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2654 - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2655 +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2657 CC="$ac_save_CC $ac_arg"
2658 - if ac_fn_c_try_compile "$LINENO"; then :
2659 + if ac_fn_c_try_compile "$LINENO"
2661 ac_cv_prog_cc_c89=$ac_arg
2663 -rm -f core conftest.err conftest.$ac_objext
2664 +rm -f core conftest.err conftest.$ac_objext conftest.beam
2665 test "x$ac_cv_prog_cc_c89" != "xno" && break
2667 rm -f conftest.$ac_ext
2672 -case "x$ac_cv_prog_cc_c89" in
2674 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2675 -$as_echo "none needed" >&6; } ;;
2677 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2678 -$as_echo "unsupported" >&6; } ;;
2680 - CC="$CC $ac_cv_prog_cc_c89"
2681 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2682 -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2684 -if test "x$ac_cv_prog_cc_c89" != xno; then :
2686 +if test "x$ac_cv_prog_cc_c89" = xno
2688 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2689 +printf "%s\n" "unsupported" >&6; }
2691 + if test "x$ac_cv_prog_cc_c89" = x
2693 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2694 +printf "%s\n" "none needed" >&6; }
2696 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2697 +printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
2698 + CC="$CC $ac_cv_prog_cc_c89"
2700 + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
2701 + ac_prog_cc_stdc=c89
2706 @@ -2731,45 +3318,41 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS con
2707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2712 ac_cpp='$CPP $CPPFLAGS'
2713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2716 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2717 -$as_echo_n "checking how to run the C preprocessor... " >&6; }
2718 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2719 +printf %s "checking how to run the C preprocessor... " >&6; }
2720 # On Suns, sometimes $CPP names a directory.
2721 if test -n "$CPP" && test -d "$CPP"; then
2724 if test -z "$CPP"; then
2725 - if ${ac_cv_prog_CPP+:} false; then :
2726 - $as_echo_n "(cached) " >&6
2728 - # Double quotes because CPP needs to be expanded
2729 - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2730 + if test ${ac_cv_prog_CPP+y}
2732 + printf %s "(cached) " >&6
2734 + # Double quotes because $CC needs to be expanded
2735 + for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
2738 for ac_c_preproc_warn_flag in '' yes
2740 # Use a header file that comes with gcc, so configuring glibc
2741 # with a fresh cross-compiler works.
2742 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2743 - # <limits.h> exists even on freestanding compilers.
2744 # On the NeXT, cc -E runs the code through the compiler's parser,
2745 # not just through cpp. "Syntax error" is here to catch this case.
2746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2747 /* end confdefs.h. */
2749 -# include <limits.h>
2751 -# include <assert.h>
2753 +#include <limits.h>
2756 -if ac_fn_c_try_cpp "$LINENO"; then :
2757 +if ac_fn_c_try_cpp "$LINENO"
2762 # Broken: fails on valid input.
2765 @@ -2781,10 +3364,11 @@ rm -f conftest.err conftest.i conftest.$
2766 /* end confdefs.h. */
2767 #include <ac_nonexistent.h>
2769 -if ac_fn_c_try_cpp "$LINENO"; then :
2770 +if ac_fn_c_try_cpp "$LINENO"
2772 # Broken: success on invalid input.
2776 # Passes both tests.
2779 @@ -2794,7 +3378,8 @@ rm -f conftest.err conftest.i conftest.$
2781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2782 rm -f conftest.i conftest.err conftest.$ac_ext
2783 -if $ac_preproc_ok; then :
2789 @@ -2806,29 +3391,24 @@ fi
2793 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
2794 -$as_echo "$CPP" >&6; }
2795 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
2796 +printf "%s\n" "$CPP" >&6; }
2798 for ac_c_preproc_warn_flag in '' yes
2800 # Use a header file that comes with gcc, so configuring glibc
2801 # with a fresh cross-compiler works.
2802 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2803 - # <limits.h> exists even on freestanding compilers.
2804 # On the NeXT, cc -E runs the code through the compiler's parser,
2805 # not just through cpp. "Syntax error" is here to catch this case.
2806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807 /* end confdefs.h. */
2809 -# include <limits.h>
2811 -# include <assert.h>
2813 +#include <limits.h>
2816 -if ac_fn_c_try_cpp "$LINENO"; then :
2817 +if ac_fn_c_try_cpp "$LINENO"
2822 # Broken: fails on valid input.
2825 @@ -2840,10 +3420,11 @@ rm -f conftest.err conftest.i conftest.$
2826 /* end confdefs.h. */
2827 #include <ac_nonexistent.h>
2829 -if ac_fn_c_try_cpp "$LINENO"; then :
2830 +if ac_fn_c_try_cpp "$LINENO"
2832 # Broken: success on invalid input.
2836 # Passes both tests.
2839 @@ -2853,11 +3434,12 @@ rm -f conftest.err conftest.i conftest.$
2841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2842 rm -f conftest.i conftest.err conftest.$ac_ext
2843 -if $ac_preproc_ok; then :
2848 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2849 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2851 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2852 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2853 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
2854 See \`config.log' for more details" "$LINENO" 5; }
2856 @@ -2869,31 +3451,32 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
2857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2863 # Check whether --with-rlm-krb5-dir was given.
2864 -if test "${with_rlm_krb5_dir+set}" = set; then :
2865 - withval=$with_rlm_krb5_dir; case "$withval" in
2867 +if test ${with_rlm_krb5_dir+y}
2869 + withval=$with_rlm_krb5_dir; case "$withval" in
2871 as_fn_error $? "Need rlm-krb5-dir" "$LINENO" 5
2878 rlm_krb5_dir="$withval"
2886 - # Extract the first word of "krb5-config", so it can be a program name with args.
2887 +# Extract the first word of "krb5-config", so it can be a program name with args.
2888 set dummy krb5-config; ac_word=$2
2889 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 -$as_echo_n "checking for $ac_word... " >&6; }
2891 -if ${ac_cv_path_krb5_config+:} false; then :
2892 - $as_echo_n "(cached) " >&6
2894 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 +printf %s "checking for $ac_word... " >&6; }
2896 +if test ${ac_cv_path_krb5_config+y}
2898 + printf %s "(cached) " >&6
2900 case $krb5_config in
2902 ac_cv_path_krb5_config="$krb5_config" # Let the user override the test with a path.
2903 @@ -2904,11 +3487,15 @@ as_dummy="${rlm_krb5_dir}/bin:${PATH}:/u
2904 for as_dir in $as_dummy
2907 - test -z "$as_dir" && as_dir=.
2908 + case $as_dir in #(((
2911 + *) as_dir=$as_dir/ ;;
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2915 - ac_cv_path_krb5_config="$as_dir/$ac_word$ac_exec_ext"
2916 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2918 + ac_cv_path_krb5_config="$as_dir$ac_word$ac_exec_ext"
2919 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2923 @@ -2921,1920 +3508,1639 @@ esac
2925 krb5_config=$ac_cv_path_krb5_config
2926 if test -n "$krb5_config"; then
2927 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_config" >&5
2928 -$as_echo "$krb5_config" >&6; }
2929 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $krb5_config" >&5
2930 +printf "%s\n" "$krb5_config" >&6; }
2932 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 -$as_echo "no" >&6; }
2934 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 +printf "%s\n" "no" >&6; }
2939 - if test "$krb5_config" != 'not-found'; then
2940 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config CFLAGS" >&5
2941 -$as_echo_n "checking krb5-config CFLAGS... " >&6; }
2942 - SMART_CPPFLAGS=$($krb5_config --cflags)
2943 - SMART_CPPFLAGS=$(echo "$SMART_CPPFLAGS" | sed 's/-I[ ]*/-isystem /g')
2944 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$SMART_CPPFLAGS\"" >&5
2945 -$as_echo "\"$SMART_CPPFLAGS\"" >&6; }
2947 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config LDFLAGS" >&5
2948 -$as_echo_n "checking krb5-config LDFLAGS... " >&6; }
2949 - SMART_LIBS=$($krb5_config --libs)
2950 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SMART_LIBS}" >&5
2951 -$as_echo "${SMART_LIBS}" >&6; }
2953 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config reported version" >&5
2954 -$as_echo_n "checking krb5-config reported version... " >&6; }
2955 - krb5_version_raw=$($krb5_config --version)
2957 - krb5_version=$(echo "$krb5_version_raw" | head -n 1 | \
2958 - awk '{split($(4),v,"."); if (v["3"] = "") v["3"] = "0"; print v["1"]v["2"]v["3"] }')
2959 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${krb5_version_raw} ($krb5_version)" >&5
2960 -$as_echo "${krb5_version_raw} ($krb5_version)" >&6; }
2962 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking krb5-config reported vendor" >&5
2963 -$as_echo_n "checking krb5-config reported vendor... " >&6; }
2964 - krb5_vendor=$($krb5_config --vendor)
2965 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${krb5_vendor}" >&5
2966 -$as_echo "${krb5_vendor}" >&6; }
2968 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking canonical API type" >&5
2969 -$as_echo_n "checking canonical API type... " >&6; }
2970 - if test "$krb5_vendor" = "Massachusetts Institute of Technology" || \
2971 - echo "$krb5_vendor" | grep -i 'MIT' > /dev/null 2>&1 || \
2972 - echo "$krb5_version_raw" | grep -i 'MIT' > /dev/null 2>&1 ; then
2973 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: MIT" >&5
2974 -$as_echo "MIT" >&6; }
2975 - krb5_api_type='mit'
2977 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: HEIMDAL" >&5
2978 -$as_echo "HEIMDAL" >&6; }
2979 - krb5_api_type='heimdal'
2981 +if test "$krb5_config" != 'not-found'; then
2982 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking krb5-config CFLAGS" >&5
2983 +printf %s "checking krb5-config CFLAGS... " >&6; }
2984 + SMART_CPPFLAGS=$($krb5_config --cflags)
2985 + SMART_CPPFLAGS=$(echo "$SMART_CPPFLAGS" | sed 's/-I[ ]*/-isystem /g')
2986 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$SMART_CPPFLAGS\"" >&5
2987 +printf "%s\n" "\"$SMART_CPPFLAGS\"" >&6; }
2989 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking krb5-config LDFLAGS" >&5
2990 +printf %s "checking krb5-config LDFLAGS... " >&6; }
2991 + SMART_LIBS=$($krb5_config --libs)
2992 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${SMART_LIBS}" >&5
2993 +printf "%s\n" "${SMART_LIBS}" >&6; }
2995 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking krb5-config reported version" >&5
2996 +printf %s "checking krb5-config reported version... " >&6; }
2997 + krb5_version_raw=$($krb5_config --version)
2999 + krb5_version=$(echo "$krb5_version_raw" | head -n 1 | \
3000 + awk '{split($(4),v,"."); if (v["3"] == "") v["3"] = "0"; print v["1"]v["2"]v["3"] }')
3001 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${krb5_version_raw} ($krb5_version)" >&5
3002 +printf "%s\n" "${krb5_version_raw} ($krb5_version)" >&6; }
3004 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking krb5-config reported vendor" >&5
3005 +printf %s "checking krb5-config reported vendor... " >&6; }
3006 + krb5_vendor=$($krb5_config --vendor)
3007 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${krb5_vendor}" >&5
3008 +printf "%s\n" "${krb5_vendor}" >&6; }
3010 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking canonical API type" >&5
3011 +printf %s "checking canonical API type... " >&6; }
3012 + if test "$krb5_vendor" = "Massachusetts Institute of Technology" || \
3013 + echo "$krb5_vendor" | grep -i 'MIT' > /dev/null 2>&1 || \
3014 + echo "$krb5_version_raw" | grep -i 'MIT' > /dev/null 2>&1 ; then
3015 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: MIT" >&5
3016 +printf "%s\n" "MIT" >&6; }
3017 + krb5_api_type='mit'
3019 - smart_try_dir="$rlm_krb5_dir/include"
3020 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: HEIMDAL" >&5
3021 +printf "%s\n" "HEIMDAL" >&6; }
3022 + krb5_api_type='heimdal'
3025 + smart_try_dir="$rlm_krb5_dir/include"
3029 ac_safe=`echo "krb5.h" | sed 'y%./+-%__pm%'`
3031 +if test "x" = "x"; then
3032 + sm_pkg=`echo "${ac_safe}" | sed 's/.h//;s/^lib//'`
3037 old_CPPFLAGS="$CPPFLAGS"
3039 -smart_include_dir="/usr/local/include /opt/include"
3040 +smart_include_dir="/usr/local/include /opt/include /usr/local/${sm_pkg}/include /opt/homebrew/include /opt/homebrew/opt/${sm_pkg}/include"
3045 for _prefix in $smart_prefix ""; do
3046 - for _dir in $smart_try_dir; do
3047 - _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
3049 +for _dir in $smart_try_dir; do
3050 + _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
3053 - for _dir in $smart_include_dir; do
3054 - _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
3056 +for _dir in $smart_include_dir; do
3057 + _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
3061 if test "x$_smart_try_dir" != "x"; then
3062 - for try in $_smart_try_dir; do
3063 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h in $try" >&5
3064 -$as_echo_n "checking for krb5.h in $try... " >&6; }
3065 - CPPFLAGS="-isystem $try $old_CPPFLAGS"
3066 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067 +for try in $_smart_try_dir; do
3068 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5.h in $try" >&5
3069 +printf %s "checking for krb5.h in $try... " >&6; }
3070 + CPPFLAGS="-isystem $try $old_CPPFLAGS"
3071 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072 /* end confdefs.h. */
3092 -if ac_fn_c_try_compile "$LINENO"; then :
3093 +if ac_fn_c_try_compile "$LINENO"
3096 - smart_include="-isystem $try"
3097 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3098 -$as_echo "yes" >&6; }
3100 + smart_include="-isystem $try"
3101 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3102 +printf "%s\n" "yes" >&6; }
3109 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 -$as_echo "no" >&6; }
3112 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 +printf "%s\n" "no" >&6; }
3116 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3118 - CPPFLAGS="$old_CPPFLAGS"
3119 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3121 +CPPFLAGS="$old_CPPFLAGS"
3124 if test "x$smart_include" = "x"; then
3125 - for _prefix in $smart_prefix; do
3126 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/krb5.h" >&5
3127 -$as_echo_n "checking for ${_prefix}/krb5.h... " >&6; }
3128 +for _prefix in $smart_prefix; do
3129 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/krb5.h" >&5
3130 +printf %s "checking for ${_prefix}/krb5.h... " >&6; }
3132 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3133 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134 /* end confdefs.h. */
3154 -if ac_fn_c_try_compile "$LINENO"; then :
3155 +if ac_fn_c_try_compile "$LINENO"
3158 - smart_include="-isystem ${_prefix}/"
3159 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3160 -$as_echo "yes" >&6; }
3162 + smart_include="-isystem ${_prefix}/"
3163 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3164 +printf "%s\n" "yes" >&6; }
3171 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 -$as_echo "no" >&6; }
3174 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175 +printf "%s\n" "no" >&6; }
3178 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3184 if test "x$smart_include" = "x"; then
3185 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
3186 -$as_echo_n "checking for krb5.h... " >&6; }
3187 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
3188 +printf %s "checking for krb5.h... " >&6; }
3190 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3212 -if ac_fn_c_try_compile "$LINENO"; then :
3213 +if ac_fn_c_try_compile "$LINENO"
3217 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3218 -$as_echo "yes" >&6; }
3221 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3222 +printf "%s\n" "yes" >&6; }
3229 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 -$as_echo "no" >&6; }
3232 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 +printf "%s\n" "no" >&6; }
3236 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3240 if test "x$smart_include" = "x"; then
3242 - for prefix in $smart_prefix; do
3245 -if test "x$LOCATE" != "x"; then
3247 - file="${_prefix}/${1}"
3249 - for x in `${LOCATE} $file 2>/dev/null`; do
3250 - base=`echo $x | sed "s%/${file}%%"`
3251 - if test "x$x" = "x$base"; then
3255 - dir=`${DIRNAME} $x 2>/dev/null`
3256 - exclude=`echo ${dir} | ${GREP} /home`
3257 - if test "x$exclude" != "x"; then
3261 - already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
3262 - if test "x$already" = "x"; then
3268 -eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
3271 +for try in $_smart_include_dir; do
3272 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5.h in $try" >&5
3273 +printf %s "checking for krb5.h in $try... " >&6; }
3274 + CPPFLAGS="-isystem $try $old_CPPFLAGS"
3275 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276 +/* end confdefs.h. */
3279 -if test "x$LOCATE" != "x"; then
3283 - for x in `${LOCATE} $file 2>/dev/null`; do
3284 - base=`echo $x | sed "s%/${file}%%"`
3285 - if test "x$x" = "x$base"; then
3290 - dir=`${DIRNAME} $x 2>/dev/null`
3291 - exclude=`echo ${dir} | ${GREP} /home`
3292 - if test "x$exclude" != "x"; then
3296 - already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
3297 - if test "x$already" = "x"; then
3303 -eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
3310 - for try in $_smart_include_dir; do
3311 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h in $try" >&5
3312 -$as_echo_n "checking for krb5.h in $try... " >&6; }
3313 - CPPFLAGS="-isystem $try $old_CPPFLAGS"
3314 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 -/* end confdefs.h. */
3327 -if ac_fn_c_try_compile "$LINENO"; then :
3328 +if ac_fn_c_try_compile "$LINENO"
3331 - smart_include="-isystem $try"
3332 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333 -$as_echo "yes" >&6; }
3335 + smart_include="-isystem $try"
3336 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3337 +printf "%s\n" "yes" >&6; }
3344 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 -$as_echo "no" >&6; }
3347 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 +printf "%s\n" "no" >&6; }
3351 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3353 - CPPFLAGS="$old_CPPFLAGS"
3354 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3356 +CPPFLAGS="$old_CPPFLAGS"
3359 if test "x$smart_include" != "x"; then
3360 - eval "ac_cv_header_$ac_safe=yes"
3361 - CPPFLAGS="$smart_include $old_CPPFLAGS"
3362 - SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
3363 +eval "ac_cv_header_$ac_safe=yes"
3364 +CPPFLAGS="$smart_include $old_CPPFLAGS"
3365 +SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
3370 - if test "$ac_cv_header_krb5_h" != "yes"; then
3371 - fail="$fail krb5.h"
3373 + if test "$ac_cv_header_krb5_h" != "yes"; then
3375 +fail="$fail krb5.h"
3378 - smart_try_dir="$rlm_krb5_dir/lib"
3382 + smart_try_dir="$rlm_krb5_dir/lib"
3385 sm_lib_safe=`echo "k5crypto" | sed 'y%./+-%__p_%'`
3386 sm_func_safe=`echo "krb5_encrypt_data" | sed 'y%./+-%__p_%'`
3388 +if test "x" = "x"; then
3389 + sm_pkg="${sm_lib_safe}"
3395 old_CPPFLAGS="$CPPFLAGS"
3399 +smart_lib_dir="/usr/local/lib /opt/lib /usr/local/${sm_pkg}/lib /opt/homebrew/lib /opt/homebrew/opt/${sm_pkg}/lib"
3401 if test "x$smart_try_dir" != "x"; then
3402 - for try in $smart_try_dir; do
3403 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_encrypt_data in -lk5crypto in $try" >&5
3404 -$as_echo_n "checking for krb5_encrypt_data in -lk5crypto in $try... " >&6; }
3405 - LIBS="-lk5crypto $old_LIBS"
3406 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3407 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 +for try in $smart_try_dir; do
3409 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_encrypt_data in -lk5crypto in $try" >&5
3410 +printf %s "checking for krb5_encrypt_data in -lk5crypto in $try... " >&6; }
3411 + LIBS="-lk5crypto $old_LIBS"
3412 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3413 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h. */
3415 extern char krb5_encrypt_data();
3425 -if ac_fn_c_try_link "$LINENO"; then :
3427 - smart_lib="-lk5crypto"
3428 - smart_ldflags="-L$try -Wl,-rpath,$try"
3429 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3430 -$as_echo "yes" >&6; }
3432 +if ac_fn_c_try_link "$LINENO"
3436 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 -$as_echo "no" >&6; }
3438 + smart_lib="-lk5crypto"
3439 + smart_ldflags="-L$try -Wl,-rpath,$try"
3440 + smart_ld_found="$try"
3441 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3442 +printf "%s\n" "yes" >&6; }
3446 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 +printf "%s\n" "no" >&6; }
3449 -rm -f core conftest.err conftest.$ac_objext \
3450 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
3451 conftest$ac_exeext conftest.$ac_ext
3454 - CPPFLAGS="$old_CPPFLAGS"
3457 +CPPFLAGS="$old_CPPFLAGS"
3460 if test "x$smart_lib" = "x"; then
3461 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_encrypt_data in -lk5crypto" >&5
3462 -$as_echo_n "checking for krb5_encrypt_data in -lk5crypto... " >&6; }
3463 - LIBS="-lk5crypto $old_LIBS"
3464 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_encrypt_data in -lk5crypto" >&5
3465 +printf %s "checking for krb5_encrypt_data in -lk5crypto... " >&6; }
3466 +LIBS="-lk5crypto $old_LIBS"
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3469 extern char krb5_encrypt_data();
3479 -if ac_fn_c_try_link "$LINENO"; then :
3480 +if ac_fn_c_try_link "$LINENO"
3483 - smart_lib="-lk5crypto"
3484 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3485 -$as_echo "yes" >&6; }
3488 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 -$as_echo "no" >&6; }
3490 + smart_lib="-lk5crypto"
3492 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3493 +printf "%s\n" "yes" >&6; }
3496 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 +printf "%s\n" "no" >&6; }
3499 -rm -f core conftest.err conftest.$ac_objext \
3500 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
3501 conftest$ac_exeext conftest.$ac_ext
3506 if test "x$smart_lib" = "x"; then
3509 -if test "x$LOCATE" != "x"; then
3511 - file=libk5crypto${libltdl_cv_shlibext}
3513 - for x in `${LOCATE} $file 2>/dev/null`; do
3514 - base=`echo $x | sed "s%/${file}%%"`
3515 - if test "x$x" = "x$base"; then
3519 - dir=`${DIRNAME} $x 2>/dev/null`
3520 - exclude=`echo ${dir} | ${GREP} /home`
3521 - if test "x$exclude" != "x"; then
3525 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3526 - if test "x$already" = "x"; then
3532 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3536 -if test "x$LOCATE" != "x"; then
3538 - file=libk5crypto.a
3540 - for x in `${LOCATE} $file 2>/dev/null`; do
3541 - base=`echo $x | sed "s%/${file}%%"`
3542 - if test "x$x" = "x$base"; then
3546 - dir=`${DIRNAME} $x 2>/dev/null`
3547 - exclude=`echo ${dir} | ${GREP} /home`
3548 - if test "x$exclude" != "x"; then
3552 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3553 - if test "x$already" = "x"; then
3559 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3562 - for try in $smart_lib_dir /usr/local/lib /opt/lib; do
3563 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_encrypt_data in -lk5crypto in $try" >&5
3564 -$as_echo_n "checking for krb5_encrypt_data in -lk5crypto in $try... " >&6; }
3565 - LIBS="-lk5crypto $old_LIBS"
3566 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3567 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 +for try in $smart_lib_dir; do
3569 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_encrypt_data in -lk5crypto in $try" >&5
3570 +printf %s "checking for krb5_encrypt_data in -lk5crypto in $try... " >&6; }
3571 + LIBS="-lk5crypto $old_LIBS"
3572 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3573 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3575 extern char krb5_encrypt_data();
3585 -if ac_fn_c_try_link "$LINENO"; then :
3587 - smart_lib="-lk5crypto"
3588 - smart_ldflags="-L$try -Wl,-rpath,$try"
3589 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3590 -$as_echo "yes" >&6; }
3592 +if ac_fn_c_try_link "$LINENO"
3596 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 -$as_echo "no" >&6; }
3598 + smart_lib="-lk5crypto"
3599 + smart_ldflags="-L$try -Wl,-rpath,$try"
3600 + smart_ld_found="$try"
3601 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3602 +printf "%s\n" "yes" >&6; }
3606 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 +printf "%s\n" "no" >&6; }
3609 -rm -f core conftest.err conftest.$ac_objext \
3610 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
3611 conftest$ac_exeext conftest.$ac_ext
3614 - CPPFLAGS="$old_CPPFLAGS"
3617 +CPPFLAGS="$old_CPPFLAGS"
3620 if test "x$smart_lib" != "x"; then
3621 - eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3622 - LIBS="$smart_ldflags $smart_lib $old_LIBS"
3623 - SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
3624 +eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3625 +LIBS="$smart_ldflags $smart_lib $old_LIBS"
3626 +SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
3627 +SMART_LD_FOUND="$smart_ld_found"
3630 - if test "x$ac_cv_lib_k5crypto_krb5_encrypt_data" = xyes; then
3631 - krb5libcrypto="-lk5crypto"
3633 + if test "x$ac_cv_lib_k5crypto_krb5_encrypt_data" = xyes; then
3634 + krb5libcrypto="-lk5crypto"
3637 - if test "x$krb5libcrypto" = x; then
3638 + if test "x$krb5libcrypto" = x; then
3641 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
3642 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
3644 +if test "x" = "x"; then
3645 + sm_pkg="${sm_lib_safe}"
3651 old_CPPFLAGS="$CPPFLAGS"
3655 +smart_lib_dir="/usr/local/lib /opt/lib /usr/local/${sm_pkg}/lib /opt/homebrew/lib /opt/homebrew/opt/${sm_pkg}/lib"
3657 if test "x$smart_try_dir" != "x"; then
3658 - for try in $smart_try_dir; do
3659 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
3660 -$as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
3661 - LIBS="-lcrypto $old_LIBS"
3662 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3663 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 +for try in $smart_try_dir; do
3665 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
3666 +printf %s "checking for DH_new in -lcrypto in $try... " >&6; }
3667 + LIBS="-lcrypto $old_LIBS"
3668 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3669 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670 /* end confdefs.h. */
3671 extern char DH_new();
3681 -if ac_fn_c_try_link "$LINENO"; then :
3683 - smart_lib="-lcrypto"
3684 - smart_ldflags="-L$try -Wl,-rpath,$try"
3685 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3686 -$as_echo "yes" >&6; }
3688 +if ac_fn_c_try_link "$LINENO"
3692 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 -$as_echo "no" >&6; }
3694 + smart_lib="-lcrypto"
3695 + smart_ldflags="-L$try -Wl,-rpath,$try"
3696 + smart_ld_found="$try"
3697 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3698 +printf "%s\n" "yes" >&6; }
3702 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703 +printf "%s\n" "no" >&6; }
3705 -rm -f core conftest.err conftest.$ac_objext \
3706 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
3707 conftest$ac_exeext conftest.$ac_ext
3710 - CPPFLAGS="$old_CPPFLAGS"
3713 +CPPFLAGS="$old_CPPFLAGS"
3716 if test "x$smart_lib" = "x"; then
3717 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
3718 -$as_echo_n "checking for DH_new in -lcrypto... " >&6; }
3719 - LIBS="-lcrypto $old_LIBS"
3720 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto" >&5
3721 +printf %s "checking for DH_new in -lcrypto... " >&6; }
3722 +LIBS="-lcrypto $old_LIBS"
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3725 extern char DH_new();
3735 -if ac_fn_c_try_link "$LINENO"; then :
3737 - smart_lib="-lcrypto"
3738 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3739 -$as_echo "yes" >&6; }
3740 +if ac_fn_c_try_link "$LINENO"
3744 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745 -$as_echo "no" >&6; }
3746 + smart_lib="-lcrypto"
3748 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3749 +printf "%s\n" "yes" >&6; }
3752 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753 +printf "%s\n" "no" >&6; }
3755 -rm -f core conftest.err conftest.$ac_objext \
3756 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
3757 conftest$ac_exeext conftest.$ac_ext
3762 if test "x$smart_lib" = "x"; then
3765 -if test "x$LOCATE" != "x"; then
3767 - file=libcrypto${libltdl_cv_shlibext}
3769 - for x in `${LOCATE} $file 2>/dev/null`; do
3770 - base=`echo $x | sed "s%/${file}%%"`
3771 - if test "x$x" = "x$base"; then
3775 - dir=`${DIRNAME} $x 2>/dev/null`
3776 - exclude=`echo ${dir} | ${GREP} /home`
3777 - if test "x$exclude" != "x"; then
3781 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3782 - if test "x$already" = "x"; then
3788 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3792 -if test "x$LOCATE" != "x"; then
3796 - for x in `${LOCATE} $file 2>/dev/null`; do
3797 - base=`echo $x | sed "s%/${file}%%"`
3798 - if test "x$x" = "x$base"; then
3802 - dir=`${DIRNAME} $x 2>/dev/null`
3803 - exclude=`echo ${dir} | ${GREP} /home`
3804 - if test "x$exclude" != "x"; then
3808 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3809 - if test "x$already" = "x"; then
3815 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3818 - for try in $smart_lib_dir /usr/local/lib /opt/lib; do
3819 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
3820 -$as_echo_n "checking for DH_new in -lcrypto in $try... " >&6; }
3821 - LIBS="-lcrypto $old_LIBS"
3822 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3823 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 +for try in $smart_lib_dir; do
3825 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DH_new in -lcrypto in $try" >&5
3826 +printf %s "checking for DH_new in -lcrypto in $try... " >&6; }
3827 + LIBS="-lcrypto $old_LIBS"
3828 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3829 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3831 extern char DH_new();
3841 -if ac_fn_c_try_link "$LINENO"; then :
3843 - smart_lib="-lcrypto"
3844 - smart_ldflags="-L$try -Wl,-rpath,$try"
3845 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3846 -$as_echo "yes" >&6; }
3848 +if ac_fn_c_try_link "$LINENO"
3852 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3853 -$as_echo "no" >&6; }
3854 + smart_lib="-lcrypto"
3855 + smart_ldflags="-L$try -Wl,-rpath,$try"
3856 + smart_ld_found="$try"
3857 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3858 +printf "%s\n" "yes" >&6; }
3862 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3863 +printf "%s\n" "no" >&6; }
3865 -rm -f core conftest.err conftest.$ac_objext \
3866 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
3867 conftest$ac_exeext conftest.$ac_ext
3870 - CPPFLAGS="$old_CPPFLAGS"
3873 +CPPFLAGS="$old_CPPFLAGS"
3876 if test "x$smart_lib" != "x"; then
3877 - eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3878 - LIBS="$smart_ldflags $smart_lib $old_LIBS"
3879 - SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
3880 +eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3881 +LIBS="$smart_ldflags $smart_lib $old_LIBS"
3882 +SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
3883 +SMART_LD_FOUND="$smart_ld_found"
3886 - if test "x$ac_cv_lib_crypto_DH_new" = xyes; then
3887 - krb5libcrypto="-lcrypto"
3889 + if test "x$ac_cv_lib_crypto_DH_new" = xyes; then
3890 + krb5libcrypto="-lcrypto"
3894 - if test "x$krb5libcrypto" = x; then
3895 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither krb5 'k5crypto' nor 'crypto' libraries are found!" >&5
3896 -$as_echo "$as_me: WARNING: neither krb5 'k5crypto' nor 'crypto' libraries are found!" >&2;}
3898 + if test "x$krb5libcrypto" = x; then
3899 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: neither krb5 'k5crypto' nor 'crypto' libraries are found!" >&5
3900 +printf "%s\n" "$as_me: WARNING: neither krb5 'k5crypto' nor 'crypto' libraries are found!" >&2;}
3905 sm_lib_safe=`echo "com_err" | sed 'y%./+-%__p_%'`
3906 sm_func_safe=`echo "set_com_err_hook" | sed 'y%./+-%__p_%'`
3908 +if test "x" = "x"; then
3909 + sm_pkg="${sm_lib_safe}"
3915 old_CPPFLAGS="$CPPFLAGS"
3919 +smart_lib_dir="/usr/local/lib /opt/lib /usr/local/${sm_pkg}/lib /opt/homebrew/lib /opt/homebrew/opt/${sm_pkg}/lib"
3921 if test "x$smart_try_dir" != "x"; then
3922 - for try in $smart_try_dir; do
3923 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for set_com_err_hook in -lcom_err in $try" >&5
3924 -$as_echo_n "checking for set_com_err_hook in -lcom_err in $try... " >&6; }
3925 - LIBS="-lcom_err $old_LIBS"
3926 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3927 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 +for try in $smart_try_dir; do
3929 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for set_com_err_hook in -lcom_err in $try" >&5
3930 +printf %s "checking for set_com_err_hook in -lcom_err in $try... " >&6; }
3931 + LIBS="-lcom_err $old_LIBS"
3932 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
3933 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3935 extern char set_com_err_hook();
3945 -if ac_fn_c_try_link "$LINENO"; then :
3946 +if ac_fn_c_try_link "$LINENO"
3949 - smart_lib="-lcom_err"
3950 - smart_ldflags="-L$try -Wl,-rpath,$try"
3951 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3952 -$as_echo "yes" >&6; }
3956 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3957 -$as_echo "no" >&6; }
3958 + smart_lib="-lcom_err"
3959 + smart_ldflags="-L$try -Wl,-rpath,$try"
3960 + smart_ld_found="$try"
3961 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3962 +printf "%s\n" "yes" >&6; }
3966 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 +printf "%s\n" "no" >&6; }
3969 -rm -f core conftest.err conftest.$ac_objext \
3970 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
3971 conftest$ac_exeext conftest.$ac_ext
3974 - CPPFLAGS="$old_CPPFLAGS"
3977 +CPPFLAGS="$old_CPPFLAGS"
3980 if test "x$smart_lib" = "x"; then
3981 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for set_com_err_hook in -lcom_err" >&5
3982 -$as_echo_n "checking for set_com_err_hook in -lcom_err... " >&6; }
3983 - LIBS="-lcom_err $old_LIBS"
3984 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for set_com_err_hook in -lcom_err" >&5
3985 +printf %s "checking for set_com_err_hook in -lcom_err... " >&6; }
3986 +LIBS="-lcom_err $old_LIBS"
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3989 extern char set_com_err_hook();
3999 -if ac_fn_c_try_link "$LINENO"; then :
4000 +if ac_fn_c_try_link "$LINENO"
4003 - smart_lib="-lcom_err"
4004 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4005 -$as_echo "yes" >&6; }
4008 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 -$as_echo "no" >&6; }
4010 + smart_lib="-lcom_err"
4012 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4013 +printf "%s\n" "yes" >&6; }
4016 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 +printf "%s\n" "no" >&6; }
4019 -rm -f core conftest.err conftest.$ac_objext \
4020 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
4021 conftest$ac_exeext conftest.$ac_ext
4026 if test "x$smart_lib" = "x"; then
4029 -if test "x$LOCATE" != "x"; then
4031 - file=libcom_err${libltdl_cv_shlibext}
4033 - for x in `${LOCATE} $file 2>/dev/null`; do
4034 - base=`echo $x | sed "s%/${file}%%"`
4035 - if test "x$x" = "x$base"; then
4039 - dir=`${DIRNAME} $x 2>/dev/null`
4040 - exclude=`echo ${dir} | ${GREP} /home`
4041 - if test "x$exclude" != "x"; then
4045 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
4046 - if test "x$already" = "x"; then
4052 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
4056 -if test "x$LOCATE" != "x"; then
4060 - for x in `${LOCATE} $file 2>/dev/null`; do
4061 - base=`echo $x | sed "s%/${file}%%"`
4062 - if test "x$x" = "x$base"; then
4066 - dir=`${DIRNAME} $x 2>/dev/null`
4067 - exclude=`echo ${dir} | ${GREP} /home`
4068 - if test "x$exclude" != "x"; then
4072 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
4073 - if test "x$already" = "x"; then
4079 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
4082 - for try in $smart_lib_dir /usr/local/lib /opt/lib; do
4083 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for set_com_err_hook in -lcom_err in $try" >&5
4084 -$as_echo_n "checking for set_com_err_hook in -lcom_err in $try... " >&6; }
4085 - LIBS="-lcom_err $old_LIBS"
4086 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4087 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 +for try in $smart_lib_dir; do
4089 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for set_com_err_hook in -lcom_err in $try" >&5
4090 +printf %s "checking for set_com_err_hook in -lcom_err in $try... " >&6; }
4091 + LIBS="-lcom_err $old_LIBS"
4092 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4093 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095 extern char set_com_err_hook();
4105 -if ac_fn_c_try_link "$LINENO"; then :
4107 - smart_lib="-lcom_err"
4108 - smart_ldflags="-L$try -Wl,-rpath,$try"
4109 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4110 -$as_echo "yes" >&6; }
4112 +if ac_fn_c_try_link "$LINENO"
4116 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 -$as_echo "no" >&6; }
4118 + smart_lib="-lcom_err"
4119 + smart_ldflags="-L$try -Wl,-rpath,$try"
4120 + smart_ld_found="$try"
4121 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4122 +printf "%s\n" "yes" >&6; }
4126 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 +printf "%s\n" "no" >&6; }
4129 -rm -f core conftest.err conftest.$ac_objext \
4130 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
4131 conftest$ac_exeext conftest.$ac_ext
4134 - CPPFLAGS="$old_CPPFLAGS"
4137 +CPPFLAGS="$old_CPPFLAGS"
4140 if test "x$smart_lib" != "x"; then
4141 - eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
4142 - LIBS="$smart_ldflags $smart_lib $old_LIBS"
4143 - SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
4144 +eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
4145 +LIBS="$smart_ldflags $smart_lib $old_LIBS"
4146 +SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
4147 +SMART_LD_FOUND="$smart_ld_found"
4150 - if test "x$ac_cv_lib_com_err_set_com_err_hook" != xyes; then
4151 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the comm_err library isn't found!" >&5
4152 -$as_echo "$as_me: WARNING: the comm_err library isn't found!" >&2;}
4154 + if test "x$ac_cv_lib_com_err_set_com_err_hook" != xyes; then
4155 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: the comm_err library isn't found!" >&5
4156 +printf "%s\n" "$as_me: WARNING: the comm_err library isn't found!" >&2;}
4161 sm_lib_safe=`echo "krb5" | sed 'y%./+-%__p_%'`
4162 sm_func_safe=`echo "krb5_verify_user_opt" | sed 'y%./+-%__p_%'`
4164 +if test "x" = "x"; then
4165 + sm_pkg="${sm_lib_safe}"
4171 old_CPPFLAGS="$CPPFLAGS"
4175 +smart_lib_dir="/usr/local/lib /opt/lib /usr/local/${sm_pkg}/lib /opt/homebrew/lib /opt/homebrew/opt/${sm_pkg}/lib"
4177 if test "x$smart_try_dir" != "x"; then
4178 - for try in $smart_try_dir; do
4179 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_verify_user_opt in -lkrb5 in $try" >&5
4180 -$as_echo_n "checking for krb5_verify_user_opt in -lkrb5 in $try... " >&6; }
4181 - LIBS="-lkrb5 $old_LIBS"
4182 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4183 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 +for try in $smart_try_dir; do
4185 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_verify_user_opt in -lkrb5 in $try" >&5
4186 +printf %s "checking for krb5_verify_user_opt in -lkrb5 in $try... " >&6; }
4187 + LIBS="-lkrb5 $old_LIBS"
4188 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4189 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191 extern char krb5_verify_user_opt();
4196 krb5_verify_user_opt()
4201 -if ac_fn_c_try_link "$LINENO"; then :
4203 - smart_lib="-lkrb5"
4204 - smart_ldflags="-L$try -Wl,-rpath,$try"
4205 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4206 -$as_echo "yes" >&6; }
4208 +if ac_fn_c_try_link "$LINENO"
4212 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 -$as_echo "no" >&6; }
4214 + smart_lib="-lkrb5"
4215 + smart_ldflags="-L$try -Wl,-rpath,$try"
4216 + smart_ld_found="$try"
4217 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4218 +printf "%s\n" "yes" >&6; }
4222 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223 +printf "%s\n" "no" >&6; }
4225 -rm -f core conftest.err conftest.$ac_objext \
4226 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
4227 conftest$ac_exeext conftest.$ac_ext
4230 - CPPFLAGS="$old_CPPFLAGS"
4233 +CPPFLAGS="$old_CPPFLAGS"
4236 if test "x$smart_lib" = "x"; then
4237 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_verify_user_opt in -lkrb5" >&5
4238 -$as_echo_n "checking for krb5_verify_user_opt in -lkrb5... " >&6; }
4239 - LIBS="-lkrb5 $old_LIBS"
4240 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_verify_user_opt in -lkrb5" >&5
4241 +printf %s "checking for krb5_verify_user_opt in -lkrb5... " >&6; }
4242 +LIBS="-lkrb5 $old_LIBS"
4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4245 extern char krb5_verify_user_opt();
4250 krb5_verify_user_opt()
4255 -if ac_fn_c_try_link "$LINENO"; then :
4256 +if ac_fn_c_try_link "$LINENO"
4259 - smart_lib="-lkrb5"
4260 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4261 -$as_echo "yes" >&6; }
4264 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265 -$as_echo "no" >&6; }
4266 + smart_lib="-lkrb5"
4268 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4269 +printf "%s\n" "yes" >&6; }
4272 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273 +printf "%s\n" "no" >&6; }
4275 -rm -f core conftest.err conftest.$ac_objext \
4276 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
4277 conftest$ac_exeext conftest.$ac_ext
4282 if test "x$smart_lib" = "x"; then
4285 -if test "x$LOCATE" != "x"; then
4287 - file=libkrb5${libltdl_cv_shlibext}
4289 - for x in `${LOCATE} $file 2>/dev/null`; do
4290 - base=`echo $x | sed "s%/${file}%%"`
4291 - if test "x$x" = "x$base"; then
4295 - dir=`${DIRNAME} $x 2>/dev/null`
4296 - exclude=`echo ${dir} | ${GREP} /home`
4297 - if test "x$exclude" != "x"; then
4301 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
4302 - if test "x$already" = "x"; then
4308 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
4312 -if test "x$LOCATE" != "x"; then
4316 - for x in `${LOCATE} $file 2>/dev/null`; do
4317 - base=`echo $x | sed "s%/${file}%%"`
4318 - if test "x$x" = "x$base"; then
4322 - dir=`${DIRNAME} $x 2>/dev/null`
4323 - exclude=`echo ${dir} | ${GREP} /home`
4324 - if test "x$exclude" != "x"; then
4328 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
4329 - if test "x$already" = "x"; then
4335 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
4338 - for try in $smart_lib_dir /usr/local/lib /opt/lib; do
4339 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_verify_user_opt in -lkrb5 in $try" >&5
4340 -$as_echo_n "checking for krb5_verify_user_opt in -lkrb5 in $try... " >&6; }
4341 - LIBS="-lkrb5 $old_LIBS"
4342 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4343 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 +for try in $smart_lib_dir; do
4345 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_verify_user_opt in -lkrb5 in $try" >&5
4346 +printf %s "checking for krb5_verify_user_opt in -lkrb5 in $try... " >&6; }
4347 + LIBS="-lkrb5 $old_LIBS"
4348 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4349 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4351 extern char krb5_verify_user_opt();
4356 krb5_verify_user_opt()
4361 -if ac_fn_c_try_link "$LINENO"; then :
4363 - smart_lib="-lkrb5"
4364 - smart_ldflags="-L$try -Wl,-rpath,$try"
4365 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4366 -$as_echo "yes" >&6; }
4368 +if ac_fn_c_try_link "$LINENO"
4372 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373 -$as_echo "no" >&6; }
4374 + smart_lib="-lkrb5"
4375 + smart_ldflags="-L$try -Wl,-rpath,$try"
4376 + smart_ld_found="$try"
4377 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4378 +printf "%s\n" "yes" >&6; }
4382 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 +printf "%s\n" "no" >&6; }
4385 -rm -f core conftest.err conftest.$ac_objext \
4386 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
4387 conftest$ac_exeext conftest.$ac_ext
4390 - CPPFLAGS="$old_CPPFLAGS"
4393 +CPPFLAGS="$old_CPPFLAGS"
4396 if test "x$smart_lib" != "x"; then
4397 - eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
4398 - LIBS="$smart_ldflags $smart_lib $old_LIBS"
4399 - SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
4400 +eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
4401 +LIBS="$smart_ldflags $smart_lib $old_LIBS"
4402 +SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
4403 +SMART_LD_FOUND="$smart_ld_found"
4406 - if test "x$ac_cv_lib_krb5_krb5_verify_user_opt" = xyes; then
4407 - krb5_api_type='heimdal'
4409 - krb5_api_type='mit'
4410 + if test "x$ac_cv_lib_krb5_krb5_verify_user_opt" = xyes; then
4411 + krb5_api_type='heimdal'
4413 + krb5_api_type='mit'
4417 sm_lib_safe=`echo "krb5" | sed 'y%./+-%__p_%'`
4418 sm_func_safe=`echo "krb5_get_init_creds_password" | sed 'y%./+-%__p_%'`
4420 +if test "x" = "x"; then
4421 + sm_pkg="${sm_lib_safe}"
4427 old_CPPFLAGS="$CPPFLAGS"
4431 +smart_lib_dir="/usr/local/lib /opt/lib /usr/local/${sm_pkg}/lib /opt/homebrew/lib /opt/homebrew/opt/${sm_pkg}/lib"
4433 if test "x$smart_try_dir" != "x"; then
4434 - for try in $smart_try_dir; do
4435 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_init_creds_password in -lkrb5 in $try" >&5
4436 -$as_echo_n "checking for krb5_get_init_creds_password in -lkrb5 in $try... " >&6; }
4437 - LIBS="-lkrb5 $old_LIBS"
4438 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4439 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 +for try in $smart_try_dir; do
4441 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_get_init_creds_password in -lkrb5 in $try" >&5
4442 +printf %s "checking for krb5_get_init_creds_password in -lkrb5 in $try... " >&6; }
4443 + LIBS="-lkrb5 $old_LIBS"
4444 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4445 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4447 extern char krb5_get_init_creds_password();
4452 krb5_get_init_creds_password()
4457 -if ac_fn_c_try_link "$LINENO"; then :
4459 - smart_lib="-lkrb5"
4460 - smart_ldflags="-L$try -Wl,-rpath,$try"
4461 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4462 -$as_echo "yes" >&6; }
4464 +if ac_fn_c_try_link "$LINENO"
4468 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4469 -$as_echo "no" >&6; }
4470 + smart_lib="-lkrb5"
4471 + smart_ldflags="-L$try -Wl,-rpath,$try"
4472 + smart_ld_found="$try"
4473 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4474 +printf "%s\n" "yes" >&6; }
4478 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 +printf "%s\n" "no" >&6; }
4481 -rm -f core conftest.err conftest.$ac_objext \
4482 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
4483 conftest$ac_exeext conftest.$ac_ext
4486 - CPPFLAGS="$old_CPPFLAGS"
4489 +CPPFLAGS="$old_CPPFLAGS"
4492 if test "x$smart_lib" = "x"; then
4493 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_init_creds_password in -lkrb5" >&5
4494 -$as_echo_n "checking for krb5_get_init_creds_password in -lkrb5... " >&6; }
4495 - LIBS="-lkrb5 $old_LIBS"
4496 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_get_init_creds_password in -lkrb5" >&5
4497 +printf %s "checking for krb5_get_init_creds_password in -lkrb5... " >&6; }
4498 +LIBS="-lkrb5 $old_LIBS"
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4501 extern char krb5_get_init_creds_password();
4506 krb5_get_init_creds_password()
4511 -if ac_fn_c_try_link "$LINENO"; then :
4512 +if ac_fn_c_try_link "$LINENO"
4515 - smart_lib="-lkrb5"
4516 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4517 -$as_echo "yes" >&6; }
4520 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521 -$as_echo "no" >&6; }
4522 + smart_lib="-lkrb5"
4524 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4525 +printf "%s\n" "yes" >&6; }
4528 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 +printf "%s\n" "no" >&6; }
4531 -rm -f core conftest.err conftest.$ac_objext \
4532 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
4533 conftest$ac_exeext conftest.$ac_ext
4538 if test "x$smart_lib" = "x"; then
4541 -if test "x$LOCATE" != "x"; then
4543 - file=libkrb5${libltdl_cv_shlibext}
4545 - for x in `${LOCATE} $file 2>/dev/null`; do
4546 - base=`echo $x | sed "s%/${file}%%"`
4547 - if test "x$x" = "x$base"; then
4551 - dir=`${DIRNAME} $x 2>/dev/null`
4552 - exclude=`echo ${dir} | ${GREP} /home`
4553 - if test "x$exclude" != "x"; then
4557 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
4558 - if test "x$already" = "x"; then
4564 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
4568 -if test "x$LOCATE" != "x"; then
4572 - for x in `${LOCATE} $file 2>/dev/null`; do
4573 - base=`echo $x | sed "s%/${file}%%"`
4574 - if test "x$x" = "x$base"; then
4578 - dir=`${DIRNAME} $x 2>/dev/null`
4579 - exclude=`echo ${dir} | ${GREP} /home`
4580 - if test "x$exclude" != "x"; then
4584 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
4585 - if test "x$already" = "x"; then
4591 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
4594 - for try in $smart_lib_dir /usr/local/lib /opt/lib; do
4595 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_get_init_creds_password in -lkrb5 in $try" >&5
4596 -$as_echo_n "checking for krb5_get_init_creds_password in -lkrb5 in $try... " >&6; }
4597 - LIBS="-lkrb5 $old_LIBS"
4598 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4599 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 +for try in $smart_lib_dir; do
4601 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_get_init_creds_password in -lkrb5 in $try" >&5
4602 +printf %s "checking for krb5_get_init_creds_password in -lkrb5 in $try... " >&6; }
4603 + LIBS="-lkrb5 $old_LIBS"
4604 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4605 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4607 extern char krb5_get_init_creds_password();
4612 krb5_get_init_creds_password()
4617 -if ac_fn_c_try_link "$LINENO"; then :
4619 - smart_lib="-lkrb5"
4620 - smart_ldflags="-L$try -Wl,-rpath,$try"
4621 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4622 -$as_echo "yes" >&6; }
4624 +if ac_fn_c_try_link "$LINENO"
4628 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 -$as_echo "no" >&6; }
4630 + smart_lib="-lkrb5"
4631 + smart_ldflags="-L$try -Wl,-rpath,$try"
4632 + smart_ld_found="$try"
4633 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4634 +printf "%s\n" "yes" >&6; }
4638 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639 +printf "%s\n" "no" >&6; }
4641 -rm -f core conftest.err conftest.$ac_objext \
4642 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
4643 conftest$ac_exeext conftest.$ac_ext
4646 - CPPFLAGS="$old_CPPFLAGS"
4649 +CPPFLAGS="$old_CPPFLAGS"
4652 if test "x$smart_lib" != "x"; then
4653 - eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
4654 - LIBS="$smart_ldflags $smart_lib $old_LIBS"
4655 - SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
4656 +eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
4657 +LIBS="$smart_ldflags $smart_lib $old_LIBS"
4658 +SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
4659 +SMART_LD_FOUND="$smart_ld_found"
4662 - if test "x$ac_cv_lib_krb5_krb5_get_init_creds_password" != xyes; then
4666 + if test "x$ac_cv_lib_krb5_krb5_get_init_creds_password" != xyes; then
4673 - LDFLAGS="${LDFLAGS} ${SMART_LIBS}"
4674 - CFLAGS="${CFLAGS} ${SMART_CPPFLAGS}"
4677 - for ac_func in krb5_get_error_message krb5_free_error_string krb5_free_error_message
4679 - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4680 -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4681 -if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4682 - cat >>confdefs.h <<_ACEOF
4683 -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4685 +LDFLAGS="${LDFLAGS} ${SMART_LIBS}"
4686 +CFLAGS="${CFLAGS} ${SMART_CPPFLAGS}"
4688 +ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
4689 +if test "x$ac_cv_func_krb5_get_error_message" = xyes
4691 + printf "%s\n" "#define HAVE_KRB5_GET_ERROR_MESSAGE 1" >>confdefs.h
4695 +ac_fn_c_check_func "$LINENO" "krb5_free_error_string" "ac_cv_func_krb5_free_error_string"
4696 +if test "x$ac_cv_func_krb5_free_error_string" = xyes
4698 + printf "%s\n" "#define HAVE_KRB5_FREE_ERROR_STRING 1" >>confdefs.h
4700 - if test "x$ac_cv_func_krb5_get_error_message" = xyes; then
4701 - krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_GET_ERROR_MESSAGE"
4703 - if test "x$ac_cv_func_krb5_free_error_message" = xyes; then
4704 - krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_FREE_ERROR_MESSAGE"
4706 - if test "x$ac_cv_func_krb5_free_error_string" = xyes; then
4707 - krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_FREE_ERROR_STRING"
4710 +ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
4711 +if test "x$ac_cv_func_krb5_free_error_message" = xyes
4713 + printf "%s\n" "#define HAVE_KRB5_FREE_ERROR_MESSAGE 1" >>confdefs.h
4715 - if test "$krb5threadsafe" != "no"; then
4719 +if test "x$ac_cv_func_krb5_get_error_message" = xyes; then
4720 + krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_GET_ERROR_MESSAGE"
4722 +if test "x$ac_cv_func_krb5_free_error_message" = xyes; then
4723 + krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_FREE_ERROR_MESSAGE"
4725 +if test "x$ac_cv_func_krb5_free_error_string" = xyes; then
4726 + krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_FREE_ERROR_STRING"
4729 +if test "$krb5threadsafe" != "no"; then
4734 sm_lib_safe=`echo "krb5" | sed 'y%./+-%__p_%'`
4735 sm_func_safe=`echo "krb5_is_thread_safe" | sed 'y%./+-%__p_%'`
4737 +if test "x" = "x"; then
4738 + sm_pkg="${sm_lib_safe}"
4744 old_CPPFLAGS="$CPPFLAGS"
4748 +smart_lib_dir="/usr/local/lib /opt/lib /usr/local/${sm_pkg}/lib /opt/homebrew/lib /opt/homebrew/opt/${sm_pkg}/lib"
4750 if test "x$smart_try_dir" != "x"; then
4751 - for try in $smart_try_dir; do
4752 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_is_thread_safe in -lkrb5 in $try" >&5
4753 -$as_echo_n "checking for krb5_is_thread_safe in -lkrb5 in $try... " >&6; }
4754 - LIBS="-lkrb5 $old_LIBS"
4755 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4756 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 +for try in $smart_try_dir; do
4758 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_is_thread_safe in -lkrb5 in $try" >&5
4759 +printf %s "checking for krb5_is_thread_safe in -lkrb5 in $try... " >&6; }
4760 + LIBS="-lkrb5 $old_LIBS"
4761 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4762 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4764 extern char krb5_is_thread_safe();
4769 krb5_is_thread_safe()
4774 -if ac_fn_c_try_link "$LINENO"; then :
4775 +if ac_fn_c_try_link "$LINENO"
4778 - smart_lib="-lkrb5"
4779 - smart_ldflags="-L$try -Wl,-rpath,$try"
4780 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4781 -$as_echo "yes" >&6; }
4785 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 -$as_echo "no" >&6; }
4787 + smart_lib="-lkrb5"
4788 + smart_ldflags="-L$try -Wl,-rpath,$try"
4789 + smart_ld_found="$try"
4790 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4791 +printf "%s\n" "yes" >&6; }
4795 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 +printf "%s\n" "no" >&6; }
4798 -rm -f core conftest.err conftest.$ac_objext \
4799 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
4800 conftest$ac_exeext conftest.$ac_ext
4803 - CPPFLAGS="$old_CPPFLAGS"
4806 +CPPFLAGS="$old_CPPFLAGS"
4809 if test "x$smart_lib" = "x"; then
4810 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_is_thread_safe in -lkrb5" >&5
4811 -$as_echo_n "checking for krb5_is_thread_safe in -lkrb5... " >&6; }
4812 - LIBS="-lkrb5 $old_LIBS"
4813 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_is_thread_safe in -lkrb5" >&5
4814 +printf %s "checking for krb5_is_thread_safe in -lkrb5... " >&6; }
4815 +LIBS="-lkrb5 $old_LIBS"
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4818 extern char krb5_is_thread_safe();
4823 krb5_is_thread_safe()
4828 -if ac_fn_c_try_link "$LINENO"; then :
4830 - smart_lib="-lkrb5"
4831 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4832 -$as_echo "yes" >&6; }
4833 +if ac_fn_c_try_link "$LINENO"
4837 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 -$as_echo "no" >&6; }
4839 + smart_lib="-lkrb5"
4841 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4842 +printf "%s\n" "yes" >&6; }
4845 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 +printf "%s\n" "no" >&6; }
4848 -rm -f core conftest.err conftest.$ac_objext \
4849 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
4850 conftest$ac_exeext conftest.$ac_ext
4855 if test "x$smart_lib" = "x"; then
4858 -if test "x$LOCATE" != "x"; then
4860 - file=libkrb5${libltdl_cv_shlibext}
4862 - for x in `${LOCATE} $file 2>/dev/null`; do
4863 - base=`echo $x | sed "s%/${file}%%"`
4864 - if test "x$x" = "x$base"; then
4868 - dir=`${DIRNAME} $x 2>/dev/null`
4869 - exclude=`echo ${dir} | ${GREP} /home`
4870 - if test "x$exclude" != "x"; then
4874 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
4875 - if test "x$already" = "x"; then
4881 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
4885 -if test "x$LOCATE" != "x"; then
4889 - for x in `${LOCATE} $file 2>/dev/null`; do
4890 - base=`echo $x | sed "s%/${file}%%"`
4891 - if test "x$x" = "x$base"; then
4895 - dir=`${DIRNAME} $x 2>/dev/null`
4896 - exclude=`echo ${dir} | ${GREP} /home`
4897 - if test "x$exclude" != "x"; then
4901 - already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
4902 - if test "x$already" = "x"; then
4908 -eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
4911 - for try in $smart_lib_dir /usr/local/lib /opt/lib; do
4912 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_is_thread_safe in -lkrb5 in $try" >&5
4913 -$as_echo_n "checking for krb5_is_thread_safe in -lkrb5 in $try... " >&6; }
4914 - LIBS="-lkrb5 $old_LIBS"
4915 - CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4916 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 +for try in $smart_lib_dir; do
4918 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_is_thread_safe in -lkrb5 in $try" >&5
4919 +printf %s "checking for krb5_is_thread_safe in -lkrb5 in $try... " >&6; }
4920 + LIBS="-lkrb5 $old_LIBS"
4921 + CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS"
4922 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4924 extern char krb5_is_thread_safe();
4929 krb5_is_thread_safe()
4934 -if ac_fn_c_try_link "$LINENO"; then :
4935 +if ac_fn_c_try_link "$LINENO"
4938 - smart_lib="-lkrb5"
4939 - smart_ldflags="-L$try -Wl,-rpath,$try"
4940 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4941 -$as_echo "yes" >&6; }
4945 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946 -$as_echo "no" >&6; }
4947 + smart_lib="-lkrb5"
4948 + smart_ldflags="-L$try -Wl,-rpath,$try"
4949 + smart_ld_found="$try"
4950 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4951 +printf "%s\n" "yes" >&6; }
4955 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956 +printf "%s\n" "no" >&6; }
4958 -rm -f core conftest.err conftest.$ac_objext \
4959 +rm -f core conftest.err conftest.$ac_objext conftest.beam \
4960 conftest$ac_exeext conftest.$ac_ext
4963 - CPPFLAGS="$old_CPPFLAGS"
4966 +CPPFLAGS="$old_CPPFLAGS"
4969 if test "x$smart_lib" != "x"; then
4970 - eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
4971 - LIBS="$smart_ldflags $smart_lib $old_LIBS"
4972 - SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
4973 +eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
4974 +LIBS="$smart_ldflags $smart_lib $old_LIBS"
4975 +SMART_LIBS="$smart_ldflags $smart_lib $SMART_LIBS"
4976 +SMART_LD_FOUND="$smart_ld_found"
4979 - if test "x$ac_cv_lib_krb5_krb5_is_thread_safe" = xyes; then
4980 - if test "$cross_compiling" = yes; then :
4981 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4982 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4983 -as_fn_error $? "cannot run test program while cross compiling
4984 -See \`config.log' for more details" "$LINENO" 5; }
4986 + if test "x$ac_cv_lib_krb5_krb5_is_thread_safe" = xyes; then
4987 + if test "$cross_compiling" = yes
4989 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cross compiling: not checking" >&5
4990 +printf "%s\n" "$as_me: WARNING: cross compiling: not checking" >&2;}
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4999 return krb5_is_thread_safe() ? 0 : 1
5004 -if ac_fn_c_try_run "$LINENO"; then :
5005 +if ac_fn_c_try_run "$LINENO"
5007 krb5threadsafe="-DKRB5_IS_THREAD_SAFE"
5009 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libkrb5 is not threadsafe" >&5
5010 -$as_echo "$as_me: WARNING: libkrb5 is not threadsafe" >&2;}
5012 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libkrb5 is not threadsafe" >&5
5013 +printf "%s\n" "$as_me: WARNING: libkrb5 is not threadsafe" >&2;}
5015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5016 conftest.$ac_objext conftest.beam conftest.$ac_ext
5027 - if test "$krb5_api_type" = "mit"; then
5028 +if test "$krb5_api_type" = "mit"; then
5031 ac_safe=`echo "com_err.h" | sed 'y%./+-%__pm%'`
5033 +if test "x" = "x"; then
5034 + sm_pkg=`echo "${ac_safe}" | sed 's/.h//;s/^lib//'`
5039 old_CPPFLAGS="$CPPFLAGS"
5041 -smart_include_dir="/usr/local/include /opt/include"
5042 +smart_include_dir="/usr/local/include /opt/include /usr/local/${sm_pkg}/include /opt/homebrew/include /opt/homebrew/opt/${sm_pkg}/include"
5047 for _prefix in $smart_prefix ""; do
5048 - for _dir in $smart_try_dir; do
5049 - _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
5051 +for _dir in $smart_try_dir; do
5052 + _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
5055 - for _dir in $smart_include_dir; do
5056 - _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
5058 +for _dir in $smart_include_dir; do
5059 + _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
5063 if test "x$_smart_try_dir" != "x"; then
5064 - for try in $_smart_try_dir; do
5065 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err.h in $try" >&5
5066 -$as_echo_n "checking for com_err.h in $try... " >&6; }
5067 - CPPFLAGS="-isystem $try $old_CPPFLAGS"
5068 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 +for try in $_smart_try_dir; do
5070 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for com_err.h in $try" >&5
5071 +printf %s "checking for com_err.h in $try... " >&6; }
5072 + CPPFLAGS="-isystem $try $old_CPPFLAGS"
5073 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5076 - #include <com_err.h>
5078 + #include <com_err.h>
5094 -if ac_fn_c_try_compile "$LINENO"; then :
5095 +if ac_fn_c_try_compile "$LINENO"
5098 - smart_include="-isystem $try"
5099 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5100 -$as_echo "yes" >&6; }
5102 + smart_include="-isystem $try"
5103 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5104 +printf "%s\n" "yes" >&6; }
5111 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112 -$as_echo "no" >&6; }
5114 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 +printf "%s\n" "no" >&6; }
5118 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5120 - CPPFLAGS="$old_CPPFLAGS"
5121 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5123 +CPPFLAGS="$old_CPPFLAGS"
5126 if test "x$smart_include" = "x"; then
5127 - for _prefix in $smart_prefix; do
5128 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/com_err.h" >&5
5129 -$as_echo_n "checking for ${_prefix}/com_err.h... " >&6; }
5130 +for _prefix in $smart_prefix; do
5131 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/com_err.h" >&5
5132 +printf %s "checking for ${_prefix}/com_err.h... " >&6; }
5134 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5138 - #include <com_err.h>
5140 + #include <com_err.h>
5156 -if ac_fn_c_try_compile "$LINENO"; then :
5157 +if ac_fn_c_try_compile "$LINENO"
5160 - smart_include="-isystem ${_prefix}/"
5161 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5162 -$as_echo "yes" >&6; }
5164 + smart_include="-isystem ${_prefix}/"
5165 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5166 +printf "%s\n" "yes" >&6; }
5173 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 -$as_echo "no" >&6; }
5176 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 +printf "%s\n" "no" >&6; }
5180 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5182 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5186 if test "x$smart_include" = "x"; then
5187 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err.h" >&5
5188 -$as_echo_n "checking for com_err.h... " >&6; }
5189 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for com_err.h" >&5
5190 +printf %s "checking for com_err.h... " >&6; }
5192 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5196 - #include <com_err.h>
5198 + #include <com_err.h>
5214 -if ac_fn_c_try_compile "$LINENO"; then :
5215 +if ac_fn_c_try_compile "$LINENO"
5219 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5220 -$as_echo "yes" >&6; }
5223 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5224 +printf "%s\n" "yes" >&6; }
5231 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 -$as_echo "no" >&6; }
5234 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235 +printf "%s\n" "no" >&6; }
5238 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5239 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5242 if test "x$smart_include" = "x"; then
5243 +for try in $_smart_include_dir; do
5244 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for com_err.h in $try" >&5
5245 +printf %s "checking for com_err.h in $try... " >&6; }
5246 + CPPFLAGS="-isystem $try $old_CPPFLAGS"
5247 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 +/* end confdefs.h. */
5250 - for prefix in $smart_prefix; do
5253 -if test "x$LOCATE" != "x"; then
5255 - file="${_prefix}/${1}"
5257 - for x in `${LOCATE} $file 2>/dev/null`; do
5258 - base=`echo $x | sed "s%/${file}%%"`
5259 - if test "x$x" = "x$base"; then
5263 - dir=`${DIRNAME} $x 2>/dev/null`
5264 - exclude=`echo ${dir} | ${GREP} /home`
5265 - if test "x$exclude" != "x"; then
5269 - already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
5270 - if test "x$already" = "x"; then
5276 -eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
5281 -if test "x$LOCATE" != "x"; then
5285 - for x in `${LOCATE} $file 2>/dev/null`; do
5286 - base=`echo $x | sed "s%/${file}%%"`
5287 - if test "x$x" = "x$base"; then
5291 - dir=`${DIRNAME} $x 2>/dev/null`
5292 - exclude=`echo ${dir} | ${GREP} /home`
5293 - if test "x$exclude" != "x"; then
5297 - already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
5298 - if test "x$already" = "x"; then
5303 + #include <com_err.h>
5305 -eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
5312 - for try in $_smart_include_dir; do
5313 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err.h in $try" >&5
5314 -$as_echo_n "checking for com_err.h in $try... " >&6; }
5315 - CPPFLAGS="-isystem $try $old_CPPFLAGS"
5316 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 -/* end confdefs.h. */
5319 - #include <com_err.h>
5329 -if ac_fn_c_try_compile "$LINENO"; then :
5330 +if ac_fn_c_try_compile "$LINENO"
5333 - smart_include="-isystem $try"
5334 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5335 -$as_echo "yes" >&6; }
5337 + smart_include="-isystem $try"
5338 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5339 +printf "%s\n" "yes" >&6; }
5346 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347 -$as_echo "no" >&6; }
5349 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 +printf "%s\n" "no" >&6; }
5353 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 - CPPFLAGS="$old_CPPFLAGS"
5356 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5358 +CPPFLAGS="$old_CPPFLAGS"
5361 if test "x$smart_include" != "x"; then
5362 - eval "ac_cv_header_$ac_safe=yes"
5363 - CPPFLAGS="$smart_include $old_CPPFLAGS"
5364 - SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
5365 +eval "ac_cv_header_$ac_safe=yes"
5366 +CPPFLAGS="$smart_include $old_CPPFLAGS"
5367 +SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
5372 - if test "$ac_cv_header_com_err_h" != "yes"; then
5373 + if test "$ac_cv_header_com_err_h" != "yes"; then
5376 ac_safe=`echo "et/com_err.h" | sed 'y%./+-%__pm%'`
5378 +if test "x" = "x"; then
5379 + sm_pkg=`echo "${ac_safe}" | sed 's/.h//;s/^lib//'`
5384 old_CPPFLAGS="$CPPFLAGS"
5386 -smart_include_dir="/usr/local/include /opt/include"
5387 +smart_include_dir="/usr/local/include /opt/include /usr/local/${sm_pkg}/include /opt/homebrew/include /opt/homebrew/opt/${sm_pkg}/include"
5392 for _prefix in $smart_prefix ""; do
5393 - for _dir in $smart_try_dir; do
5394 - _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
5396 +for _dir in $smart_try_dir; do
5397 + _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
5400 - for _dir in $smart_include_dir; do
5401 - _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
5403 +for _dir in $smart_include_dir; do
5404 + _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
5408 if test "x$_smart_try_dir" != "x"; then
5409 - for try in $_smart_try_dir; do
5410 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h in $try" >&5
5411 -$as_echo_n "checking for et/com_err.h in $try... " >&6; }
5412 - CPPFLAGS="-isystem $try $old_CPPFLAGS"
5413 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 +for try in $_smart_try_dir; do
5415 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h in $try" >&5
5416 +printf %s "checking for et/com_err.h in $try... " >&6; }
5417 + CPPFLAGS="-isystem $try $old_CPPFLAGS"
5418 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5421 - #include <et/com_err.h>
5423 + #include <et/com_err.h>
5439 -if ac_fn_c_try_compile "$LINENO"; then :
5440 +if ac_fn_c_try_compile "$LINENO"
5443 - smart_include="-isystem $try"
5444 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5445 -$as_echo "yes" >&6; }
5447 + smart_include="-isystem $try"
5448 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5449 +printf "%s\n" "yes" >&6; }
5456 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 -$as_echo "no" >&6; }
5459 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 +printf "%s\n" "no" >&6; }
5463 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 - CPPFLAGS="$old_CPPFLAGS"
5466 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5468 +CPPFLAGS="$old_CPPFLAGS"
5471 if test "x$smart_include" = "x"; then
5472 - for _prefix in $smart_prefix; do
5473 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/et/com_err.h" >&5
5474 -$as_echo_n "checking for ${_prefix}/et/com_err.h... " >&6; }
5475 +for _prefix in $smart_prefix; do
5476 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${_prefix}/et/com_err.h" >&5
5477 +printf %s "checking for ${_prefix}/et/com_err.h... " >&6; }
5479 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5483 - #include <et/com_err.h>
5485 + #include <et/com_err.h>
5501 -if ac_fn_c_try_compile "$LINENO"; then :
5502 +if ac_fn_c_try_compile "$LINENO"
5505 - smart_include="-isystem ${_prefix}/"
5506 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5507 -$as_echo "yes" >&6; }
5509 + smart_include="-isystem ${_prefix}/"
5510 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5511 +printf "%s\n" "yes" >&6; }
5518 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 -$as_echo "no" >&6; }
5521 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522 +printf "%s\n" "no" >&6; }
5525 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5531 if test "x$smart_include" = "x"; then
5532 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
5533 -$as_echo_n "checking for et/com_err.h... " >&6; }
5534 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
5535 +printf %s "checking for et/com_err.h... " >&6; }
5537 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5541 - #include <et/com_err.h>
5543 + #include <et/com_err.h>
5559 -if ac_fn_c_try_compile "$LINENO"; then :
5560 +if ac_fn_c_try_compile "$LINENO"
5564 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5565 -$as_echo "yes" >&6; }
5568 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5569 +printf "%s\n" "yes" >&6; }
5576 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 -$as_echo "no" >&6; }
5579 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 +printf "%s\n" "no" >&6; }
5583 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5587 if test "x$smart_include" = "x"; then
5588 +for try in $_smart_include_dir; do
5589 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h in $try" >&5
5590 +printf %s "checking for et/com_err.h in $try... " >&6; }
5591 + CPPFLAGS="-isystem $try $old_CPPFLAGS"
5592 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 +/* end confdefs.h. */
5595 - for prefix in $smart_prefix; do
5598 -if test "x$LOCATE" != "x"; then
5600 - file="${_prefix}/${1}"
5602 - for x in `${LOCATE} $file 2>/dev/null`; do
5603 - base=`echo $x | sed "s%/${file}%%"`
5604 - if test "x$x" = "x$base"; then
5608 - dir=`${DIRNAME} $x 2>/dev/null`
5609 - exclude=`echo ${dir} | ${GREP} /home`
5610 - if test "x$exclude" != "x"; then
5614 - already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
5615 - if test "x$already" = "x"; then
5621 -eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
5626 -if test "x$LOCATE" != "x"; then
5630 - for x in `${LOCATE} $file 2>/dev/null`; do
5631 - base=`echo $x | sed "s%/${file}%%"`
5632 - if test "x$x" = "x$base"; then
5636 - dir=`${DIRNAME} $x 2>/dev/null`
5637 - exclude=`echo ${dir} | ${GREP} /home`
5638 - if test "x$exclude" != "x"; then
5642 - already=`echo \$_smart_include_dir ${DIRS} | ${GREP} ${dir}`
5643 - if test "x$already" = "x"; then
5648 + #include <et/com_err.h>
5650 -eval "_smart_include_dir=\"\$_smart_include_dir $DIRS\""
5657 - for try in $_smart_include_dir; do
5658 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h in $try" >&5
5659 -$as_echo_n "checking for et/com_err.h in $try... " >&6; }
5660 - CPPFLAGS="-isystem $try $old_CPPFLAGS"
5661 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 -/* end confdefs.h. */
5664 - #include <et/com_err.h>
5674 -if ac_fn_c_try_compile "$LINENO"; then :
5675 +if ac_fn_c_try_compile "$LINENO"
5678 - smart_include="-isystem $try"
5679 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5680 -$as_echo "yes" >&6; }
5682 + smart_include="-isystem $try"
5683 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5684 +printf "%s\n" "yes" >&6; }
5691 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 -$as_echo "no" >&6; }
5694 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 +printf "%s\n" "no" >&6; }
5698 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700 - CPPFLAGS="$old_CPPFLAGS"
5701 +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5703 +CPPFLAGS="$old_CPPFLAGS"
5706 if test "x$smart_include" != "x"; then
5707 - eval "ac_cv_header_$ac_safe=yes"
5708 - CPPFLAGS="$smart_include $old_CPPFLAGS"
5709 - SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
5710 +eval "ac_cv_header_$ac_safe=yes"
5711 +CPPFLAGS="$smart_include $old_CPPFLAGS"
5712 +SMART_CPPFLAGS="$smart_include $SMART_CPPFLAGS"
5717 - if test "$ac_cv_header_et_com_err_h" != "yes"; then
5718 - fail="$fail com_err.h"
5720 - krb5mod_cflags="$krb5mod_cflags -DET_COMM_ERR "
5722 + if test "$ac_cv_header_et_com_err_h" != "yes"; then
5724 +fail="$fail com_err.h"
5727 + krb5mod_cflags="$krb5mod_cflags -DET_COMM_ERR "
5730 - krb5mod_cflags="$krb5mod_cflags -DHEIMDAL_KRB5"
5733 + krb5mod_cflags="$krb5mod_cflags -DHEIMDAL_KRB5"
5740 echo \*\*\* module rlm_krb5 is disabled.
5743 +fr_status="disabled"
5747 if test x"$fail" != x""; then
5751 if test x"${enable_strict_dependencies}" = x"yes"; then
5752 as_fn_error $? "set --without-rlm_krb5 to disable it explicitly." "$LINENO" 5
5754 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: silently not building rlm_krb5." >&5
5755 -$as_echo "$as_me: WARNING: silently not building rlm_krb5." >&2;}
5756 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FAILURE: rlm_krb5 requires: $fail." >&5
5757 -$as_echo "$as_me: WARNING: FAILURE: rlm_krb5 requires: $fail." >&2;};
5760 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: silently not building rlm_krb5." >&5
5761 +printf "%s\n" "$as_me: WARNING: silently not building rlm_krb5." >&2;}
5762 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: FAILURE: rlm_krb5 requires: $fail." >&5
5763 +printf "%s\n" "$as_me: WARNING: FAILURE: rlm_krb5 requires: $fail." >&2;};
5764 + fail="$(echo $fail)"
5767 +fr_status="skipping (requires $fail)"
5780 -mod_ldflags="$krb5mod_ldflags $krb5libcrypto $SMART_LIBS"
5781 -mod_cflags="$krb5mod_cflags $krb5threadsafe $SMART_CPPFLAGS"
5782 +if test x"$fr_features" = x""; then
5783 + $as_echo "$fr_status" > "config.report"
5785 + $as_echo_n "$fr_status ... " > "config.report"
5786 + cat "config.report.tmp" >> "config.report"
5789 +rm "config.report.tmp"
5794 - unset ac_cv_env_LIBS_set
5795 - unset ac_cv_env_LIBS_value
5796 +mod_ldflags="$krb5mod_ldflags $krb5libcrypto $SMART_LIBS"
5797 +mod_cflags="$krb5mod_cflags $krb5threadsafe $SMART_CPPFLAGS"
5799 - ac_config_files="$ac_config_files all.mk"
5803 +ac_config_files="$ac_config_files all.mk"
5805 cat >confcache <<\_ACEOF
5806 # This file is a shell script that caches the results of configure
5807 @@ -4863,8 +5169,8 @@ _ACEOF
5811 - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5812 -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5813 + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5814 +printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5817 _ | IFS | as_nl) ;; #(
5818 @@ -4894,15 +5200,15 @@ $as_echo "$as_me: WARNING: cache variabl
5822 - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5823 + s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
5825 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5827 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5828 if test -w "$cache_file"; then
5829 if test "x$cache_file" != "x/dev/null"; then
5830 - { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5831 -$as_echo "$as_me: updating cache $cache_file" >&6;}
5832 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5833 +printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
5834 if test ! -f "$cache_file" || test -h "$cache_file"; then
5835 cat confcache >"$cache_file"
5837 @@ -4916,8 +5222,8 @@ $as_echo "$as_me: updating cache $cache_
5841 - { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5842 -$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5843 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5844 +printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
5848 @@ -4970,7 +5276,7 @@ U=
5849 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5850 # 1. Remove the extension, and $U if already installed.
5851 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5852 - ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5853 + ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
5854 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5855 # will be set to the directory where LIBOBJS objects are built.
5856 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5857 @@ -4986,8 +5292,8 @@ LTLIBOBJS=$ac_ltlibobjs
5859 ac_clean_files_save=$ac_clean_files
5860 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5861 -{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5862 -$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5863 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5864 +printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
5866 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5868 @@ -5010,14 +5316,16 @@ cat >>$CONFIG_STATUS <<\_ASEOF || as_wri
5870 # Be more Bourne compatible
5871 DUALCASE=1; export DUALCASE # for MKS sh
5872 -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5874 +if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
5878 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5879 # is contrary to our usage. Disable this feature.
5880 alias -g '${1+"$@"}'='"$@"'
5881 setopt NO_GLOB_SUBST
5884 case `(set -o) 2>/dev/null` in #(
5887 @@ -5027,46 +5335,46 @@ esac
5892 +# Reset variables that may have inherited troublesome values from
5895 +# IFS needs to be set, to space, tab, and newline, in precisely that order.
5896 +# (If _AS_PATH_WALK were called with IFS unset, it would have the
5897 +# side effect of setting IFS to empty, thus disabling word splitting.)
5898 +# Quoting is to prevent editors from complaining about space-tab.
5902 -# Printing a long string crashes Solaris 7 /usr/bin/printf.
5903 -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5904 -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5905 -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5906 -# Prefer a ksh shell builtin over an external printf program on Solaris,
5907 -# but without wasting forks for bash or zsh.
5908 -if test -z "$BASH_VERSION$ZSH_VERSION" \
5909 - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5910 - as_echo='print -r --'
5911 - as_echo_n='print -rn --'
5912 -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5913 - as_echo='printf %s\n'
5914 - as_echo_n='printf %s'
5916 - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5917 - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5918 - as_echo_n='/usr/ucb/echo -n'
5920 - as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5921 - as_echo_n_body='eval
5925 - expr "X$arg" : "X\\(.*\\)$as_nl";
5926 - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5928 - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5930 - export as_echo_n_body
5931 - as_echo_n='sh -c $as_echo_n_body as_echo'
5933 - export as_echo_body
5934 - as_echo='sh -c $as_echo_body as_echo'
5942 +# Ensure predictable behavior from utilities with locale-dependent output.
5948 +# We cannot yet rely on "unset" to work, but we need these variables
5949 +# to be unset--not just set to an empty or harmless value--now, to
5950 +# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
5951 +# also avoids known problems related to "unset" and subshell syntax
5952 +# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
5953 +for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
5954 +do eval test \${$as_var+y} \
5955 + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5958 +# Ensure that fds 0, 1, and 2 are open.
5959 +if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
5960 +if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
5961 +if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
5963 # The user is always right.
5964 -if test "${PATH_SEPARATOR+set}" != set; then
5965 +if ${PATH_SEPARATOR+false} :; then
5967 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5968 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5969 @@ -5075,13 +5383,6 @@ if test "${PATH_SEPARATOR+set}" != set;
5974 -# We need space, tab and new line, in precisely that order. Quoting is
5975 -# there to prevent editors from complaining about space-tab.
5976 -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5977 -# splitting by setting IFS to empty value.)
5980 # Find who we are. Look in the path if we contain no directory separator.
5983 @@ -5090,8 +5391,12 @@ case $0 in #((
5987 - test -z "$as_dir" && as_dir=.
5988 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5989 + case $as_dir in #(((
5992 + *) as_dir=$as_dir/ ;;
5994 + test -r "$as_dir$0" && as_myself=$as_dir$0 && break
5998 @@ -5103,30 +5408,10 @@ if test "x$as_myself" = x; then
6001 if test ! -f "$as_myself"; then
6002 - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6003 + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6007 -# Unset variables that we do not need and which cause bugs (e.g. in
6008 -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6009 -# suppresses any "Segmentation fault" message there. '((' could
6010 -# trigger a bug in pdksh 5.2.14.
6011 -for as_var in BASH_ENV ENV MAIL MAILPATH
6012 -do eval test x\${$as_var+set} = xset \
6013 - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6026 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6029 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6030 @@ -5139,13 +5424,14 @@ as_fn_error ()
6031 as_status=$1; test $as_status -eq 0 && as_status=1
6033 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6034 - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6035 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6037 - $as_echo "$as_me: error: $2" >&2
6038 + printf "%s\n" "$as_me: error: $2" >&2
6039 as_fn_exit $as_status
6044 # as_fn_set_status STATUS
6045 # -----------------------
6046 # Set $? to STATUS, without forking.
6047 @@ -5172,18 +5458,20 @@ as_fn_unset ()
6048 { eval $1=; unset $1;}
6050 as_unset=as_fn_unset
6052 # as_fn_append VAR VALUE
6053 # ----------------------
6054 # Append the text in VALUE to the end of the definition contained in VAR. Take
6055 # advantage of any shell optimizations that allow amortized linear growth over
6056 # repeated appends, instead of the typical quadratic growth present in naive
6058 -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6059 +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
6061 eval 'as_fn_append ()
6070 @@ -5195,12 +5483,13 @@ fi # as_fn_append
6071 # Perform arithmetic evaluation on the ARGs, and store the result in the
6072 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6073 # must be portable across $(()) and expr.
6074 -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6075 +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
6077 eval 'as_fn_arith ()
6085 as_val=`expr "$@" || test $? -eq 1`
6086 @@ -5231,7 +5520,7 @@ as_me=`$as_basename -- "$0" ||
6087 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6088 X"$0" : 'X\(//\)$' \| \
6089 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6091 +printf "%s\n" X/"$0" |
6092 sed '/^.*\/\([^/][^/]*\)\/*$/{
6095 @@ -5253,6 +5542,10 @@ as_cr_Letters=$as_cr_letters$as_cr_LETTE
6096 as_cr_digits='0123456789'
6097 as_cr_alnum=$as_cr_Letters$as_cr_digits
6100 +# Determine whether it's possible to make 'echo' print without a newline.
6101 +# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
6102 +# for compatibility with existing Makefiles.
6103 ECHO_C= ECHO_N= ECHO_T=
6104 case `echo -n x` in #(((((
6106 @@ -5266,6 +5559,12 @@ case `echo -n x` in #(((((
6110 +# For backward compatibility with old third-party macros, we provide
6111 +# the shell variables $as_echo and $as_echo_n. New code should use
6112 +# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
6113 +as_echo='printf %s\n'
6114 +as_echo_n='printf %s'
6116 rm -f conf$$ conf$$.exe conf$$.file
6117 if test -d conf$$.dir; then
6118 rm -f conf$$.dir/conf$$.file
6119 @@ -5307,7 +5606,7 @@ as_fn_mkdir_p ()
6123 - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6124 + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6125 *) as_qdir=$as_dir;;
6127 as_dirs="'$as_qdir' $as_dirs"
6128 @@ -5316,7 +5615,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/
6129 X"$as_dir" : 'X\(//\)[^/]' \| \
6130 X"$as_dir" : 'X\(//\)$' \| \
6131 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6132 -$as_echo X"$as_dir" |
6133 +printf "%s\n" X"$as_dir" |
6134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6137 @@ -5379,7 +5678,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri
6138 # values after options handling.
6140 This file was extended by $as_me, which was
6141 -generated by GNU Autoconf 2.69. Invocation command line was
6142 +generated by GNU Autoconf 2.71. Invocation command line was
6144 CONFIG_FILES = $CONFIG_FILES
6145 CONFIG_HEADERS = $CONFIG_HEADERS
6146 @@ -5428,14 +5727,16 @@ $config_files
6147 Report bugs to the package provider."
6150 +ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
6151 +ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
6152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6153 -ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6154 +ac_cs_config='$ac_cs_config_escaped'
6157 -configured by $0, generated by GNU Autoconf 2.69,
6158 +configured by $0, generated by GNU Autoconf 2.71,
6159 with options \\"\$ac_cs_config\\"
6161 -Copyright (C) 2012 Free Software Foundation, Inc.
6162 +Copyright (C) 2021 Free Software Foundation, Inc.
6163 This config.status script is free software; the Free Software Foundation
6164 gives unlimited permission to copy, distribute and modify it."
6166 @@ -5472,21 +5773,21 @@ do
6167 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6169 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6170 - $as_echo "$ac_cs_version"; exit ;;
6171 + printf "%s\n" "$ac_cs_version"; exit ;;
6172 --config | --confi | --conf | --con | --co | --c )
6173 - $as_echo "$ac_cs_config"; exit ;;
6174 + printf "%s\n" "$ac_cs_config"; exit ;;
6175 --debug | --debu | --deb | --de | --d | -d )
6177 --file | --fil | --fi | --f )
6180 - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6181 + *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6182 '') as_fn_error $? "missing file argument" ;;
6184 as_fn_append CONFIG_FILES " '$ac_optarg'"
6185 ac_need_defaults=false;;
6186 --he | --h | --help | --hel | -h )
6187 - $as_echo "$ac_cs_usage"; exit ;;
6188 + printf "%s\n" "$ac_cs_usage"; exit ;;
6189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6190 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6192 @@ -5514,7 +5815,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
6193 if \$ac_cs_recheck; then
6194 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6196 - \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6197 + \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
6198 CONFIG_SHELL='$SHELL'
6201 @@ -5528,7 +5829,7 @@ exec 5>>config.log
6202 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6203 ## Running $as_me. ##
6205 - $as_echo "$ac_log"
6206 + printf "%s\n" "$ac_log"
6210 @@ -5553,7 +5854,7 @@ done
6211 # We use the long form for the default assignment because of an extremely
6212 # bizarre bug on SunOS 4.1.3.
6213 if $ac_need_defaults; then
6214 - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6215 + test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
6218 # Have a temporary directory for convenience. Make it in the build tree
6219 @@ -5781,7 +6082,7 @@ do
6221 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6223 - case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6224 + case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6225 as_fn_append ac_file_inputs " '$ac_f'"
6228 @@ -5789,17 +6090,17 @@ do
6229 # use $as_me), people would be surprised to read:
6230 # /* config.h. Generated by config.status. */
6231 configure_input='Generated from '`
6232 - $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6233 + printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6235 if test x"$ac_file" != x-; then
6236 configure_input="$ac_file. $configure_input"
6237 - { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6238 -$as_echo "$as_me: creating $ac_file" >&6;}
6239 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6240 +printf "%s\n" "$as_me: creating $ac_file" >&6;}
6242 # Neutralize special characters interpreted by sed in replacement strings.
6243 case $configure_input in #(
6244 *\&* | *\|* | *\\* )
6245 - ac_sed_conf_input=`$as_echo "$configure_input" |
6246 + ac_sed_conf_input=`printf "%s\n" "$configure_input" |
6247 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6248 *) ac_sed_conf_input=$configure_input;;
6250 @@ -5816,7 +6117,7 @@ $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^
6251 X"$ac_file" : 'X\(//\)[^/]' \| \
6252 X"$ac_file" : 'X\(//\)$' \| \
6253 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6254 -$as_echo X"$ac_file" |
6255 +printf "%s\n" X"$ac_file" |
6256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6259 @@ -5840,9 +6141,9 @@ $as_echo X"$ac_file" |
6261 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6263 - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6264 + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
6265 # A ".." for each directory in $ac_dir_suffix.
6266 - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6267 + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6268 case $ac_top_builddir_sub in
6269 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6270 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6271 @@ -5895,8 +6196,8 @@ ac_sed_dataroot='
6272 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6273 *datarootdir*) ac_datarootdir_seen=yes;;
6274 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6275 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6276 -$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6277 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6278 +printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6281 ac_datarootdir_hack='
6282 @@ -5938,9 +6239,9 @@ test -z "$ac_datarootdir_hack$ac_dataroo
6283 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6284 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6285 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6286 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6287 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6288 which seems to be undefined. Please make sure it is defined" >&5
6289 -$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6290 +printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6291 which seems to be undefined. Please make sure it is defined" >&2;}
6293 rm -f "$ac_tmp/stdin"
6294 @@ -5987,8 +6288,8 @@ if test "$no_create" != yes; then
6295 $ac_cs_success || as_fn_exit 1
6297 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6298 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6299 -$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6300 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6301 +printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6305 --- a/src/modules/rlm_krb5/configure.ac
6306 +++ b/src/modules/rlm_krb5/configure.ac
6309 -AC_INIT(rlm_krb5.c)
6312 +AC_CONFIG_SRCDIR([rlm_krb5.c])
6313 AC_REVISION($Revision$)
6314 -AC_DEFUN(modname,[rlm_krb5])
6315 +FR_INIT_MODULE([rlm_krb5], [Kerberos support])
6317 -AC_ARG_WITH([]modname,
6318 -[ --with-[]modname build []modname. (default=yes)])
6319 +FR_MODULE_START_TESTS
6321 -if test x$with_[]modname != xno; then
6328 - dnl extra argument: --with-rlm-krb5-dir
6330 - AC_ARG_WITH(rlm-krb5-dir,
6331 - [ --with-rlm-krb5-dir=DIR Directory for krb5 files []],
6332 - [ case "$withval" in
6334 +dnl extra argument: --with-rlm-krb5-dir
6336 +AC_ARG_WITH(rlm-krb5-dir,
6337 + [AS_HELP_STRING([--with-rlm-krb5-dir=DIR],
6338 + [directory where krb5 files are installed])],
6339 + [case "$withval" in
6341 AC_MSG_ERROR(Need rlm-krb5-dir)
6348 rlm_krb5_dir="$withval"
6354 - AC_PATH_PROG(krb5_config, krb5-config, not-found, [${rlm_krb5_dir}/bin:${PATH}:/usr/bin:/usr/local/bin])
6356 - dnl # If we can find krb5-config we can get the version of the library and determine
6357 - dnl # whether it's safe to enable threading.
6359 - if test "$krb5_config" != 'not-found'; then
6360 - AC_MSG_CHECKING([krb5-config CFLAGS])
6361 - SMART_CPPFLAGS=$($krb5_config --cflags)
6362 - SMART_CPPFLAGS=[$(echo "$SMART_CPPFLAGS" | sed 's/-I[ ]*/-isystem /g')]
6363 - AC_MSG_RESULT("$SMART_CPPFLAGS")
6365 - AC_MSG_CHECKING([krb5-config LDFLAGS])
6366 - SMART_LIBS=$($krb5_config --libs)
6367 - AC_MSG_RESULT(${SMART_LIBS})
6369 - AC_MSG_CHECKING([krb5-config reported version])
6370 - krb5_version_raw=$($krb5_config --version)
6372 - dnl # AWK originally from from https://github.com/hpc/lustre
6373 - krb5_version=$(echo "$krb5_version_raw" | head -n 1 | \
6374 - awk '{split($(4),v,"."); if (v@<:@"3"@:>@ = "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }')
6375 - AC_MSG_RESULT([${krb5_version_raw} ($krb5_version)])
6377 - AC_MSG_CHECKING([krb5-config reported vendor])
6378 - krb5_vendor=$($krb5_config --vendor)
6379 - AC_MSG_RESULT([${krb5_vendor}])
6381 - AC_MSG_CHECKING([canonical API type])
6382 - if test "$krb5_vendor" = "Massachusetts Institute of Technology" || \
6383 - echo "$krb5_vendor" | grep -i 'MIT' > /dev/null 2>&1 || \
6384 - echo "$krb5_version_raw" | grep -i 'MIT' > /dev/null 2>&1 ; then
6385 - AC_MSG_RESULT([MIT])
6386 - krb5_api_type='mit'
6388 - AC_MSG_RESULT([HEIMDAL])
6389 - krb5_api_type='heimdal'
6391 +AC_PATH_PROG(krb5_config, krb5-config, not-found, [${rlm_krb5_dir}/bin:${PATH}:/usr/bin:/usr/local/bin])
6393 +dnl # If we can find krb5-config we can get the version of the library and determine
6394 +dnl # whether it's safe to enable threading.
6396 +if test "$krb5_config" != 'not-found'; then
6397 + AC_MSG_CHECKING([krb5-config CFLAGS])
6398 + SMART_CPPFLAGS=$($krb5_config --cflags)
6399 + SMART_CPPFLAGS=[$(echo "$SMART_CPPFLAGS" | sed 's/-I[ ]*/-isystem /g')]
6400 + AC_MSG_RESULT("$SMART_CPPFLAGS")
6402 + AC_MSG_CHECKING([krb5-config LDFLAGS])
6403 + SMART_LIBS=$($krb5_config --libs)
6404 + AC_MSG_RESULT(${SMART_LIBS})
6406 + AC_MSG_CHECKING([krb5-config reported version])
6407 + krb5_version_raw=$($krb5_config --version)
6409 + dnl # AWK originally from from https://github.com/hpc/lustre
6410 + krb5_version=$(echo "$krb5_version_raw" | head -n 1 | \
6411 + awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }')
6412 + AC_MSG_RESULT([${krb5_version_raw} ($krb5_version)])
6414 + AC_MSG_CHECKING([krb5-config reported vendor])
6415 + krb5_vendor=$($krb5_config --vendor)
6416 + AC_MSG_RESULT([${krb5_vendor}])
6418 + AC_MSG_CHECKING([canonical API type])
6419 + if test "$krb5_vendor" = "Massachusetts Institute of Technology" || \
6420 + echo "$krb5_vendor" | grep -i 'MIT' > /dev/null 2>&1 || \
6421 + echo "$krb5_version_raw" | grep -i 'MIT' > /dev/null 2>&1 ; then
6422 + AC_MSG_RESULT([MIT])
6423 + krb5_api_type='mit'
6425 - smart_try_dir="$rlm_krb5_dir/include"
6426 - FR_SMART_CHECK_INCLUDE(krb5.h)
6427 - if test "$ac_cv_header_krb5_h" != "yes"; then
6428 - fail="$fail krb5.h"
6432 - smart_try_dir="$rlm_krb5_dir/lib"
6433 - FR_SMART_CHECK_LIB(k5crypto, krb5_encrypt_data)
6434 - if test "x$ac_cv_lib_k5crypto_krb5_encrypt_data" = xyes; then
6435 - krb5libcrypto="-lk5crypto"
6438 - if test "x$krb5libcrypto" = x; then
6439 - FR_SMART_CHECK_LIB(crypto, DH_new)
6440 - if test "x$ac_cv_lib_crypto_DH_new" = xyes; then
6441 - krb5libcrypto="-lcrypto"
6445 - if test "x$krb5libcrypto" = x; then
6446 - AC_MSG_WARN([neither krb5 'k5crypto' nor 'crypto' libraries are found!])
6449 - FR_SMART_CHECK_LIB(com_err, set_com_err_hook)
6450 - if test "x$ac_cv_lib_com_err_set_com_err_hook" != xyes; then
6451 - AC_MSG_WARN([the comm_err library isn't found!])
6453 + AC_MSG_RESULT([HEIMDAL])
6454 + krb5_api_type='heimdal'
6457 + smart_try_dir="$rlm_krb5_dir/include"
6458 + FR_SMART_CHECK_INCLUDE(krb5.h)
6459 + if test "$ac_cv_header_krb5_h" != "yes"; then
6460 + FR_MODULE_FAIL([krb5.h])
6464 - dnl # Only the heimdal version of the library has this function
6466 - FR_SMART_CHECK_LIB(krb5, krb5_verify_user_opt)
6467 - if test "x$ac_cv_lib_krb5_krb5_verify_user_opt" = xyes; then
6468 - krb5_api_type='heimdal'
6470 - krb5_api_type='mit'
6472 + smart_try_dir="$rlm_krb5_dir/lib"
6473 + FR_SMART_CHECK_LIB(k5crypto, krb5_encrypt_data)
6474 + if test "x$ac_cv_lib_k5crypto_krb5_encrypt_data" = xyes; then
6475 + krb5libcrypto="-lk5crypto"
6478 - FR_SMART_CHECK_LIB(krb5, krb5_get_init_creds_password)
6479 - if test "x$ac_cv_lib_krb5_krb5_get_init_creds_password" != xyes; then
6482 + if test "x$krb5libcrypto" = x; then
6483 + FR_SMART_CHECK_LIB(crypto, DH_new)
6484 + if test "x$ac_cv_lib_crypto_DH_new" = xyes; then
6485 + krb5libcrypto="-lcrypto"
6491 - dnl # Need to ensure the test program(s) link against the right library
6493 - LDFLAGS="${LDFLAGS} ${SMART_LIBS}"
6494 - CFLAGS="${CFLAGS} ${SMART_CPPFLAGS}"
6497 - dnl # Check how to free things returned by krb5_get_error_message
6499 - AC_CHECK_FUNCS([krb5_get_error_message krb5_free_error_string krb5_free_error_message])
6500 - if test "x$ac_cv_func_krb5_get_error_message" = xyes; then
6501 - krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_GET_ERROR_MESSAGE"
6503 - if test "x$ac_cv_func_krb5_free_error_message" = xyes; then
6504 - krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_FREE_ERROR_MESSAGE"
6505 + if test "x$krb5libcrypto" = x; then
6506 + AC_MSG_WARN([neither krb5 'k5crypto' nor 'crypto' libraries are found!])
6508 - if test "x$ac_cv_func_krb5_free_error_string" = xyes; then
6509 - krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_FREE_ERROR_STRING"
6511 + FR_SMART_CHECK_LIB(com_err, set_com_err_hook)
6512 + if test "x$ac_cv_lib_com_err_set_com_err_hook" != xyes; then
6513 + AC_MSG_WARN([the comm_err library isn't found!])
6517 - dnl # Only check if version checks have not found kerberos to be thread unsafe
6518 + dnl # Only the heimdal version of the library has this function
6520 - if test "$krb5threadsafe" != "no"; then
6522 + FR_SMART_CHECK_LIB(krb5, krb5_verify_user_opt)
6523 + if test "x$ac_cv_lib_krb5_krb5_verify_user_opt" = xyes; then
6524 + krb5_api_type='heimdal'
6526 + krb5_api_type='mit'
6528 - FR_SMART_CHECK_LIB(krb5, krb5_is_thread_safe)
6529 - if test "x$ac_cv_lib_krb5_krb5_is_thread_safe" = xyes; then
6530 - AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <krb5.h>]], [[return krb5_is_thread_safe() ? 0 : 1]])],
6531 - [krb5threadsafe="-DKRB5_IS_THREAD_SAFE"], [AC_MSG_WARN([[libkrb5 is not threadsafe]])])
6532 + FR_SMART_CHECK_LIB(krb5, krb5_get_init_creds_password)
6533 + if test "x$ac_cv_lib_krb5_krb5_get_init_creds_password" != xyes; then
6534 + FR_MODULE_FAIL([krb5])
6540 - if test "$krb5_api_type" = "mit"; then
6542 - dnl # This lives in different places depending on the distro
6544 - FR_SMART_CHECK_INCLUDE([com_err.h])
6545 - if test "$ac_cv_header_com_err_h" != "yes"; then
6546 - FR_SMART_CHECK_INCLUDE([et/com_err.h])
6547 - if test "$ac_cv_header_et_com_err_h" != "yes"; then
6548 - fail="$fail com_err.h"
6550 - krb5mod_cflags="$krb5mod_cflags -DET_COMM_ERR "
6554 - krb5mod_cflags="$krb5mod_cflags -DHEIMDAL_KRB5"
6558 +dnl # Need to ensure the test program(s) link against the right library
6560 +LDFLAGS="${LDFLAGS} ${SMART_LIBS}"
6561 +CFLAGS="${CFLAGS} ${SMART_CPPFLAGS}"
6564 +dnl # Check how to free things returned by krb5_get_error_message
6567 + krb5_get_error_message \
6568 + krb5_free_error_string \
6569 + krb5_free_error_message \
6571 +if test "x$ac_cv_func_krb5_get_error_message" = xyes; then
6572 + krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_GET_ERROR_MESSAGE"
6574 +if test "x$ac_cv_func_krb5_free_error_message" = xyes; then
6575 + krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_FREE_ERROR_MESSAGE"
6577 +if test "x$ac_cv_func_krb5_free_error_string" = xyes; then
6578 + krb5mod_cflags="${krb5mod_cflags} -DHAVE_KRB5_FREE_ERROR_STRING"
6582 +dnl # Only check if version checks have not found kerberos to be thread unsafe
6584 +if test "$krb5threadsafe" != "no"; then
6587 + FR_SMART_CHECK_LIB(krb5, krb5_is_thread_safe)
6588 + if test "x$ac_cv_lib_krb5_krb5_is_thread_safe" = xyes; then
6589 + AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <krb5.h>]], [[return krb5_is_thread_safe() ? 0 : 1]])],
6590 + [krb5threadsafe="-DKRB5_IS_THREAD_SAFE"], [AC_MSG_WARN([[libkrb5 is not threadsafe]])],
6591 + [AC_MSG_WARN(cross compiling: not checking)])
6593 - targetname=modname
6596 - echo \*\*\* module modname is disabled.
6600 -if test x"$fail" != x""; then
6601 - if test x"${enable_strict_dependencies}" = x"yes"; then
6602 - AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.])
6604 - AC_MSG_WARN([silently not building ]modname[.])
6605 - AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]);
6607 +if test "$krb5_api_type" = "mit"; then
6609 + dnl # This lives in different places depending on the distro
6611 + FR_SMART_CHECK_INCLUDE([com_err.h])
6612 + if test "$ac_cv_header_com_err_h" != "yes"; then
6613 + FR_SMART_CHECK_INCLUDE([et/com_err.h])
6614 + if test "$ac_cv_header_et_com_err_h" != "yes"; then
6615 + FR_MODULE_FAIL([com_err.h])
6617 + krb5mod_cflags="$krb5mod_cflags -DET_COMM_ERR "
6621 + krb5mod_cflags="$krb5mod_cflags -DHEIMDAL_KRB5"
6624 +FR_MODULE_END_TESTS(strict)
6626 mod_ldflags="$krb5mod_ldflags $krb5libcrypto $SMART_LIBS"
6627 mod_cflags="$krb5mod_cflags $krb5threadsafe $SMART_CPPFLAGS"
6629 AC_SUBST(mod_ldflags)
6630 AC_SUBST(mod_cflags)
6631 -AC_SUBST(targetname)
6634 +AC_CONFIG_FILES([all.mk])