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