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