Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for Cockpit 368.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else case e in #(
191 e) as_have_required=no ;;
192 esac
193 fi
194 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
195 then :
196
197 else case e in #(
198 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
199 as_found=false
200 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
201 do
202 IFS=$as_save_IFS
203 case $as_dir in #(((
204 '') as_dir=./ ;;
205 */) ;;
206 *) as_dir=$as_dir/ ;;
207 esac
208 as_found=:
209 case $as_dir in #(
210 /*)
211 for as_base in sh bash ksh sh5; do
212 # Try only shells that exist, to save several forks.
213 as_shell=$as_dir$as_base
214 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
215 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
216 then :
217 CONFIG_SHELL=$as_shell as_have_required=yes
218 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
219 then :
220 break 2
221 fi
222 fi
223 done;;
224 esac
225 as_found=false
226 done
227 IFS=$as_save_IFS
228 if $as_found
229 then :
230
231 else case e in #(
232 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
234 then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi ;;
237 esac
238 fi
239
240
241 if test "x$CONFIG_SHELL" != x
242 then :
243 export CONFIG_SHELL
244 # We cannot yet assume a decent shell, so we have to provide a
245 # neutralization value for shells without unset; and this also
246 # works around shells that cannot unset nonexistent variables.
247 # Preserve -v and -x to the replacement shell.
248 BASH_ENV=/dev/null
249 ENV=/dev/null
250 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
251 case $- in # ((((
252 *v*x* | *x*v* ) as_opts=-vx ;;
253 *v* ) as_opts=-v ;;
254 *x* ) as_opts=-x ;;
255 * ) as_opts= ;;
256 esac
257 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258 # Admittedly, this is quite paranoid, since all the known shells bail
259 # out after a failed 'exec'.
260 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
261 exit 255
262 fi
263
264 if test x$as_have_required = xno
265 then :
266 printf "%s\n" "$0: This script requires a shell more modern than all"
267 printf "%s\n" "$0: the shells that I found on your system."
268 if test ${ZSH_VERSION+y} ; then
269 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
270 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
271 else
272 printf "%s\n" "$0: Please tell [email protected] and
273 $0: [email protected] about your system,
274 $0: including any error possibly output before this
275 $0: message. Then install a modern shell, or manually run
276 $0: the script under such a shell if you do have one."
277 fi
278 exit 1
279 fi ;;
280 esac
281 fi
282 fi
283 SHELL=${CONFIG_SHELL-/bin/sh}
284 export SHELL
285 # Unset more variables known to interfere with behavior of common tools.
286 CLICOLOR_FORCE= GREP_OPTIONS=
287 unset CLICOLOR_FORCE GREP_OPTIONS
288
289 ## --------------------- ##
290 ## M4sh Shell Functions. ##
291 ## --------------------- ##
292 # as_fn_unset VAR
293 # ---------------
294 # Portably unset VAR.
295 as_fn_unset ()
296 {
297 { eval $1=; unset $1;}
298 }
299 as_unset=as_fn_unset
300
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 printf "%s\n" X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
382 then :
383 eval 'as_fn_append ()
384 {
385 eval $1+=\$2
386 }'
387 else case e in #(
388 e) as_fn_append ()
389 {
390 eval $1=\$$1\$2
391 } ;;
392 esac
393 fi # as_fn_append
394
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
401 then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else case e in #(
407 e) as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 } ;;
411 esac
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 printf "%s\n" "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 printf "%s\n" X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 t clear
488 :clear
489 s/[$]LINENO.*/&-/
490 t lineno
491 b
492 :lineno
493 N
494 :loop
495 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 t loop
497 s/-\n.*//
498 ' >$as_me.lineno &&
499 chmod +x "$as_me.lineno" ||
500 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
501
502 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
503 # already done that, so ensure we don't try to do so again and fall
504 # in an infinite loop. This has already happened in practice.
505 _as_can_reexec=no; export _as_can_reexec
506 # Don't try to exec as it changes $[0], causing all sort of problems
507 # (the dirname of $[0] is not the place where we might find the
508 # original and so on. Autoconf is especially sensitive to this).
509 . "./$as_me.lineno"
510 # Exit status is that of the last command.
511 exit
512 }
513
514
515 # Determine whether it's possible to make 'echo' print without a newline.
516 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
517 # for compatibility with existing Makefiles.
518 ECHO_C= ECHO_N= ECHO_T=
519 case `echo -n x` in #(((((
520 -n*)
521 case `echo 'xy\c'` in
522 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
523 xy) ECHO_C='\c';;
524 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 ECHO_T=' ';;
526 esac;;
527 *)
528 ECHO_N='-n';;
529 esac
530
531 # For backward compatibility with old third-party macros, we provide
532 # the shell variables $as_echo and $as_echo_n. New code should use
533 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
534 as_echo='printf %s\n'
535 as_echo_n='printf %s'
536
537 rm -f conf$$ conf$$.exe conf$$.file
538 if test -d conf$$.dir; then
539 rm -f conf$$.dir/conf$$.file
540 else
541 rm -f conf$$.dir
542 mkdir conf$$.dir 2>/dev/null
543 fi
544 if (echo >conf$$.file) 2>/dev/null; then
545 if ln -s conf$$.file conf$$ 2>/dev/null; then
546 as_ln_s='ln -s'
547 # ... but there are two gotchas:
548 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
549 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
550 # In both cases, we have to default to 'cp -pR'.
551 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
552 as_ln_s='cp -pR'
553 elif ln conf$$.file conf$$ 2>/dev/null; then
554 as_ln_s=ln
555 else
556 as_ln_s='cp -pR'
557 fi
558 else
559 as_ln_s='cp -pR'
560 fi
561 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
562 rmdir conf$$.dir 2>/dev/null
563
564 if mkdir -p . 2>/dev/null; then
565 as_mkdir_p='mkdir -p "$as_dir"'
566 else
567 test -d ./-p && rmdir ./-p
568 as_mkdir_p=false
569 fi
570
571 as_test_x='test -x'
572 as_executable_p=as_fn_executable_p
573
574 # Sed expression to map a string onto a valid CPP name.
575 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
576 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
577
578 # Sed expression to map a string onto a valid variable name.
579 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
580 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
581
582
583 test -n "$DJDIR" || exec 7<&0 </dev/null
584 exec 6>&1
585
586 # Name of the host.
587 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
588 # so uname gets run too.
589 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
590
591 #
592 # Initializations.
593 #
594 ac_default_prefix=/usr/local
595 ac_clean_files=
596 ac_config_libobj_dir=.
597 LIBOBJS=
598 cross_compiling=no
599 subdirs=
600 MFLAGS=
601 MAKEFLAGS=
602
603 # Identity of this package.
604 PACKAGE_NAME='Cockpit'
605 PACKAGE_TARNAME='cockpit'
606 PACKAGE_VERSION='368'
607 PACKAGE_STRING='Cockpit 368'
608 PACKAGE_BUGREPORT='[email protected]'
609 PACKAGE_URL='https://cockpit-project.org/'
610
611 ac_unique_file="src"
612 # Factoring default headers for most tests.
613 ac_includes_default="\
614 #include <stddef.h>
615 #ifdef HAVE_STDIO_H
616 # include <stdio.h>
617 #endif
618 #ifdef HAVE_STDLIB_H
619 # include <stdlib.h>
620 #endif
621 #ifdef HAVE_STRING_H
622 # include <string.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
632 #endif
633 #ifdef HAVE_SYS_TYPES_H
634 # include <sys/types.h>
635 #endif
636 #ifdef HAVE_SYS_STAT_H
637 # include <sys/stat.h>
638 #endif
639 #ifdef HAVE_UNISTD_H
640 # include <unistd.h>
641 #endif"
642
643 ac_header_c_list=
644 enable_year2038=no
645 ac_subst_vars='am__EXEEXT_FALSE
646 am__EXEEXT_TRUE
647 LTLIBOBJS
648 LIBOBJS
649 PAM_LIBS
650 pkgpyexecdir
651 pyexecdir
652 pkgpythondir
653 pythondir
654 PYTHON_EXEC_PREFIX
655 PYTHON_PREFIX
656 PYTHON_PLATFORM
657 PYTHON_VERSION
658 PYTHON
659 WITH_COVERAGE_FALSE
660 WITH_COVERAGE_TRUE
661 debugdir
662 NODE_ENV
663 WITH_DEBUG_FALSE
664 WITH_DEBUG_TRUE
665 ENABLE_COCKPIT_CLIENT_FALSE
666 ENABLE_COCKPIT_CLIENT_TRUE
667 HAS_ASCIIDOCTOR_FALSE
668 HAS_ASCIIDOCTOR_TRUE
669 ENABLE_DOC_FALSE
670 ENABLE_DOC_TRUE
671 ASCIIDOCTOR
672 admin_group
673 WITH_ASAN_FALSE
674 WITH_ASAN_TRUE
675 SSH_AGENT
676 SSH_ADD
677 XGETTEXT
678 systemdunitdir
679 SYSTEMD_LIBS
680 SYSTEMD_CFLAGS
681 pamdir
682 krb5_LIBS
683 krb5_CFLAGS
684 gnutls_LIBS
685 gnutls_CFLAGS
686 json_glib_LIBS
687 json_glib_CFLAGS
688 libsystemd_LIBS
689 libsystemd_CFLAGS
690 glib_LIBS
691 glib_CFLAGS
692 PKG_CONFIG_LIBDIR
693 PKG_CONFIG_PATH
694 PKG_CONFIG
695 fts_LIBS
696 argp_LIBS
697 SELINUX_POLICY_TYPE
698 SELINUX_POLICY_ENABLED_FALSE
699 SELINUX_POLICY_ENABLED_TRUE
700 AR
701 RANLIB
702 am__fastdepCC_FALSE
703 am__fastdepCC_TRUE
704 CCDEPMODE
705 am__nodep
706 AMDEPBACKSLASH
707 AMDEP_FALSE
708 AMDEP_TRUE
709 am__include
710 DEPDIR
711 OBJEXT
712 EXEEXT
713 ac_ct_CC
714 CPPFLAGS
715 LDFLAGS
716 CFLAGS
717 CC
718 am__xargs_n
719 am__rm_f_notfound
720 AM_BACKSLASH
721 AM_DEFAULT_VERBOSITY
722 AM_DEFAULT_V
723 AM_V
724 CSCOPE
725 ETAGS
726 CTAGS
727 am__untar
728 am__tar
729 AMTAR
730 am__leading_dot
731 SET_MAKE
732 AWK
733 mkdir_p
734 MKDIR_P
735 INSTALL_STRIP_PROGRAM
736 STRIP
737 install_sh
738 MAKEINFO
739 AUTOHEADER
740 AUTOMAKE
741 AUTOCONF
742 ACLOCAL
743 VERSION
744 PACKAGE
745 CYGPATH_W
746 am__isrc
747 INSTALL_DATA
748 INSTALL_SCRIPT
749 INSTALL_PROGRAM
750 target_alias
751 host_alias
752 build_alias
753 LIBS
754 ECHO_T
755 ECHO_N
756 ECHO_C
757 DEFS
758 mandir
759 localedir
760 libdir
761 psdir
762 pdfdir
763 dvidir
764 htmldir
765 infodir
766 docdir
767 oldincludedir
768 includedir
769 runstatedir
770 localstatedir
771 sharedstatedir
772 sysconfdir
773 datadir
774 datarootdir
775 libexecdir
776 sbindir
777 bindir
778 program_transform_name
779 prefix
780 exec_prefix
781 PACKAGE_URL
782 PACKAGE_BUGREPORT
783 PACKAGE_STRING
784 PACKAGE_VERSION
785 PACKAGE_TARNAME
786 PACKAGE_NAME
787 PATH_SEPARATOR
788 SHELL
789 am__quote'
790 ac_subst_files=''
791 ac_user_opts='
792 enable_option_checking
793 enable_silent_rules
794 enable_dependency_tracking
795 enable_largefile
796 enable_prefix_only
797 enable_selinux_policy
798 with_pamdir
799 with_systemdunitdir
800 enable_asan
801 with_admin_group
802 with_default_session_path
803 enable_doc
804 enable_multihost
805 enable_cockpit_client
806 enable_debug
807 enable_coverage
808 enable_strict
809 with_python_sys_prefix
810 with_python_prefix
811 with_python_exec_prefix
812 enable_year2038
813 '
814 ac_precious_vars='build_alias
815 host_alias
816 target_alias
817 CC
818 CFLAGS
819 LDFLAGS
820 LIBS
821 CPPFLAGS
822 PKG_CONFIG
823 PKG_CONFIG_PATH
824 PKG_CONFIG_LIBDIR
825 glib_CFLAGS
826 glib_LIBS
827 libsystemd_CFLAGS
828 libsystemd_LIBS
829 json_glib_CFLAGS
830 json_glib_LIBS
831 gnutls_CFLAGS
832 gnutls_LIBS
833 krb5_CFLAGS
834 krb5_LIBS
835 SYSTEMD_CFLAGS
836 SYSTEMD_LIBS
837 PYTHON'
838
839
840 # Initialize some variables set by options.
841 ac_init_help=
842 ac_init_version=false
843 ac_unrecognized_opts=
844 ac_unrecognized_sep=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
847 cache_file=/dev/null
848 exec_prefix=NONE
849 no_create=
850 no_recursion=
851 prefix=NONE
852 program_prefix=NONE
853 program_suffix=NONE
854 program_transform_name=s,x,x,
855 silent=
856 site=
857 srcdir=
858 verbose=
859 x_includes=NONE
860 x_libraries=NONE
861
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 runstatedir='${localstatedir}/run'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
888
889 ac_prev=
890 ac_dashdash=
891 for ac_option
892 do
893 # If the previous option needs an argument, assign it.
894 if test -n "$ac_prev"; then
895 eval $ac_prev=\$ac_option
896 ac_prev=
897 continue
898 fi
899
900 case $ac_option in
901 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 *=) ac_optarg= ;;
903 *) ac_optarg=yes ;;
904 esac
905
906 case $ac_dashdash$ac_option in
907 --)
908 ac_dashdash=yes ;;
909
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 ac_prev=bindir ;;
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
913 bindir=$ac_optarg ;;
914
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
919
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
926
927 --config-cache | -C)
928 cache_file=config.cache ;;
929
930 -datadir | --datadir | --datadi | --datad)
931 ac_prev=datadir ;;
932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
933 datadir=$ac_optarg ;;
934
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
941
942 -disable-* | --disable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: '$ac_useropt'"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=no ;;
957
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
962
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
967
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error $? "invalid feature name: '$ac_useropt'"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977 "enable_$ac_useropt"
978 "*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=\$ac_optarg ;;
983
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
992
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
995 with_gas=yes ;;
996
997 -help | --help | --hel | --he | -h)
998 ac_init_help=long ;;
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1003
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1008
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 ac_prev=htmldir ;;
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 | --ht=*)
1013 htmldir=$ac_optarg ;;
1014
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1021
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 ac_prev=infodir ;;
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1026
1027 -libdir | --libdir | --libdi | --libd)
1028 ac_prev=libdir ;;
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1031
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1038
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1043
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
1045 | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049 localstatedir=$ac_optarg ;;
1050
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 ac_prev=mandir ;;
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1055
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1058 with_fp=no ;;
1059
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1062 no_create=yes ;;
1063
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 no_recursion=yes ;;
1067
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1076
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 ac_prev=prefix ;;
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1081
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1088
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1095
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1112
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 ac_prev=pdfdir ;;
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1117
1118 -psdir | --psdir | --psdi | --psd | --ps)
1119 ac_prev=psdir ;;
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 psdir=$ac_optarg ;;
1122
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 silent=yes ;;
1126
1127 -runstatedir | --runstatedir | --runstatedi | --runstated \
1128 | --runstate | --runstat | --runsta | --runst | --runs \
1129 | --run | --ru | --r)
1130 ac_prev=runstatedir ;;
1131 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1132 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1133 | --run=* | --ru=* | --r=*)
1134 runstatedir=$ac_optarg ;;
1135
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 ac_prev=sbindir ;;
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 | --sbi=* | --sb=*)
1140 sbindir=$ac_optarg ;;
1141
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1145 | --sha | --sh)
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 | --sha=* | --sh=*)
1151 sharedstatedir=$ac_optarg ;;
1152
1153 -site | --site | --sit)
1154 ac_prev=site ;;
1155 -site=* | --site=* | --sit=*)
1156 site=$ac_optarg ;;
1157
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 ac_prev=srcdir ;;
1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1161 srcdir=$ac_optarg ;;
1162
1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164 | --syscon | --sysco | --sysc | --sys | --sy)
1165 ac_prev=sysconfdir ;;
1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1168 sysconfdir=$ac_optarg ;;
1169
1170 -target | --target | --targe | --targ | --tar | --ta | --t)
1171 ac_prev=target_alias ;;
1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1173 target_alias=$ac_optarg ;;
1174
1175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 verbose=yes ;;
1177
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
1180
1181 -with-* | --with-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error $? "invalid package name: '$ac_useropt'"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=\$ac_optarg ;;
1196
1197 -without-* | --without-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error $? "invalid package name: '$ac_useropt'"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206 "with_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=no ;;
1212
1213 --x)
1214 # Obsolete; use --with-x.
1215 with_x=yes ;;
1216
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222 x_includes=$ac_optarg ;;
1223
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229 x_libraries=$ac_optarg ;;
1230
1231 -*) as_fn_error $? "unrecognized option: '$ac_option'
1232 Try '$0 --help' for more information"
1233 ;;
1234
1235 *=*)
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 case $ac_envvar in #(
1239 '' | [0-9]* | *[!_$as_cr_alnum]* )
1240 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1241 esac
1242 eval $ac_envvar=\$ac_optarg
1243 export $ac_envvar ;;
1244
1245 *)
1246 # FIXME: should be removed in autoconf 3.0.
1247 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1250 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1251 ;;
1252
1253 esac
1254 done
1255
1256 if test -n "$ac_prev"; then
1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258 as_fn_error $? "missing argument to $ac_option"
1259 fi
1260
1261 if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1263 no) ;;
1264 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1265 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266 esac
1267 fi
1268
1269 # Check all directory arguments for consistency.
1270 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir runstatedir
1274 do
1275 eval ac_val=\$$ac_var
1276 # Remove trailing slashes.
1277 case $ac_val in
1278 */ )
1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\$ac_val;;
1281 esac
1282 # Be sure to have absolute directory names.
1283 case $ac_val in
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286 esac
1287 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1288 done
1289
1290 # There might be people who depend on the old broken behavior: '$host'
1291 # used to hold the argument of --host etc.
1292 # FIXME: To remove some day.
1293 build=$build_alias
1294 host=$host_alias
1295 target=$target_alias
1296
1297 # FIXME: To remove some day.
1298 if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1303 fi
1304 fi
1305
1306 ac_tool_prefix=
1307 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309 test "$silent" = yes && exec 6>/dev/null
1310
1311
1312 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di=`ls -di .` &&
1314 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error $? "working directory cannot be determined"
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error $? "pwd does not report name of working directory"
1318
1319
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 printf "%s\n" X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\).*/{
1343 s//\1/
1344 q
1345 }
1346 s/.*/./; q'`
1347 srcdir=$ac_confdir
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349 srcdir=..
1350 fi
1351 else
1352 ac_srcdir_defaulted=no
1353 fi
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1357 fi
1358 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1359 ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1361 pwd)`
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1365 fi
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1369 case $srcdir in
1370 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371 esac
1372 for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377 done
1378
1379 #
1380 # Report the --help message.
1381 #
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
1386 'configure' configures Cockpit 368 to adapt to many kinds of systems.
1387
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1392
1393 Defaults for the options are specified in brackets.
1394
1395 Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print 'checking ...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for '--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or '..']
1405
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 [PREFIX]
1411
1412 By default, 'make install' will install all the files in
1413 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than '$ac_default_prefix' using '--prefix',
1415 for instance '--prefix=\$HOME'.
1416
1417 For better control, use the options below.
1418
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1427 --libdir=DIR object code libraries [EPREFIX/lib]
1428 --includedir=DIR C header files [PREFIX/include]
1429 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1432 --infodir=DIR info documentation [DATAROOTDIR/info]
1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1434 --mandir=DIR man documentation [DATAROOTDIR/man]
1435 --docdir=DIR documentation root [DATAROOTDIR/doc/cockpit]
1436 --htmldir=DIR html documentation [DOCDIR]
1437 --dvidir=DIR dvi documentation [DOCDIR]
1438 --pdfdir=DIR pdf documentation [DOCDIR]
1439 --psdir=DIR ps documentation [DOCDIR]
1440 _ACEOF
1441
1442 cat <<\_ACEOF
1443
1444 Program names:
1445 --program-prefix=PREFIX prepend PREFIX to installed program names
1446 --program-suffix=SUFFIX append SUFFIX to installed program names
1447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1448 _ACEOF
1449 fi
1450
1451 if test -n "$ac_init_help"; then
1452 case $ac_init_help in
1453 short | recursive ) echo "Configuration of Cockpit 368:";;
1454 esac
1455 cat <<\_ACEOF
1456
1457 Optional Features:
1458 --disable-option-checking ignore unrecognized --enable/--with options
1459 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1460 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1461 --enable-silent-rules less verbose build output (undo: "make V=1")
1462 --disable-silent-rules verbose build output (undo: "make V=0")
1463 --enable-dependency-tracking
1464 do not reject slow dependency extractors
1465 --disable-dependency-tracking
1466 speeds up one-time build
1467 --disable-largefile omit support for large files
1468 --enable-prefix-only Whether to install to prefix only
1469 --enable-selinux-policy=type
1470 Whether to build selinux policy, and which
1471 --enable-asan=no/yes Turn the Address Sanitizer on or off
1472
1473 --disable-doc Disable building documentation
1474
1475 --enable-multihost Set AllowMultiHost to true by default
1476 --enable-cockpit-client Whether to install cockpit-client
1477 --enable-debug=no/default/yes
1478 Turn on or off debugging
1479
1480 --enable-coverage Whether to enable coverage testing
1481
1482 --enable-strict Strict code compilation
1483
1484 --enable-year2038 support timestamps after 2038
1485
1486 Optional Packages:
1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1489 --with-pamdir=DIR directory to install pam modules in
1490 --with-systemdunitdir=DIR
1491 directory to install systemd unit files in
1492 --with-admin-group=GROUP
1493 system group to which admin users belong
1494 --with-default-session-path=PATH
1495 The value for the PATH environment variable in a
1496 session started by cockpit-session
1497 --with-python-sys-prefix
1498 use Python's sys.prefix and sys.exec_prefix values
1499 --with-python_prefix override the default PYTHON_PREFIX
1500 --with-python_exec_prefix
1501 override the default PYTHON_EXEC_PREFIX
1502
1503 Some influential environment variables:
1504 CC C compiler command
1505 CFLAGS C compiler flags
1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507 nonstandard directory <lib dir>
1508 LIBS libraries to pass to the linker, e.g. -l<library>
1509 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1510 you have headers in a nonstandard directory <include dir>
1511 PKG_CONFIG path to pkg-config utility
1512 PKG_CONFIG_PATH
1513 directories to add to pkg-config's search path
1514 PKG_CONFIG_LIBDIR
1515 path overriding pkg-config's built-in search path
1516 glib_CFLAGS C compiler flags for glib, overriding pkg-config
1517 glib_LIBS linker flags for glib, overriding pkg-config
1518 libsystemd_CFLAGS
1519 C compiler flags for libsystemd, overriding pkg-config
1520 libsystemd_LIBS
1521 linker flags for libsystemd, overriding pkg-config
1522 json_glib_CFLAGS
1523 C compiler flags for json_glib, overriding pkg-config
1524 json_glib_LIBS
1525 linker flags for json_glib, overriding pkg-config
1526 gnutls_CFLAGS
1527 C compiler flags for gnutls, overriding pkg-config
1528 gnutls_LIBS linker flags for gnutls, overriding pkg-config
1529 krb5_CFLAGS C compiler flags for krb5, overriding pkg-config
1530 krb5_LIBS linker flags for krb5, overriding pkg-config
1531 SYSTEMD_CFLAGS
1532 C compiler flags for SYSTEMD, overriding pkg-config
1533 SYSTEMD_LIBS
1534 linker flags for SYSTEMD, overriding pkg-config
1535 PYTHON the Python interpreter
1536
1537 Use these variables to override the choices made by 'configure' or to help
1538 it to find libraries and programs with nonstandard names/locations.
1539
1540 Report bugs to <[email protected]>.
1541 Cockpit home page: <https://cockpit-project.org/>.
1542 _ACEOF
1543 ac_status=$?
1544 fi
1545
1546 if test "$ac_init_help" = "recursive"; then
1547 # If there are subdirs, report their specific --help.
1548 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549 test -d "$ac_dir" ||
1550 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551 continue
1552 ac_builddir=.
1553
1554 case "$ac_dir" in
1555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *)
1557 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1558 # A ".." for each directory in $ac_dir_suffix.
1559 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1560 case $ac_top_builddir_sub in
1561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563 esac ;;
1564 esac
1565 ac_abs_top_builddir=$ac_pwd
1566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567 # for backward compatibility:
1568 ac_top_builddir=$ac_top_build_prefix
1569
1570 case $srcdir in
1571 .) # We are building in place.
1572 ac_srcdir=.
1573 ac_top_srcdir=$ac_top_builddir_sub
1574 ac_abs_top_srcdir=$ac_pwd ;;
1575 [\\/]* | ?:[\\/]* ) # Absolute name.
1576 ac_srcdir=$srcdir$ac_dir_suffix;
1577 ac_top_srcdir=$srcdir
1578 ac_abs_top_srcdir=$srcdir ;;
1579 *) # Relative name.
1580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581 ac_top_srcdir=$ac_top_build_prefix$srcdir
1582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1583 esac
1584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585
1586 cd "$ac_dir" || { ac_status=$?; continue; }
1587 # Check for configure.gnu first; this name is used for a wrapper for
1588 # Metaconfig's "Configure" on case-insensitive file systems.
1589 if test -f "$ac_srcdir/configure.gnu"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592 elif test -f "$ac_srcdir/configure"; then
1593 echo &&
1594 $SHELL "$ac_srcdir/configure" --help=recursive
1595 else
1596 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1597 fi || ac_status=$?
1598 cd "$ac_pwd" || { ac_status=$?; break; }
1599 done
1600 fi
1601
1602 test -n "$ac_init_help" && exit $ac_status
1603 if $ac_init_version; then
1604 cat <<\_ACEOF
1605 Cockpit configure 368
1606 generated by GNU Autoconf 2.72
1607
1608 Copyright (C) 2023 Free Software Foundation, Inc.
1609 This configure script is free software; the Free Software Foundation
1610 gives unlimited permission to copy, distribute and modify it.
1611 _ACEOF
1612 exit
1613 fi
1614
1615 ## ------------------------ ##
1616 ## Autoconf initialization. ##
1617 ## ------------------------ ##
1618
1619 # ac_fn_c_try_compile LINENO
1620 # --------------------------
1621 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_compile ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext conftest.beam
1626 if { { ac_try="$ac_compile"
1627 case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 printf "%s\n" "$ac_try_echo"; } >&5
1633 (eval "$ac_compile") 2>conftest.err
1634 ac_status=$?
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1639 fi
1640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest.$ac_objext
1645 then :
1646 ac_retval=0
1647 else case e in #(
1648 e) printf "%s\n" "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1650
1651 ac_retval=1 ;;
1652 esac
1653 fi
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1656
1657 } # ac_fn_c_try_compile
1658
1659 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1660 # -------------------------------------------------------
1661 # Tests whether HEADER exists and can be compiled using the include files in
1662 # INCLUDES, setting the cache variable VAR accordingly.
1663 ac_fn_c_check_header_compile ()
1664 {
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1667 printf %s "checking for $2... " >&6; }
1668 if eval test \${$3+y}
1669 then :
1670 printf %s "(cached) " >&6
1671 else case e in #(
1672 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673 /* end confdefs.h. */
1674 $4
1675 #include <$2>
1676 _ACEOF
1677 if ac_fn_c_try_compile "$LINENO"
1678 then :
1679 eval "$3=yes"
1680 else case e in #(
1681 e) eval "$3=no" ;;
1682 esac
1683 fi
1684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1685 esac
1686 fi
1687 eval ac_res=\$$3
1688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689 printf "%s\n" "$ac_res" >&6; }
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691
1692 } # ac_fn_c_check_header_compile
1693
1694 # ac_fn_c_try_link LINENO
1695 # -----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded.
1697 ac_fn_c_try_link ()
1698 {
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1701 if { { ac_try="$ac_link"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 printf "%s\n" "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>conftest.err
1709 ac_status=$?
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1714 fi
1715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && {
1717 test -z "$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 } && test -s conftest$ac_exeext && {
1720 test "$cross_compiling" = yes ||
1721 test -x conftest$ac_exeext
1722 }
1723 then :
1724 ac_retval=0
1725 else case e in #(
1726 e) printf "%s\n" "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=1 ;;
1730 esac
1731 fi
1732 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1733 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1734 # interfere with the next link command; also delete a directory that is
1735 # left behind by Apple's compiler. We do this before executing the actions.
1736 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status $ac_retval
1739
1740 } # ac_fn_c_try_link
1741
1742 # ac_fn_c_check_func LINENO FUNC VAR
1743 # ----------------------------------
1744 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1745 ac_fn_c_check_func ()
1746 {
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 printf %s "checking for $2... " >&6; }
1750 if eval test \${$3+y}
1751 then :
1752 printf %s "(cached) " >&6
1753 else case e in #(
1754 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755 /* end confdefs.h. */
1756 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1758 #define $2 innocuous_$2
1759
1760 /* System header to define __stub macros and hopefully few prototypes,
1761 which can conflict with char $2 (void); below. */
1762
1763 #include <limits.h>
1764 #undef $2
1765
1766 /* Override any GCC internal prototype to avoid an error.
1767 Use char because int might match the return type of a GCC
1768 builtin and then its argument prototype would still apply. */
1769 #ifdef __cplusplus
1770 extern "C"
1771 #endif
1772 char $2 (void);
1773 /* The GNU C library defines this for functions which it implements
1774 to always fail with ENOSYS. Some functions are actually named
1775 something starting with __ and the normal name is an alias. */
1776 #if defined __stub_$2 || defined __stub___$2
1777 choke me
1778 #endif
1779
1780 int
1781 main (void)
1782 {
1783 return $2 ();
1784 ;
1785 return 0;
1786 }
1787 _ACEOF
1788 if ac_fn_c_try_link "$LINENO"
1789 then :
1790 eval "$3=yes"
1791 else case e in #(
1792 e) eval "$3=no" ;;
1793 esac
1794 fi
1795 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1796 conftest$ac_exeext conftest.$ac_ext ;;
1797 esac
1798 fi
1799 eval ac_res=\$$3
1800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 printf "%s\n" "$ac_res" >&6; }
1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803
1804 } # ac_fn_c_check_func
1805 ac_configure_args_raw=
1806 for ac_arg
1807 do
1808 case $ac_arg in
1809 *\'*)
1810 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1811 esac
1812 as_fn_append ac_configure_args_raw " '$ac_arg'"
1813 done
1814
1815 case $ac_configure_args_raw in
1816 *$as_nl*)
1817 ac_safe_unquote= ;;
1818 *)
1819 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1820 ac_unsafe_a="$ac_unsafe_z#~"
1821 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1822 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1823 esac
1824
1825 cat >config.log <<_ACEOF
1826 This file contains any messages produced by compilers while
1827 running configure, to aid debugging if configure makes a mistake.
1828
1829 It was created by Cockpit $as_me 368, which was
1830 generated by GNU Autoconf 2.72. Invocation command line was
1831
1832 $ $0$ac_configure_args_raw
1833
1834 _ACEOF
1835 exec 5>>config.log
1836 {
1837 cat <<_ASUNAME
1838 ## --------- ##
1839 ## Platform. ##
1840 ## --------- ##
1841
1842 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1843 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1844 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1845 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1846 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1847
1848 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1849 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1850
1851 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1852 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1853 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1854 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1855 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1856 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1857 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1858
1859 _ASUNAME
1860
1861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862 for as_dir in $PATH
1863 do
1864 IFS=$as_save_IFS
1865 case $as_dir in #(((
1866 '') as_dir=./ ;;
1867 */) ;;
1868 *) as_dir=$as_dir/ ;;
1869 esac
1870 printf "%s\n" "PATH: $as_dir"
1871 done
1872 IFS=$as_save_IFS
1873
1874 } >&5
1875
1876 cat >&5 <<_ACEOF
1877
1878
1879 ## ----------- ##
1880 ## Core tests. ##
1881 ## ----------- ##
1882
1883 _ACEOF
1884
1885
1886 # Keep a trace of the command line.
1887 # Strip out --no-create and --no-recursion so they do not pile up.
1888 # Strip out --silent because we don't want to record it for future runs.
1889 # Also quote any args containing shell meta-characters.
1890 # Make two passes to allow for proper duplicate-argument suppression.
1891 ac_configure_args=
1892 ac_configure_args0=
1893 ac_configure_args1=
1894 ac_must_keep_next=false
1895 for ac_pass in 1 2
1896 do
1897 for ac_arg
1898 do
1899 case $ac_arg in
1900 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1901 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1902 | -silent | --silent | --silen | --sile | --sil)
1903 continue ;;
1904 *\'*)
1905 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1906 esac
1907 case $ac_pass in
1908 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1909 2)
1910 as_fn_append ac_configure_args1 " '$ac_arg'"
1911 if test $ac_must_keep_next = true; then
1912 ac_must_keep_next=false # Got value, back to normal.
1913 else
1914 case $ac_arg in
1915 *=* | --config-cache | -C | -disable-* | --disable-* \
1916 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1917 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1918 | -with-* | --with-* | -without-* | --without-* | --x)
1919 case "$ac_configure_args0 " in
1920 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1921 esac
1922 ;;
1923 -* ) ac_must_keep_next=true ;;
1924 esac
1925 fi
1926 as_fn_append ac_configure_args " '$ac_arg'"
1927 ;;
1928 esac
1929 done
1930 done
1931 { ac_configure_args0=; unset ac_configure_args0;}
1932 { ac_configure_args1=; unset ac_configure_args1;}
1933
1934 # When interrupted or exit'd, cleanup temporary files, and complete
1935 # config.log. We remove comments because anyway the quotes in there
1936 # would cause problems or look ugly.
1937 # WARNING: Use '\'' to represent an apostrophe within the trap.
1938 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1939 trap 'exit_status=$?
1940 # Sanitize IFS.
1941 IFS=" "" $as_nl"
1942 # Save into config.log some information that might help in debugging.
1943 {
1944 echo
1945
1946 printf "%s\n" "## ---------------- ##
1947 ## Cache variables. ##
1948 ## ---------------- ##"
1949 echo
1950 # The following way of writing the cache mishandles newlines in values,
1951 (
1952 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1953 eval ac_val=\$$ac_var
1954 case $ac_val in #(
1955 *${as_nl}*)
1956 case $ac_var in #(
1957 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1958 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1959 esac
1960 case $ac_var in #(
1961 _ | IFS | as_nl) ;; #(
1962 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1963 *) { eval $ac_var=; unset $ac_var;} ;;
1964 esac ;;
1965 esac
1966 done
1967 (set) 2>&1 |
1968 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1969 *${as_nl}ac_space=\ *)
1970 sed -n \
1971 "s/'\''/'\''\\\\'\'''\''/g;
1972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1973 ;; #(
1974 *)
1975 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1976 ;;
1977 esac |
1978 sort
1979 )
1980 echo
1981
1982 printf "%s\n" "## ----------------- ##
1983 ## Output variables. ##
1984 ## ----------------- ##"
1985 echo
1986 for ac_var in $ac_subst_vars
1987 do
1988 eval ac_val=\$$ac_var
1989 case $ac_val in
1990 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1991 esac
1992 printf "%s\n" "$ac_var='\''$ac_val'\''"
1993 done | sort
1994 echo
1995
1996 if test -n "$ac_subst_files"; then
1997 printf "%s\n" "## ------------------- ##
1998 ## File substitutions. ##
1999 ## ------------------- ##"
2000 echo
2001 for ac_var in $ac_subst_files
2002 do
2003 eval ac_val=\$$ac_var
2004 case $ac_val in
2005 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2006 esac
2007 printf "%s\n" "$ac_var='\''$ac_val'\''"
2008 done | sort
2009 echo
2010 fi
2011
2012 if test -s confdefs.h; then
2013 printf "%s\n" "## ----------- ##
2014 ## confdefs.h. ##
2015 ## ----------- ##"
2016 echo
2017 cat confdefs.h
2018 echo
2019 fi
2020 test "$ac_signal" != 0 &&
2021 printf "%s\n" "$as_me: caught signal $ac_signal"
2022 printf "%s\n" "$as_me: exit $exit_status"
2023 } >&5
2024 rm -f core *.core core.conftest.* &&
2025 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2026 exit $exit_status
2027 ' 0
2028 for ac_signal in 1 2 13 15; do
2029 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2030 done
2031 ac_signal=0
2032
2033 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2034 rm -f -r conftest* confdefs.h
2035
2036 printf "%s\n" "/* confdefs.h */" > confdefs.h
2037
2038 # Predefined preprocessor variables.
2039
2040 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2041
2042 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2043
2044 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2045
2046 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2047
2048 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2049
2050 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2051
2052
2053 # Let the site file select an alternate cache file if it wants to.
2054 # Prefer an explicitly selected file to automatically selected ones.
2055 if test -n "$CONFIG_SITE"; then
2056 ac_site_files="$CONFIG_SITE"
2057 elif test "x$prefix" != xNONE; then
2058 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2059 else
2060 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2061 fi
2062
2063 for ac_site_file in $ac_site_files
2064 do
2065 case $ac_site_file in #(
2066 */*) :
2067 ;; #(
2068 *) :
2069 ac_site_file=./$ac_site_file ;;
2070 esac
2071 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2073 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2074 sed 's/^/| /' "$ac_site_file" >&5
2075 . "$ac_site_file" \
2076 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2077 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2078 as_fn_error $? "failed to load site script $ac_site_file
2079 See 'config.log' for more details" "$LINENO" 5; }
2080 fi
2081 done
2082
2083 if test -r "$cache_file"; then
2084 # Some versions of bash will fail to source /dev/null (special files
2085 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2086 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2088 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2089 case $cache_file in
2090 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2091 *) . "./$cache_file";;
2092 esac
2093 fi
2094 else
2095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2096 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2097 >$cache_file
2098 fi
2099
2100 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2101 # Test code for whether the C compiler supports C89 (global declarations)
2102 ac_c_conftest_c89_globals='
2103 /* Does the compiler advertise C89 conformance?
2104 Do not test the value of __STDC__, because some compilers set it to 0
2105 while being otherwise adequately conformant. */
2106 #if !defined __STDC__
2107 # error "Compiler does not advertise C89 conformance"
2108 #endif
2109
2110 #include <stddef.h>
2111 #include <stdarg.h>
2112 struct stat;
2113 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2114 struct buf { int x; };
2115 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2116 static char *e (char **p, int i)
2117 {
2118 return p[i];
2119 }
2120 static char *f (char * (*g) (char **, int), char **p, ...)
2121 {
2122 char *s;
2123 va_list v;
2124 va_start (v,p);
2125 s = g (p, va_arg (v,int));
2126 va_end (v);
2127 return s;
2128 }
2129
2130 /* C89 style stringification. */
2131 #define noexpand_stringify(a) #a
2132 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2133
2134 /* C89 style token pasting. Exercises some of the corner cases that
2135 e.g. old MSVC gets wrong, but not very hard. */
2136 #define noexpand_concat(a,b) a##b
2137 #define expand_concat(a,b) noexpand_concat(a,b)
2138 extern int vA;
2139 extern int vbee;
2140 #define aye A
2141 #define bee B
2142 int *pvA = &expand_concat(v,aye);
2143 int *pvbee = &noexpand_concat(v,bee);
2144
2145 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2146 function prototypes and stuff, but not \xHH hex character constants.
2147 These do not provoke an error unfortunately, instead are silently treated
2148 as an "x". The following induces an error, until -std is added to get
2149 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2150 array size at least. It is necessary to write \x00 == 0 to get something
2151 that is true only with -std. */
2152 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2153
2154 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2155 inside strings and character constants. */
2156 #define FOO(x) '\''x'\''
2157 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2158
2159 int test (int i, double x);
2160 struct s1 {int (*f) (int a);};
2161 struct s2 {int (*f) (double a);};
2162 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2163 int, int);'
2164
2165 # Test code for whether the C compiler supports C89 (body of main).
2166 ac_c_conftest_c89_main='
2167 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2168 '
2169
2170 # Test code for whether the C compiler supports C99 (global declarations)
2171 ac_c_conftest_c99_globals='
2172 /* Does the compiler advertise C99 conformance? */
2173 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2174 # error "Compiler does not advertise C99 conformance"
2175 #endif
2176
2177 // See if C++-style comments work.
2178
2179 #include <stdbool.h>
2180 extern int puts (const char *);
2181 extern int printf (const char *, ...);
2182 extern int dprintf (int, const char *, ...);
2183 extern void *malloc (size_t);
2184 extern void free (void *);
2185
2186 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2187 // dprintf is used instead of fprintf to avoid needing to declare
2188 // FILE and stderr.
2189 #define debug(...) dprintf (2, __VA_ARGS__)
2190 #define showlist(...) puts (#__VA_ARGS__)
2191 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2192 static void
2193 test_varargs_macros (void)
2194 {
2195 int x = 1234;
2196 int y = 5678;
2197 debug ("Flag");
2198 debug ("X = %d\n", x);
2199 showlist (The first, second, and third items.);
2200 report (x>y, "x is %d but y is %d", x, y);
2201 }
2202
2203 // Check long long types.
2204 #define BIG64 18446744073709551615ull
2205 #define BIG32 4294967295ul
2206 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2207 #if !BIG_OK
2208 #error "your preprocessor is broken"
2209 #endif
2210 #if BIG_OK
2211 #else
2212 #error "your preprocessor is broken"
2213 #endif
2214 static long long int bignum = -9223372036854775807LL;
2215 static unsigned long long int ubignum = BIG64;
2216
2217 struct incomplete_array
2218 {
2219 int datasize;
2220 double data[];
2221 };
2222
2223 struct named_init {
2224 int number;
2225 const wchar_t *name;
2226 double average;
2227 };
2228
2229 typedef const char *ccp;
2230
2231 static inline int
2232 test_restrict (ccp restrict text)
2233 {
2234 // Iterate through items via the restricted pointer.
2235 // Also check for declarations in for loops.
2236 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2237 continue;
2238 return 0;
2239 }
2240
2241 // Check varargs and va_copy.
2242 static bool
2243 test_varargs (const char *format, ...)
2244 {
2245 va_list args;
2246 va_start (args, format);
2247 va_list args_copy;
2248 va_copy (args_copy, args);
2249
2250 const char *str = "";
2251 int number = 0;
2252 float fnumber = 0;
2253
2254 while (*format)
2255 {
2256 switch (*format++)
2257 {
2258 case '\''s'\'': // string
2259 str = va_arg (args_copy, const char *);
2260 break;
2261 case '\''d'\'': // int
2262 number = va_arg (args_copy, int);
2263 break;
2264 case '\''f'\'': // float
2265 fnumber = va_arg (args_copy, double);
2266 break;
2267 default:
2268 break;
2269 }
2270 }
2271 va_end (args_copy);
2272 va_end (args);
2273
2274 return *str && number && fnumber;
2275 }
2276 '
2277
2278 # Test code for whether the C compiler supports C99 (body of main).
2279 ac_c_conftest_c99_main='
2280 // Check bool.
2281 _Bool success = false;
2282 success |= (argc != 0);
2283
2284 // Check restrict.
2285 if (test_restrict ("String literal") == 0)
2286 success = true;
2287 char *restrict newvar = "Another string";
2288
2289 // Check varargs.
2290 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2291 test_varargs_macros ();
2292
2293 // Check flexible array members.
2294 struct incomplete_array *ia =
2295 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2296 ia->datasize = 10;
2297 for (int i = 0; i < ia->datasize; ++i)
2298 ia->data[i] = i * 1.234;
2299 // Work around memory leak warnings.
2300 free (ia);
2301
2302 // Check named initializers.
2303 struct named_init ni = {
2304 .number = 34,
2305 .name = L"Test wide string",
2306 .average = 543.34343,
2307 };
2308
2309 ni.number = 58;
2310
2311 int dynamic_array[ni.number];
2312 dynamic_array[0] = argv[0][0];
2313 dynamic_array[ni.number - 1] = 543;
2314
2315 // work around unused variable warnings
2316 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2317 || dynamic_array[ni.number - 1] != 543);
2318 '
2319
2320 # Test code for whether the C compiler supports C11 (global declarations)
2321 ac_c_conftest_c11_globals='
2322 /* Does the compiler advertise C11 conformance? */
2323 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2324 # error "Compiler does not advertise C11 conformance"
2325 #endif
2326
2327 // Check _Alignas.
2328 char _Alignas (double) aligned_as_double;
2329 char _Alignas (0) no_special_alignment;
2330 extern char aligned_as_int;
2331 char _Alignas (0) _Alignas (int) aligned_as_int;
2332
2333 // Check _Alignof.
2334 enum
2335 {
2336 int_alignment = _Alignof (int),
2337 int_array_alignment = _Alignof (int[100]),
2338 char_alignment = _Alignof (char)
2339 };
2340 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2341
2342 // Check _Noreturn.
2343 int _Noreturn does_not_return (void) { for (;;) continue; }
2344
2345 // Check _Static_assert.
2346 struct test_static_assert
2347 {
2348 int x;
2349 _Static_assert (sizeof (int) <= sizeof (long int),
2350 "_Static_assert does not work in struct");
2351 long int y;
2352 };
2353
2354 // Check UTF-8 literals.
2355 #define u8 syntax error!
2356 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2357
2358 // Check duplicate typedefs.
2359 typedef long *long_ptr;
2360 typedef long int *long_ptr;
2361 typedef long_ptr long_ptr;
2362
2363 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2364 struct anonymous
2365 {
2366 union {
2367 struct { int i; int j; };
2368 struct { int k; long int l; } w;
2369 };
2370 int m;
2371 } v1;
2372 '
2373
2374 # Test code for whether the C compiler supports C11 (body of main).
2375 ac_c_conftest_c11_main='
2376 _Static_assert ((offsetof (struct anonymous, i)
2377 == offsetof (struct anonymous, w.k)),
2378 "Anonymous union alignment botch");
2379 v1.i = 2;
2380 v1.w.k = 5;
2381 ok |= v1.i != 5;
2382 '
2383
2384 # Test code for whether the C compiler supports C11 (complete).
2385 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2386 ${ac_c_conftest_c99_globals}
2387 ${ac_c_conftest_c11_globals}
2388
2389 int
2390 main (int argc, char **argv)
2391 {
2392 int ok = 0;
2393 ${ac_c_conftest_c89_main}
2394 ${ac_c_conftest_c99_main}
2395 ${ac_c_conftest_c11_main}
2396 return ok;
2397 }
2398 "
2399
2400 # Test code for whether the C compiler supports C99 (complete).
2401 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2402 ${ac_c_conftest_c99_globals}
2403
2404 int
2405 main (int argc, char **argv)
2406 {
2407 int ok = 0;
2408 ${ac_c_conftest_c89_main}
2409 ${ac_c_conftest_c99_main}
2410 return ok;
2411 }
2412 "
2413
2414 # Test code for whether the C compiler supports C89 (complete).
2415 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2416
2417 int
2418 main (int argc, char **argv)
2419 {
2420 int ok = 0;
2421 ${ac_c_conftest_c89_main}
2422 return ok;
2423 }
2424 "
2425
2426 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2427 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2428 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2429 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2430 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2431 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2432 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2433 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2434 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2435 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2436
2437 # Auxiliary files required by this configure script.
2438 ac_aux_files="compile missing install-sh"
2439
2440 # Locations in which to look for auxiliary files.
2441 ac_aux_dir_candidates="${srcdir}/tools"
2442
2443 # Search for a directory containing all of the required auxiliary files,
2444 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2445 # If we don't find one directory that contains all the files we need,
2446 # we report the set of missing files from the *first* directory in
2447 # $ac_aux_dir_candidates and give up.
2448 ac_missing_aux_files=""
2449 ac_first_candidate=:
2450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 as_found=false
2453 for as_dir in $ac_aux_dir_candidates
2454 do
2455 IFS=$as_save_IFS
2456 case $as_dir in #(((
2457 '') as_dir=./ ;;
2458 */) ;;
2459 *) as_dir=$as_dir/ ;;
2460 esac
2461 as_found=:
2462
2463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2464 ac_aux_dir_found=yes
2465 ac_install_sh=
2466 for ac_aux in $ac_aux_files
2467 do
2468 # As a special case, if "install-sh" is required, that requirement
2469 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2470 # and $ac_install_sh is set appropriately for whichever one is found.
2471 if test x"$ac_aux" = x"install-sh"
2472 then
2473 if test -f "${as_dir}install-sh"; then
2474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2475 ac_install_sh="${as_dir}install-sh -c"
2476 elif test -f "${as_dir}install.sh"; then
2477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2478 ac_install_sh="${as_dir}install.sh -c"
2479 elif test -f "${as_dir}shtool"; then
2480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2481 ac_install_sh="${as_dir}shtool install -c"
2482 else
2483 ac_aux_dir_found=no
2484 if $ac_first_candidate; then
2485 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2486 else
2487 break
2488 fi
2489 fi
2490 else
2491 if test -f "${as_dir}${ac_aux}"; then
2492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2493 else
2494 ac_aux_dir_found=no
2495 if $ac_first_candidate; then
2496 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2497 else
2498 break
2499 fi
2500 fi
2501 fi
2502 done
2503 if test "$ac_aux_dir_found" = yes; then
2504 ac_aux_dir="$as_dir"
2505 break
2506 fi
2507 ac_first_candidate=false
2508
2509 as_found=false
2510 done
2511 IFS=$as_save_IFS
2512 if $as_found
2513 then :
2514
2515 else case e in #(
2516 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2517 esac
2518 fi
2519
2520
2521 # These three variables are undocumented and unsupported,
2522 # and are intended to be withdrawn in a future Autoconf release.
2523 # They can cause serious problems if a builder's source tree is in a directory
2524 # whose full name contains unusual characters.
2525 if test -f "${ac_aux_dir}config.guess"; then
2526 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2527 fi
2528 if test -f "${ac_aux_dir}config.sub"; then
2529 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2530 fi
2531 if test -f "$ac_aux_dir/configure"; then
2532 ac_configure="$SHELL ${ac_aux_dir}configure"
2533 fi
2534
2535 # Check that the precious variables saved in the cache have kept the same
2536 # value.
2537 ac_cache_corrupted=false
2538 for ac_var in $ac_precious_vars; do
2539 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2540 eval ac_new_set=\$ac_env_${ac_var}_set
2541 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2542 eval ac_new_val=\$ac_env_${ac_var}_value
2543 case $ac_old_set,$ac_new_set in
2544 set,)
2545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2546 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2547 ac_cache_corrupted=: ;;
2548 ,set)
2549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2550 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2551 ac_cache_corrupted=: ;;
2552 ,);;
2553 *)
2554 if test "x$ac_old_val" != "x$ac_new_val"; then
2555 # differences in whitespace do not lead to failure.
2556 ac_old_val_w=`echo x $ac_old_val`
2557 ac_new_val_w=`echo x $ac_new_val`
2558 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2560 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2561 ac_cache_corrupted=:
2562 else
2563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2564 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2565 eval $ac_var=\$ac_old_val
2566 fi
2567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2568 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2570 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2571 fi;;
2572 esac
2573 # Pass precious variables to config.status.
2574 if test "$ac_new_set" = set; then
2575 case $ac_new_val in
2576 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2577 *) ac_arg=$ac_var=$ac_new_val ;;
2578 esac
2579 case " $ac_configure_args " in
2580 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2581 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2582 esac
2583 fi
2584 done
2585 if $ac_cache_corrupted; then
2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2587 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2589 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2590 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2591 and start over" "$LINENO" 5
2592 fi
2593 ## -------------------- ##
2594 ## Main body of script. ##
2595 ## -------------------- ##
2596
2597 ac_ext=c
2598 ac_cpp='$CPP $CPPFLAGS'
2599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602
2603
2604
2605
2606 ac_config_headers="$ac_config_headers config.h"
2607
2608
2609
2610 am__api_version='1.18'
2611
2612
2613
2614 # Find a good install program. We prefer a C program (faster),
2615 # so one script is as good as another. But avoid the broken or
2616 # incompatible versions:
2617 # SysV /etc/install, /usr/sbin/install
2618 # SunOS /usr/etc/install
2619 # IRIX /sbin/install
2620 # AIX /bin/install
2621 # AmigaOS /C/install, which installs bootblocks on floppy discs
2622 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2623 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2624 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2625 # OS/2's system install, which has a completely different semantic
2626 # ./install, which can be erroneously created by make from ./install.sh.
2627 # Reject install programs that cannot install multiple files.
2628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2629 printf %s "checking for a BSD-compatible install... " >&6; }
2630 if test -z "$INSTALL"; then
2631 if test ${ac_cv_path_install+y}
2632 then :
2633 printf %s "(cached) " >&6
2634 else case e in #(
2635 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2637 do
2638 IFS=$as_save_IFS
2639 case $as_dir in #(((
2640 '') as_dir=./ ;;
2641 */) ;;
2642 *) as_dir=$as_dir/ ;;
2643 esac
2644 # Account for fact that we put trailing slashes in our PATH walk.
2645 case $as_dir in #((
2646 ./ | /[cC]/* | \
2647 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2648 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2649 /usr/ucb/* ) ;;
2650 *)
2651 # OSF1 and SCO ODT 3.0 have their own names for install.
2652 # Don't use installbsd from OSF since it installs stuff as root
2653 # by default.
2654 for ac_prog in ginstall scoinst install; do
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2657 if test $ac_prog = install &&
2658 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2659 # AIX install. It has an incompatible calling convention.
2660 :
2661 elif test $ac_prog = install &&
2662 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2663 # program-specific install script used by HP pwplus--don't use.
2664 :
2665 else
2666 rm -rf conftest.one conftest.two conftest.dir
2667 echo one > conftest.one
2668 echo two > conftest.two
2669 mkdir conftest.dir
2670 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2671 test -s conftest.one && test -s conftest.two &&
2672 test -s conftest.dir/conftest.one &&
2673 test -s conftest.dir/conftest.two
2674 then
2675 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2676 break 3
2677 fi
2678 fi
2679 fi
2680 done
2681 done
2682 ;;
2683 esac
2684
2685 done
2686 IFS=$as_save_IFS
2687
2688 rm -rf conftest.one conftest.two conftest.dir
2689 ;;
2690 esac
2691 fi
2692 if test ${ac_cv_path_install+y}; then
2693 INSTALL=$ac_cv_path_install
2694 else
2695 # As a last resort, use the slow shell script. Don't cache a
2696 # value for INSTALL within a source directory, because that will
2697 # break other packages using the cache if that directory is
2698 # removed, or if the value is a relative name.
2699 INSTALL=$ac_install_sh
2700 fi
2701 fi
2702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2703 printf "%s\n" "$INSTALL" >&6; }
2704
2705 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2706 # It thinks the first close brace ends the variable substitution.
2707 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2708
2709 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2710
2711 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2712
2713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2714 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2715 if test ${am_cv_sleep_fractional_seconds+y}
2716 then :
2717 printf %s "(cached) " >&6
2718 else case e in #(
2719 e) if sleep 0.001 2>/dev/null
2720 then :
2721 am_cv_sleep_fractional_seconds=yes
2722 else case e in #(
2723 e) am_cv_sleep_fractional_seconds=no ;;
2724 esac
2725 fi
2726 ;;
2727 esac
2728 fi
2729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2730 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2731
2732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2733 printf %s "checking filesystem timestamp resolution... " >&6; }
2734 if test ${am_cv_filesystem_timestamp_resolution+y}
2735 then :
2736 printf %s "(cached) " >&6
2737 else case e in #(
2738 e) # Default to the worst case.
2739 am_cv_filesystem_timestamp_resolution=2
2740
2741 # Only try to go finer than 1 sec if sleep can do it.
2742 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2743 # - 1 sec is not much of a win compared to 2 sec, and
2744 # - it takes 2 seconds to perform the test whether 1 sec works.
2745 #
2746 # Instead, just use the default 2s on platforms that have 1s resolution,
2747 # accept the extra 1s delay when using $sleep in the Automake tests, in
2748 # exchange for not incurring the 2s delay for running the test for all
2749 # packages.
2750 #
2751 am_try_resolutions=
2752 if test "$am_cv_sleep_fractional_seconds" = yes; then
2753 # Even a millisecond often causes a bunch of false positives,
2754 # so just try a hundredth of a second. The time saved between .001 and
2755 # .01 is not terribly consequential.
2756 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2757 fi
2758
2759 # In order to catch current-generation FAT out, we must *modify* files
2760 # that already exist; the *creation* timestamp is finer. Use names
2761 # that make ls -t sort them differently when they have equal
2762 # timestamps than when they have distinct timestamps, keeping
2763 # in mind that ls -t prints the *newest* file first.
2764 rm -f conftest.ts?
2765 : > conftest.ts1
2766 : > conftest.ts2
2767 : > conftest.ts3
2768
2769 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2770 # clobber the current shell's arguments. (Outer-level square brackets
2771 # are removed by m4; they're present so that m4 does not expand
2772 # <dollar><star>; be careful, easy to get confused.)
2773 if (
2774 set X `ls -t conftest.ts[12]` &&
2775 {
2776 test "$*" != "X conftest.ts1 conftest.ts2" ||
2777 test "$*" != "X conftest.ts2 conftest.ts1";
2778 }
2779 ); then :; else
2780 # If neither matched, then we have a broken ls. This can happen
2781 # if, for instance, CONFIG_SHELL is bash and it inherits a
2782 # broken ls alias from the environment. This has actually
2783 # happened. Such a system could not be considered "sane".
2784 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2785 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2786 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2787 as_fn_error $? "ls -t produces unexpected output.
2788 Make sure there is not a broken ls alias in your environment.
2789 See 'config.log' for more details" "$LINENO" 5; }
2790 fi
2791
2792 for am_try_res in $am_try_resolutions; do
2793 # Any one fine-grained sleep might happen to cross the boundary
2794 # between two values of a coarser actual resolution, but if we do
2795 # two fine-grained sleeps in a row, at least one of them will fall
2796 # entirely within a coarse interval.
2797 echo alpha > conftest.ts1
2798 sleep $am_try_res
2799 echo beta > conftest.ts2
2800 sleep $am_try_res
2801 echo gamma > conftest.ts3
2802
2803 # We assume that 'ls -t' will make use of high-resolution
2804 # timestamps if the operating system supports them at all.
2805 if (set X `ls -t conftest.ts?` &&
2806 test "$2" = conftest.ts3 &&
2807 test "$3" = conftest.ts2 &&
2808 test "$4" = conftest.ts1); then
2809 #
2810 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2811 # because we don't need to test make.
2812 make_ok=true
2813 if test $am_try_res != 1; then
2814 # But if we've succeeded so far with a subsecond resolution, we
2815 # have one more thing to check: make. It can happen that
2816 # everything else supports the subsecond mtimes, but make doesn't;
2817 # notably on macOS, which ships make 3.81 from 2006 (the last one
2818 # released under GPLv2). https://bugs.gnu.org/68808
2819 #
2820 # We test $MAKE if it is defined in the environment, else "make".
2821 # It might get overridden later, but our hope is that in practice
2822 # it does not matter: it is the system "make" which is (by far)
2823 # the most likely to be broken, whereas if the user overrides it,
2824 # probably they did so with a better, or at least not worse, make.
2825 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2826 #
2827 # Create a Makefile (real tab character here):
2828 rm -f conftest.mk
2829 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2830 echo ' touch conftest.ts2' >>conftest.mk
2831 #
2832 # Now, running
2833 # touch conftest.ts1; touch conftest.ts2; make
2834 # should touch ts1 because ts2 is newer. This could happen by luck,
2835 # but most often, it will fail if make's support is insufficient. So
2836 # test for several consecutive successes.
2837 #
2838 # (We reuse conftest.ts[12] because we still want to modify existing
2839 # files, not create new ones, per above.)
2840 n=0
2841 make=${MAKE-make}
2842 until test $n -eq 3; do
2843 echo one > conftest.ts1
2844 sleep $am_try_res
2845 echo two > conftest.ts2 # ts2 should now be newer than ts1
2846 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2847 make_ok=false
2848 break # out of $n loop
2849 fi
2850 n=`expr $n + 1`
2851 done
2852 fi
2853 #
2854 if $make_ok; then
2855 # Everything we know to check worked out, so call this resolution good.
2856 am_cv_filesystem_timestamp_resolution=$am_try_res
2857 break # out of $am_try_res loop
2858 fi
2859 # Otherwise, we'll go on to check the next resolution.
2860 fi
2861 done
2862 rm -f conftest.ts?
2863 # (end _am_filesystem_timestamp_resolution)
2864 ;;
2865 esac
2866 fi
2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2868 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2869
2870 # This check should not be cached, as it may vary across builds of
2871 # different projects.
2872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2873 printf %s "checking whether build environment is sane... " >&6; }
2874 # Reject unsafe characters in $srcdir or the absolute working directory
2875 # name. Accept space and tab only in the latter.
2876 am_lf='
2877 '
2878 case `pwd` in
2879 *[\\\"\#\$\&\'\`$am_lf]*)
2880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 printf "%s\n" "no" >&6; }
2882 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2883 esac
2884 case $srcdir in
2885 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 printf "%s\n" "no" >&6; }
2888 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2889 esac
2890
2891 # Do 'set' in a subshell so we don't clobber the current shell's
2892 # arguments. Must try -L first in case configure is actually a
2893 # symlink; some systems play weird games with the mod time of symlinks
2894 # (eg FreeBSD returns the mod time of the symlink's containing
2895 # directory).
2896 am_build_env_is_sane=no
2897 am_has_slept=no
2898 rm -f conftest.file
2899 for am_try in 1 2; do
2900 echo "timestamp, slept: $am_has_slept" > conftest.file
2901 if (
2902 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2903 if test "$*" = "X"; then
2904 # -L didn't work.
2905 set X `ls -t "$srcdir/configure" conftest.file`
2906 fi
2907 test "$2" = conftest.file
2908 ); then
2909 am_build_env_is_sane=yes
2910 break
2911 fi
2912 # Just in case.
2913 sleep "$am_cv_filesystem_timestamp_resolution"
2914 am_has_slept=yes
2915 done
2916
2917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2918 printf "%s\n" "$am_build_env_is_sane" >&6; }
2919 if test "$am_build_env_is_sane" = no; then
2920 as_fn_error $? "newly created file is older than distributed files!
2921 Check your system clock" "$LINENO" 5
2922 fi
2923
2924 # If we didn't sleep, we still need to ensure time stamps of config.status and
2925 # generated files are strictly newer.
2926 am_sleep_pid=
2927 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2928 then :
2929
2930 else case e in #(
2931 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
2932 am_sleep_pid=$!
2933 ;;
2934 esac
2935 fi
2936
2937 rm -f conftest.file
2938
2939 test "$program_prefix" != NONE &&
2940 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2941 # Use a double $ so make ignores it.
2942 test "$program_suffix" != NONE &&
2943 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2944 # Double any \ or $.
2945 # By default was 's,x,x', remove it if useless.
2946 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2947 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2948
2949
2950 # Expand $ac_aux_dir to an absolute path.
2951 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2952
2953
2954 if test x"${MISSING+set}" != xset; then
2955 MISSING="\${SHELL} '$am_aux_dir/missing'"
2956 fi
2957 # Use eval to expand $SHELL
2958 if eval "$MISSING --is-lightweight"; then
2959 am_missing_run="$MISSING "
2960 else
2961 am_missing_run=
2962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2963 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2964 fi
2965
2966 if test x"${install_sh+set}" != xset; then
2967 case $am_aux_dir in
2968 *\ * | *\ *)
2969 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2970 *)
2971 install_sh="\${SHELL} $am_aux_dir/install-sh"
2972 esac
2973 fi
2974
2975 # Installed binaries are usually stripped using 'strip' when the user
2976 # run "make install-strip". However 'strip' might not be the right
2977 # tool to use in cross-compilation environments, therefore Automake
2978 # will honor the 'STRIP' environment variable to overrule this program.
2979 if test "$cross_compiling" != no; then
2980 if test -n "$ac_tool_prefix"; then
2981 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2982 set dummy ${ac_tool_prefix}strip; ac_word=$2
2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 printf %s "checking for $ac_word... " >&6; }
2985 if test ${ac_cv_prog_STRIP+y}
2986 then :
2987 printf %s "(cached) " >&6
2988 else case e in #(
2989 e) if test -n "$STRIP"; then
2990 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995 IFS=$as_save_IFS
2996 case $as_dir in #(((
2997 '') as_dir=./ ;;
2998 */) ;;
2999 *) as_dir=$as_dir/ ;;
3000 esac
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3003 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3005 break 2
3006 fi
3007 done
3008 done
3009 IFS=$as_save_IFS
3010
3011 fi ;;
3012 esac
3013 fi
3014 STRIP=$ac_cv_prog_STRIP
3015 if test -n "$STRIP"; then
3016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3017 printf "%s\n" "$STRIP" >&6; }
3018 else
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 printf "%s\n" "no" >&6; }
3021 fi
3022
3023
3024 fi
3025 if test -z "$ac_cv_prog_STRIP"; then
3026 ac_ct_STRIP=$STRIP
3027 # Extract the first word of "strip", so it can be a program name with args.
3028 set dummy strip; ac_word=$2
3029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 printf %s "checking for $ac_word... " >&6; }
3031 if test ${ac_cv_prog_ac_ct_STRIP+y}
3032 then :
3033 printf %s "(cached) " >&6
3034 else case e in #(
3035 e) if test -n "$ac_ct_STRIP"; then
3036 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041 IFS=$as_save_IFS
3042 case $as_dir in #(((
3043 '') as_dir=./ ;;
3044 */) ;;
3045 *) as_dir=$as_dir/ ;;
3046 esac
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3049 ac_cv_prog_ac_ct_STRIP="strip"
3050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3051 break 2
3052 fi
3053 done
3054 done
3055 IFS=$as_save_IFS
3056
3057 fi ;;
3058 esac
3059 fi
3060 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3061 if test -n "$ac_ct_STRIP"; then
3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3063 printf "%s\n" "$ac_ct_STRIP" >&6; }
3064 else
3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 printf "%s\n" "no" >&6; }
3067 fi
3068
3069 if test "x$ac_ct_STRIP" = x; then
3070 STRIP=":"
3071 else
3072 case $cross_compiling:$ac_tool_warned in
3073 yes:)
3074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3075 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3076 ac_tool_warned=yes ;;
3077 esac
3078 STRIP=$ac_ct_STRIP
3079 fi
3080 else
3081 STRIP="$ac_cv_prog_STRIP"
3082 fi
3083
3084 fi
3085 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3086
3087
3088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3089 printf %s "checking for a race-free mkdir -p... " >&6; }
3090 if test -z "$MKDIR_P"; then
3091 if test ${ac_cv_path_mkdir+y}
3092 then :
3093 printf %s "(cached) " >&6
3094 else case e in #(
3095 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3097 do
3098 IFS=$as_save_IFS
3099 case $as_dir in #(((
3100 '') as_dir=./ ;;
3101 */) ;;
3102 *) as_dir=$as_dir/ ;;
3103 esac
3104 for ac_prog in mkdir gmkdir; do
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3107 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3108 'mkdir ('*'coreutils) '* | \
3109 *'BusyBox '* | \
3110 'mkdir (fileutils) '4.1*)
3111 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3112 break 3;;
3113 esac
3114 done
3115 done
3116 done
3117 IFS=$as_save_IFS
3118 ;;
3119 esac
3120 fi
3121
3122 test -d ./--version && rmdir ./--version
3123 if test ${ac_cv_path_mkdir+y}; then
3124 MKDIR_P="$ac_cv_path_mkdir -p"
3125 else
3126 # As a last resort, use plain mkdir -p,
3127 # in the hope it doesn't have the bugs of ancient mkdir.
3128 MKDIR_P='mkdir -p'
3129 fi
3130 fi
3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3132 printf "%s\n" "$MKDIR_P" >&6; }
3133
3134 for ac_prog in gawk mawk nawk awk
3135 do
3136 # Extract the first word of "$ac_prog", so it can be a program name with args.
3137 set dummy $ac_prog; ac_word=$2
3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3139 printf %s "checking for $ac_word... " >&6; }
3140 if test ${ac_cv_prog_AWK+y}
3141 then :
3142 printf %s "(cached) " >&6
3143 else case e in #(
3144 e) if test -n "$AWK"; then
3145 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150 IFS=$as_save_IFS
3151 case $as_dir in #(((
3152 '') as_dir=./ ;;
3153 */) ;;
3154 *) as_dir=$as_dir/ ;;
3155 esac
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3158 ac_cv_prog_AWK="$ac_prog"
3159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3160 break 2
3161 fi
3162 done
3163 done
3164 IFS=$as_save_IFS
3165
3166 fi ;;
3167 esac
3168 fi
3169 AWK=$ac_cv_prog_AWK
3170 if test -n "$AWK"; then
3171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3172 printf "%s\n" "$AWK" >&6; }
3173 else
3174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175 printf "%s\n" "no" >&6; }
3176 fi
3177
3178
3179 test -n "$AWK" && break
3180 done
3181
3182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3183 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3184 set x ${MAKE-make}
3185 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3186 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3187 then :
3188 printf %s "(cached) " >&6
3189 else case e in #(
3190 e) cat >conftest.make <<\_ACEOF
3191 SHELL = /bin/sh
3192 all:
3193 @echo '@@@%%%=$(MAKE)=@@@%%%'
3194 _ACEOF
3195 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3196 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3197 *@@@%%%=?*=@@@%%%*)
3198 eval ac_cv_prog_make_${ac_make}_set=yes;;
3199 *)
3200 eval ac_cv_prog_make_${ac_make}_set=no;;
3201 esac
3202 rm -f conftest.make ;;
3203 esac
3204 fi
3205 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3207 printf "%s\n" "yes" >&6; }
3208 SET_MAKE=
3209 else
3210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 printf "%s\n" "no" >&6; }
3212 SET_MAKE="MAKE=${MAKE-make}"
3213 fi
3214
3215 rm -rf .tst 2>/dev/null
3216 mkdir .tst 2>/dev/null
3217 if test -d .tst; then
3218 am__leading_dot=.
3219 else
3220 am__leading_dot=_
3221 fi
3222 rmdir .tst 2>/dev/null
3223
3224 AM_DEFAULT_VERBOSITY=1
3225 # Check whether --enable-silent-rules was given.
3226 if test ${enable_silent_rules+y}
3227 then :
3228 enableval=$enable_silent_rules;
3229 fi
3230
3231 am_make=${MAKE-make}
3232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3233 printf %s "checking whether $am_make supports nested variables... " >&6; }
3234 if test ${am_cv_make_support_nested_variables+y}
3235 then :
3236 printf %s "(cached) " >&6
3237 else case e in #(
3238 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3239 BAR0=false
3240 BAR1=true
3241 V=1
3242 am__doit:
3243 @$(TRUE)
3244 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3245 am_cv_make_support_nested_variables=yes
3246 else
3247 am_cv_make_support_nested_variables=no
3248 fi ;;
3249 esac
3250 fi
3251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3252 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3253 AM_BACKSLASH='\'
3254
3255 am__rm_f_notfound=
3256 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3257 then :
3258
3259 else case e in #(
3260 e) am__rm_f_notfound='""' ;;
3261 esac
3262 fi
3263
3264
3265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3266 printf %s "checking xargs -n works... " >&6; }
3267 if test ${am_cv_xargs_n_works+y}
3268 then :
3269 printf %s "(cached) " >&6
3270 else case e in #(
3271 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3272 3"
3273 then :
3274 am_cv_xargs_n_works=yes
3275 else case e in #(
3276 e) am_cv_xargs_n_works=no ;;
3277 esac
3278 fi ;;
3279 esac
3280 fi
3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3282 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3283 if test "$am_cv_xargs_n_works" = yes
3284 then :
3285 am__xargs_n='xargs -n'
3286 else case e in #(
3287 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3288 ;;
3289 esac
3290 fi
3291
3292 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3293 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3294 # is not polluted with repeated "-I."
3295 am__isrc=' -I$(srcdir)'
3296 # test to see if srcdir already configured
3297 if test -f $srcdir/config.status; then
3298 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3299 fi
3300 fi
3301
3302 # test whether we have cygpath
3303 if test -z "$CYGPATH_W"; then
3304 if (cygpath --version) >/dev/null 2>/dev/null; then
3305 CYGPATH_W='cygpath -w'
3306 else
3307 CYGPATH_W=echo
3308 fi
3309 fi
3310
3311
3312 # Define the identity of the package.
3313 PACKAGE='cockpit'
3314 VERSION='368'
3315
3316
3317 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3318
3319
3320 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3321
3322 # Some tools Automake needs.
3323
3324 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3325
3326
3327 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3328
3329
3330 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3331
3332
3333 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3334
3335
3336 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3337
3338 # For better backward compatibility. To be removed once Automake 1.9.x
3339 # dies out for good. For more background, see:
3340 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3341 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3342 mkdir_p='$(MKDIR_P)'
3343
3344 # We need awk for the "check" target (and possibly the TAP driver). The
3345 # system "awk" is bad on some platforms.
3346 # Always define AMTAR for backward compatibility. Yes, it's still used
3347 # in the wild :-( We should find a proper way to deprecate it ...
3348 AMTAR='$${TAR-tar}'
3349
3350
3351 # We'll loop over all known methods to create a tar archive until one works.
3352 _am_tools='gnutar plaintar pax cpio none'
3353
3354 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3355 # There is notably a 21 bits limit for the UID and the GID. In fact,
3356 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3357 # and bug#13588).
3358 am_max_uid=2097151 # 2^21 - 1
3359 am_max_gid=$am_max_uid
3360 # The $UID and $GID variables are not portable, so we need to resort
3361 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3362 # below are definitely unexpected, so allow the users to see them
3363 # (that is, avoid stderr redirection).
3364 am_uid=`id -u || echo unknown`
3365 am_gid=`id -g || echo unknown`
3366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3367 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3368 if test x$am_uid = xunknown; then
3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3370 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3371 elif test $am_uid -le $am_max_uid; then
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3373 printf "%s\n" "yes" >&6; }
3374 else
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 printf "%s\n" "no" >&6; }
3377 _am_tools=none
3378 fi
3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3380 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3381 if test x$gm_gid = xunknown; then
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3383 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3384 elif test $am_gid -le $am_max_gid; then
3385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3386 printf "%s\n" "yes" >&6; }
3387 else
3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 printf "%s\n" "no" >&6; }
3390 _am_tools=none
3391 fi
3392
3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3394 printf %s "checking how to create a ustar tar archive... " >&6; }
3395
3396 # Go ahead even if we have the value already cached. We do so because we
3397 # need to set the values for the 'am__tar' and 'am__untar' variables.
3398 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3399
3400 for _am_tool in $_am_tools; do
3401 case $_am_tool in
3402 gnutar)
3403 for _am_tar in tar gnutar gtar; do
3404 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3405 ($_am_tar --version) >&5 2>&5
3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } && break
3409 done
3410 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3411 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3412 am__untar="$_am_tar -xf -"
3413 ;;
3414 plaintar)
3415 # Must skip GNU tar: if it does not support --format= it doesn't create
3416 # ustar tarball either.
3417 (tar --version) >/dev/null 2>&1 && continue
3418 am__tar='tar chf - "$$tardir"'
3419 am__tar_='tar chf - "$tardir"'
3420 am__untar='tar xf -'
3421 ;;
3422 pax)
3423 am__tar='pax -L -x ustar -w "$$tardir"'
3424 am__tar_='pax -L -x ustar -w "$tardir"'
3425 am__untar='pax -r'
3426 ;;
3427 cpio)
3428 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3429 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3430 am__untar='cpio -i -H ustar -d'
3431 ;;
3432 none)
3433 am__tar=false
3434 am__tar_=false
3435 am__untar=false
3436 ;;
3437 esac
3438
3439 # If the value was cached, stop now. We just wanted to have am__tar
3440 # and am__untar set.
3441 test -n "${am_cv_prog_tar_ustar}" && break
3442
3443 # tar/untar a dummy directory, and stop if the command works.
3444 rm -rf conftest.dir
3445 mkdir conftest.dir
3446 echo GrepMe > conftest.dir/file
3447 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3448 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3449 ac_status=$?
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); }
3452 rm -rf conftest.dir
3453 if test -s conftest.tar; then
3454 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3455 ($am__untar <conftest.tar) >&5 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }
3459 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3460 (cat conftest.dir/file) >&5 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }
3464 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3465 fi
3466 done
3467 rm -rf conftest.dir
3468
3469 if test ${am_cv_prog_tar_ustar+y}
3470 then :
3471 printf %s "(cached) " >&6
3472 else case e in #(
3473 e) am_cv_prog_tar_ustar=$_am_tool ;;
3474 esac
3475 fi
3476
3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3478 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3479
3480
3481
3482
3483
3484 # Variables for tags utilities; see am/tags.am
3485 if test -z "$CTAGS"; then
3486 CTAGS=ctags
3487 fi
3488
3489 if test -z "$ETAGS"; then
3490 ETAGS=etags
3491 fi
3492
3493 if test -z "$CSCOPE"; then
3494 CSCOPE=cscope
3495 fi
3496
3497
3498
3499
3500
3501
3502
3503 # we want tar-ustar to avoid introducing extra metadata (ctime, atime) which
3504 # only adds useless non-determinism to the result. we also want to sort.
3505 am__tar='tar --format=ustar --sort=name --owner=root:0 --group=root:0 -chf - "$$tardir"'
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516 DEPDIR="${am__leading_dot}deps"
3517
3518 ac_config_commands="$ac_config_commands depfiles"
3519
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3521 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3522 cat > confinc.mk << 'END'
3523 am__doit:
3524 @echo this is the am__doit target >confinc.out
3525 .PHONY: am__doit
3526 END
3527 am__include="#"
3528 am__quote=
3529 # BSD make does it like this.
3530 echo '.include "confinc.mk" # ignored' > confmf.BSD
3531 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3532 echo 'include confinc.mk # ignored' > confmf.GNU
3533 _am_result=no
3534 for s in GNU BSD; do
3535 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3536 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3537 ac_status=$?
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }
3540 case $?:`cat confinc.out 2>/dev/null` in #(
3541 '0:this is the am__doit target') :
3542 case $s in #(
3543 BSD) :
3544 am__include='.include' am__quote='"' ;; #(
3545 *) :
3546 am__include='include' am__quote='' ;;
3547 esac ;; #(
3548 *) :
3549 ;;
3550 esac
3551 if test "$am__include" != "#"; then
3552 _am_result="yes ($s style)"
3553 break
3554 fi
3555 done
3556 rm -f confinc.* confmf.*
3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3558 printf "%s\n" "${_am_result}" >&6; }
3559
3560 # Check whether --enable-dependency-tracking was given.
3561 if test ${enable_dependency_tracking+y}
3562 then :
3563 enableval=$enable_dependency_tracking;
3564 fi
3565
3566 if test "x$enable_dependency_tracking" != xno; then
3567 am_depcomp="$ac_aux_dir/depcomp"
3568 AMDEPBACKSLASH='\'
3569 am__nodep='_no'
3570 fi
3571 if test "x$enable_dependency_tracking" != xno; then
3572 AMDEP_TRUE=
3573 AMDEP_FALSE='#'
3574 else
3575 AMDEP_TRUE='#'
3576 AMDEP_FALSE=
3577 fi
3578
3579
3580 ac_ext=c
3581 ac_cpp='$CPP $CPPFLAGS'
3582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3585 if test -n "$ac_tool_prefix"; then
3586 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3587 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 printf %s "checking for $ac_word... " >&6; }
3590 if test ${ac_cv_prog_CC+y}
3591 then :
3592 printf %s "(cached) " >&6
3593 else case e in #(
3594 e) if test -n "$CC"; then
3595 ac_cv_prog_CC="$CC" # Let the user override the test.
3596 else
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3599 do
3600 IFS=$as_save_IFS
3601 case $as_dir in #(((
3602 '') as_dir=./ ;;
3603 */) ;;
3604 *) as_dir=$as_dir/ ;;
3605 esac
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3610 break 2
3611 fi
3612 done
3613 done
3614 IFS=$as_save_IFS
3615
3616 fi ;;
3617 esac
3618 fi
3619 CC=$ac_cv_prog_CC
3620 if test -n "$CC"; then
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3622 printf "%s\n" "$CC" >&6; }
3623 else
3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 printf "%s\n" "no" >&6; }
3626 fi
3627
3628
3629 fi
3630 if test -z "$ac_cv_prog_CC"; then
3631 ac_ct_CC=$CC
3632 # Extract the first word of "gcc", so it can be a program name with args.
3633 set dummy gcc; ac_word=$2
3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 printf %s "checking for $ac_word... " >&6; }
3636 if test ${ac_cv_prog_ac_ct_CC+y}
3637 then :
3638 printf %s "(cached) " >&6
3639 else case e in #(
3640 e) if test -n "$ac_ct_CC"; then
3641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3642 else
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3645 do
3646 IFS=$as_save_IFS
3647 case $as_dir in #(((
3648 '') as_dir=./ ;;
3649 */) ;;
3650 *) as_dir=$as_dir/ ;;
3651 esac
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3654 ac_cv_prog_ac_ct_CC="gcc"
3655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3656 break 2
3657 fi
3658 done
3659 done
3660 IFS=$as_save_IFS
3661
3662 fi ;;
3663 esac
3664 fi
3665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3666 if test -n "$ac_ct_CC"; then
3667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3668 printf "%s\n" "$ac_ct_CC" >&6; }
3669 else
3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3671 printf "%s\n" "no" >&6; }
3672 fi
3673
3674 if test "x$ac_ct_CC" = x; then
3675 CC=""
3676 else
3677 case $cross_compiling:$ac_tool_warned in
3678 yes:)
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3680 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3681 ac_tool_warned=yes ;;
3682 esac
3683 CC=$ac_ct_CC
3684 fi
3685 else
3686 CC="$ac_cv_prog_CC"
3687 fi
3688
3689 if test -z "$CC"; then
3690 if test -n "$ac_tool_prefix"; then
3691 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3692 set dummy ${ac_tool_prefix}cc; ac_word=$2
3693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694 printf %s "checking for $ac_word... " >&6; }
3695 if test ${ac_cv_prog_CC+y}
3696 then :
3697 printf %s "(cached) " >&6
3698 else case e in #(
3699 e) if test -n "$CC"; then
3700 ac_cv_prog_CC="$CC" # Let the user override the test.
3701 else
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH
3704 do
3705 IFS=$as_save_IFS
3706 case $as_dir in #(((
3707 '') as_dir=./ ;;
3708 */) ;;
3709 *) as_dir=$as_dir/ ;;
3710 esac
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3713 ac_cv_prog_CC="${ac_tool_prefix}cc"
3714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3715 break 2
3716 fi
3717 done
3718 done
3719 IFS=$as_save_IFS
3720
3721 fi ;;
3722 esac
3723 fi
3724 CC=$ac_cv_prog_CC
3725 if test -n "$CC"; then
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3727 printf "%s\n" "$CC" >&6; }
3728 else
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 printf "%s\n" "no" >&6; }
3731 fi
3732
3733
3734 fi
3735 fi
3736 if test -z "$CC"; then
3737 # Extract the first word of "cc", so it can be a program name with args.
3738 set dummy cc; ac_word=$2
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740 printf %s "checking for $ac_word... " >&6; }
3741 if test ${ac_cv_prog_CC+y}
3742 then :
3743 printf %s "(cached) " >&6
3744 else case e in #(
3745 e) if test -n "$CC"; then
3746 ac_cv_prog_CC="$CC" # Let the user override the test.
3747 else
3748 ac_prog_rejected=no
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH
3751 do
3752 IFS=$as_save_IFS
3753 case $as_dir in #(((
3754 '') as_dir=./ ;;
3755 */) ;;
3756 *) as_dir=$as_dir/ ;;
3757 esac
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3760 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3761 ac_prog_rejected=yes
3762 continue
3763 fi
3764 ac_cv_prog_CC="cc"
3765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3766 break 2
3767 fi
3768 done
3769 done
3770 IFS=$as_save_IFS
3771
3772 if test $ac_prog_rejected = yes; then
3773 # We found a bogon in the path, so make sure we never use it.
3774 set dummy $ac_cv_prog_CC
3775 shift
3776 if test $# != 0; then
3777 # We chose a different compiler from the bogus one.
3778 # However, it has the same basename, so the bogon will be chosen
3779 # first if we set CC to just the basename; use the full file name.
3780 shift
3781 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3782 fi
3783 fi
3784 fi ;;
3785 esac
3786 fi
3787 CC=$ac_cv_prog_CC
3788 if test -n "$CC"; then
3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3790 printf "%s\n" "$CC" >&6; }
3791 else
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 printf "%s\n" "no" >&6; }
3794 fi
3795
3796
3797 fi
3798 if test -z "$CC"; then
3799 if test -n "$ac_tool_prefix"; then
3800 for ac_prog in cl.exe
3801 do
3802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3805 printf %s "checking for $ac_word... " >&6; }
3806 if test ${ac_cv_prog_CC+y}
3807 then :
3808 printf %s "(cached) " >&6
3809 else case e in #(
3810 e) if test -n "$CC"; then
3811 ac_cv_prog_CC="$CC" # Let the user override the test.
3812 else
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3815 do
3816 IFS=$as_save_IFS
3817 case $as_dir in #(((
3818 '') as_dir=./ ;;
3819 */) ;;
3820 *) as_dir=$as_dir/ ;;
3821 esac
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3824 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3826 break 2
3827 fi
3828 done
3829 done
3830 IFS=$as_save_IFS
3831
3832 fi ;;
3833 esac
3834 fi
3835 CC=$ac_cv_prog_CC
3836 if test -n "$CC"; then
3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3838 printf "%s\n" "$CC" >&6; }
3839 else
3840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 printf "%s\n" "no" >&6; }
3842 fi
3843
3844
3845 test -n "$CC" && break
3846 done
3847 fi
3848 if test -z "$CC"; then
3849 ac_ct_CC=$CC
3850 for ac_prog in cl.exe
3851 do
3852 # Extract the first word of "$ac_prog", so it can be a program name with args.
3853 set dummy $ac_prog; ac_word=$2
3854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 printf %s "checking for $ac_word... " >&6; }
3856 if test ${ac_cv_prog_ac_ct_CC+y}
3857 then :
3858 printf %s "(cached) " >&6
3859 else case e in #(
3860 e) if test -n "$ac_ct_CC"; then
3861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3862 else
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3865 do
3866 IFS=$as_save_IFS
3867 case $as_dir in #(((
3868 '') as_dir=./ ;;
3869 */) ;;
3870 *) as_dir=$as_dir/ ;;
3871 esac
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3874 ac_cv_prog_ac_ct_CC="$ac_prog"
3875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3876 break 2
3877 fi
3878 done
3879 done
3880 IFS=$as_save_IFS
3881
3882 fi ;;
3883 esac
3884 fi
3885 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3886 if test -n "$ac_ct_CC"; then
3887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3888 printf "%s\n" "$ac_ct_CC" >&6; }
3889 else
3890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3891 printf "%s\n" "no" >&6; }
3892 fi
3893
3894
3895 test -n "$ac_ct_CC" && break
3896 done
3897
3898 if test "x$ac_ct_CC" = x; then
3899 CC=""
3900 else
3901 case $cross_compiling:$ac_tool_warned in
3902 yes:)
3903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3904 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3905 ac_tool_warned=yes ;;
3906 esac
3907 CC=$ac_ct_CC
3908 fi
3909 fi
3910
3911 fi
3912 if test -z "$CC"; then
3913 if test -n "$ac_tool_prefix"; then
3914 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3915 set dummy ${ac_tool_prefix}clang; ac_word=$2
3916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917 printf %s "checking for $ac_word... " >&6; }
3918 if test ${ac_cv_prog_CC+y}
3919 then :
3920 printf %s "(cached) " >&6
3921 else case e in #(
3922 e) if test -n "$CC"; then
3923 ac_cv_prog_CC="$CC" # Let the user override the test.
3924 else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3927 do
3928 IFS=$as_save_IFS
3929 case $as_dir in #(((
3930 '') as_dir=./ ;;
3931 */) ;;
3932 *) as_dir=$as_dir/ ;;
3933 esac
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_CC="${ac_tool_prefix}clang"
3937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3938 break 2
3939 fi
3940 done
3941 done
3942 IFS=$as_save_IFS
3943
3944 fi ;;
3945 esac
3946 fi
3947 CC=$ac_cv_prog_CC
3948 if test -n "$CC"; then
3949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3950 printf "%s\n" "$CC" >&6; }
3951 else
3952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 printf "%s\n" "no" >&6; }
3954 fi
3955
3956
3957 fi
3958 if test -z "$ac_cv_prog_CC"; then
3959 ac_ct_CC=$CC
3960 # Extract the first word of "clang", so it can be a program name with args.
3961 set dummy clang; ac_word=$2
3962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 printf %s "checking for $ac_word... " >&6; }
3964 if test ${ac_cv_prog_ac_ct_CC+y}
3965 then :
3966 printf %s "(cached) " >&6
3967 else case e in #(
3968 e) if test -n "$ac_ct_CC"; then
3969 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3973 do
3974 IFS=$as_save_IFS
3975 case $as_dir in #(((
3976 '') as_dir=./ ;;
3977 */) ;;
3978 *) as_dir=$as_dir/ ;;
3979 esac
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3982 ac_cv_prog_ac_ct_CC="clang"
3983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3984 break 2
3985 fi
3986 done
3987 done
3988 IFS=$as_save_IFS
3989
3990 fi ;;
3991 esac
3992 fi
3993 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3994 if test -n "$ac_ct_CC"; then
3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3996 printf "%s\n" "$ac_ct_CC" >&6; }
3997 else
3998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3999 printf "%s\n" "no" >&6; }
4000 fi
4001
4002 if test "x$ac_ct_CC" = x; then
4003 CC=""
4004 else
4005 case $cross_compiling:$ac_tool_warned in
4006 yes:)
4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4008 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4009 ac_tool_warned=yes ;;
4010 esac
4011 CC=$ac_ct_CC
4012 fi
4013 else
4014 CC="$ac_cv_prog_CC"
4015 fi
4016
4017 fi
4018
4019
4020 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4021 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4022 as_fn_error $? "no acceptable C compiler found in \$PATH
4023 See 'config.log' for more details" "$LINENO" 5; }
4024
4025 # Provide some information about the compiler.
4026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4027 set X $ac_compile
4028 ac_compiler=$2
4029 for ac_option in --version -v -V -qversion -version; do
4030 { { ac_try="$ac_compiler $ac_option >&5"
4031 case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034 esac
4035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036 printf "%s\n" "$ac_try_echo"; } >&5
4037 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4038 ac_status=$?
4039 if test -s conftest.err; then
4040 sed '10a\
4041 ... rest of stderr output deleted ...
4042 10q' conftest.err >conftest.er1
4043 cat conftest.er1 >&5
4044 fi
4045 rm -f conftest.er1 conftest.err
4046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047 test $ac_status = 0; }
4048 done
4049
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4052
4053 int
4054 main (void)
4055 {
4056
4057 ;
4058 return 0;
4059 }
4060 _ACEOF
4061 ac_clean_files_save=$ac_clean_files
4062 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4063 # Try to create an executable without -o first, disregard a.out.
4064 # It will help us diagnose broken compilers, and finding out an intuition
4065 # of exeext.
4066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4067 printf %s "checking whether the C compiler works... " >&6; }
4068 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4069
4070 # The possible output files:
4071 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4072
4073 ac_rmfiles=
4074 for ac_file in $ac_files
4075 do
4076 case $ac_file in
4077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4078 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4079 esac
4080 done
4081 rm -f $ac_rmfiles
4082
4083 if { { ac_try="$ac_link_default"
4084 case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4087 esac
4088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4089 printf "%s\n" "$ac_try_echo"; } >&5
4090 (eval "$ac_link_default") 2>&5
4091 ac_status=$?
4092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4093 test $ac_status = 0; }
4094 then :
4095 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4096 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4097 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4098 # so that the user can short-circuit this test for compilers unknown to
4099 # Autoconf.
4100 for ac_file in $ac_files ''
4101 do
4102 test -f "$ac_file" || continue
4103 case $ac_file in
4104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4105 ;;
4106 [ab].out )
4107 # We found the default executable, but exeext='' is most
4108 # certainly right.
4109 break;;
4110 *.* )
4111 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4112 then :; else
4113 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4114 fi
4115 # We set ac_cv_exeext here because the later test for it is not
4116 # safe: cross compilers may not add the suffix if given an '-o'
4117 # argument, so we may need to know it at that point already.
4118 # Even if this section looks crufty: it has the advantage of
4119 # actually working.
4120 break;;
4121 * )
4122 break;;
4123 esac
4124 done
4125 test "$ac_cv_exeext" = no && ac_cv_exeext=
4126
4127 else case e in #(
4128 e) ac_file='' ;;
4129 esac
4130 fi
4131 if test -z "$ac_file"
4132 then :
4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4134 printf "%s\n" "no" >&6; }
4135 printf "%s\n" "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4137
4138 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4139 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4140 as_fn_error 77 "C compiler cannot create executables
4141 See 'config.log' for more details" "$LINENO" 5; }
4142 else case e in #(
4143 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4144 printf "%s\n" "yes" >&6; } ;;
4145 esac
4146 fi
4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4148 printf %s "checking for C compiler default output file name... " >&6; }
4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4150 printf "%s\n" "$ac_file" >&6; }
4151 ac_exeext=$ac_cv_exeext
4152
4153 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4154 ac_clean_files=$ac_clean_files_save
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4156 printf %s "checking for suffix of executables... " >&6; }
4157 if { { ac_try="$ac_link"
4158 case "(($ac_try" in
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4161 esac
4162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4163 printf "%s\n" "$ac_try_echo"; } >&5
4164 (eval "$ac_link") 2>&5
4165 ac_status=$?
4166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4167 test $ac_status = 0; }
4168 then :
4169 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4170 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4171 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4172 # 'rm'.
4173 for ac_file in conftest.exe conftest conftest.*; do
4174 test -f "$ac_file" || continue
4175 case $ac_file in
4176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4177 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4178 break;;
4179 * ) break;;
4180 esac
4181 done
4182 else case e in #(
4183 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4184 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4185 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4186 See 'config.log' for more details" "$LINENO" 5; } ;;
4187 esac
4188 fi
4189 rm -f conftest conftest$ac_cv_exeext
4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4191 printf "%s\n" "$ac_cv_exeext" >&6; }
4192
4193 rm -f conftest.$ac_ext
4194 EXEEXT=$ac_cv_exeext
4195 ac_exeext=$EXEEXT
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4198 #include <stdio.h>
4199 int
4200 main (void)
4201 {
4202 FILE *f = fopen ("conftest.out", "w");
4203 if (!f)
4204 return 1;
4205 return ferror (f) || fclose (f) != 0;
4206
4207 ;
4208 return 0;
4209 }
4210 _ACEOF
4211 ac_clean_files="$ac_clean_files conftest.out"
4212 # Check that the compiler produces executables we can run. If not, either
4213 # the compiler is broken, or we cross compile.
4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4215 printf %s "checking whether we are cross compiling... " >&6; }
4216 if test "$cross_compiling" != yes; then
4217 { { ac_try="$ac_link"
4218 case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221 esac
4222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4223 printf "%s\n" "$ac_try_echo"; } >&5
4224 (eval "$ac_link") 2>&5
4225 ac_status=$?
4226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4227 test $ac_status = 0; }
4228 if { ac_try='./conftest$ac_cv_exeext'
4229 { { case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4232 esac
4233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4234 printf "%s\n" "$ac_try_echo"; } >&5
4235 (eval "$ac_try") 2>&5
4236 ac_status=$?
4237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4238 test $ac_status = 0; }; }; then
4239 cross_compiling=no
4240 else
4241 if test "$cross_compiling" = maybe; then
4242 cross_compiling=yes
4243 else
4244 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4245 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4246 as_fn_error 77 "cannot run C compiled programs.
4247 If you meant to cross compile, use '--host'.
4248 See 'config.log' for more details" "$LINENO" 5; }
4249 fi
4250 fi
4251 fi
4252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4253 printf "%s\n" "$cross_compiling" >&6; }
4254
4255 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4256 conftest.o conftest.obj conftest.out
4257 ac_clean_files=$ac_clean_files_save
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4259 printf %s "checking for suffix of object files... " >&6; }
4260 if test ${ac_cv_objext+y}
4261 then :
4262 printf %s "(cached) " >&6
4263 else case e in #(
4264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4266
4267 int
4268 main (void)
4269 {
4270
4271 ;
4272 return 0;
4273 }
4274 _ACEOF
4275 rm -f conftest.o conftest.obj
4276 if { { ac_try="$ac_compile"
4277 case "(($ac_try" in
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4280 esac
4281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4282 printf "%s\n" "$ac_try_echo"; } >&5
4283 (eval "$ac_compile") 2>&5
4284 ac_status=$?
4285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4286 test $ac_status = 0; }
4287 then :
4288 for ac_file in conftest.o conftest.obj conftest.*; do
4289 test -f "$ac_file" || continue;
4290 case $ac_file in
4291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4292 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4293 break;;
4294 esac
4295 done
4296 else case e in #(
4297 e) printf "%s\n" "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4299
4300 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4301 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4302 as_fn_error $? "cannot compute suffix of object files: cannot compile
4303 See 'config.log' for more details" "$LINENO" 5; } ;;
4304 esac
4305 fi
4306 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4307 esac
4308 fi
4309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4310 printf "%s\n" "$ac_cv_objext" >&6; }
4311 OBJEXT=$ac_cv_objext
4312 ac_objext=$OBJEXT
4313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4314 printf %s "checking whether the compiler supports GNU C... " >&6; }
4315 if test ${ac_cv_c_compiler_gnu+y}
4316 then :
4317 printf %s "(cached) " >&6
4318 else case e in #(
4319 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h. */
4321
4322 int
4323 main (void)
4324 {
4325 #ifndef __GNUC__
4326 choke me
4327 #endif
4328
4329 ;
4330 return 0;
4331 }
4332 _ACEOF
4333 if ac_fn_c_try_compile "$LINENO"
4334 then :
4335 ac_compiler_gnu=yes
4336 else case e in #(
4337 e) ac_compiler_gnu=no ;;
4338 esac
4339 fi
4340 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4341 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4342 ;;
4343 esac
4344 fi
4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4346 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4348
4349 if test $ac_compiler_gnu = yes; then
4350 GCC=yes
4351 else
4352 GCC=
4353 fi
4354 ac_test_CFLAGS=${CFLAGS+y}
4355 ac_save_CFLAGS=$CFLAGS
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4357 printf %s "checking whether $CC accepts -g... " >&6; }
4358 if test ${ac_cv_prog_cc_g+y}
4359 then :
4360 printf %s "(cached) " >&6
4361 else case e in #(
4362 e) ac_save_c_werror_flag=$ac_c_werror_flag
4363 ac_c_werror_flag=yes
4364 ac_cv_prog_cc_g=no
4365 CFLAGS="-g"
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4368
4369 int
4370 main (void)
4371 {
4372
4373 ;
4374 return 0;
4375 }
4376 _ACEOF
4377 if ac_fn_c_try_compile "$LINENO"
4378 then :
4379 ac_cv_prog_cc_g=yes
4380 else case e in #(
4381 e) CFLAGS=""
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4384
4385 int
4386 main (void)
4387 {
4388
4389 ;
4390 return 0;
4391 }
4392 _ACEOF
4393 if ac_fn_c_try_compile "$LINENO"
4394 then :
4395
4396 else case e in #(
4397 e) ac_c_werror_flag=$ac_save_c_werror_flag
4398 CFLAGS="-g"
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4401
4402 int
4403 main (void)
4404 {
4405
4406 ;
4407 return 0;
4408 }
4409 _ACEOF
4410 if ac_fn_c_try_compile "$LINENO"
4411 then :
4412 ac_cv_prog_cc_g=yes
4413 fi
4414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4415 esac
4416 fi
4417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4418 esac
4419 fi
4420 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4421 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4422 esac
4423 fi
4424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4425 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4426 if test $ac_test_CFLAGS; then
4427 CFLAGS=$ac_save_CFLAGS
4428 elif test $ac_cv_prog_cc_g = yes; then
4429 if test "$GCC" = yes; then
4430 CFLAGS="-g -O2"
4431 else
4432 CFLAGS="-g"
4433 fi
4434 else
4435 if test "$GCC" = yes; then
4436 CFLAGS="-O2"
4437 else
4438 CFLAGS=
4439 fi
4440 fi
4441 ac_prog_cc_stdc=no
4442 if test x$ac_prog_cc_stdc = xno
4443 then :
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4445 printf %s "checking for $CC option to enable C11 features... " >&6; }
4446 if test ${ac_cv_prog_cc_c11+y}
4447 then :
4448 printf %s "(cached) " >&6
4449 else case e in #(
4450 e) ac_cv_prog_cc_c11=no
4451 ac_save_CC=$CC
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4454 $ac_c_conftest_c11_program
4455 _ACEOF
4456 for ac_arg in '' -std=gnu11
4457 do
4458 CC="$ac_save_CC $ac_arg"
4459 if ac_fn_c_try_compile "$LINENO"
4460 then :
4461 ac_cv_prog_cc_c11=$ac_arg
4462 fi
4463 rm -f core conftest.err conftest.$ac_objext conftest.beam
4464 test "x$ac_cv_prog_cc_c11" != "xno" && break
4465 done
4466 rm -f conftest.$ac_ext
4467 CC=$ac_save_CC ;;
4468 esac
4469 fi
4470
4471 if test "x$ac_cv_prog_cc_c11" = xno
4472 then :
4473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4474 printf "%s\n" "unsupported" >&6; }
4475 else case e in #(
4476 e) if test "x$ac_cv_prog_cc_c11" = x
4477 then :
4478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4479 printf "%s\n" "none needed" >&6; }
4480 else case e in #(
4481 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4482 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4483 CC="$CC $ac_cv_prog_cc_c11" ;;
4484 esac
4485 fi
4486 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4487 ac_prog_cc_stdc=c11 ;;
4488 esac
4489 fi
4490 fi
4491 if test x$ac_prog_cc_stdc = xno
4492 then :
4493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4494 printf %s "checking for $CC option to enable C99 features... " >&6; }
4495 if test ${ac_cv_prog_cc_c99+y}
4496 then :
4497 printf %s "(cached) " >&6
4498 else case e in #(
4499 e) ac_cv_prog_cc_c99=no
4500 ac_save_CC=$CC
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4503 $ac_c_conftest_c99_program
4504 _ACEOF
4505 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4506 do
4507 CC="$ac_save_CC $ac_arg"
4508 if ac_fn_c_try_compile "$LINENO"
4509 then :
4510 ac_cv_prog_cc_c99=$ac_arg
4511 fi
4512 rm -f core conftest.err conftest.$ac_objext conftest.beam
4513 test "x$ac_cv_prog_cc_c99" != "xno" && break
4514 done
4515 rm -f conftest.$ac_ext
4516 CC=$ac_save_CC ;;
4517 esac
4518 fi
4519
4520 if test "x$ac_cv_prog_cc_c99" = xno
4521 then :
4522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4523 printf "%s\n" "unsupported" >&6; }
4524 else case e in #(
4525 e) if test "x$ac_cv_prog_cc_c99" = x
4526 then :
4527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4528 printf "%s\n" "none needed" >&6; }
4529 else case e in #(
4530 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4531 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4532 CC="$CC $ac_cv_prog_cc_c99" ;;
4533 esac
4534 fi
4535 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4536 ac_prog_cc_stdc=c99 ;;
4537 esac
4538 fi
4539 fi
4540 if test x$ac_prog_cc_stdc = xno
4541 then :
4542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4543 printf %s "checking for $CC option to enable C89 features... " >&6; }
4544 if test ${ac_cv_prog_cc_c89+y}
4545 then :
4546 printf %s "(cached) " >&6
4547 else case e in #(
4548 e) ac_cv_prog_cc_c89=no
4549 ac_save_CC=$CC
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h. */
4552 $ac_c_conftest_c89_program
4553 _ACEOF
4554 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4555 do
4556 CC="$ac_save_CC $ac_arg"
4557 if ac_fn_c_try_compile "$LINENO"
4558 then :
4559 ac_cv_prog_cc_c89=$ac_arg
4560 fi
4561 rm -f core conftest.err conftest.$ac_objext conftest.beam
4562 test "x$ac_cv_prog_cc_c89" != "xno" && break
4563 done
4564 rm -f conftest.$ac_ext
4565 CC=$ac_save_CC ;;
4566 esac
4567 fi
4568
4569 if test "x$ac_cv_prog_cc_c89" = xno
4570 then :
4571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4572 printf "%s\n" "unsupported" >&6; }
4573 else case e in #(
4574 e) if test "x$ac_cv_prog_cc_c89" = x
4575 then :
4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4577 printf "%s\n" "none needed" >&6; }
4578 else case e in #(
4579 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4580 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4581 CC="$CC $ac_cv_prog_cc_c89" ;;
4582 esac
4583 fi
4584 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4585 ac_prog_cc_stdc=c89 ;;
4586 esac
4587 fi
4588 fi
4589
4590 ac_ext=c
4591 ac_cpp='$CPP $CPPFLAGS'
4592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4595
4596
4597 ac_ext=c
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4603 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4604 if test ${am_cv_prog_cc_c_o+y}
4605 then :
4606 printf %s "(cached) " >&6
4607 else case e in #(
4608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4610
4611 int
4612 main (void)
4613 {
4614
4615 ;
4616 return 0;
4617 }
4618 _ACEOF
4619 # Make sure it works both with $CC and with simple cc.
4620 # Following AC_PROG_CC_C_O, we do the test twice because some
4621 # compilers refuse to overwrite an existing .o file with -o,
4622 # though they will create one.
4623 am_cv_prog_cc_c_o=yes
4624 for am_i in 1 2; do
4625 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4626 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } \
4630 && test -f conftest2.$ac_objext; then
4631 : OK
4632 else
4633 am_cv_prog_cc_c_o=no
4634 break
4635 fi
4636 done
4637 # aligned with autoconf, so not including core; see bug#72225.
4638 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
4639 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
4640 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
4641 unset am_i ;;
4642 esac
4643 fi
4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4645 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4646 if test "$am_cv_prog_cc_c_o" != yes; then
4647 # Losing compiler, so override with the script.
4648 # FIXME: It is wrong to rewrite CC.
4649 # But if we don't then we get into trouble of one sort or another.
4650 # A longer-term fix would be to have automake use am__CC in this case,
4651 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4652 CC="$am_aux_dir/compile $CC"
4653 fi
4654 ac_ext=c
4655 ac_cpp='$CPP $CPPFLAGS'
4656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659
4660
4661 depcc="$CC" am_compiler_list=
4662
4663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4664 printf %s "checking dependency style of $depcc... " >&6; }
4665 if test ${am_cv_CC_dependencies_compiler_type+y}
4666 then :
4667 printf %s "(cached) " >&6
4668 else case e in #(
4669 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4670 # We make a subdir and do the tests there. Otherwise we can end up
4671 # making bogus files that we don't know about and never remove. For
4672 # instance it was reported that on HP-UX the gcc test will end up
4673 # making a dummy file named 'D' -- because '-MD' means "put the output
4674 # in D".
4675 rm -rf conftest.dir
4676 mkdir conftest.dir
4677 # Copy depcomp to subdir because otherwise we won't find it if we're
4678 # using a relative directory.
4679 cp "$am_depcomp" conftest.dir
4680 cd conftest.dir
4681 # We will build objects and dependencies in a subdirectory because
4682 # it helps to detect inapplicable dependency modes. For instance
4683 # both Tru64's cc and ICC support -MD to output dependencies as a
4684 # side effect of compilation, but ICC will put the dependencies in
4685 # the current directory while Tru64 will put them in the object
4686 # directory.
4687 mkdir sub
4688
4689 am_cv_CC_dependencies_compiler_type=none
4690 if test "$am_compiler_list" = ""; then
4691 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4692 fi
4693 am__universal=false
4694 case " $depcc " in #(
4695 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4696 esac
4697
4698 for depmode in $am_compiler_list; do
4699 # Setup a source with many dependencies, because some compilers
4700 # like to wrap large dependency lists on column 80 (with \), and
4701 # we should not choose a depcomp mode which is confused by this.
4702 #
4703 # We need to recreate these files for each test, as the compiler may
4704 # overwrite some of them when testing with obscure command lines.
4705 # This happens at least with the AIX C compiler.
4706 : > sub/conftest.c
4707 for i in 1 2 3 4 5 6; do
4708 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4709 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4710 # Solaris 10 /bin/sh.
4711 echo '/* dummy */' > sub/conftst$i.h
4712 done
4713 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4714
4715 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4716 # mode. It turns out that the SunPro C++ compiler does not properly
4717 # handle '-M -o', and we need to detect this. Also, some Intel
4718 # versions had trouble with output in subdirs.
4719 am__obj=sub/conftest.${OBJEXT-o}
4720 am__minus_obj="-o $am__obj"
4721 case $depmode in
4722 gcc)
4723 # This depmode causes a compiler race in universal mode.
4724 test "$am__universal" = false || continue
4725 ;;
4726 nosideeffect)
4727 # After this tag, mechanisms are not by side-effect, so they'll
4728 # only be used when explicitly requested.
4729 if test "x$enable_dependency_tracking" = xyes; then
4730 continue
4731 else
4732 break
4733 fi
4734 ;;
4735 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4736 # This compiler won't grok '-c -o', but also, the minuso test has
4737 # not run yet. These depmodes are late enough in the game, and
4738 # so weak that their functioning should not be impacted.
4739 am__obj=conftest.${OBJEXT-o}
4740 am__minus_obj=
4741 ;;
4742 none) break ;;
4743 esac
4744 if depmode=$depmode \
4745 source=sub/conftest.c object=$am__obj \
4746 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4747 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4748 >/dev/null 2>conftest.err &&
4749 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4750 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4751 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4752 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4753 # icc doesn't choke on unknown options, it will just issue warnings
4754 # or remarks (even with -Werror). So we grep stderr for any message
4755 # that says an option was ignored or not supported.
4756 # When given -MP, icc 7.0 and 7.1 complain thus:
4757 # icc: Command line warning: ignoring option '-M'; no argument required
4758 # The diagnosis changed in icc 8.0:
4759 # icc: Command line remark: option '-MP' not supported
4760 if (grep 'ignoring option' conftest.err ||
4761 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4762 am_cv_CC_dependencies_compiler_type=$depmode
4763 break
4764 fi
4765 fi
4766 done
4767
4768 cd ..
4769 rm -rf conftest.dir
4770 else
4771 am_cv_CC_dependencies_compiler_type=none
4772 fi
4773 ;;
4774 esac
4775 fi
4776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4777 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4778 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4779
4780 if
4781 test "x$enable_dependency_tracking" != xno \
4782 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4783 am__fastdepCC_TRUE=
4784 am__fastdepCC_FALSE='#'
4785 else
4786 am__fastdepCC_TRUE='#'
4787 am__fastdepCC_FALSE=
4788 fi
4789
4790
4791
4792 ac_header= ac_cache=
4793 for ac_item in $ac_header_c_list
4794 do
4795 if test $ac_cache; then
4796 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4797 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4798 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4799 fi
4800 ac_header= ac_cache=
4801 elif test $ac_header; then
4802 ac_cache=$ac_item
4803 else
4804 ac_header=$ac_item
4805 fi
4806 done
4807
4808
4809
4810
4811
4812
4813
4814
4815 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4816 then :
4817
4818 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4819
4820 fi
4821
4822
4823
4824
4825
4826
4827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4828 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4829 if test ${ac_cv_safe_to_define___extensions__+y}
4830 then :
4831 printf %s "(cached) " >&6
4832 else case e in #(
4833 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834 /* end confdefs.h. */
4835
4836 # define __EXTENSIONS__ 1
4837 $ac_includes_default
4838 int
4839 main (void)
4840 {
4841
4842 ;
4843 return 0;
4844 }
4845 _ACEOF
4846 if ac_fn_c_try_compile "$LINENO"
4847 then :
4848 ac_cv_safe_to_define___extensions__=yes
4849 else case e in #(
4850 e) ac_cv_safe_to_define___extensions__=no ;;
4851 esac
4852 fi
4853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4854 esac
4855 fi
4856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4857 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4858
4859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4860 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4861 if test ${ac_cv_should_define__xopen_source+y}
4862 then :
4863 printf %s "(cached) " >&6
4864 else case e in #(
4865 e) ac_cv_should_define__xopen_source=no
4866 if test $ac_cv_header_wchar_h = yes
4867 then :
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4870
4871 #include <wchar.h>
4872 mbstate_t x;
4873 int
4874 main (void)
4875 {
4876
4877 ;
4878 return 0;
4879 }
4880 _ACEOF
4881 if ac_fn_c_try_compile "$LINENO"
4882 then :
4883
4884 else case e in #(
4885 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4887
4888 #define _XOPEN_SOURCE 500
4889 #include <wchar.h>
4890 mbstate_t x;
4891 int
4892 main (void)
4893 {
4894
4895 ;
4896 return 0;
4897 }
4898 _ACEOF
4899 if ac_fn_c_try_compile "$LINENO"
4900 then :
4901 ac_cv_should_define__xopen_source=yes
4902 fi
4903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4904 esac
4905 fi
4906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4907 fi ;;
4908 esac
4909 fi
4910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4911 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4912
4913 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4914
4915 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4916
4917 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4918
4919 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4920
4921 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4922
4923 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4924
4925 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4926
4927 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4928
4929 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4930
4931 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4932
4933 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4934
4935 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4936
4937 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4938
4939 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4940
4941 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4942
4943 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4944
4945 if test $ac_cv_header_minix_config_h = yes
4946 then :
4947 MINIX=yes
4948 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4949
4950 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4951
4952 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4953
4954 else case e in #(
4955 e) MINIX= ;;
4956 esac
4957 fi
4958 if test $ac_cv_safe_to_define___extensions__ = yes
4959 then :
4960 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4961
4962 fi
4963 if test $ac_cv_should_define__xopen_source = yes
4964 then :
4965 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4966
4967 fi
4968
4969 # Check whether --enable-largefile was given.
4970 if test ${enable_largefile+y}
4971 then :
4972 enableval=$enable_largefile;
4973 fi
4974 if test "$enable_largefile,$enable_year2038" != no,no
4975 then :
4976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
4977 printf %s "checking for $CC option to enable large file support... " >&6; }
4978 if test ${ac_cv_sys_largefile_opts+y}
4979 then :
4980 printf %s "(cached) " >&6
4981 else case e in #(
4982 e) ac_save_CC="$CC"
4983 ac_opt_found=no
4984 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
4985 if test x"$ac_opt" != x"none needed"
4986 then :
4987 CC="$ac_save_CC $ac_opt"
4988 fi
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4991 #include <sys/types.h>
4992 #ifndef FTYPE
4993 # define FTYPE off_t
4994 #endif
4995 /* Check that FTYPE can represent 2**63 - 1 correctly.
4996 We can't simply define LARGE_FTYPE to be 9223372036854775807,
4997 since some C++ compilers masquerading as C compilers
4998 incorrectly reject 9223372036854775807. */
4999 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
5000 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
5001 && LARGE_FTYPE % 2147483647 == 1)
5002 ? 1 : -1];
5003 int
5004 main (void)
5005 {
5006
5007 ;
5008 return 0;
5009 }
5010 _ACEOF
5011 if ac_fn_c_try_compile "$LINENO"
5012 then :
5013 if test x"$ac_opt" = x"none needed"
5014 then :
5015 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
5016 CC="$CC -DFTYPE=ino_t"
5017 if ac_fn_c_try_compile "$LINENO"
5018 then :
5019
5020 else case e in #(
5021 e) CC="$CC -D_FILE_OFFSET_BITS=64"
5022 if ac_fn_c_try_compile "$LINENO"
5023 then :
5024 ac_opt='-D_FILE_OFFSET_BITS=64'
5025 fi
5026 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
5027 esac
5028 fi
5029 rm -f core conftest.err conftest.$ac_objext conftest.beam
5030 fi
5031 ac_cv_sys_largefile_opts=$ac_opt
5032 ac_opt_found=yes
5033 fi
5034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5035 test $ac_opt_found = no || break
5036 done
5037 CC="$ac_save_CC"
5038
5039 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
5040 esac
5041 fi
5042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
5043 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
5044
5045 ac_have_largefile=yes
5046 case $ac_cv_sys_largefile_opts in #(
5047 "none needed") :
5048 ;; #(
5049 "supported through gnulib") :
5050 ;; #(
5051 "support not detected") :
5052 ac_have_largefile=no ;; #(
5053 "-D_FILE_OFFSET_BITS=64") :
5054
5055 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
5056 ;; #(
5057 "-D_LARGE_FILES=1") :
5058
5059 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
5060 ;; #(
5061 "-n32") :
5062 CC="$CC -n32" ;; #(
5063 *) :
5064 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
5065 esac
5066
5067 if test "$enable_year2038" != no
5068 then :
5069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
5070 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
5071 if test ${ac_cv_sys_year2038_opts+y}
5072 then :
5073 printf %s "(cached) " >&6
5074 else case e in #(
5075 e) ac_save_CPPFLAGS="$CPPFLAGS"
5076 ac_opt_found=no
5077 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
5078 if test x"$ac_opt" != x"none needed"
5079 then :
5080 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
5081 fi
5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h. */
5084
5085 #include <time.h>
5086 /* Check that time_t can represent 2**32 - 1 correctly. */
5087 #define LARGE_TIME_T \\
5088 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
5089 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
5090 && LARGE_TIME_T % 65537 == 0)
5091 ? 1 : -1];
5092
5093 int
5094 main (void)
5095 {
5096
5097 ;
5098 return 0;
5099 }
5100 _ACEOF
5101 if ac_fn_c_try_compile "$LINENO"
5102 then :
5103 ac_cv_sys_year2038_opts="$ac_opt"
5104 ac_opt_found=yes
5105 fi
5106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5107 test $ac_opt_found = no || break
5108 done
5109 CPPFLAGS="$ac_save_CPPFLAGS"
5110 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
5111 esac
5112 fi
5113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
5114 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
5115
5116 ac_have_year2038=yes
5117 case $ac_cv_sys_year2038_opts in #(
5118 "none needed") :
5119 ;; #(
5120 "support not detected") :
5121 ac_have_year2038=no ;; #(
5122 "-D_TIME_BITS=64") :
5123
5124 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
5125 ;; #(
5126 "-D__MINGW_USE_VC2005_COMPAT") :
5127
5128 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
5129 ;; #(
5130 "-U_USE_32_BIT_TIME_T"*) :
5131 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5132 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5133 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
5134 will stop working after mid-January 2038. Remove
5135 _USE_32BIT_TIME_T from the compiler flags.
5136 See 'config.log' for more details" "$LINENO" 5; } ;; #(
5137 *) :
5138 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
5139 esac
5140
5141 fi
5142
5143 fi
5144 if test -n "$ac_tool_prefix"; then
5145 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5146 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 printf %s "checking for $ac_word... " >&6; }
5149 if test ${ac_cv_prog_RANLIB+y}
5150 then :
5151 printf %s "(cached) " >&6
5152 else case e in #(
5153 e) if test -n "$RANLIB"; then
5154 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5155 else
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159 IFS=$as_save_IFS
5160 case $as_dir in #(((
5161 '') as_dir=./ ;;
5162 */) ;;
5163 *) as_dir=$as_dir/ ;;
5164 esac
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5167 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5169 break 2
5170 fi
5171 done
5172 done
5173 IFS=$as_save_IFS
5174
5175 fi ;;
5176 esac
5177 fi
5178 RANLIB=$ac_cv_prog_RANLIB
5179 if test -n "$RANLIB"; then
5180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5181 printf "%s\n" "$RANLIB" >&6; }
5182 else
5183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 printf "%s\n" "no" >&6; }
5185 fi
5186
5187
5188 fi
5189 if test -z "$ac_cv_prog_RANLIB"; then
5190 ac_ct_RANLIB=$RANLIB
5191 # Extract the first word of "ranlib", so it can be a program name with args.
5192 set dummy ranlib; ac_word=$2
5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 printf %s "checking for $ac_word... " >&6; }
5195 if test ${ac_cv_prog_ac_ct_RANLIB+y}
5196 then :
5197 printf %s "(cached) " >&6
5198 else case e in #(
5199 e) if test -n "$ac_ct_RANLIB"; then
5200 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5201 else
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5204 do
5205 IFS=$as_save_IFS
5206 case $as_dir in #(((
5207 '') as_dir=./ ;;
5208 */) ;;
5209 *) as_dir=$as_dir/ ;;
5210 esac
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5213 ac_cv_prog_ac_ct_RANLIB="ranlib"
5214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5215 break 2
5216 fi
5217 done
5218 done
5219 IFS=$as_save_IFS
5220
5221 fi ;;
5222 esac
5223 fi
5224 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5225 if test -n "$ac_ct_RANLIB"; then
5226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5227 printf "%s\n" "$ac_ct_RANLIB" >&6; }
5228 else
5229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 printf "%s\n" "no" >&6; }
5231 fi
5232
5233 if test "x$ac_ct_RANLIB" = x; then
5234 RANLIB=":"
5235 else
5236 case $cross_compiling:$ac_tool_warned in
5237 yes:)
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5239 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5240 ac_tool_warned=yes ;;
5241 esac
5242 RANLIB=$ac_ct_RANLIB
5243 fi
5244 else
5245 RANLIB="$ac_cv_prog_RANLIB"
5246 fi
5247
5248
5249 # This is required to find the correct `ar` for cross-compiling
5250 if test -n "$ac_tool_prefix"; then
5251 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5252 set dummy ${ac_tool_prefix}ar; ac_word=$2
5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254 printf %s "checking for $ac_word... " >&6; }
5255 if test ${ac_cv_prog_AR+y}
5256 then :
5257 printf %s "(cached) " >&6
5258 else case e in #(
5259 e) if test -n "$AR"; then
5260 ac_cv_prog_AR="$AR" # Let the user override the test.
5261 else
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in $PATH
5264 do
5265 IFS=$as_save_IFS
5266 case $as_dir in #(((
5267 '') as_dir=./ ;;
5268 */) ;;
5269 *) as_dir=$as_dir/ ;;
5270 esac
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_AR="${ac_tool_prefix}ar"
5274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5275 break 2
5276 fi
5277 done
5278 done
5279 IFS=$as_save_IFS
5280
5281 fi ;;
5282 esac
5283 fi
5284 AR=$ac_cv_prog_AR
5285 if test -n "$AR"; then
5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5287 printf "%s\n" "$AR" >&6; }
5288 else
5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290 printf "%s\n" "no" >&6; }
5291 fi
5292
5293
5294 fi
5295 if test -z "$ac_cv_prog_AR"; then
5296 ac_ct_AR=$AR
5297 # Extract the first word of "ar", so it can be a program name with args.
5298 set dummy ar; ac_word=$2
5299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5300 printf %s "checking for $ac_word... " >&6; }
5301 if test ${ac_cv_prog_ac_ct_AR+y}
5302 then :
5303 printf %s "(cached) " >&6
5304 else case e in #(
5305 e) if test -n "$ac_ct_AR"; then
5306 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5307 else
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH
5310 do
5311 IFS=$as_save_IFS
5312 case $as_dir in #(((
5313 '') as_dir=./ ;;
5314 */) ;;
5315 *) as_dir=$as_dir/ ;;
5316 esac
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5319 ac_cv_prog_ac_ct_AR="ar"
5320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5321 break 2
5322 fi
5323 done
5324 done
5325 IFS=$as_save_IFS
5326
5327 fi ;;
5328 esac
5329 fi
5330 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5331 if test -n "$ac_ct_AR"; then
5332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5333 printf "%s\n" "$ac_ct_AR" >&6; }
5334 else
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 printf "%s\n" "no" >&6; }
5337 fi
5338
5339 if test "x$ac_ct_AR" = x; then
5340 AR=""
5341 else
5342 case $cross_compiling:$ac_tool_warned in
5343 yes:)
5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5345 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5346 ac_tool_warned=yes ;;
5347 esac
5348 AR=$ac_ct_AR
5349 fi
5350 else
5351 AR="$ac_cv_prog_AR"
5352 fi
5353
5354
5355 ac_fn_c_check_func "$LINENO" "pidfd_getpid" "ac_cv_func_pidfd_getpid"
5356 if test "x$ac_cv_func_pidfd_getpid" = xyes
5357 then :
5358 printf "%s\n" "#define HAVE_PIDFD_GETPID 1" >>confdefs.h
5359
5360 fi
5361
5362
5363
5364 AM_DEFAULT_VERBOSITY=0
5365
5366
5367
5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install to prefix only" >&5
5369 printf %s "checking whether to install to prefix only... " >&6; }
5370 # Check whether --enable-prefix-only was given.
5371 if test ${enable_prefix_only+y}
5372 then :
5373 enableval=$enable_prefix_only;
5374 else case e in #(
5375 e) enable_prefix_only=no ;;
5376 esac
5377 fi
5378
5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_prefix_only" >&5
5380 printf "%s\n" "$enable_prefix_only" >&6; }
5381
5382
5383 # --enable-selinux-policy=[type]
5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build selinux policy, and which" >&5
5385 printf %s "checking whether to build selinux policy, and which... " >&6; }
5386 # Check whether --enable-selinux-policy was given.
5387 if test ${enable_selinux_policy+y}
5388 then :
5389 enableval=$enable_selinux_policy;
5390 fi
5391
5392 if test "${enable_selinux_policy:=no}" = 'yes'; then
5393 as_fn_error $? "--enable-selinux-policy requires a type (eg: targeted)" "$LINENO" 5
5394 fi
5395 if test "$enable_selinux_policy" != "no"; then
5396 SELINUX_POLICY_ENABLED_TRUE=
5397 SELINUX_POLICY_ENABLED_FALSE='#'
5398 else
5399 SELINUX_POLICY_ENABLED_TRUE='#'
5400 SELINUX_POLICY_ENABLED_FALSE=
5401 fi
5402
5403 SELINUX_POLICY_TYPE=${enable_selinux_policy}
5404
5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_selinux_policy" >&5
5406 printf "%s\n" "$enable_selinux_policy" >&6; }
5407
5408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing argp_parse" >&5
5409 printf %s "checking for library containing argp_parse... " >&6; }
5410 if test ${ac_cv_search_argp_parse+y}
5411 then :
5412 printf %s "(cached) " >&6
5413 else case e in #(
5414 e) ac_func_search_save_LIBS=$LIBS
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5417
5418 /* Override any GCC internal prototype to avoid an error.
5419 Use char because int might match the return type of a GCC
5420 builtin and then its argument prototype would still apply.
5421 The 'extern "C"' is for builds by C++ compilers;
5422 although this is not generally supported in C code supporting it here
5423 has little cost and some practical benefit (sr 110532). */
5424 #ifdef __cplusplus
5425 extern "C"
5426 #endif
5427 char argp_parse (void);
5428 int
5429 main (void)
5430 {
5431 return argp_parse ();
5432 ;
5433 return 0;
5434 }
5435 _ACEOF
5436 for ac_lib in '' argp
5437 do
5438 if test -z "$ac_lib"; then
5439 ac_res="none required"
5440 else
5441 ac_res=-l$ac_lib
5442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5443 fi
5444 if ac_fn_c_try_link "$LINENO"
5445 then :
5446 ac_cv_search_argp_parse=$ac_res
5447 fi
5448 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5449 conftest$ac_exeext
5450 if test ${ac_cv_search_argp_parse+y}
5451 then :
5452 break
5453 fi
5454 done
5455 if test ${ac_cv_search_argp_parse+y}
5456 then :
5457
5458 else case e in #(
5459 e) ac_cv_search_argp_parse=no ;;
5460 esac
5461 fi
5462 rm conftest.$ac_ext
5463 LIBS=$ac_func_search_save_LIBS ;;
5464 esac
5465 fi
5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_argp_parse" >&5
5467 printf "%s\n" "$ac_cv_search_argp_parse" >&6; }
5468 ac_res=$ac_cv_search_argp_parse
5469 if test "$ac_res" != no
5470 then :
5471 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5472
5473 fi
5474
5475 case "$ac_cv_search_argp_parse" in
5476 no) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5477 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5478 as_fn_error $? "failed to find argp_parse
5479 See 'config.log' for more details" "$LINENO" 5; } ;;
5480 -l*) argp_LIBS="$ac_cv_search_argp_parse" ;;
5481 *) argp_LIBS= ;;
5482 esac
5483
5484
5485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing fts_close" >&5
5486 printf %s "checking for library containing fts_close... " >&6; }
5487 if test ${ac_cv_search_fts_close+y}
5488 then :
5489 printf %s "(cached) " >&6
5490 else case e in #(
5491 e) ac_func_search_save_LIBS=$LIBS
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5494
5495 /* Override any GCC internal prototype to avoid an error.
5496 Use char because int might match the return type of a GCC
5497 builtin and then its argument prototype would still apply.
5498 The 'extern "C"' is for builds by C++ compilers;
5499 although this is not generally supported in C code supporting it here
5500 has little cost and some practical benefit (sr 110532). */
5501 #ifdef __cplusplus
5502 extern "C"
5503 #endif
5504 char fts_close (void);
5505 int
5506 main (void)
5507 {
5508 return fts_close ();
5509 ;
5510 return 0;
5511 }
5512 _ACEOF
5513 for ac_lib in '' fts
5514 do
5515 if test -z "$ac_lib"; then
5516 ac_res="none required"
5517 else
5518 ac_res=-l$ac_lib
5519 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5520 fi
5521 if ac_fn_c_try_link "$LINENO"
5522 then :
5523 ac_cv_search_fts_close=$ac_res
5524 fi
5525 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5526 conftest$ac_exeext
5527 if test ${ac_cv_search_fts_close+y}
5528 then :
5529 break
5530 fi
5531 done
5532 if test ${ac_cv_search_fts_close+y}
5533 then :
5534
5535 else case e in #(
5536 e) ac_cv_search_fts_close=no ;;
5537 esac
5538 fi
5539 rm conftest.$ac_ext
5540 LIBS=$ac_func_search_save_LIBS ;;
5541 esac
5542 fi
5543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fts_close" >&5
5544 printf "%s\n" "$ac_cv_search_fts_close" >&6; }
5545 ac_res=$ac_cv_search_fts_close
5546 if test "$ac_res" != no
5547 then :
5548 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5549
5550 fi
5551
5552 case "$ac_cv_search_fts_close" in
5553 no) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5554 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5555 as_fn_error $? "failed to find fts_close
5556 See 'config.log' for more details" "$LINENO" 5; } ;;
5557 -l*) fts_LIBS="$ac_cv_search_fts_close" ;;
5558 *) fts_LIBS= ;;
5559 esac
5560
5561
5562 # pkg-config
5563 GLIB_API_VERSION="GLIB_VERSION_2_68"
5564
5565
5566
5567
5568
5569
5570
5571 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5572 if test -n "$ac_tool_prefix"; then
5573 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5574 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 printf %s "checking for $ac_word... " >&6; }
5577 if test ${ac_cv_path_PKG_CONFIG+y}
5578 then :
5579 printf %s "(cached) " >&6
5580 else case e in #(
5581 e) case $PKG_CONFIG in
5582 [\\/]* | ?:[\\/]*)
5583 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5584 ;;
5585 *)
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5588 do
5589 IFS=$as_save_IFS
5590 case $as_dir in #(((
5591 '') as_dir=./ ;;
5592 */) ;;
5593 *) as_dir=$as_dir/ ;;
5594 esac
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5597 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5599 break 2
5600 fi
5601 done
5602 done
5603 IFS=$as_save_IFS
5604
5605 ;;
5606 esac ;;
5607 esac
5608 fi
5609 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5610 if test -n "$PKG_CONFIG"; then
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5612 printf "%s\n" "$PKG_CONFIG" >&6; }
5613 else
5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 printf "%s\n" "no" >&6; }
5616 fi
5617
5618
5619 fi
5620 if test -z "$ac_cv_path_PKG_CONFIG"; then
5621 ac_pt_PKG_CONFIG=$PKG_CONFIG
5622 # Extract the first word of "pkg-config", so it can be a program name with args.
5623 set dummy pkg-config; ac_word=$2
5624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625 printf %s "checking for $ac_word... " >&6; }
5626 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5627 then :
5628 printf %s "(cached) " >&6
5629 else case e in #(
5630 e) case $ac_pt_PKG_CONFIG in
5631 [\\/]* | ?:[\\/]*)
5632 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5633 ;;
5634 *)
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH
5637 do
5638 IFS=$as_save_IFS
5639 case $as_dir in #(((
5640 '') as_dir=./ ;;
5641 */) ;;
5642 *) as_dir=$as_dir/ ;;
5643 esac
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5646 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650 done
5651 done
5652 IFS=$as_save_IFS
5653
5654 ;;
5655 esac ;;
5656 esac
5657 fi
5658 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5659 if test -n "$ac_pt_PKG_CONFIG"; then
5660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5661 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5662 else
5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 printf "%s\n" "no" >&6; }
5665 fi
5666
5667 if test "x$ac_pt_PKG_CONFIG" = x; then
5668 PKG_CONFIG=""
5669 else
5670 case $cross_compiling:$ac_tool_warned in
5671 yes:)
5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5673 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5674 ac_tool_warned=yes ;;
5675 esac
5676 PKG_CONFIG=$ac_pt_PKG_CONFIG
5677 fi
5678 else
5679 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5680 fi
5681
5682 fi
5683 if test -n "$PKG_CONFIG"; then
5684 _pkg_min_version=0.9.0
5685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5686 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5687 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5689 printf "%s\n" "yes" >&6; }
5690 else
5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 printf "%s\n" "no" >&6; }
5693 PKG_CONFIG=""
5694 fi
5695 fi
5696 if test -z "$PKG_CONFIG"; then
5697 as_fn_error $? "pkg-config not found" "$LINENO" 5
5698 fi
5699
5700 pkg_failed=no
5701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.68 gio-unix-2.0" >&5
5702 printf %s "checking for gio-2.0 >= 2.68 gio-unix-2.0... " >&6; }
5703
5704 if test -n "$glib_CFLAGS"; then
5705 pkg_cv_glib_CFLAGS="$glib_CFLAGS"
5706 elif test -n "$PKG_CONFIG"; then
5707 if test -n "$PKG_CONFIG" && \
5708 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.68 gio-unix-2.0\""; } >&5
5709 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.68 gio-unix-2.0") 2>&5
5710 ac_status=$?
5711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5712 test $ac_status = 0; }; then
5713 pkg_cv_glib_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.68 gio-unix-2.0" 2>/dev/null`
5714 test "x$?" != "x0" && pkg_failed=yes
5715 else
5716 pkg_failed=yes
5717 fi
5718 else
5719 pkg_failed=untried
5720 fi
5721 if test -n "$glib_LIBS"; then
5722 pkg_cv_glib_LIBS="$glib_LIBS"
5723 elif test -n "$PKG_CONFIG"; then
5724 if test -n "$PKG_CONFIG" && \
5725 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.68 gio-unix-2.0\""; } >&5
5726 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.68 gio-unix-2.0") 2>&5
5727 ac_status=$?
5728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5729 test $ac_status = 0; }; then
5730 pkg_cv_glib_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.68 gio-unix-2.0" 2>/dev/null`
5731 test "x$?" != "x0" && pkg_failed=yes
5732 else
5733 pkg_failed=yes
5734 fi
5735 else
5736 pkg_failed=untried
5737 fi
5738
5739
5740
5741 if test $pkg_failed = yes; then
5742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743 printf "%s\n" "no" >&6; }
5744
5745 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5746 _pkg_short_errors_supported=yes
5747 else
5748 _pkg_short_errors_supported=no
5749 fi
5750 if test $_pkg_short_errors_supported = yes; then
5751 glib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.68 gio-unix-2.0" 2>&1`
5752 else
5753 glib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.68 gio-unix-2.0" 2>&1`
5754 fi
5755 # Put the nasty error message in config.log where it belongs
5756 echo "$glib_PKG_ERRORS" >&5
5757
5758 as_fn_error $? "Package requirements (gio-2.0 >= 2.68 gio-unix-2.0) were not met:
5759
5760 $glib_PKG_ERRORS
5761
5762 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5763 installed software in a non-standard prefix.
5764
5765 Alternatively, you may set the environment variables glib_CFLAGS
5766 and glib_LIBS to avoid the need to call pkg-config.
5767 See the pkg-config man page for more details." "$LINENO" 5
5768 elif test $pkg_failed = untried; then
5769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5770 printf "%s\n" "no" >&6; }
5771 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5772 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5773 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5774 is in your PATH or set the PKG_CONFIG environment variable to the full
5775 path to pkg-config.
5776
5777 Alternatively, you may set the environment variables glib_CFLAGS
5778 and glib_LIBS to avoid the need to call pkg-config.
5779 See the pkg-config man page for more details.
5780
5781 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5782 See 'config.log' for more details" "$LINENO" 5; }
5783 else
5784 glib_CFLAGS=$pkg_cv_glib_CFLAGS
5785 glib_LIBS=$pkg_cv_glib_LIBS
5786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5787 printf "%s\n" "yes" >&6; }
5788
5789 fi
5790 glib_CFLAGS="${glib_CFLAGS} -DGLIB_VERSION_MIN_REQUIRED=$GLIB_API_VERSION"
5791 glib_CFLAGS="${glib_CFLAGS} -DGLIB_VERSION_MAX_ALLOWED=$GLIB_API_VERSION"
5792
5793
5794 pkg_failed=no
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd >= 235" >&5
5796 printf %s "checking for libsystemd >= 235... " >&6; }
5797
5798 if test -n "$libsystemd_CFLAGS"; then
5799 pkg_cv_libsystemd_CFLAGS="$libsystemd_CFLAGS"
5800 elif test -n "$PKG_CONFIG"; then
5801 if test -n "$PKG_CONFIG" && \
5802 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 235\""; } >&5
5803 ($PKG_CONFIG --exists --print-errors "libsystemd >= 235") 2>&5
5804 ac_status=$?
5805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5806 test $ac_status = 0; }; then
5807 pkg_cv_libsystemd_CFLAGS=`$PKG_CONFIG --cflags "libsystemd >= 235" 2>/dev/null`
5808 test "x$?" != "x0" && pkg_failed=yes
5809 else
5810 pkg_failed=yes
5811 fi
5812 else
5813 pkg_failed=untried
5814 fi
5815 if test -n "$libsystemd_LIBS"; then
5816 pkg_cv_libsystemd_LIBS="$libsystemd_LIBS"
5817 elif test -n "$PKG_CONFIG"; then
5818 if test -n "$PKG_CONFIG" && \
5819 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 235\""; } >&5
5820 ($PKG_CONFIG --exists --print-errors "libsystemd >= 235") 2>&5
5821 ac_status=$?
5822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5823 test $ac_status = 0; }; then
5824 pkg_cv_libsystemd_LIBS=`$PKG_CONFIG --libs "libsystemd >= 235" 2>/dev/null`
5825 test "x$?" != "x0" && pkg_failed=yes
5826 else
5827 pkg_failed=yes
5828 fi
5829 else
5830 pkg_failed=untried
5831 fi
5832
5833
5834
5835 if test $pkg_failed = yes; then
5836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 printf "%s\n" "no" >&6; }
5838
5839 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5840 _pkg_short_errors_supported=yes
5841 else
5842 _pkg_short_errors_supported=no
5843 fi
5844 if test $_pkg_short_errors_supported = yes; then
5845 libsystemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd >= 235" 2>&1`
5846 else
5847 libsystemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd >= 235" 2>&1`
5848 fi
5849 # Put the nasty error message in config.log where it belongs
5850 echo "$libsystemd_PKG_ERRORS" >&5
5851
5852 as_fn_error $? "Package requirements (libsystemd >= 235) were not met:
5853
5854 $libsystemd_PKG_ERRORS
5855
5856 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5857 installed software in a non-standard prefix.
5858
5859 Alternatively, you may set the environment variables libsystemd_CFLAGS
5860 and libsystemd_LIBS to avoid the need to call pkg-config.
5861 See the pkg-config man page for more details." "$LINENO" 5
5862 elif test $pkg_failed = untried; then
5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864 printf "%s\n" "no" >&6; }
5865 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5866 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5867 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5868 is in your PATH or set the PKG_CONFIG environment variable to the full
5869 path to pkg-config.
5870
5871 Alternatively, you may set the environment variables libsystemd_CFLAGS
5872 and libsystemd_LIBS to avoid the need to call pkg-config.
5873 See the pkg-config man page for more details.
5874
5875 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5876 See 'config.log' for more details" "$LINENO" 5; }
5877 else
5878 libsystemd_CFLAGS=$pkg_cv_libsystemd_CFLAGS
5879 libsystemd_LIBS=$pkg_cv_libsystemd_LIBS
5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5881 printf "%s\n" "yes" >&6; }
5882
5883 fi
5884
5885 pkg_failed=no
5886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for json-glib-1.0 >= 1.4" >&5
5887 printf %s "checking for json-glib-1.0 >= 1.4... " >&6; }
5888
5889 if test -n "$json_glib_CFLAGS"; then
5890 pkg_cv_json_glib_CFLAGS="$json_glib_CFLAGS"
5891 elif test -n "$PKG_CONFIG"; then
5892 if test -n "$PKG_CONFIG" && \
5893 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-glib-1.0 >= 1.4\""; } >&5
5894 ($PKG_CONFIG --exists --print-errors "json-glib-1.0 >= 1.4") 2>&5
5895 ac_status=$?
5896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5897 test $ac_status = 0; }; then
5898 pkg_cv_json_glib_CFLAGS=`$PKG_CONFIG --cflags "json-glib-1.0 >= 1.4" 2>/dev/null`
5899 test "x$?" != "x0" && pkg_failed=yes
5900 else
5901 pkg_failed=yes
5902 fi
5903 else
5904 pkg_failed=untried
5905 fi
5906 if test -n "$json_glib_LIBS"; then
5907 pkg_cv_json_glib_LIBS="$json_glib_LIBS"
5908 elif test -n "$PKG_CONFIG"; then
5909 if test -n "$PKG_CONFIG" && \
5910 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-glib-1.0 >= 1.4\""; } >&5
5911 ($PKG_CONFIG --exists --print-errors "json-glib-1.0 >= 1.4") 2>&5
5912 ac_status=$?
5913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5914 test $ac_status = 0; }; then
5915 pkg_cv_json_glib_LIBS=`$PKG_CONFIG --libs "json-glib-1.0 >= 1.4" 2>/dev/null`
5916 test "x$?" != "x0" && pkg_failed=yes
5917 else
5918 pkg_failed=yes
5919 fi
5920 else
5921 pkg_failed=untried
5922 fi
5923
5924
5925
5926 if test $pkg_failed = yes; then
5927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928 printf "%s\n" "no" >&6; }
5929
5930 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5931 _pkg_short_errors_supported=yes
5932 else
5933 _pkg_short_errors_supported=no
5934 fi
5935 if test $_pkg_short_errors_supported = yes; then
5936 json_glib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-glib-1.0 >= 1.4" 2>&1`
5937 else
5938 json_glib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-glib-1.0 >= 1.4" 2>&1`
5939 fi
5940 # Put the nasty error message in config.log where it belongs
5941 echo "$json_glib_PKG_ERRORS" >&5
5942
5943 as_fn_error $? "Package requirements (json-glib-1.0 >= 1.4) were not met:
5944
5945 $json_glib_PKG_ERRORS
5946
5947 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5948 installed software in a non-standard prefix.
5949
5950 Alternatively, you may set the environment variables json_glib_CFLAGS
5951 and json_glib_LIBS to avoid the need to call pkg-config.
5952 See the pkg-config man page for more details." "$LINENO" 5
5953 elif test $pkg_failed = untried; then
5954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5955 printf "%s\n" "no" >&6; }
5956 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5957 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5958 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5959 is in your PATH or set the PKG_CONFIG environment variable to the full
5960 path to pkg-config.
5961
5962 Alternatively, you may set the environment variables json_glib_CFLAGS
5963 and json_glib_LIBS to avoid the need to call pkg-config.
5964 See the pkg-config man page for more details.
5965
5966 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5967 See 'config.log' for more details" "$LINENO" 5; }
5968 else
5969 json_glib_CFLAGS=$pkg_cv_json_glib_CFLAGS
5970 json_glib_LIBS=$pkg_cv_json_glib_LIBS
5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5972 printf "%s\n" "yes" >&6; }
5973
5974 fi
5975
5976 pkg_failed=no
5977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 3.6.0" >&5
5978 printf %s "checking for gnutls >= 3.6.0... " >&6; }
5979
5980 if test -n "$gnutls_CFLAGS"; then
5981 pkg_cv_gnutls_CFLAGS="$gnutls_CFLAGS"
5982 elif test -n "$PKG_CONFIG"; then
5983 if test -n "$PKG_CONFIG" && \
5984 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 3.6.0\""; } >&5
5985 ($PKG_CONFIG --exists --print-errors "gnutls >= 3.6.0") 2>&5
5986 ac_status=$?
5987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5988 test $ac_status = 0; }; then
5989 pkg_cv_gnutls_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 3.6.0" 2>/dev/null`
5990 test "x$?" != "x0" && pkg_failed=yes
5991 else
5992 pkg_failed=yes
5993 fi
5994 else
5995 pkg_failed=untried
5996 fi
5997 if test -n "$gnutls_LIBS"; then
5998 pkg_cv_gnutls_LIBS="$gnutls_LIBS"
5999 elif test -n "$PKG_CONFIG"; then
6000 if test -n "$PKG_CONFIG" && \
6001 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 3.6.0\""; } >&5
6002 ($PKG_CONFIG --exists --print-errors "gnutls >= 3.6.0") 2>&5
6003 ac_status=$?
6004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6005 test $ac_status = 0; }; then
6006 pkg_cv_gnutls_LIBS=`$PKG_CONFIG --libs "gnutls >= 3.6.0" 2>/dev/null`
6007 test "x$?" != "x0" && pkg_failed=yes
6008 else
6009 pkg_failed=yes
6010 fi
6011 else
6012 pkg_failed=untried
6013 fi
6014
6015
6016
6017 if test $pkg_failed = yes; then
6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6019 printf "%s\n" "no" >&6; }
6020
6021 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6022 _pkg_short_errors_supported=yes
6023 else
6024 _pkg_short_errors_supported=no
6025 fi
6026 if test $_pkg_short_errors_supported = yes; then
6027 gnutls_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= 3.6.0" 2>&1`
6028 else
6029 gnutls_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= 3.6.0" 2>&1`
6030 fi
6031 # Put the nasty error message in config.log where it belongs
6032 echo "$gnutls_PKG_ERRORS" >&5
6033
6034 as_fn_error $? "Package requirements (gnutls >= 3.6.0) were not met:
6035
6036 $gnutls_PKG_ERRORS
6037
6038 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6039 installed software in a non-standard prefix.
6040
6041 Alternatively, you may set the environment variables gnutls_CFLAGS
6042 and gnutls_LIBS to avoid the need to call pkg-config.
6043 See the pkg-config man page for more details." "$LINENO" 5
6044 elif test $pkg_failed = untried; then
6045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 printf "%s\n" "no" >&6; }
6047 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6048 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6049 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6050 is in your PATH or set the PKG_CONFIG environment variable to the full
6051 path to pkg-config.
6052
6053 Alternatively, you may set the environment variables gnutls_CFLAGS
6054 and gnutls_LIBS to avoid the need to call pkg-config.
6055 See the pkg-config man page for more details.
6056
6057 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6058 See 'config.log' for more details" "$LINENO" 5; }
6059 else
6060 gnutls_CFLAGS=$pkg_cv_gnutls_CFLAGS
6061 gnutls_LIBS=$pkg_cv_gnutls_LIBS
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6063 printf "%s\n" "yes" >&6; }
6064
6065 fi
6066
6067 pkg_failed=no
6068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5-gssapi >= 1.11 krb5 >= 1.11" >&5
6069 printf %s "checking for krb5-gssapi >= 1.11 krb5 >= 1.11... " >&6; }
6070
6071 if test -n "$krb5_CFLAGS"; then
6072 pkg_cv_krb5_CFLAGS="$krb5_CFLAGS"
6073 elif test -n "$PKG_CONFIG"; then
6074 if test -n "$PKG_CONFIG" && \
6075 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"krb5-gssapi >= 1.11 krb5 >= 1.11\""; } >&5
6076 ($PKG_CONFIG --exists --print-errors "krb5-gssapi >= 1.11 krb5 >= 1.11") 2>&5
6077 ac_status=$?
6078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6079 test $ac_status = 0; }; then
6080 pkg_cv_krb5_CFLAGS=`$PKG_CONFIG --cflags "krb5-gssapi >= 1.11 krb5 >= 1.11" 2>/dev/null`
6081 test "x$?" != "x0" && pkg_failed=yes
6082 else
6083 pkg_failed=yes
6084 fi
6085 else
6086 pkg_failed=untried
6087 fi
6088 if test -n "$krb5_LIBS"; then
6089 pkg_cv_krb5_LIBS="$krb5_LIBS"
6090 elif test -n "$PKG_CONFIG"; then
6091 if test -n "$PKG_CONFIG" && \
6092 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"krb5-gssapi >= 1.11 krb5 >= 1.11\""; } >&5
6093 ($PKG_CONFIG --exists --print-errors "krb5-gssapi >= 1.11 krb5 >= 1.11") 2>&5
6094 ac_status=$?
6095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6096 test $ac_status = 0; }; then
6097 pkg_cv_krb5_LIBS=`$PKG_CONFIG --libs "krb5-gssapi >= 1.11 krb5 >= 1.11" 2>/dev/null`
6098 test "x$?" != "x0" && pkg_failed=yes
6099 else
6100 pkg_failed=yes
6101 fi
6102 else
6103 pkg_failed=untried
6104 fi
6105
6106
6107
6108 if test $pkg_failed = yes; then
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 printf "%s\n" "no" >&6; }
6111
6112 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6113 _pkg_short_errors_supported=yes
6114 else
6115 _pkg_short_errors_supported=no
6116 fi
6117 if test $_pkg_short_errors_supported = yes; then
6118 krb5_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "krb5-gssapi >= 1.11 krb5 >= 1.11" 2>&1`
6119 else
6120 krb5_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "krb5-gssapi >= 1.11 krb5 >= 1.11" 2>&1`
6121 fi
6122 # Put the nasty error message in config.log where it belongs
6123 echo "$krb5_PKG_ERRORS" >&5
6124
6125 as_fn_error $? "Package requirements (krb5-gssapi >= 1.11 krb5 >= 1.11) were not met:
6126
6127 $krb5_PKG_ERRORS
6128
6129 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6130 installed software in a non-standard prefix.
6131
6132 Alternatively, you may set the environment variables krb5_CFLAGS
6133 and krb5_LIBS to avoid the need to call pkg-config.
6134 See the pkg-config man page for more details." "$LINENO" 5
6135 elif test $pkg_failed = untried; then
6136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137 printf "%s\n" "no" >&6; }
6138 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6139 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6140 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6141 is in your PATH or set the PKG_CONFIG environment variable to the full
6142 path to pkg-config.
6143
6144 Alternatively, you may set the environment variables krb5_CFLAGS
6145 and krb5_LIBS to avoid the need to call pkg-config.
6146 See the pkg-config man page for more details.
6147
6148 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6149 See 'config.log' for more details" "$LINENO" 5; }
6150 else
6151 krb5_CFLAGS=$pkg_cv_krb5_CFLAGS
6152 krb5_LIBS=$pkg_cv_krb5_LIBS
6153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6154 printf "%s\n" "yes" >&6; }
6155
6156 fi
6157
6158 # pam
6159 ac_fn_c_check_header_compile "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
6160 if test "x$ac_cv_header_security_pam_appl_h" = xyes
6161 then :
6162
6163 else case e in #(
6164 e) as_fn_error $? "Couldn't find PAM headers. Try installing pam-devel" "$LINENO" 5
6165 ;;
6166 esac
6167 fi
6168
6169 PAM_LIBS="-lpam"
6170 COCKPIT_SESSION_LIBS="$COCKPIT_SESSION_LIBS $PAM_LIBS"
6171
6172 # pam module directory
6173
6174 # Check whether --with-pamdir was given.
6175 if test ${with_pamdir+y}
6176 then :
6177 withval=$with_pamdir;
6178 else case e in #(
6179 e) with_pamdir='${libdir}/security' ;;
6180 esac
6181 fi
6182
6183 pamdir=$with_pamdir
6184
6185
6186 # crypt
6187 ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
6188 if test "x$ac_cv_header_crypt_h" = xyes
6189 then :
6190
6191 else case e in #(
6192 e) as_fn_error $? "Couldn't find crypt headers. Try installing glibc-headers" "$LINENO" 5
6193 ;;
6194 esac
6195 fi
6196
6197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt_r in -lcrypt" >&5
6198 printf %s "checking for crypt_r in -lcrypt... " >&6; }
6199 if test ${ac_cv_lib_crypt_crypt_r+y}
6200 then :
6201 printf %s "(cached) " >&6
6202 else case e in #(
6203 e) ac_check_lib_save_LIBS=$LIBS
6204 LIBS="-lcrypt $LIBS"
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6207
6208 /* Override any GCC internal prototype to avoid an error.
6209 Use char because int might match the return type of a GCC
6210 builtin and then its argument prototype would still apply.
6211 The 'extern "C"' is for builds by C++ compilers;
6212 although this is not generally supported in C code supporting it here
6213 has little cost and some practical benefit (sr 110532). */
6214 #ifdef __cplusplus
6215 extern "C"
6216 #endif
6217 char crypt_r (void);
6218 int
6219 main (void)
6220 {
6221 return crypt_r ();
6222 ;
6223 return 0;
6224 }
6225 _ACEOF
6226 if ac_fn_c_try_link "$LINENO"
6227 then :
6228 ac_cv_lib_crypt_crypt_r=yes
6229 else case e in #(
6230 e) ac_cv_lib_crypt_crypt_r=no ;;
6231 esac
6232 fi
6233 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6234 conftest$ac_exeext conftest.$ac_ext
6235 LIBS=$ac_check_lib_save_LIBS ;;
6236 esac
6237 fi
6238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt_r" >&5
6239 printf "%s\n" "$ac_cv_lib_crypt_crypt_r" >&6; }
6240 if test "x$ac_cv_lib_crypt_crypt_r" = xyes
6241 then :
6242 true
6243 else case e in #(
6244 e) as_fn_error $? "Couldn't find crypt library. Try installing glibc-devel" "$LINENO" 5
6245 ;;
6246 esac
6247 fi
6248
6249 COCKPIT_WS_LIBS="$COCKPIT_WS_LIBS -lcrypt"
6250
6251 # systemd
6252
6253 # Check whether --with-systemdunitdir was given.
6254 if test ${with_systemdunitdir+y}
6255 then :
6256 withval=$with_systemdunitdir;
6257 fi
6258
6259
6260 if test ! -z "$with_systemdunitdir"; then
6261 systemdunitdir=$with_systemdunitdir
6262 elif test "$enable_prefix_only" = "yes"; then
6263 systemdunitdir='${prefix}/lib/systemd/system'
6264 else
6265
6266 pkg_failed=no
6267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
6268 printf %s "checking for systemd... " >&6; }
6269
6270 if test -n "$SYSTEMD_CFLAGS"; then
6271 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
6272 elif test -n "$PKG_CONFIG"; then
6273 if test -n "$PKG_CONFIG" && \
6274 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
6275 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
6276 ac_status=$?
6277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6278 test $ac_status = 0; }; then
6279 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
6280 test "x$?" != "x0" && pkg_failed=yes
6281 else
6282 pkg_failed=yes
6283 fi
6284 else
6285 pkg_failed=untried
6286 fi
6287 if test -n "$SYSTEMD_LIBS"; then
6288 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
6289 elif test -n "$PKG_CONFIG"; then
6290 if test -n "$PKG_CONFIG" && \
6291 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
6292 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
6293 ac_status=$?
6294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6295 test $ac_status = 0; }; then
6296 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
6297 test "x$?" != "x0" && pkg_failed=yes
6298 else
6299 pkg_failed=yes
6300 fi
6301 else
6302 pkg_failed=untried
6303 fi
6304
6305
6306
6307 if test $pkg_failed = yes; then
6308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309 printf "%s\n" "no" >&6; }
6310
6311 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6312 _pkg_short_errors_supported=yes
6313 else
6314 _pkg_short_errors_supported=no
6315 fi
6316 if test $_pkg_short_errors_supported = yes; then
6317 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
6318 else
6319 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
6320 fi
6321 # Put the nasty error message in config.log where it belongs
6322 echo "$SYSTEMD_PKG_ERRORS" >&5
6323
6324 as_fn_error $? "Package requirements (systemd) were not met:
6325
6326 $SYSTEMD_PKG_ERRORS
6327
6328 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6329 installed software in a non-standard prefix.
6330
6331 Alternatively, you may set the environment variables SYSTEMD_CFLAGS
6332 and SYSTEMD_LIBS to avoid the need to call pkg-config.
6333 See the pkg-config man page for more details." "$LINENO" 5
6334 elif test $pkg_failed = untried; then
6335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336 printf "%s\n" "no" >&6; }
6337 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6338 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6339 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6340 is in your PATH or set the PKG_CONFIG environment variable to the full
6341 path to pkg-config.
6342
6343 Alternatively, you may set the environment variables SYSTEMD_CFLAGS
6344 and SYSTEMD_LIBS to avoid the need to call pkg-config.
6345 See the pkg-config man page for more details.
6346
6347 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6348 See 'config.log' for more details" "$LINENO" 5; }
6349 else
6350 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
6351 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
6352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6353 printf "%s\n" "yes" >&6; }
6354
6355 fi
6356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd unit dir" >&5
6357 printf %s "checking for systemd unit dir... " >&6; }
6358 systemdunitdir=$($PKG_CONFIG systemd --variable=systemdsystemunitdir)
6359 if test "$systemdunitdir" = ""; then
6360 as_fn_error $? "systemd's pkg-config file doesn't contain 'systemdsystemunitdir' variable" "$LINENO" 5
6361 fi
6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $systemdunitdir" >&5
6363 printf "%s\n" "$systemdunitdir" >&6; }
6364 fi
6365 systemdunitdir=$systemdunitdir
6366
6367
6368 # We need msgcat, msgfmt, and xgettext, but they're all in the same
6369 # package as xgettext, and we find them by PATH, so just check for the one.
6370 # Extract the first word of "xgettext", so it can be a program name with args.
6371 set dummy xgettext; ac_word=$2
6372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373 printf %s "checking for $ac_word... " >&6; }
6374 if test ${ac_cv_path_XGETTEXT+y}
6375 then :
6376 printf %s "(cached) " >&6
6377 else case e in #(
6378 e) case $XGETTEXT in
6379 [\\/]* | ?:[\\/]*)
6380 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6381 ;;
6382 *)
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 for as_dir in $PATH
6385 do
6386 IFS=$as_save_IFS
6387 case $as_dir in #(((
6388 '') as_dir=./ ;;
6389 */) ;;
6390 *) as_dir=$as_dir/ ;;
6391 esac
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6394 ac_cv_path_XGETTEXT="$as_dir$ac_word$ac_exec_ext"
6395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398 done
6399 done
6400 IFS=$as_save_IFS
6401
6402 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="no"
6403 ;;
6404 esac ;;
6405 esac
6406 fi
6407 XGETTEXT=$ac_cv_path_XGETTEXT
6408 if test -n "$XGETTEXT"; then
6409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6410 printf "%s\n" "$XGETTEXT" >&6; }
6411 else
6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413 printf "%s\n" "no" >&6; }
6414 fi
6415
6416
6417 if test "$XGETTEXT" = "no"; then
6418 as_fn_error $? "Please install gettext tools" "$LINENO" 5
6419 fi
6420
6421 # ssh-add
6422 # Extract the first word of "ssh-add", so it can be a program name with args.
6423 set dummy ssh-add; ac_word=$2
6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6425 printf %s "checking for $ac_word... " >&6; }
6426 if test ${ac_cv_path_SSH_ADD+y}
6427 then :
6428 printf %s "(cached) " >&6
6429 else case e in #(
6430 e) case $SSH_ADD in
6431 [\\/]* | ?:[\\/]*)
6432 ac_cv_path_SSH_ADD="$SSH_ADD" # Let the user override the test with a path.
6433 ;;
6434 *)
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 as_dummy="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
6437 for as_dir in $as_dummy
6438 do
6439 IFS=$as_save_IFS
6440 case $as_dir in #(((
6441 '') as_dir=./ ;;
6442 */) ;;
6443 *) as_dir=$as_dir/ ;;
6444 esac
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6447 ac_cv_path_SSH_ADD="$as_dir$ac_word$ac_exec_ext"
6448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6449 break 2
6450 fi
6451 done
6452 done
6453 IFS=$as_save_IFS
6454
6455 test -z "$ac_cv_path_SSH_ADD" && ac_cv_path_SSH_ADD="/usr/bin/ssh-add"
6456 ;;
6457 esac ;;
6458 esac
6459 fi
6460 SSH_ADD=$ac_cv_path_SSH_ADD
6461 if test -n "$SSH_ADD"; then
6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SSH_ADD" >&5
6463 printf "%s\n" "$SSH_ADD" >&6; }
6464 else
6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466 printf "%s\n" "no" >&6; }
6467 fi
6468
6469
6470
6471 printf "%s\n" "#define PATH_SSH_ADD \"$SSH_ADD\"" >>confdefs.h
6472
6473
6474 # ssh-agent
6475 # Extract the first word of "ssh-agent", so it can be a program name with args.
6476 set dummy ssh-agent; ac_word=$2
6477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6478 printf %s "checking for $ac_word... " >&6; }
6479 if test ${ac_cv_path_SSH_AGENT+y}
6480 then :
6481 printf %s "(cached) " >&6
6482 else case e in #(
6483 e) case $SSH_AGENT in
6484 [\\/]* | ?:[\\/]*)
6485 ac_cv_path_SSH_AGENT="$SSH_AGENT" # Let the user override the test with a path.
6486 ;;
6487 *)
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
6490 for as_dir in $as_dummy
6491 do
6492 IFS=$as_save_IFS
6493 case $as_dir in #(((
6494 '') as_dir=./ ;;
6495 */) ;;
6496 *) as_dir=$as_dir/ ;;
6497 esac
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6500 ac_cv_path_SSH_AGENT="$as_dir$ac_word$ac_exec_ext"
6501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6502 break 2
6503 fi
6504 done
6505 done
6506 IFS=$as_save_IFS
6507
6508 test -z "$ac_cv_path_SSH_AGENT" && ac_cv_path_SSH_AGENT="/usr/bin/ssh-agent"
6509 ;;
6510 esac ;;
6511 esac
6512 fi
6513 SSH_AGENT=$ac_cv_path_SSH_AGENT
6514 if test -n "$SSH_AGENT"; then
6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SSH_AGENT" >&5
6516 printf "%s\n" "$SSH_AGENT" >&6; }
6517 else
6518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 printf "%s\n" "no" >&6; }
6520 fi
6521
6522
6523
6524 printf "%s\n" "#define PATH_SSH_AGENT \"$SSH_AGENT\"" >>confdefs.h
6525
6526
6527 # Address sanitizer
6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for asan flags" >&5
6529 printf %s "checking for asan flags... " >&6; }
6530 # Check whether --enable-asan was given.
6531 if test ${enable_asan+y}
6532 then :
6533 enableval=$enable_asan;
6534 fi
6535
6536
6537 if test "$enable_asan" = "yes"; then
6538 CFLAGS="$CFLAGS -fsanitize=address -O1 -fno-omit-frame-pointer -g"
6539 asan_status="yes"
6540 else
6541 asan_status="no"
6542 fi
6543 if test "$enable_asan" = "yes"; then
6544 WITH_ASAN_TRUE=
6545 WITH_ASAN_FALSE='#'
6546 else
6547 WITH_ASAN_TRUE='#'
6548 WITH_ASAN_FALSE=
6549 fi
6550
6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $asan_status" >&5
6552 printf "%s\n" "$asan_status" >&6; }
6553
6554 # admin users group
6555
6556 # Check whether --with-admin-group was given.
6557 if test ${with_admin_group+y}
6558 then :
6559 withval=$with_admin_group; admin_group=$withval
6560 else case e in #(
6561 e)
6562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system group to which admin users belong" >&5
6563 printf %s "checking for system group to which admin users belong... " >&6; }
6564 CANDIDATE_GROUPS="wheel sudo root"
6565 admin_group="$(getent group ${CANDIDATE_GROUPS} | head -n1 | cut -f1 -d:)"
6566 if test -n "$admin_group"; then
6567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $admin_group" >&5
6568 printf "%s\n" "$admin_group" >&6; }
6569 else
6570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unable to detect" >&5
6571 printf "%s\n" "unable to detect" >&6; }
6572 as_fn_error $? "none of '${CANDIDATE_GROUPS}' exist: please specify a group with --with-admin-group=" "$LINENO" 5
6573 fi
6574 ;;
6575 esac
6576 fi
6577
6578
6579
6580 # Default PATH for cockpit-session
6581
6582 # Check whether --with-default-session-path was given.
6583 if test ${with_default_session_path+y}
6584 then :
6585 withval=$with_default_session_path; default_session_path=$withval
6586 else case e in #(
6587 e)
6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cockpit-session PATH value" >&5
6589 printf %s "checking for cockpit-session PATH value... " >&6; }
6590 if test "$(readlink /sbin)" == "usr/bin"; then
6591 # This is Arch where "sbin" is symlinked to "bin" and
6592 # "/bin" is symlinked to "/usr/bin". We use the
6593 # normal Arch PATH which omits "sbin" and "/bin" for
6594 # those reasons. Otherwise "pkexec" will find
6595 # cockpit-bridge in "/usr/sbin" and our rule won't
6596 # match.
6597 default_session_path=/usr/local/sbin:/usr/local/bin:/usr/bin
6598 else
6599 default_session_path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
6600 fi
6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $default_session_path" >&5
6602 printf "%s\n" "$default_session_path" >&6; }
6603 ;;
6604 esac
6605 fi
6606
6607
6608 printf "%s\n" "#define DEFAULT_SESSION_PATH \"$default_session_path\"" >>confdefs.h
6609
6610
6611 # Documentation
6612
6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
6614 printf %s "checking whether to build documentation... " >&6; }
6615 # Check whether --enable-doc was given.
6616 if test ${enable_doc+y}
6617 then :
6618 enableval=$enable_doc;
6619 fi
6620
6621
6622 if test "$enable_doc" = "no"; then
6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_doc" >&5
6624 printf "%s\n" "$enable_doc" >&6; }
6625
6626 else
6627 if test "$enable_doc" = ""; then
6628 disable_msg="(perhaps --disable-doc)"
6629 fi
6630
6631 enable_doc="yes"
6632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_doc" >&5
6633 printf "%s\n" "$enable_doc" >&6; }
6634
6635 has_asciidoctor="no"
6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_asciidoctor" >&5
6637 printf "%s\n" "$has_asciidoctor" >&6; }
6638
6639 # Extract the first word of "asciidoctor", so it can be a program name with args.
6640 set dummy asciidoctor; ac_word=$2
6641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6642 printf %s "checking for $ac_word... " >&6; }
6643 if test ${ac_cv_path_ASCIIDOCTOR+y}
6644 then :
6645 printf %s "(cached) " >&6
6646 else case e in #(
6647 e) case $ASCIIDOCTOR in
6648 [\\/]* | ?:[\\/]*)
6649 ac_cv_path_ASCIIDOCTOR="$ASCIIDOCTOR" # Let the user override the test with a path.
6650 ;;
6651 *)
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 for as_dir in $PATH
6654 do
6655 IFS=$as_save_IFS
6656 case $as_dir in #(((
6657 '') as_dir=./ ;;
6658 */) ;;
6659 *) as_dir=$as_dir/ ;;
6660 esac
6661 for ac_exec_ext in '' $ac_executable_extensions; do
6662 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6663 ac_cv_path_ASCIIDOCTOR="$as_dir$ac_word$ac_exec_ext"
6664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6665 break 2
6666 fi
6667 done
6668 done
6669 IFS=$as_save_IFS
6670
6671 test -z "$ac_cv_path_ASCIIDOCTOR" && ac_cv_path_ASCIIDOCTOR="no"
6672 ;;
6673 esac ;;
6674 esac
6675 fi
6676 ASCIIDOCTOR=$ac_cv_path_ASCIIDOCTOR
6677 if test -n "$ASCIIDOCTOR"; then
6678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOCTOR" >&5
6679 printf "%s\n" "$ASCIIDOCTOR" >&6; }
6680 else
6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682 printf "%s\n" "no" >&6; }
6683 fi
6684
6685
6686 if test "$ASCIIDOCTOR" != "no"; then
6687 has_asciidoctor="yes"
6688
6689 fi
6690
6691 fi
6692
6693 if test "$enable_doc" = "yes"; then
6694 ENABLE_DOC_TRUE=
6695 ENABLE_DOC_FALSE='#'
6696 else
6697 ENABLE_DOC_TRUE='#'
6698 ENABLE_DOC_FALSE=
6699 fi
6700
6701 if test "$has_asciidoctor" = "yes"; then
6702 HAS_ASCIIDOCTOR_TRUE=
6703 HAS_ASCIIDOCTOR_FALSE='#'
6704 else
6705 HAS_ASCIIDOCTOR_TRUE='#'
6706 HAS_ASCIIDOCTOR_FALSE=
6707 fi
6708
6709
6710 # Default for AllowMultiHost
6711
6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AllowMultiHost default" >&5
6713 printf %s "checking for AllowMultiHost default... " >&6; }
6714 # Check whether --enable-multihost was given.
6715 if test ${enable_multihost+y}
6716 then :
6717 enableval=$enable_multihost;
6718 else case e in #(
6719 e) enable_multihost=no ;;
6720 esac
6721 fi
6722
6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_multihost" >&5
6724 printf "%s\n" "$enable_multihost" >&6; }
6725 if test "$enable_multihost" = "no"; then
6726 multihost_def=0
6727 else
6728 multihost_def=1
6729 fi
6730
6731 printf "%s\n" "#define ALLOW_MULTIHOST_DEFAULT $multihost_def" >>confdefs.h
6732
6733
6734 # cockpit-client
6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install cockpit-client" >&5
6736 printf %s "checking whether to install cockpit-client... " >&6; }
6737 # Check whether --enable-cockpit-client was given.
6738 if test ${enable_cockpit_client+y}
6739 then :
6740 enableval=$enable_cockpit_client;
6741 else case e in #(
6742 e) enable_cockpit_client=no ;;
6743 esac
6744 fi
6745
6746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_cockpit_client" >&5
6747 printf "%s\n" "$enable_cockpit_client" >&6; }
6748 if test "$enable_cockpit_client" = "yes"; then
6749 ENABLE_COCKPIT_CLIENT_TRUE=
6750 ENABLE_COCKPIT_CLIENT_FALSE='#'
6751 else
6752 ENABLE_COCKPIT_CLIENT_TRUE='#'
6753 ENABLE_COCKPIT_CLIENT_FALSE=
6754 fi
6755
6756
6757 # Debug
6758
6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for debug mode" >&5
6760 printf %s "checking for debug mode... " >&6; }
6761 # Check whether --enable-debug was given.
6762 if test ${enable_debug+y}
6763 then :
6764 enableval=$enable_debug;
6765 fi
6766
6767
6768 if test "$enable_debug" != "no"; then
6769
6770 printf "%s\n" "#define WITH_DEBUG 1" >>confdefs.h
6771
6772
6773 printf "%s\n" "#define _DEBUG 1" >>confdefs.h
6774
6775 CFLAGS="$CFLAGS -g"
6776 fi
6777 debugdir='${prefix}/src/debug'
6778 if test "$enable_debug" = "yes"; then
6779 debug_status="yes"
6780 debugdir=
6781 CFLAGS="$CFLAGS -O0"
6782 NODE_ENV="development"
6783 elif test "$enable_debug" = "no"; then
6784 debug_status="no"
6785 CFLAGS="$CFLAGS -O2"
6786 NODE_ENV="production"
6787 else
6788 debug_status="default"
6789 NODE_ENV="${NODE_ENV:-production}"
6790 fi
6791 if test "$enable_debug" = "yes"; then
6792 WITH_DEBUG_TRUE=
6793 WITH_DEBUG_FALSE='#'
6794 else
6795 WITH_DEBUG_TRUE='#'
6796 WITH_DEBUG_FALSE=
6797 fi
6798
6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $debug_status" >&5
6800 printf "%s\n" "$debug_status" >&6; }
6801
6802
6803
6804 # Coverage
6805
6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with coverage" >&5
6807 printf %s "checking whether to build with coverage... " >&6; }
6808 # Check whether --enable-coverage was given.
6809 if test ${enable_coverage+y}
6810 then :
6811 enableval=$enable_coverage;
6812 else case e in #(
6813 e) enable_coverage=no ;;
6814 esac
6815 fi
6816
6817
6818 if test "$enable_coverage" = "yes"; then
6819 if test "$GCC" != "yes"; then
6820 as_fn_error $? "Coverage testing requires GCC" "$LINENO" 5
6821 fi
6822
6823 CFLAGS="$CFLAGS -O0 -g --coverage"
6824 LDFLAGS="$LDFLAGS --coverage"
6825 fi
6826
6827 if test "$enable_coverage" = "yes"; then
6828 WITH_COVERAGE_TRUE=
6829 WITH_COVERAGE_FALSE='#'
6830 else
6831 WITH_COVERAGE_TRUE='#'
6832 WITH_COVERAGE_FALSE=
6833 fi
6834
6835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_coverage" >&5
6836 printf "%s\n" "$enable_coverage" >&6; }
6837
6838 # Strict
6839
6840 # Check whether --enable-strict was given.
6841 if test ${enable_strict+y}
6842 then :
6843 enableval=$enable_strict;
6844 fi
6845
6846
6847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build strict" >&5
6848 printf %s "checking build strict... " >&6; }
6849 if test "$enable_strict" = "yes"; then
6850 CFLAGS="$CFLAGS -Werror"
6851 else
6852 enable_strict="no"
6853 fi
6854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_strict" >&5
6855 printf "%s\n" "$enable_strict" >&6; }
6856
6857
6858
6859
6860
6861
6862
6863 if test -n "$PYTHON"; then
6864 # If the user set $PYTHON, use it and don't search something else.
6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.6" >&5
6866 printf %s "checking whether $PYTHON version is >= 3.6... " >&6; }
6867 prog="import sys
6868 # split strings by '.' and convert to numeric. Append some zeros
6869 # because we need at least 4 digits for the hex conversion.
6870 # map returns an iterator in Python 3.0 and a list in 2.x
6871 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
6872 minverhex = 0
6873 # xrange is not present in Python 3.0 and range returns an iterator
6874 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6875 sys.exit(sys.hexversion < minverhex)"
6876 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
6877 ($PYTHON -c "$prog") >&5 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }
6881 then :
6882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6883 printf "%s\n" "yes" >&6; }
6884 else case e in #(
6885 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886 printf "%s\n" "no" >&6; }
6887 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 ;;
6888 esac
6889 fi
6890 am_display_PYTHON=$PYTHON
6891 else
6892 # Otherwise, try each interpreter until we find one that satisfies
6893 # VERSION.
6894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.6" >&5
6895 printf %s "checking for a Python interpreter with version >= 3.6... " >&6; }
6896 if test ${am_cv_pathless_PYTHON+y}
6897 then :
6898 printf %s "(cached) " >&6
6899 else case e in #(
6900 e)
6901 for am_cv_pathless_PYTHON in python python3 python3.20 python3.19 python3.18 python3.17 python3.16 python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
6902 test "$am_cv_pathless_PYTHON" = none && break
6903 prog="import sys
6904 # split strings by '.' and convert to numeric. Append some zeros
6905 # because we need at least 4 digits for the hex conversion.
6906 # map returns an iterator in Python 3.0 and a list in 2.x
6907 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
6908 minverhex = 0
6909 # xrange is not present in Python 3.0 and range returns an iterator
6910 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
6911 sys.exit(sys.hexversion < minverhex)"
6912 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
6913 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
6914 ac_status=$?
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }
6917 then :
6918 break
6919 fi
6920 done ;;
6921 esac
6922 fi
6923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
6924 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
6925 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
6926 if test "$am_cv_pathless_PYTHON" = none; then
6927 PYTHON=:
6928 else
6929 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
6930 set dummy $am_cv_pathless_PYTHON; ac_word=$2
6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 printf %s "checking for $ac_word... " >&6; }
6933 if test ${ac_cv_path_PYTHON+y}
6934 then :
6935 printf %s "(cached) " >&6
6936 else case e in #(
6937 e) case $PYTHON in
6938 [\\/]* | ?:[\\/]*)
6939 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6940 ;;
6941 *)
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6944 do
6945 IFS=$as_save_IFS
6946 case $as_dir in #(((
6947 '') as_dir=./ ;;
6948 */) ;;
6949 *) as_dir=$as_dir/ ;;
6950 esac
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6953 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
6954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6955 break 2
6956 fi
6957 done
6958 done
6959 IFS=$as_save_IFS
6960
6961 ;;
6962 esac ;;
6963 esac
6964 fi
6965 PYTHON=$ac_cv_path_PYTHON
6966 if test -n "$PYTHON"; then
6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
6968 printf "%s\n" "$PYTHON" >&6; }
6969 else
6970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 printf "%s\n" "no" >&6; }
6972 fi
6973
6974
6975 fi
6976 am_display_PYTHON=$am_cv_pathless_PYTHON
6977 fi
6978
6979
6980 if test "$PYTHON" = :; then
6981 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
6982 else
6983
6984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
6985 printf %s "checking for $am_display_PYTHON version... " >&6; }
6986 if test ${am_cv_python_version+y}
6987 then :
6988 printf %s "(cached) " >&6
6989 else case e in #(
6990 e) am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` ;;
6991 esac
6992 fi
6993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
6994 printf "%s\n" "$am_cv_python_version" >&6; }
6995 PYTHON_VERSION=$am_cv_python_version
6996
6997
6998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
6999 printf %s "checking for $am_display_PYTHON platform... " >&6; }
7000 if test ${am_cv_python_platform+y}
7001 then :
7002 printf %s "(cached) " >&6
7003 else case e in #(
7004 e) am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` ;;
7005 esac
7006 fi
7007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
7008 printf "%s\n" "$am_cv_python_platform" >&6; }
7009 PYTHON_PLATFORM=$am_cv_python_platform
7010
7011
7012 if test "x$prefix" = xNONE; then
7013 am__usable_prefix=$ac_default_prefix
7014 else
7015 am__usable_prefix=$prefix
7016 fi
7017
7018 # Allow user to request using sys.* values from Python,
7019 # instead of the GNU $prefix values.
7020
7021 # Check whether --with-python-sys-prefix was given.
7022 if test ${with_python_sys_prefix+y}
7023 then :
7024 withval=$with_python_sys_prefix; am_use_python_sys=:
7025 else case e in #(
7026 e) am_use_python_sys=false ;;
7027 esac
7028 fi
7029
7030
7031 # Allow user to override whatever the default Python prefix is.
7032
7033 # Check whether --with-python_prefix was given.
7034 if test ${with_python_prefix+y}
7035 then :
7036 withval=$with_python_prefix; am_python_prefix_subst=$withval
7037 am_cv_python_prefix=$withval
7038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
7039 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
7040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
7041 printf "%s\n" "$am_cv_python_prefix" >&6; }
7042 else case e in #(
7043 e)
7044 if $am_use_python_sys; then
7045 # using python sys.prefix value, not GNU
7046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
7047 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
7048 if test ${am_cv_python_prefix+y}
7049 then :
7050 printf %s "(cached) " >&6
7051 else case e in #(
7052 e) am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` ;;
7053 esac
7054 fi
7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
7056 printf "%s\n" "$am_cv_python_prefix" >&6; }
7057
7058 case $am_cv_python_prefix in
7059 $am__usable_prefix*)
7060 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
7061 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
7062 ;;
7063 *)
7064 am_python_prefix_subst=$am_cv_python_prefix
7065 ;;
7066 esac
7067 else # using GNU prefix value, not python sys.prefix
7068 am_python_prefix_subst='${prefix}'
7069 am_python_prefix=$am_python_prefix_subst
7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
7071 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
7072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
7073 printf "%s\n" "$am_python_prefix" >&6; }
7074 fi ;;
7075 esac
7076 fi
7077
7078 # Substituting python_prefix_subst value.
7079 PYTHON_PREFIX=$am_python_prefix_subst
7080
7081
7082 # emacs-page Now do it all over again for Python exec_prefix, but with yet
7083 # another conditional: fall back to regular prefix if that was specified.
7084
7085 # Check whether --with-python_exec_prefix was given.
7086 if test ${with_python_exec_prefix+y}
7087 then :
7088 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
7089 am_cv_python_exec_prefix=$withval
7090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
7091 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
7092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
7093 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
7094 else case e in #(
7095 e)
7096 # no explicit --with-python_exec_prefix, but if
7097 # --with-python_prefix was given, use its value for python_exec_prefix too.
7098 if test -n "$with_python_prefix"
7099 then :
7100 am_python_exec_prefix_subst=$with_python_prefix
7101 am_cv_python_exec_prefix=$with_python_prefix
7102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
7103 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
7104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
7105 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
7106 else case e in #(
7107 e)
7108 # Set am__usable_exec_prefix whether using GNU or Python values,
7109 # since we use that variable for pyexecdir.
7110 if test "x$exec_prefix" = xNONE; then
7111 am__usable_exec_prefix=$am__usable_prefix
7112 else
7113 am__usable_exec_prefix=$exec_prefix
7114 fi
7115 #
7116 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
7118 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
7119 if test ${am_cv_python_exec_prefix+y}
7120 then :
7121 printf %s "(cached) " >&6
7122 else case e in #(
7123 e) am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` ;;
7124 esac
7125 fi
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
7127 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
7128 case $am_cv_python_exec_prefix in
7129 $am__usable_exec_prefix*)
7130 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
7131 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
7132 ;;
7133 *)
7134 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
7135 ;;
7136 esac
7137 else # using GNU $exec_prefix, not python sys.exec_prefix
7138 am_python_exec_prefix_subst='${exec_prefix}'
7139 am_python_exec_prefix=$am_python_exec_prefix_subst
7140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
7141 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
7143 printf "%s\n" "$am_python_exec_prefix" >&6; }
7144 fi ;;
7145 esac
7146 fi ;;
7147 esac
7148 fi
7149
7150 # Substituting python_exec_prefix_subst.
7151 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
7152
7153
7154 # Factor out some code duplication into this shell variable.
7155 am_python_setup_sysconfig="\
7156 import sys
7157 # Prefer sysconfig over distutils.sysconfig, for better compatibility
7158 # with python 3.x. See automake bug#10227.
7159 try:
7160 import sysconfig
7161 except ImportError:
7162 can_use_sysconfig = 0
7163 else:
7164 can_use_sysconfig = 1
7165 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
7166 # <https://github.com/pypa/virtualenv/issues/118>
7167 try:
7168 from platform import python_implementation
7169 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
7170 can_use_sysconfig = 0
7171 except ImportError:
7172 pass" # end of am_python_setup_sysconfig
7173
7174 # More repeated code, for figuring out the installation scheme to use.
7175 am_python_setup_scheme="if hasattr(sysconfig, 'get_default_scheme'):
7176 scheme = sysconfig.get_default_scheme()
7177 else:
7178 scheme = sysconfig._get_default_scheme()
7179 if scheme == 'posix_local':
7180 if '$am_py_prefix' == '/usr':
7181 scheme = 'deb_system' # should only happen during Debian package builds
7182 else:
7183 # Debian's default scheme installs to /usr/local/ but we want to
7184 # follow the prefix, as we always have.
7185 # See bugs#54412, #64837, et al.
7186 scheme = 'posix_prefix'" # end of am_python_setup_scheme
7187
7188
7189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
7190 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
7191 if test ${am_cv_python_pythondir+y}
7192 then :
7193 printf %s "(cached) " >&6
7194 else case e in #(
7195 e) if test "x$am_cv_python_prefix" = x; then
7196 am_py_prefix=$am__usable_prefix
7197 else
7198 am_py_prefix=$am_cv_python_prefix
7199 fi
7200 am_cv_python_pythondir=`$PYTHON -c "
7201 $am_python_setup_sysconfig
7202 if can_use_sysconfig:
7203 try:
7204 $am_python_setup_scheme
7205 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
7206 except:
7207 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
7208 else:
7209 from distutils import sysconfig
7210 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
7211 sys.stdout.write(sitedir)"`
7212 #
7213 case $am_cv_python_pythondir in
7214 $am_py_prefix*)
7215 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
7216 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
7217 ;;
7218 *)
7219 case $am_py_prefix in
7220 /usr|/System*) ;;
7221 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
7222 ;;
7223 esac
7224 ;;
7225 esac
7226 ;;
7227 esac
7228 fi
7229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
7230 printf "%s\n" "$am_cv_python_pythondir" >&6; }
7231 pythondir=$am_cv_python_pythondir
7232
7233
7234 pkgpythondir=\${pythondir}/$PACKAGE
7235
7236
7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
7238 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
7239 if test ${am_cv_python_pyexecdir+y}
7240 then :
7241 printf %s "(cached) " >&6
7242 else case e in #(
7243 e) if test "x$am_cv_python_exec_prefix" = x; then
7244 am_py_exec_prefix=$am__usable_exec_prefix
7245 else
7246 am_py_exec_prefix=$am_cv_python_exec_prefix
7247 fi
7248 am_cv_python_pyexecdir=`$PYTHON -c "
7249 $am_python_setup_sysconfig
7250 if can_use_sysconfig:
7251 try:
7252 $am_python_setup_scheme
7253 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
7254 except:
7255 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
7256 else:
7257 from distutils import sysconfig
7258 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
7259 sys.stdout.write(sitedir)"`
7260 #
7261 case $am_cv_python_pyexecdir in
7262 $am_py_exec_prefix*)
7263 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
7264 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
7265 ;;
7266 *)
7267 case $am_py_exec_prefix in
7268 /usr|/System*) ;;
7269 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
7270 ;;
7271 esac
7272 ;;
7273 esac
7274 ;;
7275 esac
7276 fi
7277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
7278 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
7279 pyexecdir=$am_cv_python_pyexecdir
7280
7281
7282 pkgpyexecdir=\${pyexecdir}/$PACKAGE
7283
7284
7285
7286 fi
7287
7288
7289 # Generate
7290 #
7291
7292
7293
7294 ac_config_files="$ac_config_files Makefile src/tls/cockpit-certificate-helper src/ws/cockpit-desktop"
7295
7296 cat >confcache <<\_ACEOF
7297 # This file is a shell script that caches the results of configure
7298 # tests run on this system so they can be shared between configure
7299 # scripts and configure runs, see configure's option --config-cache.
7300 # It is not useful on other systems. If it contains results you don't
7301 # want to keep, you may remove or edit it.
7302 #
7303 # config.status only pays attention to the cache file if you give it
7304 # the --recheck option to rerun configure.
7305 #
7306 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
7307 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
7308 # following values.
7309
7310 _ACEOF
7311
7312 # The following way of writing the cache mishandles newlines in values,
7313 # but we know of no workaround that is simple, portable, and efficient.
7314 # So, we kill variables containing newlines.
7315 # Ultrix sh set writes to stderr and can't be redirected directly,
7316 # and sets the high bit in the cache file unless we assign to the vars.
7317 (
7318 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7319 eval ac_val=\$$ac_var
7320 case $ac_val in #(
7321 *${as_nl}*)
7322 case $ac_var in #(
7323 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7324 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7325 esac
7326 case $ac_var in #(
7327 _ | IFS | as_nl) ;; #(
7328 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7329 *) { eval $ac_var=; unset $ac_var;} ;;
7330 esac ;;
7331 esac
7332 done
7333
7334 (set) 2>&1 |
7335 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7336 *${as_nl}ac_space=\ *)
7337 # 'set' does not quote correctly, so add quotes: double-quote
7338 # substitution turns \\\\ into \\, and sed turns \\ into \.
7339 sed -n \
7340 "s/'/'\\\\''/g;
7341 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7342 ;; #(
7343 *)
7344 # 'set' quotes correctly as required by POSIX, so do not add quotes.
7345 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7346 ;;
7347 esac |
7348 sort
7349 ) |
7350 sed '
7351 /^ac_cv_env_/b end
7352 t clear
7353 :clear
7354 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
7355 t end
7356 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7357 :end' >>confcache
7358 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7359 if test -w "$cache_file"; then
7360 if test "x$cache_file" != "x/dev/null"; then
7361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7362 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
7363 if test ! -f "$cache_file" || test -h "$cache_file"; then
7364 cat confcache >"$cache_file"
7365 else
7366 case $cache_file in #(
7367 */* | ?:*)
7368 mv -f confcache "$cache_file"$$ &&
7369 mv -f "$cache_file"$$ "$cache_file" ;; #(
7370 *)
7371 mv -f confcache "$cache_file" ;;
7372 esac
7373 fi
7374 fi
7375 else
7376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7377 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
7378 fi
7379 fi
7380 rm -f confcache
7381
7382 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7383 # Let make expand exec_prefix.
7384 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7385
7386 DEFS=-DHAVE_CONFIG_H
7387
7388 ac_libobjs=
7389 ac_ltlibobjs=
7390 U=
7391 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7392 # 1. Remove the extension, and $U if already installed.
7393 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7394 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
7395 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7396 # will be set to the directory where LIBOBJS objects are built.
7397 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7398 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7399 done
7400 LIBOBJS=$ac_libobjs
7401
7402 LTLIBOBJS=$ac_ltlibobjs
7403
7404
7405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7406 printf %s "checking that generated files are newer than configure... " >&6; }
7407 if test -n "$am_sleep_pid"; then
7408 # Hide warnings about reused PIDs.
7409 wait $am_sleep_pid 2>/dev/null
7410 fi
7411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
7412 printf "%s\n" "done" >&6; }
7413 case $enable_silent_rules in # (((
7414 yes) AM_DEFAULT_VERBOSITY=0;;
7415 no) AM_DEFAULT_VERBOSITY=1;;
7416 esac
7417 if test $am_cv_make_support_nested_variables = yes; then
7418 AM_V='$(V)'
7419 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
7420 else
7421 AM_V=$AM_DEFAULT_VERBOSITY
7422 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
7423 fi
7424
7425 if test -n "$EXEEXT"; then
7426 am__EXEEXT_TRUE=
7427 am__EXEEXT_FALSE='#'
7428 else
7429 am__EXEEXT_TRUE='#'
7430 am__EXEEXT_FALSE=
7431 fi
7432
7433 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7434 as_fn_error $? "conditional \"AMDEP\" was never defined.
7435 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7436 fi
7437 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7438 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7439 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7440 fi
7441 # Check whether --enable-year2038 was given.
7442 if test ${enable_year2038+y}
7443 then :
7444 enableval=$enable_year2038;
7445 fi
7446
7447 if test -z "${SELINUX_POLICY_ENABLED_TRUE}" && test -z "${SELINUX_POLICY_ENABLED_FALSE}"; then
7448 as_fn_error $? "conditional \"SELINUX_POLICY_ENABLED\" was never defined.
7449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7450 fi
7451 if test -z "${WITH_ASAN_TRUE}" && test -z "${WITH_ASAN_FALSE}"; then
7452 as_fn_error $? "conditional \"WITH_ASAN\" was never defined.
7453 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7454 fi
7455 if test -z "${ENABLE_DOC_TRUE}" && test -z "${ENABLE_DOC_FALSE}"; then
7456 as_fn_error $? "conditional \"ENABLE_DOC\" was never defined.
7457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7458 fi
7459 if test -z "${HAS_ASCIIDOCTOR_TRUE}" && test -z "${HAS_ASCIIDOCTOR_FALSE}"; then
7460 as_fn_error $? "conditional \"HAS_ASCIIDOCTOR\" was never defined.
7461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7462 fi
7463 if test -z "${ENABLE_COCKPIT_CLIENT_TRUE}" && test -z "${ENABLE_COCKPIT_CLIENT_FALSE}"; then
7464 as_fn_error $? "conditional \"ENABLE_COCKPIT_CLIENT\" was never defined.
7465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7466 fi
7467 if test -z "${WITH_DEBUG_TRUE}" && test -z "${WITH_DEBUG_FALSE}"; then
7468 as_fn_error $? "conditional \"WITH_DEBUG\" was never defined.
7469 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7470 fi
7471 if test -z "${WITH_COVERAGE_TRUE}" && test -z "${WITH_COVERAGE_FALSE}"; then
7472 as_fn_error $? "conditional \"WITH_COVERAGE\" was never defined.
7473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7474 fi
7475
7476 : "${CONFIG_STATUS=./config.status}"
7477 ac_write_fail=0
7478 ac_clean_files_save=$ac_clean_files
7479 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7481 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
7482 as_write_fail=0
7483 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7484 #! $SHELL
7485 # Generated by $as_me.
7486 # Run this file to recreate the current configuration.
7487 # Compiler output produced by configure, useful for debugging
7488 # configure, is in config.log if it exists.
7489
7490 debug=false
7491 ac_cs_recheck=false
7492 ac_cs_silent=false
7493
7494 SHELL=\${CONFIG_SHELL-$SHELL}
7495 export SHELL
7496 _ASEOF
7497 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7498 ## -------------------- ##
7499 ## M4sh Initialization. ##
7500 ## -------------------- ##
7501
7502 # Be more Bourne compatible
7503 DUALCASE=1; export DUALCASE # for MKS sh
7504 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
7505 then :
7506 emulate sh
7507 NULLCMD=:
7508 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7509 # is contrary to our usage. Disable this feature.
7510 alias -g '${1+"$@"}'='"$@"'
7511 setopt NO_GLOB_SUBST
7512 else case e in #(
7513 e) case `(set -o) 2>/dev/null` in #(
7514 *posix*) :
7515 set -o posix ;; #(
7516 *) :
7517 ;;
7518 esac ;;
7519 esac
7520 fi
7521
7522
7523
7524 # Reset variables that may have inherited troublesome values from
7525 # the environment.
7526
7527 # IFS needs to be set, to space, tab, and newline, in precisely that order.
7528 # (If _AS_PATH_WALK were called with IFS unset, it would have the
7529 # side effect of setting IFS to empty, thus disabling word splitting.)
7530 # Quoting is to prevent editors from complaining about space-tab.
7531 as_nl='
7532 '
7533 export as_nl
7534 IFS=" "" $as_nl"
7535
7536 PS1='$ '
7537 PS2='> '
7538 PS4='+ '
7539
7540 # Ensure predictable behavior from utilities with locale-dependent output.
7541 LC_ALL=C
7542 export LC_ALL
7543 LANGUAGE=C
7544 export LANGUAGE
7545
7546 # We cannot yet rely on "unset" to work, but we need these variables
7547 # to be unset--not just set to an empty or harmless value--now, to
7548 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
7549 # also avoids known problems related to "unset" and subshell syntax
7550 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
7551 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
7552 do eval test \${$as_var+y} \
7553 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7554 done
7555
7556 # Ensure that fds 0, 1, and 2 are open.
7557 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
7558 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
7559 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
7560
7561 # The user is always right.
7562 if ${PATH_SEPARATOR+false} :; then
7563 PATH_SEPARATOR=:
7564 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7565 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7566 PATH_SEPARATOR=';'
7567 }
7568 fi
7569
7570
7571 # Find who we are. Look in the path if we contain no directory separator.
7572 as_myself=
7573 case $0 in #((
7574 *[\\/]* ) as_myself=$0 ;;
7575 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 for as_dir in $PATH
7577 do
7578 IFS=$as_save_IFS
7579 case $as_dir in #(((
7580 '') as_dir=./ ;;
7581 */) ;;
7582 *) as_dir=$as_dir/ ;;
7583 esac
7584 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
7585 done
7586 IFS=$as_save_IFS
7587
7588 ;;
7589 esac
7590 # We did not find ourselves, most probably we were run as 'sh COMMAND'
7591 # in which case we are not to be found in the path.
7592 if test "x$as_myself" = x; then
7593 as_myself=$0
7594 fi
7595 if test ! -f "$as_myself"; then
7596 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7597 exit 1
7598 fi
7599
7600
7601
7602 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7603 # ----------------------------------------
7604 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7605 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7606 # script with STATUS, using 1 if that was 0.
7607 as_fn_error ()
7608 {
7609 as_status=$1; test $as_status -eq 0 && as_status=1
7610 if test "$4"; then
7611 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7613 fi
7614 printf "%s\n" "$as_me: error: $2" >&2
7615 as_fn_exit $as_status
7616 } # as_fn_error
7617
7618
7619 # as_fn_set_status STATUS
7620 # -----------------------
7621 # Set $? to STATUS, without forking.
7622 as_fn_set_status ()
7623 {
7624 return $1
7625 } # as_fn_set_status
7626
7627 # as_fn_exit STATUS
7628 # -----------------
7629 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7630 as_fn_exit ()
7631 {
7632 set +e
7633 as_fn_set_status $1
7634 exit $1
7635 } # as_fn_exit
7636
7637 # as_fn_unset VAR
7638 # ---------------
7639 # Portably unset VAR.
7640 as_fn_unset ()
7641 {
7642 { eval $1=; unset $1;}
7643 }
7644 as_unset=as_fn_unset
7645
7646 # as_fn_append VAR VALUE
7647 # ----------------------
7648 # Append the text in VALUE to the end of the definition contained in VAR. Take
7649 # advantage of any shell optimizations that allow amortized linear growth over
7650 # repeated appends, instead of the typical quadratic growth present in naive
7651 # implementations.
7652 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
7653 then :
7654 eval 'as_fn_append ()
7655 {
7656 eval $1+=\$2
7657 }'
7658 else case e in #(
7659 e) as_fn_append ()
7660 {
7661 eval $1=\$$1\$2
7662 } ;;
7663 esac
7664 fi # as_fn_append
7665
7666 # as_fn_arith ARG...
7667 # ------------------
7668 # Perform arithmetic evaluation on the ARGs, and store the result in the
7669 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7670 # must be portable across $(()) and expr.
7671 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
7672 then :
7673 eval 'as_fn_arith ()
7674 {
7675 as_val=$(( $* ))
7676 }'
7677 else case e in #(
7678 e) as_fn_arith ()
7679 {
7680 as_val=`expr "$@" || test $? -eq 1`
7681 } ;;
7682 esac
7683 fi # as_fn_arith
7684
7685
7686 if expr a : '\(a\)' >/dev/null 2>&1 &&
7687 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7688 as_expr=expr
7689 else
7690 as_expr=false
7691 fi
7692
7693 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7694 as_basename=basename
7695 else
7696 as_basename=false
7697 fi
7698
7699 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7700 as_dirname=dirname
7701 else
7702 as_dirname=false
7703 fi
7704
7705 as_me=`$as_basename -- "$0" ||
7706 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7707 X"$0" : 'X\(//\)$' \| \
7708 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7709 printf "%s\n" X/"$0" |
7710 sed '/^.*\/\([^/][^/]*\)\/*$/{
7711 s//\1/
7712 q
7713 }
7714 /^X\/\(\/\/\)$/{
7715 s//\1/
7716 q
7717 }
7718 /^X\/\(\/\).*/{
7719 s//\1/
7720 q
7721 }
7722 s/.*/./; q'`
7723
7724 # Avoid depending upon Character Ranges.
7725 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7726 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7727 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7728 as_cr_digits='0123456789'
7729 as_cr_alnum=$as_cr_Letters$as_cr_digits
7730
7731
7732 # Determine whether it's possible to make 'echo' print without a newline.
7733 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
7734 # for compatibility with existing Makefiles.
7735 ECHO_C= ECHO_N= ECHO_T=
7736 case `echo -n x` in #(((((
7737 -n*)
7738 case `echo 'xy\c'` in
7739 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7740 xy) ECHO_C='\c';;
7741 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7742 ECHO_T=' ';;
7743 esac;;
7744 *)
7745 ECHO_N='-n';;
7746 esac
7747
7748 # For backward compatibility with old third-party macros, we provide
7749 # the shell variables $as_echo and $as_echo_n. New code should use
7750 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
7751 as_echo='printf %s\n'
7752 as_echo_n='printf %s'
7753
7754 rm -f conf$$ conf$$.exe conf$$.file
7755 if test -d conf$$.dir; then
7756 rm -f conf$$.dir/conf$$.file
7757 else
7758 rm -f conf$$.dir
7759 mkdir conf$$.dir 2>/dev/null
7760 fi
7761 if (echo >conf$$.file) 2>/dev/null; then
7762 if ln -s conf$$.file conf$$ 2>/dev/null; then
7763 as_ln_s='ln -s'
7764 # ... but there are two gotchas:
7765 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
7766 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
7767 # In both cases, we have to default to 'cp -pR'.
7768 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7769 as_ln_s='cp -pR'
7770 elif ln conf$$.file conf$$ 2>/dev/null; then
7771 as_ln_s=ln
7772 else
7773 as_ln_s='cp -pR'
7774 fi
7775 else
7776 as_ln_s='cp -pR'
7777 fi
7778 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7779 rmdir conf$$.dir 2>/dev/null
7780
7781
7782 # as_fn_mkdir_p
7783 # -------------
7784 # Create "$as_dir" as a directory, including parents if necessary.
7785 as_fn_mkdir_p ()
7786 {
7787
7788 case $as_dir in #(
7789 -*) as_dir=./$as_dir;;
7790 esac
7791 test -d "$as_dir" || eval $as_mkdir_p || {
7792 as_dirs=
7793 while :; do
7794 case $as_dir in #(
7795 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7796 *) as_qdir=$as_dir;;
7797 esac
7798 as_dirs="'$as_qdir' $as_dirs"
7799 as_dir=`$as_dirname -- "$as_dir" ||
7800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7801 X"$as_dir" : 'X\(//\)[^/]' \| \
7802 X"$as_dir" : 'X\(//\)$' \| \
7803 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7804 printf "%s\n" X"$as_dir" |
7805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7806 s//\1/
7807 q
7808 }
7809 /^X\(\/\/\)[^/].*/{
7810 s//\1/
7811 q
7812 }
7813 /^X\(\/\/\)$/{
7814 s//\1/
7815 q
7816 }
7817 /^X\(\/\).*/{
7818 s//\1/
7819 q
7820 }
7821 s/.*/./; q'`
7822 test -d "$as_dir" && break
7823 done
7824 test -z "$as_dirs" || eval "mkdir $as_dirs"
7825 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7826
7827
7828 } # as_fn_mkdir_p
7829 if mkdir -p . 2>/dev/null; then
7830 as_mkdir_p='mkdir -p "$as_dir"'
7831 else
7832 test -d ./-p && rmdir ./-p
7833 as_mkdir_p=false
7834 fi
7835
7836
7837 # as_fn_executable_p FILE
7838 # -----------------------
7839 # Test if FILE is an executable regular file.
7840 as_fn_executable_p ()
7841 {
7842 test -f "$1" && test -x "$1"
7843 } # as_fn_executable_p
7844 as_test_x='test -x'
7845 as_executable_p=as_fn_executable_p
7846
7847 # Sed expression to map a string onto a valid CPP name.
7848 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7849 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
7850
7851 # Sed expression to map a string onto a valid variable name.
7852 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7853 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
7854
7855
7856 exec 6>&1
7857 ## ----------------------------------- ##
7858 ## Main body of $CONFIG_STATUS script. ##
7859 ## ----------------------------------- ##
7860 _ASEOF
7861 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7862
7863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7864 # Save the log message, to keep $0 and so on meaningful, and to
7865 # report actual input values of CONFIG_FILES etc. instead of their
7866 # values after options handling.
7867 ac_log="
7868 This file was extended by Cockpit $as_me 368, which was
7869 generated by GNU Autoconf 2.72. Invocation command line was
7870
7871 CONFIG_FILES = $CONFIG_FILES
7872 CONFIG_HEADERS = $CONFIG_HEADERS
7873 CONFIG_LINKS = $CONFIG_LINKS
7874 CONFIG_COMMANDS = $CONFIG_COMMANDS
7875 $ $0 $@
7876
7877 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7878 "
7879
7880 _ACEOF
7881
7882 case $ac_config_files in *"
7883 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7884 esac
7885
7886 case $ac_config_headers in *"
7887 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7888 esac
7889
7890
7891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7892 # Files that config.status was made for.
7893 config_files="$ac_config_files"
7894 config_headers="$ac_config_headers"
7895 config_commands="$ac_config_commands"
7896
7897 _ACEOF
7898
7899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7900 ac_cs_usage="\
7901 '$as_me' instantiates files and other configuration actions
7902 from templates according to the current configuration. Unless the files
7903 and actions are specified as TAGs, all are instantiated by default.
7904
7905 Usage: $0 [OPTION]... [TAG]...
7906
7907 -h, --help print this help, then exit
7908 -V, --version print version number and configuration settings, then exit
7909 --config print configuration, then exit
7910 -q, --quiet, --silent
7911 do not print progress messages
7912 -d, --debug don't remove temporary files
7913 --recheck update $as_me by reconfiguring in the same conditions
7914 --file=FILE[:TEMPLATE]
7915 instantiate the configuration file FILE
7916 --header=FILE[:TEMPLATE]
7917 instantiate the configuration header FILE
7918
7919 Configuration files:
7920 $config_files
7921
7922 Configuration headers:
7923 $config_headers
7924
7925 Configuration commands:
7926 $config_commands
7927
7928 Report bugs to <[email protected]>.
7929 Cockpit home page: <https://cockpit-project.org/>."
7930
7931 _ACEOF
7932 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
7933 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
7934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7935 ac_cs_config='$ac_cs_config_escaped'
7936 ac_cs_version="\\
7937 Cockpit config.status 368
7938 configured by $0, generated by GNU Autoconf 2.72,
7939 with options \\"\$ac_cs_config\\"
7940
7941 Copyright (C) 2023 Free Software Foundation, Inc.
7942 This config.status script is free software; the Free Software Foundation
7943 gives unlimited permission to copy, distribute and modify it."
7944
7945 ac_pwd='$ac_pwd'
7946 srcdir='$srcdir'
7947 INSTALL='$INSTALL'
7948 MKDIR_P='$MKDIR_P'
7949 AWK='$AWK'
7950 test -n "\$AWK" || AWK=awk
7951 _ACEOF
7952
7953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7954 # The default lists apply if the user does not specify any file.
7955 ac_need_defaults=:
7956 while test $# != 0
7957 do
7958 case $1 in
7959 --*=?*)
7960 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7961 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7962 ac_shift=:
7963 ;;
7964 --*=)
7965 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7966 ac_optarg=
7967 ac_shift=:
7968 ;;
7969 *)
7970 ac_option=$1
7971 ac_optarg=$2
7972 ac_shift=shift
7973 ;;
7974 esac
7975
7976 case $ac_option in
7977 # Handling of the options.
7978 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7979 ac_cs_recheck=: ;;
7980 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7981 printf "%s\n" "$ac_cs_version"; exit ;;
7982 --config | --confi | --conf | --con | --co | --c )
7983 printf "%s\n" "$ac_cs_config"; exit ;;
7984 --debug | --debu | --deb | --de | --d | -d )
7985 debug=: ;;
7986 --file | --fil | --fi | --f )
7987 $ac_shift
7988 case $ac_optarg in
7989 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7990 '') as_fn_error $? "missing file argument" ;;
7991 esac
7992 as_fn_append CONFIG_FILES " '$ac_optarg'"
7993 ac_need_defaults=false;;
7994 --header | --heade | --head | --hea )
7995 $ac_shift
7996 case $ac_optarg in
7997 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7998 esac
7999 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8000 ac_need_defaults=false;;
8001 --he | --h)
8002 # Conflict between --help and --header
8003 as_fn_error $? "ambiguous option: '$1'
8004 Try '$0 --help' for more information.";;
8005 --help | --hel | -h )
8006 printf "%s\n" "$ac_cs_usage"; exit ;;
8007 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8008 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8009 ac_cs_silent=: ;;
8010
8011 # This is an error.
8012 -*) as_fn_error $? "unrecognized option: '$1'
8013 Try '$0 --help' for more information." ;;
8014
8015 *) as_fn_append ac_config_targets " $1"
8016 ac_need_defaults=false ;;
8017
8018 esac
8019 shift
8020 done
8021
8022 ac_configure_extra_args=
8023
8024 if $ac_cs_silent; then
8025 exec 6>/dev/null
8026 ac_configure_extra_args="$ac_configure_extra_args --silent"
8027 fi
8028
8029 _ACEOF
8030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8031 if \$ac_cs_recheck; then
8032 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8033 shift
8034 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
8035 CONFIG_SHELL='$SHELL'
8036 export CONFIG_SHELL
8037 exec "\$@"
8038 fi
8039
8040 _ACEOF
8041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8042 exec 5>>config.log
8043 {
8044 echo
8045 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8046 ## Running $as_me. ##
8047 _ASBOX
8048 printf "%s\n" "$ac_log"
8049 } >&5
8050
8051 _ACEOF
8052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8053 #
8054 # INIT-COMMANDS
8055 #
8056 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
8057
8058 _ACEOF
8059
8060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8061
8062 # Handling of arguments.
8063 for ac_config_target in $ac_config_targets
8064 do
8065 case $ac_config_target in
8066 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8067 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8068 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8069 "src/tls/cockpit-certificate-helper") CONFIG_FILES="$CONFIG_FILES src/tls/cockpit-certificate-helper" ;;
8070 "src/ws/cockpit-desktop") CONFIG_FILES="$CONFIG_FILES src/ws/cockpit-desktop" ;;
8071
8072 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
8073 esac
8074 done
8075
8076
8077 # If the user did not use the arguments to specify the items to instantiate,
8078 # then the envvar interface is used. Set only those that are not.
8079 # We use the long form for the default assignment because of an extremely
8080 # bizarre bug on SunOS 4.1.3.
8081 if $ac_need_defaults; then
8082 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
8083 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
8084 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
8085 fi
8086
8087 # Have a temporary directory for convenience. Make it in the build tree
8088 # simply because there is no reason against having it here, and in addition,
8089 # creating and moving files from /tmp can sometimes cause problems.
8090 # Hook for its removal unless debugging.
8091 # Note that there is a small window in which the directory will not be cleaned:
8092 # after its creation but before its name has been assigned to '$tmp'.
8093 $debug ||
8094 {
8095 tmp= ac_tmp=
8096 trap 'exit_status=$?
8097 : "${ac_tmp:=$tmp}"
8098 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8099 ' 0
8100 trap 'as_fn_exit 1' 1 2 13 15
8101 }
8102 # Create a (secure) tmp directory for tmp files.
8103
8104 {
8105 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8106 test -d "$tmp"
8107 } ||
8108 {
8109 tmp=./conf$$-$RANDOM
8110 (umask 077 && mkdir "$tmp")
8111 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8112 ac_tmp=$tmp
8113
8114 # Set up the scripts for CONFIG_FILES section.
8115 # No need to generate them if there are no CONFIG_FILES.
8116 # This happens for instance with './config.status config.h'.
8117 if test -n "$CONFIG_FILES"; then
8118
8119
8120 ac_cr=`echo X | tr X '\015'`
8121 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8122 # But we know of no other shell where ac_cr would be empty at this
8123 # point, so we can use a bashism as a fallback.
8124 if test "x$ac_cr" = x; then
8125 eval ac_cr=\$\'\\r\'
8126 fi
8127 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8128 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8129 ac_cs_awk_cr='\\r'
8130 else
8131 ac_cs_awk_cr=$ac_cr
8132 fi
8133
8134 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8135 _ACEOF
8136
8137
8138 {
8139 echo "cat >conf$$subs.awk <<_ACEOF" &&
8140 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8141 echo "_ACEOF"
8142 } >conf$$subs.sh ||
8143 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8144 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8145 ac_delim='%!_!# '
8146 for ac_last_try in false false false false false :; do
8147 . ./conf$$subs.sh ||
8148 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8149
8150 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8151 if test $ac_delim_n = $ac_delim_num; then
8152 break
8153 elif $ac_last_try; then
8154 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8155 else
8156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8157 fi
8158 done
8159 rm -f conf$$subs.sh
8160
8161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8162 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8163 _ACEOF
8164 sed -n '
8165 h
8166 s/^/S["/; s/!.*/"]=/
8167 p
8168 g
8169 s/^[^!]*!//
8170 :repl
8171 t repl
8172 s/'"$ac_delim"'$//
8173 t delim
8174 :nl
8175 h
8176 s/\(.\{148\}\)..*/\1/
8177 t more1
8178 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8179 p
8180 n
8181 b repl
8182 :more1
8183 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8184 p
8185 g
8186 s/.\{148\}//
8187 t nl
8188 :delim
8189 h
8190 s/\(.\{148\}\)..*/\1/
8191 t more2
8192 s/["\\]/\\&/g; s/^/"/; s/$/"/
8193 p
8194 b
8195 :more2
8196 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8197 p
8198 g
8199 s/.\{148\}//
8200 t delim
8201 ' <conf$$subs.awk | sed '
8202 /^[^""]/{
8203 N
8204 s/\n//
8205 }
8206 ' >>$CONFIG_STATUS || ac_write_fail=1
8207 rm -f conf$$subs.awk
8208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8209 _ACAWK
8210 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8211 for (key in S) S_is_set[key] = 1
8212 FS = ""
8213
8214 }
8215 {
8216 line = $ 0
8217 nfields = split(line, field, "@")
8218 substed = 0
8219 len = length(field[1])
8220 for (i = 2; i < nfields; i++) {
8221 key = field[i]
8222 keylen = length(key)
8223 if (S_is_set[key]) {
8224 value = S[key]
8225 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8226 len += length(value) + length(field[++i])
8227 substed = 1
8228 } else
8229 len += 1 + keylen
8230 }
8231
8232 print line
8233 }
8234
8235 _ACAWK
8236 _ACEOF
8237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8238 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8239 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8240 else
8241 cat
8242 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8243 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8244 _ACEOF
8245
8246 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8247 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8248 # trailing colons and then remove the whole line if VPATH becomes empty
8249 # (actually we leave an empty line to preserve line numbers).
8250 if test "x$srcdir" = x.; then
8251 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8252 h
8253 s///
8254 s/^/:/
8255 s/[ ]*$/:/
8256 s/:\$(srcdir):/:/g
8257 s/:\${srcdir}:/:/g
8258 s/:@srcdir@:/:/g
8259 s/^:*//
8260 s/:*$//
8261 x
8262 s/\(=[ ]*\).*/\1/
8263 G
8264 s/\n//
8265 s/^[^=]*=[ ]*$//
8266 }'
8267 fi
8268
8269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8270 fi # test -n "$CONFIG_FILES"
8271
8272 # Set up the scripts for CONFIG_HEADERS section.
8273 # No need to generate them if there are no CONFIG_HEADERS.
8274 # This happens for instance with './config.status Makefile'.
8275 if test -n "$CONFIG_HEADERS"; then
8276 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8277 BEGIN {
8278 _ACEOF
8279
8280 # Transform confdefs.h into an awk script 'defines.awk', embedded as
8281 # here-document in config.status, that substitutes the proper values into
8282 # config.h.in to produce config.h.
8283
8284 # Create a delimiter string that does not exist in confdefs.h, to ease
8285 # handling of long lines.
8286 ac_delim='%!_!# '
8287 for ac_last_try in false false :; do
8288 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8289 if test -z "$ac_tt"; then
8290 break
8291 elif $ac_last_try; then
8292 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8293 else
8294 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8295 fi
8296 done
8297
8298 # For the awk script, D is an array of macro values keyed by name,
8299 # likewise P contains macro parameters if any. Preserve backslash
8300 # newline sequences.
8301
8302 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8303 sed -n '
8304 s/.\{148\}/&'"$ac_delim"'/g
8305 t rset
8306 :rset
8307 s/^[ ]*#[ ]*define[ ][ ]*/ /
8308 t def
8309 d
8310 :def
8311 s/\\$//
8312 t bsnl
8313 s/["\\]/\\&/g
8314 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8315 D["\1"]=" \3"/p
8316 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8317 d
8318 :bsnl
8319 s/["\\]/\\&/g
8320 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8321 D["\1"]=" \3\\\\\\n"\\/p
8322 t cont
8323 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8324 t cont
8325 d
8326 :cont
8327 n
8328 s/.\{148\}/&'"$ac_delim"'/g
8329 t clear
8330 :clear
8331 s/\\$//
8332 t bsnlc
8333 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8334 d
8335 :bsnlc
8336 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8337 b cont
8338 ' <confdefs.h | sed '
8339 s/'"$ac_delim"'/"\\\
8340 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8341
8342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8343 for (key in D) D_is_set[key] = 1
8344 FS = ""
8345 }
8346 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8347 line = \$ 0
8348 split(line, arg, " ")
8349 if (arg[1] == "#") {
8350 defundef = arg[2]
8351 mac1 = arg[3]
8352 } else {
8353 defundef = substr(arg[1], 2)
8354 mac1 = arg[2]
8355 }
8356 split(mac1, mac2, "(") #)
8357 macro = mac2[1]
8358 prefix = substr(line, 1, index(line, defundef) - 1)
8359 if (D_is_set[macro]) {
8360 # Preserve the white space surrounding the "#".
8361 print prefix "define", macro P[macro] D[macro]
8362 next
8363 } else {
8364 # Replace #undef with comments. This is necessary, for example,
8365 # in the case of _POSIX_SOURCE, which is predefined and required
8366 # on some systems where configure will not decide to define it.
8367 if (defundef == "undef") {
8368 print "/*", prefix defundef, macro, "*/"
8369 next
8370 }
8371 }
8372 }
8373 { print }
8374 _ACAWK
8375 _ACEOF
8376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8377 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8378 fi # test -n "$CONFIG_HEADERS"
8379
8380
8381 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8382 shift
8383 for ac_tag
8384 do
8385 case $ac_tag in
8386 :[FHLC]) ac_mode=$ac_tag; continue;;
8387 esac
8388 case $ac_mode$ac_tag in
8389 :[FHL]*:*);;
8390 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
8391 :[FH]-) ac_tag=-:-;;
8392 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8393 esac
8394 ac_save_IFS=$IFS
8395 IFS=:
8396 set x $ac_tag
8397 IFS=$ac_save_IFS
8398 shift
8399 ac_file=$1
8400 shift
8401
8402 case $ac_mode in
8403 :L) ac_source=$1;;
8404 :[FH])
8405 ac_file_inputs=
8406 for ac_f
8407 do
8408 case $ac_f in
8409 -) ac_f="$ac_tmp/stdin";;
8410 *) # Look for the file first in the build tree, then in the source tree
8411 # (if the path is not absolute). The absolute path cannot be DOS-style,
8412 # because $ac_f cannot contain ':'.
8413 test -f "$ac_f" ||
8414 case $ac_f in
8415 [\\/$]*) false;;
8416 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8417 esac ||
8418 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
8419 esac
8420 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8421 as_fn_append ac_file_inputs " '$ac_f'"
8422 done
8423
8424 # Let's still pretend it is 'configure' which instantiates (i.e., don't
8425 # use $as_me), people would be surprised to read:
8426 # /* config.h. Generated by config.status. */
8427 configure_input='Generated from '`
8428 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8429 `' by configure.'
8430 if test x"$ac_file" != x-; then
8431 configure_input="$ac_file. $configure_input"
8432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8433 printf "%s\n" "$as_me: creating $ac_file" >&6;}
8434 fi
8435 # Neutralize special characters interpreted by sed in replacement strings.
8436 case $configure_input in #(
8437 *\&* | *\|* | *\\* )
8438 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
8439 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8440 *) ac_sed_conf_input=$configure_input;;
8441 esac
8442
8443 case $ac_tag in
8444 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8445 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8446 esac
8447 ;;
8448 esac
8449
8450 ac_dir=`$as_dirname -- "$ac_file" ||
8451 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8452 X"$ac_file" : 'X\(//\)[^/]' \| \
8453 X"$ac_file" : 'X\(//\)$' \| \
8454 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8455 printf "%s\n" X"$ac_file" |
8456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8457 s//\1/
8458 q
8459 }
8460 /^X\(\/\/\)[^/].*/{
8461 s//\1/
8462 q
8463 }
8464 /^X\(\/\/\)$/{
8465 s//\1/
8466 q
8467 }
8468 /^X\(\/\).*/{
8469 s//\1/
8470 q
8471 }
8472 s/.*/./; q'`
8473 as_dir="$ac_dir"; as_fn_mkdir_p
8474 ac_builddir=.
8475
8476 case "$ac_dir" in
8477 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8478 *)
8479 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
8480 # A ".." for each directory in $ac_dir_suffix.
8481 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8482 case $ac_top_builddir_sub in
8483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8485 esac ;;
8486 esac
8487 ac_abs_top_builddir=$ac_pwd
8488 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8489 # for backward compatibility:
8490 ac_top_builddir=$ac_top_build_prefix
8491
8492 case $srcdir in
8493 .) # We are building in place.
8494 ac_srcdir=.
8495 ac_top_srcdir=$ac_top_builddir_sub
8496 ac_abs_top_srcdir=$ac_pwd ;;
8497 [\\/]* | ?:[\\/]* ) # Absolute name.
8498 ac_srcdir=$srcdir$ac_dir_suffix;
8499 ac_top_srcdir=$srcdir
8500 ac_abs_top_srcdir=$srcdir ;;
8501 *) # Relative name.
8502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8503 ac_top_srcdir=$ac_top_build_prefix$srcdir
8504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8505 esac
8506 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8507
8508
8509 case $ac_mode in
8510 :F)
8511 #
8512 # CONFIG_FILE
8513 #
8514
8515 case $INSTALL in
8516 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8517 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8518 esac
8519 ac_MKDIR_P=$MKDIR_P
8520 case $MKDIR_P in
8521 [\\/$]* | ?:[\\/]* ) ;;
8522 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8523 esac
8524 _ACEOF
8525
8526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8527 # If the template does not know about datarootdir, expand it.
8528 # FIXME: This hack should be removed a few years after 2.60.
8529 ac_datarootdir_hack=; ac_datarootdir_seen=
8530 ac_sed_dataroot='
8531 /datarootdir/ {
8532 p
8533 q
8534 }
8535 /@datadir@/p
8536 /@docdir@/p
8537 /@infodir@/p
8538 /@localedir@/p
8539 /@mandir@/p'
8540 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8541 *datarootdir*) ac_datarootdir_seen=yes;;
8542 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8544 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8545 _ACEOF
8546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8547 ac_datarootdir_hack='
8548 s&@datadir@&$datadir&g
8549 s&@docdir@&$docdir&g
8550 s&@infodir@&$infodir&g
8551 s&@localedir@&$localedir&g
8552 s&@mandir@&$mandir&g
8553 s&\\\${datarootdir}&$datarootdir&g' ;;
8554 esac
8555 _ACEOF
8556
8557 # Neutralize VPATH when '$srcdir' = '.'.
8558 # Shell code in configure.ac might set extrasub.
8559 # FIXME: do we really want to maintain this feature?
8560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8561 ac_sed_extra="$ac_vpsub
8562 $extrasub
8563 _ACEOF
8564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8565 :t
8566 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8567 s|@configure_input@|$ac_sed_conf_input|;t t
8568 s&@top_builddir@&$ac_top_builddir_sub&;t t
8569 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8570 s&@srcdir@&$ac_srcdir&;t t
8571 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8572 s&@top_srcdir@&$ac_top_srcdir&;t t
8573 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8574 s&@builddir@&$ac_builddir&;t t
8575 s&@abs_builddir@&$ac_abs_builddir&;t t
8576 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8577 s&@INSTALL@&$ac_INSTALL&;t t
8578 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8579 $ac_datarootdir_hack
8580 "
8581 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8582 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8583
8584 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8585 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8586 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8587 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
8589 which seems to be undefined. Please make sure it is defined" >&5
8590 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
8591 which seems to be undefined. Please make sure it is defined" >&2;}
8592
8593 rm -f "$ac_tmp/stdin"
8594 case $ac_file in
8595 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8596 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8597 esac \
8598 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8599 ;;
8600 :H)
8601 #
8602 # CONFIG_HEADER
8603 #
8604 if test x"$ac_file" != x-; then
8605 {
8606 printf "%s\n" "/* $configure_input */" >&1 \
8607 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8608 } >"$ac_tmp/config.h" \
8609 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8610 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8612 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
8613 else
8614 rm -f "$ac_file"
8615 mv "$ac_tmp/config.h" "$ac_file" \
8616 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8617 fi
8618 else
8619 printf "%s\n" "/* $configure_input */" >&1 \
8620 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8621 || as_fn_error $? "could not create -" "$LINENO" 5
8622 fi
8623 # Compute "$ac_file"'s index in $config_headers.
8624 _am_arg="$ac_file"
8625 _am_stamp_count=1
8626 for _am_header in $config_headers :; do
8627 case $_am_header in
8628 $_am_arg | $_am_arg:* )
8629 break ;;
8630 * )
8631 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8632 esac
8633 done
8634 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8635 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8636 X"$_am_arg" : 'X\(//\)[^/]' \| \
8637 X"$_am_arg" : 'X\(//\)$' \| \
8638 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8639 printf "%s\n" X"$_am_arg" |
8640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8641 s//\1/
8642 q
8643 }
8644 /^X\(\/\/\)[^/].*/{
8645 s//\1/
8646 q
8647 }
8648 /^X\(\/\/\)$/{
8649 s//\1/
8650 q
8651 }
8652 /^X\(\/\).*/{
8653 s//\1/
8654 q
8655 }
8656 s/.*/./; q'`/stamp-h$_am_stamp_count
8657 ;;
8658
8659 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8660 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
8661 ;;
8662 esac
8663
8664
8665 case $ac_file$ac_mode in
8666 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8667 # Older Autoconf quotes --file arguments for eval, but not when files
8668 # are listed without --file. Let's play safe and only enable the eval
8669 # if we detect the quoting.
8670 # TODO: see whether this extra hack can be removed once we start
8671 # requiring Autoconf 2.70 or later.
8672 case $CONFIG_FILES in #(
8673 *\'*) :
8674 eval set x "$CONFIG_FILES" ;; #(
8675 *) :
8676 set x $CONFIG_FILES ;; #(
8677 *) :
8678 ;;
8679 esac
8680 shift
8681 # Used to flag and report bootstrapping failures.
8682 am_rc=0
8683 for am_mf
8684 do
8685 # Strip MF so we end up with the name of the file.
8686 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
8687 # Check whether this is an Automake generated Makefile which includes
8688 # dependency-tracking related rules and includes.
8689 # Grep'ing the whole file directly is not great: AIX grep has a line
8690 # limit of 2048, but all sed's we know have understand at least 4000.
8691 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
8692 || continue
8693 am_dirpart=`$as_dirname -- "$am_mf" ||
8694 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8695 X"$am_mf" : 'X\(//\)[^/]' \| \
8696 X"$am_mf" : 'X\(//\)$' \| \
8697 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8698 printf "%s\n" X"$am_mf" |
8699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8700 s//\1/
8701 q
8702 }
8703 /^X\(\/\/\)[^/].*/{
8704 s//\1/
8705 q
8706 }
8707 /^X\(\/\/\)$/{
8708 s//\1/
8709 q
8710 }
8711 /^X\(\/\).*/{
8712 s//\1/
8713 q
8714 }
8715 s/.*/./; q'`
8716 am_filepart=`$as_basename -- "$am_mf" ||
8717 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
8718 X"$am_mf" : 'X\(//\)$' \| \
8719 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
8720 printf "%s\n" X/"$am_mf" |
8721 sed '/^.*\/\([^/][^/]*\)\/*$/{
8722 s//\1/
8723 q
8724 }
8725 /^X\/\(\/\/\)$/{
8726 s//\1/
8727 q
8728 }
8729 /^X\/\(\/\).*/{
8730 s//\1/
8731 q
8732 }
8733 s/.*/./; q'`
8734 { echo "$as_me:$LINENO: cd "$am_dirpart" \
8735 && sed -e '/# am--include-marker/d' "$am_filepart" \
8736 | $MAKE -f - am--depfiles" >&5
8737 (cd "$am_dirpart" \
8738 && sed -e '/# am--include-marker/d' "$am_filepart" \
8739 | $MAKE -f - am--depfiles) >&5 2>&5
8740 ac_status=$?
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); } || am_rc=$?
8743 done
8744 if test $am_rc -ne 0; then
8745 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8746 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8747 as_fn_error $? "Something went wrong bootstrapping makefile fragments
8748 for automatic dependency tracking. If GNU make was not used, consider
8749 re-running the configure script with MAKE=\"gmake\" (or whatever is
8750 necessary). You can also try re-running configure with the
8751 '--disable-dependency-tracking' option to at least be able to build
8752 the package (albeit without support for automatic dependency tracking).
8753 See 'config.log' for more details" "$LINENO" 5; }
8754 fi
8755 { am_dirpart=; unset am_dirpart;}
8756 { am_filepart=; unset am_filepart;}
8757 { am_mf=; unset am_mf;}
8758 { am_rc=; unset am_rc;}
8759 rm -f conftest-deps.mk
8760 }
8761 ;;
8762
8763 esac
8764 done # for ac_tag
8765
8766
8767 as_fn_exit 0
8768 _ACEOF
8769 ac_clean_files=$ac_clean_files_save
8770
8771 test $ac_write_fail = 0 ||
8772 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8773
8774
8775 # configure is writing to config.log, and then calls config.status.
8776 # config.status does its own redirection, appending to config.log.
8777 # Unfortunately, on DOS this fails, as config.log is still kept open
8778 # by configure, so config.status won't be able to write to it; its
8779 # output is simply discarded. So we exec the FD to /dev/null,
8780 # effectively closing config.log, so it can be properly (re)opened and
8781 # appended to by config.status. When coming back to configure, we
8782 # need to make the FD available again.
8783 if test "$no_create" != yes; then
8784 ac_cs_success=:
8785 ac_config_status_args=
8786 test "$silent" = yes &&
8787 ac_config_status_args="$ac_config_status_args --quiet"
8788 exec 5>/dev/null
8789 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8790 exec 5>>config.log
8791 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8792 # would make configure fail if this is the last instruction.
8793 $ac_cs_success || as_fn_exit 1
8794 fi
8795 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8797 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8798 fi
8799
8800
8801
8802 echo "
8803 Cockpit $VERSION
8804 ================
8805
8806 prefix: ${prefix}
8807 exec_prefix: ${exec_prefix}
8808 libdir: ${libdir}
8809 libexecdir: ${libexecdir}
8810 bindir: ${bindir}
8811 sbindir: ${sbindir}
8812 datarootdir: ${datarootdir}
8813 datadir: ${datadir}
8814 sysconfdir: ${sysconfdir}
8815 localstatedir: ${localstatedir}
8816 pamdir: ${pamdir}
8817 systemd unit dir: ${systemdunitdir}
8818
8819 compiler: ${CC}
8820 cflags: ${CFLAGS}
8821 cppflags: ${CPPFLAGS}
8822
8823 admin group: ${admin_group}
8824 cockpit-session PATH: ${default_session_path}
8825
8826 Building docs: ${enable_doc}
8827 Has asciidoctor: ${has_asciidoctor}
8828
8829 Debug mode: ${debug_status}
8830 Node environment: ${NODE_ENV}
8831 With coverage: ${enable_coverage}
8832 With address sanitizer: ${asan_status}
8833 SELinux Policy: ${enable_selinux_policy}
8834
8835 cockpit-client: ${enable_cockpit_client}
8836
8837 ssh-add: ${SSH_ADD}
8838 ssh-agent: ${SSH_AGENT}
8839
8840 Now type 'make' to compile cockpit."
8841