Debian Codegraph @

configure

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