Debian Codegraph @

configure

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