"Fossies" - the Fresh Open Source Software Archive 
Member "detox-1.4.5/configure" (15 Aug 2021, 178802 Bytes) of package /linux/privat/detox-1.4.5.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
See also the latest
Fossies "Diffs" side-by-side code changes report for "configure":
1.4.4_vs_1.4.5.
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for detox 1.4.5.
4 #
5 # Report bugs to <detox.dharple at gmail.com>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and detox.dharple at
270 $0: gmail.com about your system, including any error
271 $0: possibly output before this message. Then install a
272 $0: modern shell, or manually run the script under such a
273 $0: shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='detox'
582 PACKAGE_TARNAME='detox'
583 PACKAGE_VERSION='1.4.5'
584 PACKAGE_STRING='detox 1.4.5'
585 PACKAGE_BUGREPORT='detox.dharple at gmail.com'
586 PACKAGE_URL='https://github.com/dharple/detox'
587
588 # Factoring default headers for most tests.
589 ac_includes_default="\
590 #include <stdio.h>
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
593 #endif
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
596 #endif
597 #ifdef STDC_HEADERS
598 # include <stdlib.h>
599 # include <stddef.h>
600 #else
601 # ifdef HAVE_STDLIB_H
602 # include <stdlib.h>
603 # endif
604 #endif
605 #ifdef HAVE_STRING_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 # include <memory.h>
608 # endif
609 # include <string.h>
610 #endif
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
613 #endif
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
616 #endif
617 #ifdef HAVE_STDINT_H
618 # include <stdint.h>
619 #endif
620 #ifdef HAVE_UNISTD_H
621 # include <unistd.h>
622 #endif"
623
624 ac_subst_vars='am__EXEEXT_FALSE
625 am__EXEEXT_TRUE
626 LTLIBOBJS
627 LIBOBJS
628 EGREP
629 GREP
630 CPP
631 YFLAGS
632 YACC
633 LEXLIB
634 LEX_OUTPUT_ROOT
635 LEX
636 am__fastdepCC_FALSE
637 am__fastdepCC_TRUE
638 CCDEPMODE
639 am__nodep
640 AMDEPBACKSLASH
641 AMDEP_FALSE
642 AMDEP_TRUE
643 am__include
644 DEPDIR
645 OBJEXT
646 EXEEXT
647 ac_ct_CC
648 CPPFLAGS
649 LDFLAGS
650 CFLAGS
651 CC
652 AM_BACKSLASH
653 AM_DEFAULT_VERBOSITY
654 AM_DEFAULT_V
655 AM_V
656 am__untar
657 am__tar
658 AMTAR
659 am__leading_dot
660 SET_MAKE
661 AWK
662 mkdir_p
663 MKDIR_P
664 INSTALL_STRIP_PROGRAM
665 STRIP
666 install_sh
667 MAKEINFO
668 AUTOHEADER
669 AUTOMAKE
670 AUTOCONF
671 ACLOCAL
672 VERSION
673 PACKAGE
674 CYGPATH_W
675 am__isrc
676 INSTALL_DATA
677 INSTALL_SCRIPT
678 INSTALL_PROGRAM
679 target_alias
680 host_alias
681 build_alias
682 LIBS
683 ECHO_T
684 ECHO_N
685 ECHO_C
686 DEFS
687 mandir
688 localedir
689 libdir
690 psdir
691 pdfdir
692 dvidir
693 htmldir
694 infodir
695 docdir
696 oldincludedir
697 includedir
698 runstatedir
699 localstatedir
700 sharedstatedir
701 sysconfdir
702 datadir
703 datarootdir
704 libexecdir
705 sbindir
706 bindir
707 program_transform_name
708 prefix
709 exec_prefix
710 PACKAGE_URL
711 PACKAGE_BUGREPORT
712 PACKAGE_STRING
713 PACKAGE_VERSION
714 PACKAGE_TARNAME
715 PACKAGE_NAME
716 PATH_SEPARATOR
717 SHELL
718 am__quote'
719 ac_subst_files=''
720 ac_user_opts='
721 enable_option_checking
722 enable_silent_rules
723 enable_dependency_tracking
724 enable_largefile
725 '
726 ac_precious_vars='build_alias
727 host_alias
728 target_alias
729 CC
730 CFLAGS
731 LDFLAGS
732 LIBS
733 CPPFLAGS
734 YACC
735 YFLAGS
736 CPP'
737
738
739 # Initialize some variables set by options.
740 ac_init_help=
741 ac_init_version=false
742 ac_unrecognized_opts=
743 ac_unrecognized_sep=
744 # The variables have the same names as the options, with
745 # dashes changed to underlines.
746 cache_file=/dev/null
747 exec_prefix=NONE
748 no_create=
749 no_recursion=
750 prefix=NONE
751 program_prefix=NONE
752 program_suffix=NONE
753 program_transform_name=s,x,x,
754 silent=
755 site=
756 srcdir=
757 verbose=
758 x_includes=NONE
759 x_libraries=NONE
760
761 # Installation directory options.
762 # These are left unexpanded so users can "make install exec_prefix=/foo"
763 # and all the variables that are supposed to be based on exec_prefix
764 # by default will actually change.
765 # Use braces instead of parens because sh, perl, etc. also accept them.
766 # (The list follows the same order as the GNU Coding Standards.)
767 bindir='${exec_prefix}/bin'
768 sbindir='${exec_prefix}/sbin'
769 libexecdir='${exec_prefix}/libexec'
770 datarootdir='${prefix}/share'
771 datadir='${datarootdir}'
772 sysconfdir='${prefix}/etc'
773 sharedstatedir='${prefix}/com'
774 localstatedir='${prefix}/var'
775 runstatedir='${localstatedir}/run'
776 includedir='${prefix}/include'
777 oldincludedir='/usr/include'
778 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
779 infodir='${datarootdir}/info'
780 htmldir='${docdir}'
781 dvidir='${docdir}'
782 pdfdir='${docdir}'
783 psdir='${docdir}'
784 libdir='${exec_prefix}/lib'
785 localedir='${datarootdir}/locale'
786 mandir='${datarootdir}/man'
787
788 ac_prev=
789 ac_dashdash=
790 for ac_option
791 do
792 # If the previous option needs an argument, assign it.
793 if test -n "$ac_prev"; then
794 eval $ac_prev=\$ac_option
795 ac_prev=
796 continue
797 fi
798
799 case $ac_option in
800 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
801 *=) ac_optarg= ;;
802 *) ac_optarg=yes ;;
803 esac
804
805 # Accept the important Cygnus configure options, so we can diagnose typos.
806
807 case $ac_dashdash$ac_option in
808 --)
809 ac_dashdash=yes ;;
810
811 -bindir | --bindir | --bindi | --bind | --bin | --bi)
812 ac_prev=bindir ;;
813 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
814 bindir=$ac_optarg ;;
815
816 -build | --build | --buil | --bui | --bu)
817 ac_prev=build_alias ;;
818 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
819 build_alias=$ac_optarg ;;
820
821 -cache-file | --cache-file | --cache-fil | --cache-fi \
822 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
823 ac_prev=cache_file ;;
824 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
825 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
826 cache_file=$ac_optarg ;;
827
828 --config-cache | -C)
829 cache_file=config.cache ;;
830
831 -datadir | --datadir | --datadi | --datad)
832 ac_prev=datadir ;;
833 -datadir=* | --datadir=* | --datadi=* | --datad=*)
834 datadir=$ac_optarg ;;
835
836 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
837 | --dataroo | --dataro | --datar)
838 ac_prev=datarootdir ;;
839 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
840 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
841 datarootdir=$ac_optarg ;;
842
843 -disable-* | --disable-*)
844 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
845 # Reject names that are not valid shell variable names.
846 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
847 as_fn_error $? "invalid feature name: $ac_useropt"
848 ac_useropt_orig=$ac_useropt
849 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
850 case $ac_user_opts in
851 *"
852 "enable_$ac_useropt"
853 "*) ;;
854 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
855 ac_unrecognized_sep=', ';;
856 esac
857 eval enable_$ac_useropt=no ;;
858
859 -docdir | --docdir | --docdi | --doc | --do)
860 ac_prev=docdir ;;
861 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
862 docdir=$ac_optarg ;;
863
864 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
865 ac_prev=dvidir ;;
866 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
867 dvidir=$ac_optarg ;;
868
869 -enable-* | --enable-*)
870 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873 as_fn_error $? "invalid feature name: $ac_useropt"
874 ac_useropt_orig=$ac_useropt
875 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876 case $ac_user_opts in
877 *"
878 "enable_$ac_useropt"
879 "*) ;;
880 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
881 ac_unrecognized_sep=', ';;
882 esac
883 eval enable_$ac_useropt=\$ac_optarg ;;
884
885 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
886 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
887 | --exec | --exe | --ex)
888 ac_prev=exec_prefix ;;
889 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
890 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
891 | --exec=* | --exe=* | --ex=*)
892 exec_prefix=$ac_optarg ;;
893
894 -gas | --gas | --ga | --g)
895 # Obsolete; use --with-gas.
896 with_gas=yes ;;
897
898 -help | --help | --hel | --he | -h)
899 ac_init_help=long ;;
900 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
901 ac_init_help=recursive ;;
902 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
903 ac_init_help=short ;;
904
905 -host | --host | --hos | --ho)
906 ac_prev=host_alias ;;
907 -host=* | --host=* | --hos=* | --ho=*)
908 host_alias=$ac_optarg ;;
909
910 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
911 ac_prev=htmldir ;;
912 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
913 | --ht=*)
914 htmldir=$ac_optarg ;;
915
916 -includedir | --includedir | --includedi | --included | --include \
917 | --includ | --inclu | --incl | --inc)
918 ac_prev=includedir ;;
919 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
920 | --includ=* | --inclu=* | --incl=* | --inc=*)
921 includedir=$ac_optarg ;;
922
923 -infodir | --infodir | --infodi | --infod | --info | --inf)
924 ac_prev=infodir ;;
925 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
926 infodir=$ac_optarg ;;
927
928 -libdir | --libdir | --libdi | --libd)
929 ac_prev=libdir ;;
930 -libdir=* | --libdir=* | --libdi=* | --libd=*)
931 libdir=$ac_optarg ;;
932
933 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
934 | --libexe | --libex | --libe)
935 ac_prev=libexecdir ;;
936 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
937 | --libexe=* | --libex=* | --libe=*)
938 libexecdir=$ac_optarg ;;
939
940 -localedir | --localedir | --localedi | --localed | --locale)
941 ac_prev=localedir ;;
942 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
943 localedir=$ac_optarg ;;
944
945 -localstatedir | --localstatedir | --localstatedi | --localstated \
946 | --localstate | --localstat | --localsta | --localst | --locals)
947 ac_prev=localstatedir ;;
948 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
949 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
950 localstatedir=$ac_optarg ;;
951
952 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
953 ac_prev=mandir ;;
954 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
955 mandir=$ac_optarg ;;
956
957 -nfp | --nfp | --nf)
958 # Obsolete; use --without-fp.
959 with_fp=no ;;
960
961 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
962 | --no-cr | --no-c | -n)
963 no_create=yes ;;
964
965 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
966 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
967 no_recursion=yes ;;
968
969 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
970 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
971 | --oldin | --oldi | --old | --ol | --o)
972 ac_prev=oldincludedir ;;
973 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
974 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
975 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
976 oldincludedir=$ac_optarg ;;
977
978 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
979 ac_prev=prefix ;;
980 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
981 prefix=$ac_optarg ;;
982
983 -program-prefix | --program-prefix | --program-prefi | --program-pref \
984 | --program-pre | --program-pr | --program-p)
985 ac_prev=program_prefix ;;
986 -program-prefix=* | --program-prefix=* | --program-prefi=* \
987 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
988 program_prefix=$ac_optarg ;;
989
990 -program-suffix | --program-suffix | --program-suffi | --program-suff \
991 | --program-suf | --program-su | --program-s)
992 ac_prev=program_suffix ;;
993 -program-suffix=* | --program-suffix=* | --program-suffi=* \
994 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
995 program_suffix=$ac_optarg ;;
996
997 -program-transform-name | --program-transform-name \
998 | --program-transform-nam | --program-transform-na \
999 | --program-transform-n | --program-transform- \
1000 | --program-transform | --program-transfor \
1001 | --program-transfo | --program-transf \
1002 | --program-trans | --program-tran \
1003 | --progr-tra | --program-tr | --program-t)
1004 ac_prev=program_transform_name ;;
1005 -program-transform-name=* | --program-transform-name=* \
1006 | --program-transform-nam=* | --program-transform-na=* \
1007 | --program-transform-n=* | --program-transform-=* \
1008 | --program-transform=* | --program-transfor=* \
1009 | --program-transfo=* | --program-transf=* \
1010 | --program-trans=* | --program-tran=* \
1011 | --progr-tra=* | --program-tr=* | --program-t=*)
1012 program_transform_name=$ac_optarg ;;
1013
1014 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1015 ac_prev=pdfdir ;;
1016 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1017 pdfdir=$ac_optarg ;;
1018
1019 -psdir | --psdir | --psdi | --psd | --ps)
1020 ac_prev=psdir ;;
1021 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1022 psdir=$ac_optarg ;;
1023
1024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1025 | -silent | --silent | --silen | --sile | --sil)
1026 silent=yes ;;
1027
1028 -runstatedir | --runstatedir | --runstatedi | --runstated \
1029 | --runstate | --runstat | --runsta | --runst | --runs \
1030 | --run | --ru | --r)
1031 ac_prev=runstatedir ;;
1032 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1033 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1034 | --run=* | --ru=* | --r=*)
1035 runstatedir=$ac_optarg ;;
1036
1037 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1038 ac_prev=sbindir ;;
1039 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1040 | --sbi=* | --sb=*)
1041 sbindir=$ac_optarg ;;
1042
1043 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1044 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1045 | --sharedst | --shareds | --shared | --share | --shar \
1046 | --sha | --sh)
1047 ac_prev=sharedstatedir ;;
1048 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1049 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1050 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1051 | --sha=* | --sh=*)
1052 sharedstatedir=$ac_optarg ;;
1053
1054 -site | --site | --sit)
1055 ac_prev=site ;;
1056 -site=* | --site=* | --sit=*)
1057 site=$ac_optarg ;;
1058
1059 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1060 ac_prev=srcdir ;;
1061 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1062 srcdir=$ac_optarg ;;
1063
1064 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1065 | --syscon | --sysco | --sysc | --sys | --sy)
1066 ac_prev=sysconfdir ;;
1067 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1068 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1069 sysconfdir=$ac_optarg ;;
1070
1071 -target | --target | --targe | --targ | --tar | --ta | --t)
1072 ac_prev=target_alias ;;
1073 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1074 target_alias=$ac_optarg ;;
1075
1076 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1077 verbose=yes ;;
1078
1079 -version | --version | --versio | --versi | --vers | -V)
1080 ac_init_version=: ;;
1081
1082 -with-* | --with-*)
1083 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 as_fn_error $? "invalid package name: $ac_useropt"
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1090 *"
1091 "with_$ac_useropt"
1092 "*) ;;
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1095 esac
1096 eval with_$ac_useropt=\$ac_optarg ;;
1097
1098 -without-* | --without-*)
1099 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 as_fn_error $? "invalid package name: $ac_useropt"
1103 ac_useropt_orig=$ac_useropt
1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1106 *"
1107 "with_$ac_useropt"
1108 "*) ;;
1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1110 ac_unrecognized_sep=', ';;
1111 esac
1112 eval with_$ac_useropt=no ;;
1113
1114 --x)
1115 # Obsolete; use --with-x.
1116 with_x=yes ;;
1117
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev=x_includes ;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123 x_includes=$ac_optarg ;;
1124
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev=x_libraries ;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130 x_libraries=$ac_optarg ;;
1131
1132 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1133 Try \`$0 --help' for more information"
1134 ;;
1135
1136 *=*)
1137 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1138 # Reject names that are not valid shell variable names.
1139 case $ac_envvar in #(
1140 '' | [0-9]* | *[!_$as_cr_alnum]* )
1141 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1142 esac
1143 eval $ac_envvar=\$ac_optarg
1144 export $ac_envvar ;;
1145
1146 *)
1147 # FIXME: should be removed in autoconf 3.0.
1148 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1152 ;;
1153
1154 esac
1155 done
1156
1157 if test -n "$ac_prev"; then
1158 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159 as_fn_error $? "missing argument to $ac_option"
1160 fi
1161
1162 if test -n "$ac_unrecognized_opts"; then
1163 case $enable_option_checking in
1164 no) ;;
1165 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1166 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1167 esac
1168 fi
1169
1170 # Check all directory arguments for consistency.
1171 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1172 datadir sysconfdir sharedstatedir localstatedir includedir \
1173 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1174 libdir localedir mandir runstatedir
1175 do
1176 eval ac_val=\$$ac_var
1177 # Remove trailing slashes.
1178 case $ac_val in
1179 */ )
1180 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1181 eval $ac_var=\$ac_val;;
1182 esac
1183 # Be sure to have absolute directory names.
1184 case $ac_val in
1185 [\\/$]* | ?:[\\/]* ) continue;;
1186 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1187 esac
1188 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1189 done
1190
1191 # There might be people who depend on the old broken behavior: `$host'
1192 # used to hold the argument of --host etc.
1193 # FIXME: To remove some day.
1194 build=$build_alias
1195 host=$host_alias
1196 target=$target_alias
1197
1198 # FIXME: To remove some day.
1199 if test "x$host_alias" != x; then
1200 if test "x$build_alias" = x; then
1201 cross_compiling=maybe
1202 elif test "x$build_alias" != "x$host_alias"; then
1203 cross_compiling=yes
1204 fi
1205 fi
1206
1207 ac_tool_prefix=
1208 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1209
1210 test "$silent" = yes && exec 6>/dev/null
1211
1212
1213 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1214 ac_ls_di=`ls -di .` &&
1215 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1216 as_fn_error $? "working directory cannot be determined"
1217 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1218 as_fn_error $? "pwd does not report name of working directory"
1219
1220
1221 # Find the source files, if location was not specified.
1222 if test -z "$srcdir"; then
1223 ac_srcdir_defaulted=yes
1224 # Try the directory containing this script, then the parent directory.
1225 ac_confdir=`$as_dirname -- "$as_myself" ||
1226 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1227 X"$as_myself" : 'X\(//\)[^/]' \| \
1228 X"$as_myself" : 'X\(//\)$' \| \
1229 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1230 $as_echo X"$as_myself" |
1231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1232 s//\1/
1233 q
1234 }
1235 /^X\(\/\/\)[^/].*/{
1236 s//\1/
1237 q
1238 }
1239 /^X\(\/\/\)$/{
1240 s//\1/
1241 q
1242 }
1243 /^X\(\/\).*/{
1244 s//\1/
1245 q
1246 }
1247 s/.*/./; q'`
1248 srcdir=$ac_confdir
1249 if test ! -r "$srcdir/$ac_unique_file"; then
1250 srcdir=..
1251 fi
1252 else
1253 ac_srcdir_defaulted=no
1254 fi
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1256 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1257 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1258 fi
1259 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1260 ac_abs_confdir=`(
1261 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1262 pwd)`
1263 # When building in place, set srcdir=.
1264 if test "$ac_abs_confdir" = "$ac_pwd"; then
1265 srcdir=.
1266 fi
1267 # Remove unnecessary trailing slashes from srcdir.
1268 # Double slashes in file names in object file debugging info
1269 # mess up M-x gdb in Emacs.
1270 case $srcdir in
1271 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1272 esac
1273 for ac_var in $ac_precious_vars; do
1274 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1275 eval ac_env_${ac_var}_value=\$${ac_var}
1276 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1277 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1278 done
1279
1280 #
1281 # Report the --help message.
1282 #
1283 if test "$ac_init_help" = "long"; then
1284 # Omit some internal or obsolete options to make the list less imposing.
1285 # This message is too long to be a string in the A/UX 3.1 sh.
1286 cat <<_ACEOF
1287 \`configure' configures detox 1.4.5 to adapt to many kinds of systems.
1288
1289 Usage: $0 [OPTION]... [VAR=VALUE]...
1290
1291 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1292 VAR=VALUE. See below for descriptions of some of the useful variables.
1293
1294 Defaults for the options are specified in brackets.
1295
1296 Configuration:
1297 -h, --help display this help and exit
1298 --help=short display options specific to this package
1299 --help=recursive display the short help of all the included packages
1300 -V, --version display version information and exit
1301 -q, --quiet, --silent do not print \`checking ...' messages
1302 --cache-file=FILE cache test results in FILE [disabled]
1303 -C, --config-cache alias for \`--cache-file=config.cache'
1304 -n, --no-create do not create output files
1305 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1306
1307 Installation directories:
1308 --prefix=PREFIX install architecture-independent files in PREFIX
1309 [$ac_default_prefix]
1310 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1311 [PREFIX]
1312
1313 By default, \`make install' will install all the files in
1314 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1315 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1316 for instance \`--prefix=\$HOME'.
1317
1318 For better control, use the options below.
1319
1320 Fine tuning of the installation directories:
1321 --bindir=DIR user executables [EPREFIX/bin]
1322 --sbindir=DIR system admin executables [EPREFIX/sbin]
1323 --libexecdir=DIR program executables [EPREFIX/libexec]
1324 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1325 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1326 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1327 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1328 --libdir=DIR object code libraries [EPREFIX/lib]
1329 --includedir=DIR C header files [PREFIX/include]
1330 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1331 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1332 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1333 --infodir=DIR info documentation [DATAROOTDIR/info]
1334 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1335 --mandir=DIR man documentation [DATAROOTDIR/man]
1336 --docdir=DIR documentation root [DATAROOTDIR/doc/detox]
1337 --htmldir=DIR html documentation [DOCDIR]
1338 --dvidir=DIR dvi documentation [DOCDIR]
1339 --pdfdir=DIR pdf documentation [DOCDIR]
1340 --psdir=DIR ps documentation [DOCDIR]
1341 _ACEOF
1342
1343 cat <<\_ACEOF
1344
1345 Program names:
1346 --program-prefix=PREFIX prepend PREFIX to installed program names
1347 --program-suffix=SUFFIX append SUFFIX to installed program names
1348 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1349 _ACEOF
1350 fi
1351
1352 if test -n "$ac_init_help"; then
1353 case $ac_init_help in
1354 short | recursive ) echo "Configuration of detox 1.4.5:";;
1355 esac
1356 cat <<\_ACEOF
1357
1358 Optional Features:
1359 --disable-option-checking ignore unrecognized --enable/--with options
1360 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1361 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1362 --enable-silent-rules less verbose build output (undo: "make V=1")
1363 --disable-silent-rules verbose build output (undo: "make V=0")
1364 --enable-dependency-tracking
1365 do not reject slow dependency extractors
1366 --disable-dependency-tracking
1367 speeds up one-time build
1368 --disable-largefile omit support for large files
1369
1370 Some influential environment variables:
1371 CC C compiler command
1372 CFLAGS C compiler flags
1373 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1374 nonstandard directory <lib dir>
1375 LIBS libraries to pass to the linker, e.g. -l<library>
1376 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1377 you have headers in a nonstandard directory <include dir>
1378 YACC The `Yet Another Compiler Compiler' implementation to use.
1379 Defaults to the first program found out of: `bison -y', `byacc',
1380 `yacc'.
1381 YFLAGS The list of arguments that will be passed by default to $YACC.
1382 This script will default YFLAGS to the empty string to avoid a
1383 default value of `-d' given by some make applications.
1384 CPP C preprocessor
1385
1386 Use these variables to override the choices made by `configure' or to help
1387 it to find libraries and programs with nonstandard names/locations.
1388
1389 Report bugs to <detox.dharple at gmail.com>.
1390 detox home page: <https://github.com/dharple/detox>.
1391 _ACEOF
1392 ac_status=$?
1393 fi
1394
1395 if test "$ac_init_help" = "recursive"; then
1396 # If there are subdirs, report their specific --help.
1397 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1398 test -d "$ac_dir" ||
1399 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1400 continue
1401 ac_builddir=.
1402
1403 case "$ac_dir" in
1404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 *)
1406 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1407 # A ".." for each directory in $ac_dir_suffix.
1408 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1412 esac ;;
1413 esac
1414 ac_abs_top_builddir=$ac_pwd
1415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416 # for backward compatibility:
1417 ac_top_builddir=$ac_top_build_prefix
1418
1419 case $srcdir in
1420 .) # We are building in place.
1421 ac_srcdir=.
1422 ac_top_srcdir=$ac_top_builddir_sub
1423 ac_abs_top_srcdir=$ac_pwd ;;
1424 [\\/]* | ?:[\\/]* ) # Absolute name.
1425 ac_srcdir=$srcdir$ac_dir_suffix;
1426 ac_top_srcdir=$srcdir
1427 ac_abs_top_srcdir=$srcdir ;;
1428 *) # Relative name.
1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1432 esac
1433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1434
1435 cd "$ac_dir" || { ac_status=$?; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1438 echo &&
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure" --help=recursive
1443 else
1444 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1445 fi || ac_status=$?
1446 cd "$ac_pwd" || { ac_status=$?; break; }
1447 done
1448 fi
1449
1450 test -n "$ac_init_help" && exit $ac_status
1451 if $ac_init_version; then
1452 cat <<\_ACEOF
1453 detox configure 1.4.5
1454 generated by GNU Autoconf 2.69
1455
1456 Copyright (C) 2012 Free Software Foundation, Inc.
1457 This configure script is free software; the Free Software Foundation
1458 gives unlimited permission to copy, distribute and modify it.
1459 _ACEOF
1460 exit
1461 fi
1462
1463 ## ------------------------ ##
1464 ## Autoconf initialization. ##
1465 ## ------------------------ ##
1466
1467 # ac_fn_c_try_compile LINENO
1468 # --------------------------
1469 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1470 ac_fn_c_try_compile ()
1471 {
1472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1473 rm -f conftest.$ac_objext
1474 if { { ac_try="$ac_compile"
1475 case "(($ac_try" in
1476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1477 *) ac_try_echo=$ac_try;;
1478 esac
1479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1480 $as_echo "$ac_try_echo"; } >&5
1481 (eval "$ac_compile") 2>conftest.err
1482 ac_status=$?
1483 if test -s conftest.err; then
1484 grep -v '^ *+' conftest.err >conftest.er1
1485 cat conftest.er1 >&5
1486 mv -f conftest.er1 conftest.err
1487 fi
1488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1489 test $ac_status = 0; } && {
1490 test -z "$ac_c_werror_flag" ||
1491 test ! -s conftest.err
1492 } && test -s conftest.$ac_objext; then :
1493 ac_retval=0
1494 else
1495 $as_echo "$as_me: failed program was:" >&5
1496 sed 's/^/| /' conftest.$ac_ext >&5
1497
1498 ac_retval=1
1499 fi
1500 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1501 as_fn_set_status $ac_retval
1502
1503 } # ac_fn_c_try_compile
1504
1505 # ac_fn_c_try_link LINENO
1506 # -----------------------
1507 # Try to link conftest.$ac_ext, and return whether this succeeded.
1508 ac_fn_c_try_link ()
1509 {
1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511 rm -f conftest.$ac_objext conftest$ac_exeext
1512 if { { ac_try="$ac_link"
1513 case "(($ac_try" in
1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1515 *) ac_try_echo=$ac_try;;
1516 esac
1517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1518 $as_echo "$ac_try_echo"; } >&5
1519 (eval "$ac_link") 2>conftest.err
1520 ac_status=$?
1521 if test -s conftest.err; then
1522 grep -v '^ *+' conftest.err >conftest.er1
1523 cat conftest.er1 >&5
1524 mv -f conftest.er1 conftest.err
1525 fi
1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1527 test $ac_status = 0; } && {
1528 test -z "$ac_c_werror_flag" ||
1529 test ! -s conftest.err
1530 } && test -s conftest$ac_exeext && {
1531 test "$cross_compiling" = yes ||
1532 test -x conftest$ac_exeext
1533 }; then :
1534 ac_retval=0
1535 else
1536 $as_echo "$as_me: failed program was:" >&5
1537 sed 's/^/| /' conftest.$ac_ext >&5
1538
1539 ac_retval=1
1540 fi
1541 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1542 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1543 # interfere with the next link command; also delete a directory that is
1544 # left behind by Apple's compiler. We do this before executing the actions.
1545 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1546 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1547 as_fn_set_status $ac_retval
1548
1549 } # ac_fn_c_try_link
1550
1551 # ac_fn_c_check_func LINENO FUNC VAR
1552 # ----------------------------------
1553 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1554 ac_fn_c_check_func ()
1555 {
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1558 $as_echo_n "checking for $2... " >&6; }
1559 if eval \${$3+:} false; then :
1560 $as_echo_n "(cached) " >&6
1561 else
1562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1563 /* end confdefs.h. */
1564 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1566 #define $2 innocuous_$2
1567
1568 /* System header to define __stub macros and hopefully few prototypes,
1569 which can conflict with char $2 (); below.
1570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1571 <limits.h> exists even on freestanding compilers. */
1572
1573 #ifdef __STDC__
1574 # include <limits.h>
1575 #else
1576 # include <assert.h>
1577 #endif
1578
1579 #undef $2
1580
1581 /* Override any GCC internal prototype to avoid an error.
1582 Use char because int might match the return type of a GCC
1583 builtin and then its argument prototype would still apply. */
1584 #ifdef __cplusplus
1585 extern "C"
1586 #endif
1587 char $2 ();
1588 /* The GNU C library defines this for functions which it implements
1589 to always fail with ENOSYS. Some functions are actually named
1590 something starting with __ and the normal name is an alias. */
1591 #if defined __stub_$2 || defined __stub___$2
1592 choke me
1593 #endif
1594
1595 int
1596 main ()
1597 {
1598 return $2 ();
1599 ;
1600 return 0;
1601 }
1602 _ACEOF
1603 if ac_fn_c_try_link "$LINENO"; then :
1604 eval "$3=yes"
1605 else
1606 eval "$3=no"
1607 fi
1608 rm -f core conftest.err conftest.$ac_objext \
1609 conftest$ac_exeext conftest.$ac_ext
1610 fi
1611 eval ac_res=\$$3
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1613 $as_echo "$ac_res" >&6; }
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615
1616 } # ac_fn_c_check_func
1617
1618 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1619 # ----------------------------------------------------
1620 # Tries to find if the field MEMBER exists in type AGGR, after including
1621 # INCLUDES, setting cache variable VAR accordingly.
1622 ac_fn_c_check_member ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1626 $as_echo_n "checking for $2.$3... " >&6; }
1627 if eval \${$4+:} false; then :
1628 $as_echo_n "(cached) " >&6
1629 else
1630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631 /* end confdefs.h. */
1632 $5
1633 int
1634 main ()
1635 {
1636 static $2 ac_aggr;
1637 if (ac_aggr.$3)
1638 return 0;
1639 ;
1640 return 0;
1641 }
1642 _ACEOF
1643 if ac_fn_c_try_compile "$LINENO"; then :
1644 eval "$4=yes"
1645 else
1646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647 /* end confdefs.h. */
1648 $5
1649 int
1650 main ()
1651 {
1652 static $2 ac_aggr;
1653 if (sizeof ac_aggr.$3)
1654 return 0;
1655 ;
1656 return 0;
1657 }
1658 _ACEOF
1659 if ac_fn_c_try_compile "$LINENO"; then :
1660 eval "$4=yes"
1661 else
1662 eval "$4=no"
1663 fi
1664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665 fi
1666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1667 fi
1668 eval ac_res=\$$4
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670 $as_echo "$ac_res" >&6; }
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672
1673 } # ac_fn_c_check_member
1674
1675 # ac_fn_c_try_cpp LINENO
1676 # ----------------------
1677 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_cpp ()
1679 {
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 if { { ac_try="$ac_cpp conftest.$ac_ext"
1682 case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1694 fi
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } > conftest.i && {
1697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 }; then :
1700 ac_retval=0
1701 else
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=1
1706 fi
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1709
1710 } # ac_fn_c_try_cpp
1711
1712 # ac_fn_c_try_run LINENO
1713 # ----------------------
1714 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1715 # that executables *can* be run.
1716 ac_fn_c_try_run ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_link"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_link") 2>&5
1727 ac_status=$?
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1730 { { case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_try") 2>&5
1737 ac_status=$?
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; }; }; then :
1740 ac_retval=0
1741 else
1742 $as_echo "$as_me: program exited with status $ac_status" >&5
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1745
1746 ac_retval=$ac_status
1747 fi
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1751
1752 } # ac_fn_c_try_run
1753
1754 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1755 # -------------------------------------------------------
1756 # Tests whether HEADER exists and can be compiled using the include files in
1757 # INCLUDES, setting the cache variable VAR accordingly.
1758 ac_fn_c_check_header_compile ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1765 else
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1768 $4
1769 #include <$2>
1770 _ACEOF
1771 if ac_fn_c_try_compile "$LINENO"; then :
1772 eval "$3=yes"
1773 else
1774 eval "$3=no"
1775 fi
1776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1777 fi
1778 eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782
1783 } # ac_fn_c_check_header_compile
1784 cat >config.log <<_ACEOF
1785 This file contains any messages produced by compilers while
1786 running configure, to aid debugging if configure makes a mistake.
1787
1788 It was created by detox $as_me 1.4.5, which was
1789 generated by GNU Autoconf 2.69. Invocation command line was
1790
1791 $ $0 $@
1792
1793 _ACEOF
1794 exec 5>>config.log
1795 {
1796 cat <<_ASUNAME
1797 ## --------- ##
1798 ## Platform. ##
1799 ## --------- ##
1800
1801 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1802 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1803 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1804 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1805 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1806
1807 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1808 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1809
1810 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1811 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1812 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1813 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1814 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1815 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1816 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1817
1818 _ASUNAME
1819
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 for as_dir in $PATH
1822 do
1823 IFS=$as_save_IFS
1824 test -z "$as_dir" && as_dir=.
1825 $as_echo "PATH: $as_dir"
1826 done
1827 IFS=$as_save_IFS
1828
1829 } >&5
1830
1831 cat >&5 <<_ACEOF
1832
1833
1834 ## ----------- ##
1835 ## Core tests. ##
1836 ## ----------- ##
1837
1838 _ACEOF
1839
1840
1841 # Keep a trace of the command line.
1842 # Strip out --no-create and --no-recursion so they do not pile up.
1843 # Strip out --silent because we don't want to record it for future runs.
1844 # Also quote any args containing shell meta-characters.
1845 # Make two passes to allow for proper duplicate-argument suppression.
1846 ac_configure_args=
1847 ac_configure_args0=
1848 ac_configure_args1=
1849 ac_must_keep_next=false
1850 for ac_pass in 1 2
1851 do
1852 for ac_arg
1853 do
1854 case $ac_arg in
1855 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1856 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1857 | -silent | --silent | --silen | --sile | --sil)
1858 continue ;;
1859 *\'*)
1860 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1861 esac
1862 case $ac_pass in
1863 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1864 2)
1865 as_fn_append ac_configure_args1 " '$ac_arg'"
1866 if test $ac_must_keep_next = true; then
1867 ac_must_keep_next=false # Got value, back to normal.
1868 else
1869 case $ac_arg in
1870 *=* | --config-cache | -C | -disable-* | --disable-* \
1871 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1872 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1873 | -with-* | --with-* | -without-* | --without-* | --x)
1874 case "$ac_configure_args0 " in
1875 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1876 esac
1877 ;;
1878 -* ) ac_must_keep_next=true ;;
1879 esac
1880 fi
1881 as_fn_append ac_configure_args " '$ac_arg'"
1882 ;;
1883 esac
1884 done
1885 done
1886 { ac_configure_args0=; unset ac_configure_args0;}
1887 { ac_configure_args1=; unset ac_configure_args1;}
1888
1889 # When interrupted or exit'd, cleanup temporary files, and complete
1890 # config.log. We remove comments because anyway the quotes in there
1891 # would cause problems or look ugly.
1892 # WARNING: Use '\'' to represent an apostrophe within the trap.
1893 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1894 trap 'exit_status=$?
1895 # Save into config.log some information that might help in debugging.
1896 {
1897 echo
1898
1899 $as_echo "## ---------------- ##
1900 ## Cache variables. ##
1901 ## ---------------- ##"
1902 echo
1903 # The following way of writing the cache mishandles newlines in values,
1904 (
1905 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1906 eval ac_val=\$$ac_var
1907 case $ac_val in #(
1908 *${as_nl}*)
1909 case $ac_var in #(
1910 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1911 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1912 esac
1913 case $ac_var in #(
1914 _ | IFS | as_nl) ;; #(
1915 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1916 *) { eval $ac_var=; unset $ac_var;} ;;
1917 esac ;;
1918 esac
1919 done
1920 (set) 2>&1 |
1921 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1922 *${as_nl}ac_space=\ *)
1923 sed -n \
1924 "s/'\''/'\''\\\\'\'''\''/g;
1925 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1926 ;; #(
1927 *)
1928 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1929 ;;
1930 esac |
1931 sort
1932 )
1933 echo
1934
1935 $as_echo "## ----------------- ##
1936 ## Output variables. ##
1937 ## ----------------- ##"
1938 echo
1939 for ac_var in $ac_subst_vars
1940 do
1941 eval ac_val=\$$ac_var
1942 case $ac_val in
1943 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1944 esac
1945 $as_echo "$ac_var='\''$ac_val'\''"
1946 done | sort
1947 echo
1948
1949 if test -n "$ac_subst_files"; then
1950 $as_echo "## ------------------- ##
1951 ## File substitutions. ##
1952 ## ------------------- ##"
1953 echo
1954 for ac_var in $ac_subst_files
1955 do
1956 eval ac_val=\$$ac_var
1957 case $ac_val in
1958 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1959 esac
1960 $as_echo "$ac_var='\''$ac_val'\''"
1961 done | sort
1962 echo
1963 fi
1964
1965 if test -s confdefs.h; then
1966 $as_echo "## ----------- ##
1967 ## confdefs.h. ##
1968 ## ----------- ##"
1969 echo
1970 cat confdefs.h
1971 echo
1972 fi
1973 test "$ac_signal" != 0 &&
1974 $as_echo "$as_me: caught signal $ac_signal"
1975 $as_echo "$as_me: exit $exit_status"
1976 } >&5
1977 rm -f core *.core core.conftest.* &&
1978 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1979 exit $exit_status
1980 ' 0
1981 for ac_signal in 1 2 13 15; do
1982 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1983 done
1984 ac_signal=0
1985
1986 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1987 rm -f -r conftest* confdefs.h
1988
1989 $as_echo "/* confdefs.h */" > confdefs.h
1990
1991 # Predefined preprocessor variables.
1992
1993 cat >>confdefs.h <<_ACEOF
1994 #define PACKAGE_NAME "$PACKAGE_NAME"
1995 _ACEOF
1996
1997 cat >>confdefs.h <<_ACEOF
1998 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1999 _ACEOF
2000
2001 cat >>confdefs.h <<_ACEOF
2002 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2003 _ACEOF
2004
2005 cat >>confdefs.h <<_ACEOF
2006 #define PACKAGE_STRING "$PACKAGE_STRING"
2007 _ACEOF
2008
2009 cat >>confdefs.h <<_ACEOF
2010 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2011 _ACEOF
2012
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_URL "$PACKAGE_URL"
2015 _ACEOF
2016
2017
2018 # Let the site file select an alternate cache file if it wants to.
2019 # Prefer an explicitly selected file to automatically selected ones.
2020 ac_site_file1=NONE
2021 ac_site_file2=NONE
2022 if test -n "$CONFIG_SITE"; then
2023 # We do not want a PATH search for config.site.
2024 case $CONFIG_SITE in #((
2025 -*) ac_site_file1=./$CONFIG_SITE;;
2026 */*) ac_site_file1=$CONFIG_SITE;;
2027 *) ac_site_file1=./$CONFIG_SITE;;
2028 esac
2029 elif test "x$prefix" != xNONE; then
2030 ac_site_file1=$prefix/share/config.site
2031 ac_site_file2=$prefix/etc/config.site
2032 else
2033 ac_site_file1=$ac_default_prefix/share/config.site
2034 ac_site_file2=$ac_default_prefix/etc/config.site
2035 fi
2036 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2037 do
2038 test "x$ac_site_file" = xNONE && continue
2039 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2041 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2042 sed 's/^/| /' "$ac_site_file" >&5
2043 . "$ac_site_file" \
2044 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2046 as_fn_error $? "failed to load site script $ac_site_file
2047 See \`config.log' for more details" "$LINENO" 5; }
2048 fi
2049 done
2050
2051 if test -r "$cache_file"; then
2052 # Some versions of bash will fail to source /dev/null (special files
2053 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2054 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2056 $as_echo "$as_me: loading cache $cache_file" >&6;}
2057 case $cache_file in
2058 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2059 *) . "./$cache_file";;
2060 esac
2061 fi
2062 else
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2064 $as_echo "$as_me: creating cache $cache_file" >&6;}
2065 >$cache_file
2066 fi
2067
2068 # Check that the precious variables saved in the cache have kept the same
2069 # value.
2070 ac_cache_corrupted=false
2071 for ac_var in $ac_precious_vars; do
2072 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2073 eval ac_new_set=\$ac_env_${ac_var}_set
2074 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2075 eval ac_new_val=\$ac_env_${ac_var}_value
2076 case $ac_old_set,$ac_new_set in
2077 set,)
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2079 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2080 ac_cache_corrupted=: ;;
2081 ,set)
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2083 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2084 ac_cache_corrupted=: ;;
2085 ,);;
2086 *)
2087 if test "x$ac_old_val" != "x$ac_new_val"; then
2088 # differences in whitespace do not lead to failure.
2089 ac_old_val_w=`echo x $ac_old_val`
2090 ac_new_val_w=`echo x $ac_new_val`
2091 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2093 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2094 ac_cache_corrupted=:
2095 else
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2097 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2098 eval $ac_var=\$ac_old_val
2099 fi
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2101 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2103 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2104 fi;;
2105 esac
2106 # Pass precious variables to config.status.
2107 if test "$ac_new_set" = set; then
2108 case $ac_new_val in
2109 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2110 *) ac_arg=$ac_var=$ac_new_val ;;
2111 esac
2112 case " $ac_configure_args " in
2113 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2114 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2115 esac
2116 fi
2117 done
2118 if $ac_cache_corrupted; then
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2122 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2123 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2124 fi
2125 ## -------------------- ##
2126 ## Main body of script. ##
2127 ## -------------------- ##
2128
2129 ac_ext=c
2130 ac_cpp='$CPP $CPPFLAGS'
2131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2134
2135
2136 am__api_version='1.16'
2137
2138 ac_aux_dir=
2139 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2140 if test -f "$ac_dir/install-sh"; then
2141 ac_aux_dir=$ac_dir
2142 ac_install_sh="$ac_aux_dir/install-sh -c"
2143 break
2144 elif test -f "$ac_dir/install.sh"; then
2145 ac_aux_dir=$ac_dir
2146 ac_install_sh="$ac_aux_dir/install.sh -c"
2147 break
2148 elif test -f "$ac_dir/shtool"; then
2149 ac_aux_dir=$ac_dir
2150 ac_install_sh="$ac_aux_dir/shtool install -c"
2151 break
2152 fi
2153 done
2154 if test -z "$ac_aux_dir"; then
2155 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2156 fi
2157
2158 # These three variables are undocumented and unsupported,
2159 # and are intended to be withdrawn in a future Autoconf release.
2160 # They can cause serious problems if a builder's source tree is in a directory
2161 # whose full name contains unusual characters.
2162 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2163 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2164 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2165
2166
2167 # Find a good install program. We prefer a C program (faster),
2168 # so one script is as good as another. But avoid the broken or
2169 # incompatible versions:
2170 # SysV /etc/install, /usr/sbin/install
2171 # SunOS /usr/etc/install
2172 # IRIX /sbin/install
2173 # AIX /bin/install
2174 # AmigaOS /C/install, which installs bootblocks on floppy discs
2175 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2176 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2177 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2178 # OS/2's system install, which has a completely different semantic
2179 # ./install, which can be erroneously created by make from ./install.sh.
2180 # Reject install programs that cannot install multiple files.
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2182 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2183 if test -z "$INSTALL"; then
2184 if ${ac_cv_path_install+:} false; then :
2185 $as_echo_n "(cached) " >&6
2186 else
2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 for as_dir in $PATH
2189 do
2190 IFS=$as_save_IFS
2191 test -z "$as_dir" && as_dir=.
2192 # Account for people who put trailing slashes in PATH elements.
2193 case $as_dir/ in #((
2194 ./ | .// | /[cC]/* | \
2195 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2196 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2197 /usr/ucb/* ) ;;
2198 *)
2199 # OSF1 and SCO ODT 3.0 have their own names for install.
2200 # Don't use installbsd from OSF since it installs stuff as root
2201 # by default.
2202 for ac_prog in ginstall scoinst install; do
2203 for ac_exec_ext in '' $ac_executable_extensions; do
2204 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2205 if test $ac_prog = install &&
2206 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2207 # AIX install. It has an incompatible calling convention.
2208 :
2209 elif test $ac_prog = install &&
2210 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2211 # program-specific install script used by HP pwplus--don't use.
2212 :
2213 else
2214 rm -rf conftest.one conftest.two conftest.dir
2215 echo one > conftest.one
2216 echo two > conftest.two
2217 mkdir conftest.dir
2218 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2219 test -s conftest.one && test -s conftest.two &&
2220 test -s conftest.dir/conftest.one &&
2221 test -s conftest.dir/conftest.two
2222 then
2223 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2224 break 3
2225 fi
2226 fi
2227 fi
2228 done
2229 done
2230 ;;
2231 esac
2232
2233 done
2234 IFS=$as_save_IFS
2235
2236 rm -rf conftest.one conftest.two conftest.dir
2237
2238 fi
2239 if test "${ac_cv_path_install+set}" = set; then
2240 INSTALL=$ac_cv_path_install
2241 else
2242 # As a last resort, use the slow shell script. Don't cache a
2243 # value for INSTALL within a source directory, because that will
2244 # break other packages using the cache if that directory is
2245 # removed, or if the value is a relative name.
2246 INSTALL=$ac_install_sh
2247 fi
2248 fi
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2250 $as_echo "$INSTALL" >&6; }
2251
2252 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2253 # It thinks the first close brace ends the variable substitution.
2254 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2255
2256 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2257
2258 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2259
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2261 $as_echo_n "checking whether build environment is sane... " >&6; }
2262 # Reject unsafe characters in $srcdir or the absolute working directory
2263 # name. Accept space and tab only in the latter.
2264 am_lf='
2265 '
2266 case `pwd` in
2267 *[\\\"\#\$\&\'\`$am_lf]*)
2268 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2269 esac
2270 case $srcdir in
2271 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2272 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2273 esac
2274
2275 # Do 'set' in a subshell so we don't clobber the current shell's
2276 # arguments. Must try -L first in case configure is actually a
2277 # symlink; some systems play weird games with the mod time of symlinks
2278 # (eg FreeBSD returns the mod time of the symlink's containing
2279 # directory).
2280 if (
2281 am_has_slept=no
2282 for am_try in 1 2; do
2283 echo "timestamp, slept: $am_has_slept" > conftest.file
2284 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2285 if test "$*" = "X"; then
2286 # -L didn't work.
2287 set X `ls -t "$srcdir/configure" conftest.file`
2288 fi
2289 if test "$*" != "X $srcdir/configure conftest.file" \
2290 && test "$*" != "X conftest.file $srcdir/configure"; then
2291
2292 # If neither matched, then we have a broken ls. This can happen
2293 # if, for instance, CONFIG_SHELL is bash and it inherits a
2294 # broken ls alias from the environment. This has actually
2295 # happened. Such a system could not be considered "sane".
2296 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2297 alias in your environment" "$LINENO" 5
2298 fi
2299 if test "$2" = conftest.file || test $am_try -eq 2; then
2300 break
2301 fi
2302 # Just in case.
2303 sleep 1
2304 am_has_slept=yes
2305 done
2306 test "$2" = conftest.file
2307 )
2308 then
2309 # Ok.
2310 :
2311 else
2312 as_fn_error $? "newly created file is older than distributed files!
2313 Check your system clock" "$LINENO" 5
2314 fi
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2316 $as_echo "yes" >&6; }
2317 # If we didn't sleep, we still need to ensure time stamps of config.status and
2318 # generated files are strictly newer.
2319 am_sleep_pid=
2320 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2321 ( sleep 1 ) &
2322 am_sleep_pid=$!
2323 fi
2324
2325 rm -f conftest.file
2326
2327 test "$program_prefix" != NONE &&
2328 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2329 # Use a double $ so make ignores it.
2330 test "$program_suffix" != NONE &&
2331 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2332 # Double any \ or $.
2333 # By default was `s,x,x', remove it if useless.
2334 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2335 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2336
2337 # Expand $ac_aux_dir to an absolute path.
2338 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2339
2340 if test x"${MISSING+set}" != xset; then
2341 case $am_aux_dir in
2342 *\ * | *\ *)
2343 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2344 *)
2345 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2346 esac
2347 fi
2348 # Use eval to expand $SHELL
2349 if eval "$MISSING --is-lightweight"; then
2350 am_missing_run="$MISSING "
2351 else
2352 am_missing_run=
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2354 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2355 fi
2356
2357 if test x"${install_sh+set}" != xset; then
2358 case $am_aux_dir in
2359 *\ * | *\ *)
2360 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2361 *)
2362 install_sh="\${SHELL} $am_aux_dir/install-sh"
2363 esac
2364 fi
2365
2366 # Installed binaries are usually stripped using 'strip' when the user
2367 # run "make install-strip". However 'strip' might not be the right
2368 # tool to use in cross-compilation environments, therefore Automake
2369 # will honor the 'STRIP' environment variable to overrule this program.
2370 if test "$cross_compiling" != no; then
2371 if test -n "$ac_tool_prefix"; then
2372 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2373 set dummy ${ac_tool_prefix}strip; ac_word=$2
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2375 $as_echo_n "checking for $ac_word... " >&6; }
2376 if ${ac_cv_prog_STRIP+:} false; then :
2377 $as_echo_n "(cached) " >&6
2378 else
2379 if test -n "$STRIP"; then
2380 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2381 else
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2384 do
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2389 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 break 2
2392 fi
2393 done
2394 done
2395 IFS=$as_save_IFS
2396
2397 fi
2398 fi
2399 STRIP=$ac_cv_prog_STRIP
2400 if test -n "$STRIP"; then
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2402 $as_echo "$STRIP" >&6; }
2403 else
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2405 $as_echo "no" >&6; }
2406 fi
2407
2408
2409 fi
2410 if test -z "$ac_cv_prog_STRIP"; then
2411 ac_ct_STRIP=$STRIP
2412 # Extract the first word of "strip", so it can be a program name with args.
2413 set dummy strip; ac_word=$2
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2415 $as_echo_n "checking for $ac_word... " >&6; }
2416 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2417 $as_echo_n "(cached) " >&6
2418 else
2419 if test -n "$ac_ct_STRIP"; then
2420 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2421 else
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 for as_dir in $PATH
2424 do
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2429 ac_cv_prog_ac_ct_STRIP="strip"
2430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2431 break 2
2432 fi
2433 done
2434 done
2435 IFS=$as_save_IFS
2436
2437 fi
2438 fi
2439 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2440 if test -n "$ac_ct_STRIP"; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2442 $as_echo "$ac_ct_STRIP" >&6; }
2443 else
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2445 $as_echo "no" >&6; }
2446 fi
2447
2448 if test "x$ac_ct_STRIP" = x; then
2449 STRIP=":"
2450 else
2451 case $cross_compiling:$ac_tool_warned in
2452 yes:)
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2455 ac_tool_warned=yes ;;
2456 esac
2457 STRIP=$ac_ct_STRIP
2458 fi
2459 else
2460 STRIP="$ac_cv_prog_STRIP"
2461 fi
2462
2463 fi
2464 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2465
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2467 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2468 if test -z "$MKDIR_P"; then
2469 if ${ac_cv_path_mkdir+:} false; then :
2470 $as_echo_n "(cached) " >&6
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2474 do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_prog in mkdir gmkdir; do
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2480 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2481 'mkdir (GNU coreutils) '* | \
2482 'mkdir (coreutils) '* | \
2483 'mkdir (fileutils) '4.1*)
2484 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2485 break 3;;
2486 esac
2487 done
2488 done
2489 done
2490 IFS=$as_save_IFS
2491
2492 fi
2493
2494 test -d ./--version && rmdir ./--version
2495 if test "${ac_cv_path_mkdir+set}" = set; then
2496 MKDIR_P="$ac_cv_path_mkdir -p"
2497 else
2498 # As a last resort, use the slow shell script. Don't cache a
2499 # value for MKDIR_P within a source directory, because that will
2500 # break other packages using the cache if that directory is
2501 # removed, or if the value is a relative name.
2502 MKDIR_P="$ac_install_sh -d"
2503 fi
2504 fi
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2506 $as_echo "$MKDIR_P" >&6; }
2507
2508 for ac_prog in gawk mawk nawk awk
2509 do
2510 # Extract the first word of "$ac_prog", so it can be a program name with args.
2511 set dummy $ac_prog; ac_word=$2
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2513 $as_echo_n "checking for $ac_word... " >&6; }
2514 if ${ac_cv_prog_AWK+:} false; then :
2515 $as_echo_n "(cached) " >&6
2516 else
2517 if test -n "$AWK"; then
2518 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2519 else
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH
2522 do
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2527 ac_cv_prog_AWK="$ac_prog"
2528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 break 2
2530 fi
2531 done
2532 done
2533 IFS=$as_save_IFS
2534
2535 fi
2536 fi
2537 AWK=$ac_cv_prog_AWK
2538 if test -n "$AWK"; then
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2540 $as_echo "$AWK" >&6; }
2541 else
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543 $as_echo "no" >&6; }
2544 fi
2545
2546
2547 test -n "$AWK" && break
2548 done
2549
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2551 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2552 set x ${MAKE-make}
2553 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2554 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2555 $as_echo_n "(cached) " >&6
2556 else
2557 cat >conftest.make <<\_ACEOF
2558 SHELL = /bin/sh
2559 all:
2560 @echo '@@@%%%=$(MAKE)=@@@%%%'
2561 _ACEOF
2562 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2563 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2564 *@@@%%%=?*=@@@%%%*)
2565 eval ac_cv_prog_make_${ac_make}_set=yes;;
2566 *)
2567 eval ac_cv_prog_make_${ac_make}_set=no;;
2568 esac
2569 rm -f conftest.make
2570 fi
2571 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2573 $as_echo "yes" >&6; }
2574 SET_MAKE=
2575 else
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2577 $as_echo "no" >&6; }
2578 SET_MAKE="MAKE=${MAKE-make}"
2579 fi
2580
2581 rm -rf .tst 2>/dev/null
2582 mkdir .tst 2>/dev/null
2583 if test -d .tst; then
2584 am__leading_dot=.
2585 else
2586 am__leading_dot=_
2587 fi
2588 rmdir .tst 2>/dev/null
2589
2590 # Check whether --enable-silent-rules was given.
2591 if test "${enable_silent_rules+set}" = set; then :
2592 enableval=$enable_silent_rules;
2593 fi
2594
2595 case $enable_silent_rules in # (((
2596 yes) AM_DEFAULT_VERBOSITY=0;;
2597 no) AM_DEFAULT_VERBOSITY=1;;
2598 *) AM_DEFAULT_VERBOSITY=1;;
2599 esac
2600 am_make=${MAKE-make}
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2602 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2603 if ${am_cv_make_support_nested_variables+:} false; then :
2604 $as_echo_n "(cached) " >&6
2605 else
2606 if $as_echo 'TRUE=$(BAR$(V))
2607 BAR0=false
2608 BAR1=true
2609 V=1
2610 am__doit:
2611 @$(TRUE)
2612 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2613 am_cv_make_support_nested_variables=yes
2614 else
2615 am_cv_make_support_nested_variables=no
2616 fi
2617 fi
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2619 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2620 if test $am_cv_make_support_nested_variables = yes; then
2621 AM_V='$(V)'
2622 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2623 else
2624 AM_V=$AM_DEFAULT_VERBOSITY
2625 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2626 fi
2627 AM_BACKSLASH='\'
2628
2629 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2630 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2631 # is not polluted with repeated "-I."
2632 am__isrc=' -I$(srcdir)'
2633 # test to see if srcdir already configured
2634 if test -f $srcdir/config.status; then
2635 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2636 fi
2637 fi
2638
2639 # test whether we have cygpath
2640 if test -z "$CYGPATH_W"; then
2641 if (cygpath --version) >/dev/null 2>/dev/null; then
2642 CYGPATH_W='cygpath -w'
2643 else
2644 CYGPATH_W=echo
2645 fi
2646 fi
2647
2648
2649 # Define the identity of the package.
2650 PACKAGE='detox'
2651 VERSION='1.4.5'
2652
2653
2654 cat >>confdefs.h <<_ACEOF
2655 #define PACKAGE "$PACKAGE"
2656 _ACEOF
2657
2658
2659 cat >>confdefs.h <<_ACEOF
2660 #define VERSION "$VERSION"
2661 _ACEOF
2662
2663 # Some tools Automake needs.
2664
2665 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2666
2667
2668 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2669
2670
2671 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2672
2673
2674 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2675
2676
2677 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2678
2679 # For better backward compatibility. To be removed once Automake 1.9.x
2680 # dies out for good. For more background, see:
2681 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2682 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2683 mkdir_p='$(MKDIR_P)'
2684
2685 # We need awk for the "check" target (and possibly the TAP driver). The
2686 # system "awk" is bad on some platforms.
2687 # Always define AMTAR for backward compatibility. Yes, it's still used
2688 # in the wild :-( We should find a proper way to deprecate it ...
2689 AMTAR='$${TAR-tar}'
2690
2691
2692 # We'll loop over all known methods to create a tar archive until one works.
2693 _am_tools='gnutar pax cpio none'
2694
2695 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2696
2697
2698
2699
2700
2701
2702 # POSIX will say in a future version that running "rm -f" with no argument
2703 # is OK; and we want to be able to make that assumption in our Makefile
2704 # recipes. So use an aggressive probe to check that the usage we want is
2705 # actually supported "in the wild" to an acceptable degree.
2706 # See automake bug#10828.
2707 # To make any issue more visible, cause the running configure to be aborted
2708 # by default if the 'rm' program in use doesn't match our expectations; the
2709 # user can still override this though.
2710 if rm -f && rm -fr && rm -rf; then : OK; else
2711 cat >&2 <<'END'
2712 Oops!
2713
2714 Your 'rm' program seems unable to run without file operands specified
2715 on the command line, even when the '-f' option is present. This is contrary
2716 to the behaviour of most rm programs out there, and not conforming with
2717 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2718
2719 Please tell bug-automake@gnu.org about your system, including the value
2720 of your $PATH and any error possibly output before this message. This
2721 can help us improve future automake versions.
2722
2723 END
2724 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2725 echo 'Configuration will proceed anyway, since you have set the' >&2
2726 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2727 echo >&2
2728 else
2729 cat >&2 <<'END'
2730 Aborting the configuration process, to ensure you take notice of the issue.
2731
2732 You can download and install GNU coreutils to get an 'rm' implementation
2733 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2734
2735 If you want to complete the configuration process using your problematic
2736 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2737 to "yes", and re-run configure.
2738
2739 END
2740 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2741 fi
2742 fi
2743
2744
2745 ac_ext=c
2746 ac_cpp='$CPP $CPPFLAGS'
2747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750 if test -n "$ac_tool_prefix"; then
2751 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2752 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if ${ac_cv_prog_CC+:} false; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 if test -n "$CC"; then
2759 ac_cv_prog_CC="$CC" # Let the user override the test.
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2763 do
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 break 2
2771 fi
2772 done
2773 done
2774 IFS=$as_save_IFS
2775
2776 fi
2777 fi
2778 CC=$ac_cv_prog_CC
2779 if test -n "$CC"; then
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2781 $as_echo "$CC" >&6; }
2782 else
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2785 fi
2786
2787
2788 fi
2789 if test -z "$ac_cv_prog_CC"; then
2790 ac_ct_CC=$CC
2791 # Extract the first word of "gcc", so it can be a program name with args.
2792 set dummy gcc; ac_word=$2
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 if test -n "$ac_ct_CC"; then
2799 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2803 do
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808 ac_cv_prog_ac_ct_CC="gcc"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2811 fi
2812 done
2813 done
2814 IFS=$as_save_IFS
2815
2816 fi
2817 fi
2818 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2819 if test -n "$ac_ct_CC"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2821 $as_echo "$ac_ct_CC" >&6; }
2822 else
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 $as_echo "no" >&6; }
2825 fi
2826
2827 if test "x$ac_ct_CC" = x; then
2828 CC=""
2829 else
2830 case $cross_compiling:$ac_tool_warned in
2831 yes:)
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2834 ac_tool_warned=yes ;;
2835 esac
2836 CC=$ac_ct_CC
2837 fi
2838 else
2839 CC="$ac_cv_prog_CC"
2840 fi
2841
2842 if test -z "$CC"; then
2843 if test -n "$ac_tool_prefix"; then
2844 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2845 set dummy ${ac_tool_prefix}cc; ac_word=$2
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847 $as_echo_n "checking for $ac_word... " >&6; }
2848 if ${ac_cv_prog_CC+:} false; then :
2849 $as_echo_n "(cached) " >&6
2850 else
2851 if test -n "$CC"; then
2852 ac_cv_prog_CC="$CC" # Let the user override the test.
2853 else
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 for as_dir in $PATH
2856 do
2857 IFS=$as_save_IFS
2858 test -z "$as_dir" && as_dir=.
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2861 ac_cv_prog_CC="${ac_tool_prefix}cc"
2862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 break 2
2864 fi
2865 done
2866 done
2867 IFS=$as_save_IFS
2868
2869 fi
2870 fi
2871 CC=$ac_cv_prog_CC
2872 if test -n "$CC"; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2874 $as_echo "$CC" >&6; }
2875 else
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877 $as_echo "no" >&6; }
2878 fi
2879
2880
2881 fi
2882 fi
2883 if test -z "$CC"; then
2884 # Extract the first word of "cc", so it can be a program name with args.
2885 set dummy cc; ac_word=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if ${ac_cv_prog_CC+:} false; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 if test -n "$CC"; then
2892 ac_cv_prog_CC="$CC" # Let the user override the test.
2893 else
2894 ac_prog_rejected=no
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2897 do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2903 ac_prog_rejected=yes
2904 continue
2905 fi
2906 ac_cv_prog_CC="cc"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2909 fi
2910 done
2911 done
2912 IFS=$as_save_IFS
2913
2914 if test $ac_prog_rejected = yes; then
2915 # We found a bogon in the path, so make sure we never use it.
2916 set dummy $ac_cv_prog_CC
2917 shift
2918 if test $# != 0; then
2919 # We chose a different compiler from the bogus one.
2920 # However, it has the same basename, so the bogon will be chosen
2921 # first if we set CC to just the basename; use the full file name.
2922 shift
2923 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2924 fi
2925 fi
2926 fi
2927 fi
2928 CC=$ac_cv_prog_CC
2929 if test -n "$CC"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2931 $as_echo "$CC" >&6; }
2932 else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934 $as_echo "no" >&6; }
2935 fi
2936
2937
2938 fi
2939 if test -z "$CC"; then
2940 if test -n "$ac_tool_prefix"; then
2941 for ac_prog in cl.exe
2942 do
2943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if ${ac_cv_prog_CC+:} false; then :
2948 $as_echo_n "(cached) " >&6
2949 else
2950 if test -n "$CC"; then
2951 ac_cv_prog_CC="$CC" # Let the user override the test.
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2955 do
2956 IFS=$as_save_IFS
2957 test -z "$as_dir" && as_dir=.
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2960 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 break 2
2963 fi
2964 done
2965 done
2966 IFS=$as_save_IFS
2967
2968 fi
2969 fi
2970 CC=$ac_cv_prog_CC
2971 if test -n "$CC"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2973 $as_echo "$CC" >&6; }
2974 else
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977 fi
2978
2979
2980 test -n "$CC" && break
2981 done
2982 fi
2983 if test -z "$CC"; then
2984 ac_ct_CC=$CC
2985 for ac_prog in cl.exe
2986 do
2987 # Extract the first word of "$ac_prog", so it can be a program name with args.
2988 set dummy $ac_prog; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 if test -n "$ac_ct_CC"; then
2995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2996 else
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH
2999 do
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_ac_ct_CC="$ac_prog"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 break 2
3007 fi
3008 done
3009 done
3010 IFS=$as_save_IFS
3011
3012 fi
3013 fi
3014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3015 if test -n "$ac_ct_CC"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3017 $as_echo "$ac_ct_CC" >&6; }
3018 else
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3021 fi
3022
3023
3024 test -n "$ac_ct_CC" && break
3025 done
3026
3027 if test "x$ac_ct_CC" = x; then
3028 CC=""
3029 else
3030 case $cross_compiling:$ac_tool_warned in
3031 yes:)
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3034 ac_tool_warned=yes ;;
3035 esac
3036 CC=$ac_ct_CC
3037 fi
3038 fi
3039
3040 fi
3041
3042
3043 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3045 as_fn_error $? "no acceptable C compiler found in \$PATH
3046 See \`config.log' for more details" "$LINENO" 5; }
3047
3048 # Provide some information about the compiler.
3049 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3050 set X $ac_compile
3051 ac_compiler=$2
3052 for ac_option in --version -v -V -qversion; do
3053 { { ac_try="$ac_compiler $ac_option >&5"
3054 case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057 esac
3058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3059 $as_echo "$ac_try_echo"; } >&5
3060 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3061 ac_status=$?
3062 if test -s conftest.err; then
3063 sed '10a\
3064 ... rest of stderr output deleted ...
3065 10q' conftest.err >conftest.er1
3066 cat conftest.er1 >&5
3067 fi
3068 rm -f conftest.er1 conftest.err
3069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3070 test $ac_status = 0; }
3071 done
3072
3073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3074 /* end confdefs.h. */
3075
3076 int
3077 main ()
3078 {
3079
3080 ;
3081 return 0;
3082 }
3083 _ACEOF
3084 ac_clean_files_save=$ac_clean_files
3085 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3086 # Try to create an executable without -o first, disregard a.out.
3087 # It will help us diagnose broken compilers, and finding out an intuition
3088 # of exeext.
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3090 $as_echo_n "checking whether the C compiler works... " >&6; }
3091 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3092
3093 # The possible output files:
3094 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3095
3096 ac_rmfiles=
3097 for ac_file in $ac_files
3098 do
3099 case $ac_file in
3100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3101 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3102 esac
3103 done
3104 rm -f $ac_rmfiles
3105
3106 if { { ac_try="$ac_link_default"
3107 case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110 esac
3111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3112 $as_echo "$ac_try_echo"; } >&5
3113 (eval "$ac_link_default") 2>&5
3114 ac_status=$?
3115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3116 test $ac_status = 0; }; then :
3117 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3118 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3119 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3120 # so that the user can short-circuit this test for compilers unknown to
3121 # Autoconf.
3122 for ac_file in $ac_files ''
3123 do
3124 test -f "$ac_file" || continue
3125 case $ac_file in
3126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3127 ;;
3128 [ab].out )
3129 # We found the default executable, but exeext='' is most
3130 # certainly right.
3131 break;;
3132 *.* )
3133 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3134 then :; else
3135 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3136 fi
3137 # We set ac_cv_exeext here because the later test for it is not
3138 # safe: cross compilers may not add the suffix if given an `-o'
3139 # argument, so we may need to know it at that point already.
3140 # Even if this section looks crufty: it has the advantage of
3141 # actually working.
3142 break;;
3143 * )
3144 break;;
3145 esac
3146 done
3147 test "$ac_cv_exeext" = no && ac_cv_exeext=
3148
3149 else
3150 ac_file=''
3151 fi
3152 if test -z "$ac_file"; then :
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3155 $as_echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3157
3158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160 as_fn_error 77 "C compiler cannot create executables
3161 See \`config.log' for more details" "$LINENO" 5; }
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3164 $as_echo "yes" >&6; }
3165 fi
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3167 $as_echo_n "checking for C compiler default output file name... " >&6; }
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3169 $as_echo "$ac_file" >&6; }
3170 ac_exeext=$ac_cv_exeext
3171
3172 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3173 ac_clean_files=$ac_clean_files_save
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3175 $as_echo_n "checking for suffix of executables... " >&6; }
3176 if { { ac_try="$ac_link"
3177 case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180 esac
3181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3182 $as_echo "$ac_try_echo"; } >&5
3183 (eval "$ac_link") 2>&5
3184 ac_status=$?
3185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3186 test $ac_status = 0; }; then :
3187 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3188 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3189 # work properly (i.e., refer to `conftest.exe'), while it won't with
3190 # `rm'.
3191 for ac_file in conftest.exe conftest conftest.*; do
3192 test -f "$ac_file" || continue
3193 case $ac_file in
3194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3195 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3196 break;;
3197 * ) break;;
3198 esac
3199 done
3200 else
3201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3204 See \`config.log' for more details" "$LINENO" 5; }
3205 fi
3206 rm -f conftest conftest$ac_cv_exeext
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3208 $as_echo "$ac_cv_exeext" >&6; }
3209
3210 rm -f conftest.$ac_ext
3211 EXEEXT=$ac_cv_exeext
3212 ac_exeext=$EXEEXT
3213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214 /* end confdefs.h. */
3215 #include <stdio.h>
3216 int
3217 main ()
3218 {
3219 FILE *f = fopen ("conftest.out", "w");
3220 return ferror (f) || fclose (f) != 0;
3221
3222 ;
3223 return 0;
3224 }
3225 _ACEOF
3226 ac_clean_files="$ac_clean_files conftest.out"
3227 # Check that the compiler produces executables we can run. If not, either
3228 # the compiler is broken, or we cross compile.
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3230 $as_echo_n "checking whether we are cross compiling... " >&6; }
3231 if test "$cross_compiling" != yes; then
3232 { { ac_try="$ac_link"
3233 case "(($ac_try" in
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3236 esac
3237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3238 $as_echo "$ac_try_echo"; } >&5
3239 (eval "$ac_link") 2>&5
3240 ac_status=$?
3241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3242 test $ac_status = 0; }
3243 if { ac_try='./conftest$ac_cv_exeext'
3244 { { case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247 esac
3248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249 $as_echo "$ac_try_echo"; } >&5
3250 (eval "$ac_try") 2>&5
3251 ac_status=$?
3252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253 test $ac_status = 0; }; }; then
3254 cross_compiling=no
3255 else
3256 if test "$cross_compiling" = maybe; then
3257 cross_compiling=yes
3258 else
3259 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261 as_fn_error $? "cannot run C compiled programs.
3262 If you meant to cross compile, use \`--host'.
3263 See \`config.log' for more details" "$LINENO" 5; }
3264 fi
3265 fi
3266 fi
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3268 $as_echo "$cross_compiling" >&6; }
3269
3270 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3271 ac_clean_files=$ac_clean_files_save
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3273 $as_echo_n "checking for suffix of object files... " >&6; }
3274 if ${ac_cv_objext+:} false; then :
3275 $as_echo_n "(cached) " >&6
3276 else
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3279
3280 int
3281 main ()
3282 {
3283
3284 ;
3285 return 0;
3286 }
3287 _ACEOF
3288 rm -f conftest.o conftest.obj
3289 if { { ac_try="$ac_compile"
3290 case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293 esac
3294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3295 $as_echo "$ac_try_echo"; } >&5
3296 (eval "$ac_compile") 2>&5
3297 ac_status=$?
3298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3299 test $ac_status = 0; }; then :
3300 for ac_file in conftest.o conftest.obj conftest.*; do
3301 test -f "$ac_file" || continue;
3302 case $ac_file in
3303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3304 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3305 break;;
3306 esac
3307 done
3308 else
3309 $as_echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3311
3312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314 as_fn_error $? "cannot compute suffix of object files: cannot compile
3315 See \`config.log' for more details" "$LINENO" 5; }
3316 fi
3317 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3318 fi
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3320 $as_echo "$ac_cv_objext" >&6; }
3321 OBJEXT=$ac_cv_objext
3322 ac_objext=$OBJEXT
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3324 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3325 if ${ac_cv_c_compiler_gnu+:} false; then :
3326 $as_echo_n "(cached) " >&6
3327 else
3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329 /* end confdefs.h. */
3330
3331 int
3332 main ()
3333 {
3334 #ifndef __GNUC__
3335 choke me
3336 #endif
3337
3338 ;
3339 return 0;
3340 }
3341 _ACEOF
3342 if ac_fn_c_try_compile "$LINENO"; then :
3343 ac_compiler_gnu=yes
3344 else
3345 ac_compiler_gnu=no
3346 fi
3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3349
3350 fi
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3352 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3353 if test $ac_compiler_gnu = yes; then
3354 GCC=yes
3355 else
3356 GCC=
3357 fi
3358 ac_test_CFLAGS=${CFLAGS+set}
3359 ac_save_CFLAGS=$CFLAGS
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3361 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3362 if ${ac_cv_prog_cc_g+:} false; then :
3363 $as_echo_n "(cached) " >&6
3364 else
3365 ac_save_c_werror_flag=$ac_c_werror_flag
3366 ac_c_werror_flag=yes
3367 ac_cv_prog_cc_g=no
3368 CFLAGS="-g"
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3371
3372 int
3373 main ()
3374 {
3375
3376 ;
3377 return 0;
3378 }
3379 _ACEOF
3380 if ac_fn_c_try_compile "$LINENO"; then :
3381 ac_cv_prog_cc_g=yes
3382 else
3383 CFLAGS=""
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3386
3387 int
3388 main ()
3389 {
3390
3391 ;
3392 return 0;
3393 }
3394 _ACEOF
3395 if ac_fn_c_try_compile "$LINENO"; then :
3396
3397 else
3398 ac_c_werror_flag=$ac_save_c_werror_flag
3399 CFLAGS="-g"
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h. */
3402
3403 int
3404 main ()
3405 {
3406
3407 ;
3408 return 0;
3409 }
3410 _ACEOF
3411 if ac_fn_c_try_compile "$LINENO"; then :
3412 ac_cv_prog_cc_g=yes
3413 fi
3414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415 fi
3416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3417 fi
3418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3419 ac_c_werror_flag=$ac_save_c_werror_flag
3420 fi
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3422 $as_echo "$ac_cv_prog_cc_g" >&6; }
3423 if test "$ac_test_CFLAGS" = set; then
3424 CFLAGS=$ac_save_CFLAGS
3425 elif test $ac_cv_prog_cc_g = yes; then
3426 if test "$GCC" = yes; then
3427 CFLAGS="-g -O2"
3428 else
3429 CFLAGS="-g"
3430 fi
3431 else
3432 if test "$GCC" = yes; then
3433 CFLAGS="-O2"
3434 else
3435 CFLAGS=
3436 fi
3437 fi
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3439 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3440 if ${ac_cv_prog_cc_c89+:} false; then :
3441 $as_echo_n "(cached) " >&6
3442 else
3443 ac_cv_prog_cc_c89=no
3444 ac_save_CC=$CC
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3447 #include <stdarg.h>
3448 #include <stdio.h>
3449 struct stat;
3450 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3451 struct buf { int x; };
3452 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3453 static char *e (p, i)
3454 char **p;
3455 int i;
3456 {
3457 return p[i];
3458 }
3459 static char *f (char * (*g) (char **, int), char **p, ...)
3460 {
3461 char *s;
3462 va_list v;
3463 va_start (v,p);
3464 s = g (p, va_arg (v,int));
3465 va_end (v);
3466 return s;
3467 }
3468
3469 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3470 function prototypes and stuff, but not '\xHH' hex character constants.
3471 These don't provoke an error unfortunately, instead are silently treated
3472 as 'x'. The following induces an error, until -std is added to get
3473 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3474 array size at least. It's necessary to write '\x00'==0 to get something
3475 that's true only with -std. */
3476 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3477
3478 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3479 inside strings and character constants. */
3480 #define FOO(x) 'x'
3481 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3482
3483 int test (int i, double x);
3484 struct s1 {int (*f) (int a);};
3485 struct s2 {int (*f) (double a);};
3486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3487 int argc;
3488 char **argv;
3489 int
3490 main ()
3491 {
3492 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3493 ;
3494 return 0;
3495 }
3496 _ACEOF
3497 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3498 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3499 do
3500 CC="$ac_save_CC $ac_arg"
3501 if ac_fn_c_try_compile "$LINENO"; then :
3502 ac_cv_prog_cc_c89=$ac_arg
3503 fi
3504 rm -f core conftest.err conftest.$ac_objext
3505 test "x$ac_cv_prog_cc_c89" != "xno" && break
3506 done
3507 rm -f conftest.$ac_ext
3508 CC=$ac_save_CC
3509
3510 fi
3511 # AC_CACHE_VAL
3512 case "x$ac_cv_prog_cc_c89" in
3513 x)
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3515 $as_echo "none needed" >&6; } ;;
3516 xno)
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3518 $as_echo "unsupported" >&6; } ;;
3519 *)
3520 CC="$CC $ac_cv_prog_cc_c89"
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3522 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3523 esac
3524 if test "x$ac_cv_prog_cc_c89" != xno; then :
3525
3526 fi
3527
3528 ac_ext=c
3529 ac_cpp='$CPP $CPPFLAGS'
3530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533
3534 ac_ext=c
3535 ac_cpp='$CPP $CPPFLAGS'
3536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3540 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3541 if ${am_cv_prog_cc_c_o+:} false; then :
3542 $as_echo_n "(cached) " >&6
3543 else
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3546
3547 int
3548 main ()
3549 {
3550
3551 ;
3552 return 0;
3553 }
3554 _ACEOF
3555 # Make sure it works both with $CC and with simple cc.
3556 # Following AC_PROG_CC_C_O, we do the test twice because some
3557 # compilers refuse to overwrite an existing .o file with -o,
3558 # though they will create one.
3559 am_cv_prog_cc_c_o=yes
3560 for am_i in 1 2; do
3561 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3562 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3563 ac_status=$?
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } \
3566 && test -f conftest2.$ac_objext; then
3567 : OK
3568 else
3569 am_cv_prog_cc_c_o=no
3570 break
3571 fi
3572 done
3573 rm -f core conftest*
3574 unset am_i
3575 fi
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3577 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3578 if test "$am_cv_prog_cc_c_o" != yes; then
3579 # Losing compiler, so override with the script.
3580 # FIXME: It is wrong to rewrite CC.
3581 # But if we don't then we get into trouble of one sort or another.
3582 # A longer-term fix would be to have automake use am__CC in this case,
3583 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3584 CC="$am_aux_dir/compile $CC"
3585 fi
3586 ac_ext=c
3587 ac_cpp='$CPP $CPPFLAGS'
3588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3591
3592 DEPDIR="${am__leading_dot}deps"
3593
3594 ac_config_commands="$ac_config_commands depfiles"
3595
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3597 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3598 cat > confinc.mk << 'END'
3599 am__doit:
3600 @echo this is the am__doit target >confinc.out
3601 .PHONY: am__doit
3602 END
3603 am__include="#"
3604 am__quote=
3605 # BSD make does it like this.
3606 echo '.include "confinc.mk" # ignored' > confmf.BSD
3607 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3608 echo 'include confinc.mk # ignored' > confmf.GNU
3609 _am_result=no
3610 for s in GNU BSD; do
3611 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3612 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3613 ac_status=$?
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); }
3616 case $?:`cat confinc.out 2>/dev/null` in #(
3617 '0:this is the am__doit target') :
3618 case $s in #(
3619 BSD) :
3620 am__include='.include' am__quote='"' ;; #(
3621 *) :
3622 am__include='include' am__quote='' ;;
3623 esac ;; #(
3624 *) :
3625 ;;
3626 esac
3627 if test "$am__include" != "#"; then
3628 _am_result="yes ($s style)"
3629 break
3630 fi
3631 done
3632 rm -f confinc.* confmf.*
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3634 $as_echo "${_am_result}" >&6; }
3635
3636 # Check whether --enable-dependency-tracking was given.
3637 if test "${enable_dependency_tracking+set}" = set; then :
3638 enableval=$enable_dependency_tracking;
3639 fi
3640
3641 if test "x$enable_dependency_tracking" != xno; then
3642 am_depcomp="$ac_aux_dir/depcomp"
3643 AMDEPBACKSLASH='\'
3644 am__nodep='_no'
3645 fi
3646 if test "x$enable_dependency_tracking" != xno; then
3647 AMDEP_TRUE=
3648 AMDEP_FALSE='#'
3649 else
3650 AMDEP_TRUE='#'
3651 AMDEP_FALSE=
3652 fi
3653
3654
3655
3656 depcc="$CC" am_compiler_list=
3657
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3659 $as_echo_n "checking dependency style of $depcc... " >&6; }
3660 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3664 # We make a subdir and do the tests there. Otherwise we can end up
3665 # making bogus files that we don't know about and never remove. For
3666 # instance it was reported that on HP-UX the gcc test will end up
3667 # making a dummy file named 'D' -- because '-MD' means "put the output
3668 # in D".
3669 rm -rf conftest.dir
3670 mkdir conftest.dir
3671 # Copy depcomp to subdir because otherwise we won't find it if we're
3672 # using a relative directory.
3673 cp "$am_depcomp" conftest.dir
3674 cd conftest.dir
3675 # We will build objects and dependencies in a subdirectory because
3676 # it helps to detect inapplicable dependency modes. For instance
3677 # both Tru64's cc and ICC support -MD to output dependencies as a
3678 # side effect of compilation, but ICC will put the dependencies in
3679 # the current directory while Tru64 will put them in the object
3680 # directory.
3681 mkdir sub
3682
3683 am_cv_CC_dependencies_compiler_type=none
3684 if test "$am_compiler_list" = ""; then
3685 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3686 fi
3687 am__universal=false
3688 case " $depcc " in #(
3689 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3690 esac
3691
3692 for depmode in $am_compiler_list; do
3693 # Setup a source with many dependencies, because some compilers
3694 # like to wrap large dependency lists on column 80 (with \), and
3695 # we should not choose a depcomp mode which is confused by this.
3696 #
3697 # We need to recreate these files for each test, as the compiler may
3698 # overwrite some of them when testing with obscure command lines.
3699 # This happens at least with the AIX C compiler.
3700 : > sub/conftest.c
3701 for i in 1 2 3 4 5 6; do
3702 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3703 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3704 # Solaris 10 /bin/sh.
3705 echo '/* dummy */' > sub/conftst$i.h
3706 done
3707 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3708
3709 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3710 # mode. It turns out that the SunPro C++ compiler does not properly
3711 # handle '-M -o', and we need to detect this. Also, some Intel
3712 # versions had trouble with output in subdirs.
3713 am__obj=sub/conftest.${OBJEXT-o}
3714 am__minus_obj="-o $am__obj"
3715 case $depmode in
3716 gcc)
3717 # This depmode causes a compiler race in universal mode.
3718 test "$am__universal" = false || continue
3719 ;;
3720 nosideeffect)
3721 # After this tag, mechanisms are not by side-effect, so they'll
3722 # only be used when explicitly requested.
3723 if test "x$enable_dependency_tracking" = xyes; then
3724 continue
3725 else
3726 break
3727 fi
3728 ;;
3729 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3730 # This compiler won't grok '-c -o', but also, the minuso test has
3731 # not run yet. These depmodes are late enough in the game, and
3732 # so weak that their functioning should not be impacted.
3733 am__obj=conftest.${OBJEXT-o}
3734 am__minus_obj=
3735 ;;
3736 none) break ;;
3737 esac
3738 if depmode=$depmode \
3739 source=sub/conftest.c object=$am__obj \
3740 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3741 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3742 >/dev/null 2>conftest.err &&
3743 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3744 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3745 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3746 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3747 # icc doesn't choke on unknown options, it will just issue warnings
3748 # or remarks (even with -Werror). So we grep stderr for any message
3749 # that says an option was ignored or not supported.
3750 # When given -MP, icc 7.0 and 7.1 complain thusly:
3751 # icc: Command line warning: ignoring option '-M'; no argument required
3752 # The diagnosis changed in icc 8.0:
3753 # icc: Command line remark: option '-MP' not supported
3754 if (grep 'ignoring option' conftest.err ||
3755 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3756 am_cv_CC_dependencies_compiler_type=$depmode
3757 break
3758 fi
3759 fi
3760 done
3761
3762 cd ..
3763 rm -rf conftest.dir
3764 else
3765 am_cv_CC_dependencies_compiler_type=none
3766 fi
3767
3768 fi
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3770 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3771 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3772
3773 if
3774 test "x$enable_dependency_tracking" != xno \
3775 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3776 am__fastdepCC_TRUE=
3777 am__fastdepCC_FALSE='#'
3778 else
3779 am__fastdepCC_TRUE='#'
3780 am__fastdepCC_FALSE=
3781 fi
3782
3783
3784
3785 for ac_prog in flex lex
3786 do
3787 # Extract the first word of "$ac_prog", so it can be a program name with args.
3788 set dummy $ac_prog; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if ${ac_cv_prog_LEX+:} false; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -n "$LEX"; then
3795 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3799 do
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3804 ac_cv_prog_LEX="$ac_prog"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3807 fi
3808 done
3809 done
3810 IFS=$as_save_IFS
3811
3812 fi
3813 fi
3814 LEX=$ac_cv_prog_LEX
3815 if test -n "$LEX"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
3817 $as_echo "$LEX" >&6; }
3818 else
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3821 fi
3822
3823
3824 test -n "$LEX" && break
3825 done
3826 test -n "$LEX" || LEX=":"
3827
3828 if test "x$LEX" != "x:"; then
3829 cat >conftest.l <<_ACEOF
3830 %%
3831 a { ECHO; }
3832 b { REJECT; }
3833 c { yymore (); }
3834 d { yyless (1); }
3835 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
3836 yyless ((input () != 0)); }
3837 f { unput (yytext[0]); }
3838 . { BEGIN INITIAL; }
3839 %%
3840 #ifdef YYTEXT_POINTER
3841 extern char *yytext;
3842 #endif
3843 int
3844 main (void)
3845 {
3846 return ! yylex () + ! yywrap ();
3847 }
3848 _ACEOF
3849 { { ac_try="$LEX conftest.l"
3850 case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856 (eval "$LEX conftest.l") 2>&5
3857 ac_status=$?
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
3861 $as_echo_n "checking lex output file root... " >&6; }
3862 if ${ac_cv_prog_lex_root+:} false; then :
3863 $as_echo_n "(cached) " >&6
3864 else
3865
3866 if test -f lex.yy.c; then
3867 ac_cv_prog_lex_root=lex.yy
3868 elif test -f lexyy.c; then
3869 ac_cv_prog_lex_root=lexyy
3870 else
3871 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
3872 fi
3873 fi
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
3875 $as_echo "$ac_cv_prog_lex_root" >&6; }
3876 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3877
3878 if test -z "${LEXLIB+set}"; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
3880 $as_echo_n "checking lex library... " >&6; }
3881 if ${ac_cv_lib_lex+:} false; then :
3882 $as_echo_n "(cached) " >&6
3883 else
3884
3885 ac_save_LIBS=$LIBS
3886 ac_cv_lib_lex='none needed'
3887 for ac_lib in '' -lfl -ll; do
3888 LIBS="$ac_lib $ac_save_LIBS"
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3891 `cat $LEX_OUTPUT_ROOT.c`
3892 _ACEOF
3893 if ac_fn_c_try_link "$LINENO"; then :
3894 ac_cv_lib_lex=$ac_lib
3895 fi
3896 rm -f core conftest.err conftest.$ac_objext \
3897 conftest$ac_exeext conftest.$ac_ext
3898 test "$ac_cv_lib_lex" != 'none needed' && break
3899 done
3900 LIBS=$ac_save_LIBS
3901
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
3904 $as_echo "$ac_cv_lib_lex" >&6; }
3905 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3906 fi
3907
3908
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
3910 $as_echo_n "checking whether yytext is a pointer... " >&6; }
3911 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
3912 $as_echo_n "(cached) " >&6
3913 else
3914 # POSIX says lex can declare yytext either as a pointer or an array; the
3915 # default is implementation-dependent. Figure out which it is, since
3916 # not all implementations provide the %pointer and %array declarations.
3917 ac_cv_prog_lex_yytext_pointer=no
3918 ac_save_LIBS=$LIBS
3919 LIBS="$LEXLIB $ac_save_LIBS"
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3922
3923 #define YYTEXT_POINTER 1
3924 `cat $LEX_OUTPUT_ROOT.c`
3925 _ACEOF
3926 if ac_fn_c_try_link "$LINENO"; then :
3927 ac_cv_prog_lex_yytext_pointer=yes
3928 fi
3929 rm -f core conftest.err conftest.$ac_objext \
3930 conftest$ac_exeext conftest.$ac_ext
3931 LIBS=$ac_save_LIBS
3932
3933 fi
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
3935 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
3936 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3937
3938 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
3939
3940 fi
3941 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3942
3943 fi
3944 for ac_prog in 'bison -y' byacc
3945 do
3946 # Extract the first word of "$ac_prog", so it can be a program name with args.
3947 set dummy $ac_prog; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if ${ac_cv_prog_YACC+:} false; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 if test -n "$YACC"; then
3954 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3958 do
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3963 ac_cv_prog_YACC="$ac_prog"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 break 2
3966 fi
3967 done
3968 done
3969 IFS=$as_save_IFS
3970
3971 fi
3972 fi
3973 YACC=$ac_cv_prog_YACC
3974 if test -n "$YACC"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
3976 $as_echo "$YACC" >&6; }
3977 else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3980 fi
3981
3982
3983 test -n "$YACC" && break
3984 done
3985 test -n "$YACC" || YACC="yacc"
3986
3987
3988 for ac_func in getopt_long
3989 do :
3990 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
3991 if test "x$ac_cv_func_getopt_long" = xyes; then :
3992 cat >>confdefs.h <<_ACEOF
3993 #define HAVE_GETOPT_LONG 1
3994 _ACEOF
3995
3996 fi
3997 done
3998
3999 ac_ext=c
4000 ac_cpp='$CPP $CPPFLAGS'
4001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4005 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4006 # On Suns, sometimes $CPP names a directory.
4007 if test -n "$CPP" && test -d "$CPP"; then
4008 CPP=
4009 fi
4010 if test -z "$CPP"; then
4011 if ${ac_cv_prog_CPP+:} false; then :
4012 $as_echo_n "(cached) " >&6
4013 else
4014 # Double quotes because CPP needs to be expanded
4015 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4016 do
4017 ac_preproc_ok=false
4018 for ac_c_preproc_warn_flag in '' yes
4019 do
4020 # Use a header file that comes with gcc, so configuring glibc
4021 # with a fresh cross-compiler works.
4022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4023 # <limits.h> exists even on freestanding compilers.
4024 # On the NeXT, cc -E runs the code through the compiler's parser,
4025 # not just through cpp. "Syntax error" is here to catch this case.
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4028 #ifdef __STDC__
4029 # include <limits.h>
4030 #else
4031 # include <assert.h>
4032 #endif
4033 Syntax error
4034 _ACEOF
4035 if ac_fn_c_try_cpp "$LINENO"; then :
4036
4037 else
4038 # Broken: fails on valid input.
4039 continue
4040 fi
4041 rm -f conftest.err conftest.i conftest.$ac_ext
4042
4043 # OK, works on sane cases. Now check whether nonexistent headers
4044 # can be detected and how.
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047 #include <ac_nonexistent.h>
4048 _ACEOF
4049 if ac_fn_c_try_cpp "$LINENO"; then :
4050 # Broken: success on invalid input.
4051 continue
4052 else
4053 # Passes both tests.
4054 ac_preproc_ok=:
4055 break
4056 fi
4057 rm -f conftest.err conftest.i conftest.$ac_ext
4058
4059 done
4060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4061 rm -f conftest.i conftest.err conftest.$ac_ext
4062 if $ac_preproc_ok; then :
4063 break
4064 fi
4065
4066 done
4067 ac_cv_prog_CPP=$CPP
4068
4069 fi
4070 CPP=$ac_cv_prog_CPP
4071 else
4072 ac_cv_prog_CPP=$CPP
4073 fi
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4075 $as_echo "$CPP" >&6; }
4076 ac_preproc_ok=false
4077 for ac_c_preproc_warn_flag in '' yes
4078 do
4079 # Use a header file that comes with gcc, so configuring glibc
4080 # with a fresh cross-compiler works.
4081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4082 # <limits.h> exists even on freestanding compilers.
4083 # On the NeXT, cc -E runs the code through the compiler's parser,
4084 # not just through cpp. "Syntax error" is here to catch this case.
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4087 #ifdef __STDC__
4088 # include <limits.h>
4089 #else
4090 # include <assert.h>
4091 #endif
4092 Syntax error
4093 _ACEOF
4094 if ac_fn_c_try_cpp "$LINENO"; then :
4095
4096 else
4097 # Broken: fails on valid input.
4098 continue
4099 fi
4100 rm -f conftest.err conftest.i conftest.$ac_ext
4101
4102 # OK, works on sane cases. Now check whether nonexistent headers
4103 # can be detected and how.
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4106 #include <ac_nonexistent.h>
4107 _ACEOF
4108 if ac_fn_c_try_cpp "$LINENO"; then :
4109 # Broken: success on invalid input.
4110 continue
4111 else
4112 # Passes both tests.
4113 ac_preproc_ok=:
4114 break
4115 fi
4116 rm -f conftest.err conftest.i conftest.$ac_ext
4117
4118 done
4119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4120 rm -f conftest.i conftest.err conftest.$ac_ext
4121 if $ac_preproc_ok; then :
4122
4123 else
4124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4126 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4127 See \`config.log' for more details" "$LINENO" 5; }
4128 fi
4129
4130 ac_ext=c
4131 ac_cpp='$CPP $CPPFLAGS'
4132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135
4136
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4138 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4139 if ${ac_cv_path_GREP+:} false; then :
4140 $as_echo_n "(cached) " >&6
4141 else
4142 if test -z "$GREP"; then
4143 ac_path_GREP_found=false
4144 # Loop through the user's path and test for each of PROGNAME-LIST
4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4147 do
4148 IFS=$as_save_IFS
4149 test -z "$as_dir" && as_dir=.
4150 for ac_prog in grep ggrep; do
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4153 as_fn_executable_p "$ac_path_GREP" || continue
4154 # Check for GNU ac_path_GREP and select it if it is found.
4155 # Check for GNU $ac_path_GREP
4156 case `"$ac_path_GREP" --version 2>&1` in
4157 *GNU*)
4158 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4159 *)
4160 ac_count=0
4161 $as_echo_n 0123456789 >"conftest.in"
4162 while :
4163 do
4164 cat "conftest.in" "conftest.in" >"conftest.tmp"
4165 mv "conftest.tmp" "conftest.in"
4166 cp "conftest.in" "conftest.nl"
4167 $as_echo 'GREP' >> "conftest.nl"
4168 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4169 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4170 as_fn_arith $ac_count + 1 && ac_count=$as_val
4171 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4172 # Best one so far, save it but keep looking for a better one
4173 ac_cv_path_GREP="$ac_path_GREP"
4174 ac_path_GREP_max=$ac_count
4175 fi
4176 # 10*(2^10) chars as input seems more than enough
4177 test $ac_count -gt 10 && break
4178 done
4179 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4180 esac
4181
4182 $ac_path_GREP_found && break 3
4183 done
4184 done
4185 done
4186 IFS=$as_save_IFS
4187 if test -z "$ac_cv_path_GREP"; then
4188 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4189 fi
4190 else
4191 ac_cv_path_GREP=$GREP
4192 fi
4193
4194 fi
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4196 $as_echo "$ac_cv_path_GREP" >&6; }
4197 GREP="$ac_cv_path_GREP"
4198
4199
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4201 $as_echo_n "checking for egrep... " >&6; }
4202 if ${ac_cv_path_EGREP+:} false; then :
4203 $as_echo_n "(cached) " >&6
4204 else
4205 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4206 then ac_cv_path_EGREP="$GREP -E"
4207 else
4208 if test -z "$EGREP"; then
4209 ac_path_EGREP_found=false
4210 # Loop through the user's path and test for each of PROGNAME-LIST
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4213 do
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
4216 for ac_prog in egrep; do
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4219 as_fn_executable_p "$ac_path_EGREP" || continue
4220 # Check for GNU ac_path_EGREP and select it if it is found.
4221 # Check for GNU $ac_path_EGREP
4222 case `"$ac_path_EGREP" --version 2>&1` in
4223 *GNU*)
4224 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4225 *)
4226 ac_count=0
4227 $as_echo_n 0123456789 >"conftest.in"
4228 while :
4229 do
4230 cat "conftest.in" "conftest.in" >"conftest.tmp"
4231 mv "conftest.tmp" "conftest.in"
4232 cp "conftest.in" "conftest.nl"
4233 $as_echo 'EGREP' >> "conftest.nl"
4234 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4236 as_fn_arith $ac_count + 1 && ac_count=$as_val
4237 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4238 # Best one so far, save it but keep looking for a better one
4239 ac_cv_path_EGREP="$ac_path_EGREP"
4240 ac_path_EGREP_max=$ac_count
4241 fi
4242 # 10*(2^10) chars as input seems more than enough
4243 test $ac_count -gt 10 && break
4244 done
4245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4246 esac
4247
4248 $ac_path_EGREP_found && break 3
4249 done
4250 done
4251 done
4252 IFS=$as_save_IFS
4253 if test -z "$ac_cv_path_EGREP"; then
4254 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4255 fi
4256 else
4257 ac_cv_path_EGREP=$EGREP
4258 fi
4259
4260 fi
4261 fi
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4263 $as_echo "$ac_cv_path_EGREP" >&6; }
4264 EGREP="$ac_cv_path_EGREP"
4265
4266
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4268 $as_echo_n "checking for ANSI C header files... " >&6; }
4269 if ${ac_cv_header_stdc+:} false; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4274 #include <stdlib.h>
4275 #include <stdarg.h>
4276 #include <string.h>
4277 #include <float.h>
4278
4279 int
4280 main ()
4281 {
4282
4283 ;
4284 return 0;
4285 }
4286 _ACEOF
4287 if ac_fn_c_try_compile "$LINENO"; then :
4288 ac_cv_header_stdc=yes
4289 else
4290 ac_cv_header_stdc=no
4291 fi
4292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293
4294 if test $ac_cv_header_stdc = yes; then
4295 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4298 #include <string.h>
4299
4300 _ACEOF
4301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4302 $EGREP "memchr" >/dev/null 2>&1; then :
4303
4304 else
4305 ac_cv_header_stdc=no
4306 fi
4307 rm -f conftest*
4308
4309 fi
4310
4311 if test $ac_cv_header_stdc = yes; then
4312 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4315 #include <stdlib.h>
4316
4317 _ACEOF
4318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4319 $EGREP "free" >/dev/null 2>&1; then :
4320
4321 else
4322 ac_cv_header_stdc=no
4323 fi
4324 rm -f conftest*
4325
4326 fi
4327
4328 if test $ac_cv_header_stdc = yes; then
4329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4330 if test "$cross_compiling" = yes; then :
4331 :
4332 else
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4335 #include <ctype.h>
4336 #include <stdlib.h>
4337 #if ((' ' & 0x0FF) == 0x020)
4338 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4339 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4340 #else
4341 # define ISLOWER(c) \
4342 (('a' <= (c) && (c) <= 'i') \
4343 || ('j' <= (c) && (c) <= 'r') \
4344 || ('s' <= (c) && (c) <= 'z'))
4345 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4346 #endif
4347
4348 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4349 int
4350 main ()
4351 {
4352 int i;
4353 for (i = 0; i < 256; i++)
4354 if (XOR (islower (i), ISLOWER (i))
4355 || toupper (i) != TOUPPER (i))
4356 return 2;
4357 return 0;
4358 }
4359 _ACEOF
4360 if ac_fn_c_try_run "$LINENO"; then :
4361
4362 else
4363 ac_cv_header_stdc=no
4364 fi
4365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4366 conftest.$ac_objext conftest.beam conftest.$ac_ext
4367 fi
4368
4369 fi
4370 fi
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4372 $as_echo "$ac_cv_header_stdc" >&6; }
4373 if test $ac_cv_header_stdc = yes; then
4374
4375 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4376
4377 fi
4378
4379 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4380 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4381 inttypes.h stdint.h unistd.h
4382 do :
4383 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4384 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4385 "
4386 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4387 cat >>confdefs.h <<_ACEOF
4388 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4389 _ACEOF
4390
4391 fi
4392
4393 done
4394
4395
4396 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
4397 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
4398
4399 cat >>confdefs.h <<_ACEOF
4400 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
4401 _ACEOF
4402
4403
4404 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
4405
4406 else
4407 case " $LIBOBJS " in
4408 *" fileblocks.$ac_objext "* ) ;;
4409 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
4410 ;;
4411 esac
4412
4413 fi
4414
4415
4416
4417 # Check whether --enable-largefile was given.
4418 if test "${enable_largefile+set}" = set; then :
4419 enableval=$enable_largefile;
4420 fi
4421
4422 if test "$enable_largefile" != no; then
4423
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4425 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4426 if ${ac_cv_sys_largefile_CC+:} false; then :
4427 $as_echo_n "(cached) " >&6
4428 else
4429 ac_cv_sys_largefile_CC=no
4430 if test "$GCC" != yes; then
4431 ac_save_CC=$CC
4432 while :; do
4433 # IRIX 6.2 and later do not support large files by default,
4434 # so use the C compiler's -n32 option if that helps.
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4437 #include <sys/types.h>
4438 /* Check that off_t can represent 2**63 - 1 correctly.
4439 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4440 since some C++ compilers masquerading as C compilers
4441 incorrectly reject 9223372036854775807. */
4442 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4443 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4444 && LARGE_OFF_T % 2147483647 == 1)
4445 ? 1 : -1];
4446 int
4447 main ()
4448 {
4449
4450 ;
4451 return 0;
4452 }
4453 _ACEOF
4454 if ac_fn_c_try_compile "$LINENO"; then :
4455 break
4456 fi
4457 rm -f core conftest.err conftest.$ac_objext
4458 CC="$CC -n32"
4459 if ac_fn_c_try_compile "$LINENO"; then :
4460 ac_cv_sys_largefile_CC=' -n32'; break
4461 fi
4462 rm -f core conftest.err conftest.$ac_objext
4463 break
4464 done
4465 CC=$ac_save_CC
4466 rm -f conftest.$ac_ext
4467 fi
4468 fi
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4470 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4471 if test "$ac_cv_sys_largefile_CC" != no; then
4472 CC=$CC$ac_cv_sys_largefile_CC
4473 fi
4474
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4476 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4477 if ${ac_cv_sys_file_offset_bits+:} false; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 while :; do
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483 #include <sys/types.h>
4484 /* Check that off_t can represent 2**63 - 1 correctly.
4485 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4486 since some C++ compilers masquerading as C compilers
4487 incorrectly reject 9223372036854775807. */
4488 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4489 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4490 && LARGE_OFF_T % 2147483647 == 1)
4491 ? 1 : -1];
4492 int
4493 main ()
4494 {
4495
4496 ;
4497 return 0;
4498 }
4499 _ACEOF
4500 if ac_fn_c_try_compile "$LINENO"; then :
4501 ac_cv_sys_file_offset_bits=no; break
4502 fi
4503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4506 #define _FILE_OFFSET_BITS 64
4507 #include <sys/types.h>
4508 /* Check that off_t can represent 2**63 - 1 correctly.
4509 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4510 since some C++ compilers masquerading as C compilers
4511 incorrectly reject 9223372036854775807. */
4512 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4513 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4514 && LARGE_OFF_T % 2147483647 == 1)
4515 ? 1 : -1];
4516 int
4517 main ()
4518 {
4519
4520 ;
4521 return 0;
4522 }
4523 _ACEOF
4524 if ac_fn_c_try_compile "$LINENO"; then :
4525 ac_cv_sys_file_offset_bits=64; break
4526 fi
4527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 ac_cv_sys_file_offset_bits=unknown
4529 break
4530 done
4531 fi
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4533 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4534 case $ac_cv_sys_file_offset_bits in #(
4535 no | unknown) ;;
4536 *)
4537 cat >>confdefs.h <<_ACEOF
4538 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4539 _ACEOF
4540 ;;
4541 esac
4542 rm -rf conftest*
4543 if test $ac_cv_sys_file_offset_bits = unknown; then
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4545 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4546 if ${ac_cv_sys_large_files+:} false; then :
4547 $as_echo_n "(cached) " >&6
4548 else
4549 while :; do
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h. */
4552 #include <sys/types.h>
4553 /* Check that off_t can represent 2**63 - 1 correctly.
4554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4555 since some C++ compilers masquerading as C compilers
4556 incorrectly reject 9223372036854775807. */
4557 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4559 && LARGE_OFF_T % 2147483647 == 1)
4560 ? 1 : -1];
4561 int
4562 main ()
4563 {
4564
4565 ;
4566 return 0;
4567 }
4568 _ACEOF
4569 if ac_fn_c_try_compile "$LINENO"; then :
4570 ac_cv_sys_large_files=no; break
4571 fi
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575 #define _LARGE_FILES 1
4576 #include <sys/types.h>
4577 /* Check that off_t can represent 2**63 - 1 correctly.
4578 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4579 since some C++ compilers masquerading as C compilers
4580 incorrectly reject 9223372036854775807. */
4581 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4582 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4583 && LARGE_OFF_T % 2147483647 == 1)
4584 ? 1 : -1];
4585 int
4586 main ()
4587 {
4588
4589 ;
4590 return 0;
4591 }
4592 _ACEOF
4593 if ac_fn_c_try_compile "$LINENO"; then :
4594 ac_cv_sys_large_files=1; break
4595 fi
4596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597 ac_cv_sys_large_files=unknown
4598 break
4599 done
4600 fi
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4602 $as_echo "$ac_cv_sys_large_files" >&6; }
4603 case $ac_cv_sys_large_files in #(
4604 no | unknown) ;;
4605 *)
4606 cat >>confdefs.h <<_ACEOF
4607 #define _LARGE_FILES $ac_cv_sys_large_files
4608 _ACEOF
4609 ;;
4610 esac
4611 rm -rf conftest*
4612 fi
4613
4614
4615 fi
4616
4617
4618 ac_config_headers="$ac_config_headers src/config.h"
4619
4620 ac_config_files="$ac_config_files Makefile src/Makefile"
4621
4622 cat >confcache <<\_ACEOF
4623 # This file is a shell script that caches the results of configure
4624 # tests run on this system so they can be shared between configure
4625 # scripts and configure runs, see configure's option --config-cache.
4626 # It is not useful on other systems. If it contains results you don't
4627 # want to keep, you may remove or edit it.
4628 #
4629 # config.status only pays attention to the cache file if you give it
4630 # the --recheck option to rerun configure.
4631 #
4632 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4633 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4634 # following values.
4635
4636 _ACEOF
4637
4638 # The following way of writing the cache mishandles newlines in values,
4639 # but we know of no workaround that is simple, portable, and efficient.
4640 # So, we kill variables containing newlines.
4641 # Ultrix sh set writes to stderr and can't be redirected directly,
4642 # and sets the high bit in the cache file unless we assign to the vars.
4643 (
4644 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4645 eval ac_val=\$$ac_var
4646 case $ac_val in #(
4647 *${as_nl}*)
4648 case $ac_var in #(
4649 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4650 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4651 esac
4652 case $ac_var in #(
4653 _ | IFS | as_nl) ;; #(
4654 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4655 *) { eval $ac_var=; unset $ac_var;} ;;
4656 esac ;;
4657 esac
4658 done
4659
4660 (set) 2>&1 |
4661 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4662 *${as_nl}ac_space=\ *)
4663 # `set' does not quote correctly, so add quotes: double-quote
4664 # substitution turns \\\\ into \\, and sed turns \\ into \.
4665 sed -n \
4666 "s/'/'\\\\''/g;
4667 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4668 ;; #(
4669 *)
4670 # `set' quotes correctly as required by POSIX, so do not add quotes.
4671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4672 ;;
4673 esac |
4674 sort
4675 ) |
4676 sed '
4677 /^ac_cv_env_/b end
4678 t clear
4679 :clear
4680 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4681 t end
4682 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4683 :end' >>confcache
4684 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4685 if test -w "$cache_file"; then
4686 if test "x$cache_file" != "x/dev/null"; then
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4688 $as_echo "$as_me: updating cache $cache_file" >&6;}
4689 if test ! -f "$cache_file" || test -h "$cache_file"; then
4690 cat confcache >"$cache_file"
4691 else
4692 case $cache_file in #(
4693 */* | ?:*)
4694 mv -f confcache "$cache_file"$$ &&
4695 mv -f "$cache_file"$$ "$cache_file" ;; #(
4696 *)
4697 mv -f confcache "$cache_file" ;;
4698 esac
4699 fi
4700 fi
4701 else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4703 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4704 fi
4705 fi
4706 rm -f confcache
4707
4708 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4709 # Let make expand exec_prefix.
4710 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4711
4712 DEFS=-DHAVE_CONFIG_H
4713
4714 ac_libobjs=
4715 ac_ltlibobjs=
4716 U=
4717 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4718 # 1. Remove the extension, and $U if already installed.
4719 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4720 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4721 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4722 # will be set to the directory where LIBOBJS objects are built.
4723 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4724 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4725 done
4726 LIBOBJS=$ac_libobjs
4727
4728 LTLIBOBJS=$ac_ltlibobjs
4729
4730
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
4732 $as_echo_n "checking that generated files are newer than configure... " >&6; }
4733 if test -n "$am_sleep_pid"; then
4734 # Hide warnings about reused PIDs.
4735 wait $am_sleep_pid 2>/dev/null
4736 fi
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
4738 $as_echo "done" >&6; }
4739 if test -n "$EXEEXT"; then
4740 am__EXEEXT_TRUE=
4741 am__EXEEXT_FALSE='#'
4742 else
4743 am__EXEEXT_TRUE='#'
4744 am__EXEEXT_FALSE=
4745 fi
4746
4747 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4748 as_fn_error $? "conditional \"AMDEP\" was never defined.
4749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4750 fi
4751 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4752 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
4753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4754 fi
4755
4756 : "${CONFIG_STATUS=./config.status}"
4757 ac_write_fail=0
4758 ac_clean_files_save=$ac_clean_files
4759 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4761 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4762 as_write_fail=0
4763 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4764 #! $SHELL
4765 # Generated by $as_me.
4766 # Run this file to recreate the current configuration.
4767 # Compiler output produced by configure, useful for debugging
4768 # configure, is in config.log if it exists.
4769
4770 debug=false
4771 ac_cs_recheck=false
4772 ac_cs_silent=false
4773
4774 SHELL=\${CONFIG_SHELL-$SHELL}
4775 export SHELL
4776 _ASEOF
4777 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4778 ## -------------------- ##
4779 ## M4sh Initialization. ##
4780 ## -------------------- ##
4781
4782 # Be more Bourne compatible
4783 DUALCASE=1; export DUALCASE # for MKS sh
4784 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4785 emulate sh
4786 NULLCMD=:
4787 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4788 # is contrary to our usage. Disable this feature.
4789 alias -g '${1+"$@"}'='"$@"'
4790 setopt NO_GLOB_SUBST
4791 else
4792 case `(set -o) 2>/dev/null` in #(
4793 *posix*) :
4794 set -o posix ;; #(
4795 *) :
4796 ;;
4797 esac
4798 fi
4799
4800
4801 as_nl='
4802 '
4803 export as_nl
4804 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4805 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4806 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4807 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4808 # Prefer a ksh shell builtin over an external printf program on Solaris,
4809 # but without wasting forks for bash or zsh.
4810 if test -z "$BASH_VERSION$ZSH_VERSION" \
4811 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4812 as_echo='print -r --'
4813 as_echo_n='print -rn --'
4814 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4815 as_echo='printf %s\n'
4816 as_echo_n='printf %s'
4817 else
4818 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4819 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4820 as_echo_n='/usr/ucb/echo -n'
4821 else
4822 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4823 as_echo_n_body='eval
4824 arg=$1;
4825 case $arg in #(
4826 *"$as_nl"*)
4827 expr "X$arg" : "X\\(.*\\)$as_nl";
4828 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4829 esac;
4830 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4831 '
4832 export as_echo_n_body
4833 as_echo_n='sh -c $as_echo_n_body as_echo'
4834 fi
4835 export as_echo_body
4836 as_echo='sh -c $as_echo_body as_echo'
4837 fi
4838
4839 # The user is always right.
4840 if test "${PATH_SEPARATOR+set}" != set; then
4841 PATH_SEPARATOR=:
4842 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4843 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4844 PATH_SEPARATOR=';'
4845 }
4846 fi
4847
4848
4849 # IFS
4850 # We need space, tab and new line, in precisely that order. Quoting is
4851 # there to prevent editors from complaining about space-tab.
4852 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4853 # splitting by setting IFS to empty value.)
4854 IFS=" "" $as_nl"
4855
4856 # Find who we are. Look in the path if we contain no directory separator.
4857 as_myself=
4858 case $0 in #((
4859 *[\\/]* ) as_myself=$0 ;;
4860 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH
4862 do
4863 IFS=$as_save_IFS
4864 test -z "$as_dir" && as_dir=.
4865 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4866 done
4867 IFS=$as_save_IFS
4868
4869 ;;
4870 esac
4871 # We did not find ourselves, most probably we were run as `sh COMMAND'
4872 # in which case we are not to be found in the path.
4873 if test "x$as_myself" = x; then
4874 as_myself=$0
4875 fi
4876 if test ! -f "$as_myself"; then
4877 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4878 exit 1
4879 fi
4880
4881 # Unset variables that we do not need and which cause bugs (e.g. in
4882 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4883 # suppresses any "Segmentation fault" message there. '((' could
4884 # trigger a bug in pdksh 5.2.14.
4885 for as_var in BASH_ENV ENV MAIL MAILPATH
4886 do eval test x\${$as_var+set} = xset \
4887 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4888 done
4889 PS1='$ '
4890 PS2='> '
4891 PS4='+ '
4892
4893 # NLS nuisances.
4894 LC_ALL=C
4895 export LC_ALL
4896 LANGUAGE=C
4897 export LANGUAGE
4898
4899 # CDPATH.
4900 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4901
4902
4903 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4904 # ----------------------------------------
4905 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4906 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4907 # script with STATUS, using 1 if that was 0.
4908 as_fn_error ()
4909 {
4910 as_status=$1; test $as_status -eq 0 && as_status=1
4911 if test "$4"; then
4912 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4913 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4914 fi
4915 $as_echo "$as_me: error: $2" >&2
4916 as_fn_exit $as_status
4917 } # as_fn_error
4918
4919
4920 # as_fn_set_status STATUS
4921 # -----------------------
4922 # Set $? to STATUS, without forking.
4923 as_fn_set_status ()
4924 {
4925 return $1
4926 } # as_fn_set_status
4927
4928 # as_fn_exit STATUS
4929 # -----------------
4930 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4931 as_fn_exit ()
4932 {
4933 set +e
4934 as_fn_set_status $1
4935 exit $1
4936 } # as_fn_exit
4937
4938 # as_fn_unset VAR
4939 # ---------------
4940 # Portably unset VAR.
4941 as_fn_unset ()
4942 {
4943 { eval $1=; unset $1;}
4944 }
4945 as_unset=as_fn_unset
4946 # as_fn_append VAR VALUE
4947 # ----------------------
4948 # Append the text in VALUE to the end of the definition contained in VAR. Take
4949 # advantage of any shell optimizations that allow amortized linear growth over
4950 # repeated appends, instead of the typical quadratic growth present in naive
4951 # implementations.
4952 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4953 eval 'as_fn_append ()
4954 {
4955 eval $1+=\$2
4956 }'
4957 else
4958 as_fn_append ()
4959 {
4960 eval $1=\$$1\$2
4961 }
4962 fi # as_fn_append
4963
4964 # as_fn_arith ARG...
4965 # ------------------
4966 # Perform arithmetic evaluation on the ARGs, and store the result in the
4967 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4968 # must be portable across $(()) and expr.
4969 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4970 eval 'as_fn_arith ()
4971 {
4972 as_val=$(( $* ))
4973 }'
4974 else
4975 as_fn_arith ()
4976 {
4977 as_val=`expr "$@" || test $? -eq 1`
4978 }
4979 fi # as_fn_arith
4980
4981
4982 if expr a : '\(a\)' >/dev/null 2>&1 &&
4983 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4984 as_expr=expr
4985 else
4986 as_expr=false
4987 fi
4988
4989 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4990 as_basename=basename
4991 else
4992 as_basename=false
4993 fi
4994
4995 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4996 as_dirname=dirname
4997 else
4998 as_dirname=false
4999 fi
5000
5001 as_me=`$as_basename -- "$0" ||
5002 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5003 X"$0" : 'X\(//\)$' \| \
5004 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5005 $as_echo X/"$0" |
5006 sed '/^.*\/\([^/][^/]*\)\/*$/{
5007 s//\1/
5008 q
5009 }
5010 /^X\/\(\/\/\)$/{
5011 s//\1/
5012 q
5013 }
5014 /^X\/\(\/\).*/{
5015 s//\1/
5016 q
5017 }
5018 s/.*/./; q'`
5019
5020 # Avoid depending upon Character Ranges.
5021 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5022 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5023 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5024 as_cr_digits='0123456789'
5025 as_cr_alnum=$as_cr_Letters$as_cr_digits
5026
5027 ECHO_C= ECHO_N= ECHO_T=
5028 case `echo -n x` in #(((((
5029 -n*)
5030 case `echo 'xy\c'` in
5031 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5032 xy) ECHO_C='\c';;
5033 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5034 ECHO_T=' ';;
5035 esac;;
5036 *)
5037 ECHO_N='-n';;
5038 esac
5039
5040 rm -f conf$$ conf$$.exe conf$$.file
5041 if test -d conf$$.dir; then
5042 rm -f conf$$.dir/conf$$.file
5043 else
5044 rm -f conf$$.dir
5045 mkdir conf$$.dir 2>/dev/null
5046 fi
5047 if (echo >conf$$.file) 2>/dev/null; then
5048 if ln -s conf$$.file conf$$ 2>/dev/null; then
5049 as_ln_s='ln -s'
5050 # ... but there are two gotchas:
5051 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5052 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5053 # In both cases, we have to default to `cp -pR'.
5054 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5055 as_ln_s='cp -pR'
5056 elif ln conf$$.file conf$$ 2>/dev/null; then
5057 as_ln_s=ln
5058 else
5059 as_ln_s='cp -pR'
5060 fi
5061 else
5062 as_ln_s='cp -pR'
5063 fi
5064 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5065 rmdir conf$$.dir 2>/dev/null
5066
5067
5068 # as_fn_mkdir_p
5069 # -------------
5070 # Create "$as_dir" as a directory, including parents if necessary.
5071 as_fn_mkdir_p ()
5072 {
5073
5074 case $as_dir in #(
5075 -*) as_dir=./$as_dir;;
5076 esac
5077 test -d "$as_dir" || eval $as_mkdir_p || {
5078 as_dirs=
5079 while :; do
5080 case $as_dir in #(
5081 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5082 *) as_qdir=$as_dir;;
5083 esac
5084 as_dirs="'$as_qdir' $as_dirs"
5085 as_dir=`$as_dirname -- "$as_dir" ||
5086 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5087 X"$as_dir" : 'X\(//\)[^/]' \| \
5088 X"$as_dir" : 'X\(//\)$' \| \
5089 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5090 $as_echo X"$as_dir" |
5091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5092 s//\1/
5093 q
5094 }
5095 /^X\(\/\/\)[^/].*/{
5096 s//\1/
5097 q
5098 }
5099 /^X\(\/\/\)$/{
5100 s//\1/
5101 q
5102 }
5103 /^X\(\/\).*/{
5104 s//\1/
5105 q
5106 }
5107 s/.*/./; q'`
5108 test -d "$as_dir" && break
5109 done
5110 test -z "$as_dirs" || eval "mkdir $as_dirs"
5111 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5112
5113
5114 } # as_fn_mkdir_p
5115 if mkdir -p . 2>/dev/null; then
5116 as_mkdir_p='mkdir -p "$as_dir"'
5117 else
5118 test -d ./-p && rmdir ./-p
5119 as_mkdir_p=false
5120 fi
5121
5122
5123 # as_fn_executable_p FILE
5124 # -----------------------
5125 # Test if FILE is an executable regular file.
5126 as_fn_executable_p ()
5127 {
5128 test -f "$1" && test -x "$1"
5129 } # as_fn_executable_p
5130 as_test_x='test -x'
5131 as_executable_p=as_fn_executable_p
5132
5133 # Sed expression to map a string onto a valid CPP name.
5134 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5135
5136 # Sed expression to map a string onto a valid variable name.
5137 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5138
5139
5140 exec 6>&1
5141 ## ----------------------------------- ##
5142 ## Main body of $CONFIG_STATUS script. ##
5143 ## ----------------------------------- ##
5144 _ASEOF
5145 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5146
5147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5148 # Save the log message, to keep $0 and so on meaningful, and to
5149 # report actual input values of CONFIG_FILES etc. instead of their
5150 # values after options handling.
5151 ac_log="
5152 This file was extended by detox $as_me 1.4.5, which was
5153 generated by GNU Autoconf 2.69. Invocation command line was
5154
5155 CONFIG_FILES = $CONFIG_FILES
5156 CONFIG_HEADERS = $CONFIG_HEADERS
5157 CONFIG_LINKS = $CONFIG_LINKS
5158 CONFIG_COMMANDS = $CONFIG_COMMANDS
5159 $ $0 $@
5160
5161 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5162 "
5163
5164 _ACEOF
5165
5166 case $ac_config_files in *"
5167 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5168 esac
5169
5170 case $ac_config_headers in *"
5171 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5172 esac
5173
5174
5175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5176 # Files that config.status was made for.
5177 config_files="$ac_config_files"
5178 config_headers="$ac_config_headers"
5179 config_commands="$ac_config_commands"
5180
5181 _ACEOF
5182
5183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5184 ac_cs_usage="\
5185 \`$as_me' instantiates files and other configuration actions
5186 from templates according to the current configuration. Unless the files
5187 and actions are specified as TAGs, all are instantiated by default.
5188
5189 Usage: $0 [OPTION]... [TAG]...
5190
5191 -h, --help print this help, then exit
5192 -V, --version print version number and configuration settings, then exit
5193 --config print configuration, then exit
5194 -q, --quiet, --silent
5195 do not print progress messages
5196 -d, --debug don't remove temporary files
5197 --recheck update $as_me by reconfiguring in the same conditions
5198 --file=FILE[:TEMPLATE]
5199 instantiate the configuration file FILE
5200 --header=FILE[:TEMPLATE]
5201 instantiate the configuration header FILE
5202
5203 Configuration files:
5204 $config_files
5205
5206 Configuration headers:
5207 $config_headers
5208
5209 Configuration commands:
5210 $config_commands
5211
5212 Report bugs to <detox.dharple at gmail.com>.
5213 detox home page: <https://github.com/dharple/detox>."
5214
5215 _ACEOF
5216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5217 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5218 ac_cs_version="\\
5219 detox config.status 1.4.5
5220 configured by $0, generated by GNU Autoconf 2.69,
5221 with options \\"\$ac_cs_config\\"
5222
5223 Copyright (C) 2012 Free Software Foundation, Inc.
5224 This config.status script is free software; the Free Software Foundation
5225 gives unlimited permission to copy, distribute and modify it."
5226
5227 ac_pwd='$ac_pwd'
5228 srcdir='$srcdir'
5229 INSTALL='$INSTALL'
5230 MKDIR_P='$MKDIR_P'
5231 AWK='$AWK'
5232 test -n "\$AWK" || AWK=awk
5233 _ACEOF
5234
5235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5236 # The default lists apply if the user does not specify any file.
5237 ac_need_defaults=:
5238 while test $# != 0
5239 do
5240 case $1 in
5241 --*=?*)
5242 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5243 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5244 ac_shift=:
5245 ;;
5246 --*=)
5247 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5248 ac_optarg=
5249 ac_shift=:
5250 ;;
5251 *)
5252 ac_option=$1
5253 ac_optarg=$2
5254 ac_shift=shift
5255 ;;
5256 esac
5257
5258 case $ac_option in
5259 # Handling of the options.
5260 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5261 ac_cs_recheck=: ;;
5262 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5263 $as_echo "$ac_cs_version"; exit ;;
5264 --config | --confi | --conf | --con | --co | --c )
5265 $as_echo "$ac_cs_config"; exit ;;
5266 --debug | --debu | --deb | --de | --d | -d )
5267 debug=: ;;
5268 --file | --fil | --fi | --f )
5269 $ac_shift
5270 case $ac_optarg in
5271 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5272 '') as_fn_error $? "missing file argument" ;;
5273 esac
5274 as_fn_append CONFIG_FILES " '$ac_optarg'"
5275 ac_need_defaults=false;;
5276 --header | --heade | --head | --hea )
5277 $ac_shift
5278 case $ac_optarg in
5279 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5280 esac
5281 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5282 ac_need_defaults=false;;
5283 --he | --h)
5284 # Conflict between --help and --header
5285 as_fn_error $? "ambiguous option: \`$1'
5286 Try \`$0 --help' for more information.";;
5287 --help | --hel | -h )
5288 $as_echo "$ac_cs_usage"; exit ;;
5289 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5290 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5291 ac_cs_silent=: ;;
5292
5293 # This is an error.
5294 -*) as_fn_error $? "unrecognized option: \`$1'
5295 Try \`$0 --help' for more information." ;;
5296
5297 *) as_fn_append ac_config_targets " $1"
5298 ac_need_defaults=false ;;
5299
5300 esac
5301 shift
5302 done
5303
5304 ac_configure_extra_args=
5305
5306 if $ac_cs_silent; then
5307 exec 6>/dev/null
5308 ac_configure_extra_args="$ac_configure_extra_args --silent"
5309 fi
5310
5311 _ACEOF
5312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5313 if \$ac_cs_recheck; then
5314 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5315 shift
5316 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5317 CONFIG_SHELL='$SHELL'
5318 export CONFIG_SHELL
5319 exec "\$@"
5320 fi
5321
5322 _ACEOF
5323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5324 exec 5>>config.log
5325 {
5326 echo
5327 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5328 ## Running $as_me. ##
5329 _ASBOX
5330 $as_echo "$ac_log"
5331 } >&5
5332
5333 _ACEOF
5334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5335 #
5336 # INIT-COMMANDS
5337 #
5338 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
5339
5340 _ACEOF
5341
5342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5343
5344 # Handling of arguments.
5345 for ac_config_target in $ac_config_targets
5346 do
5347 case $ac_config_target in
5348 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5349 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
5350 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5351 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5352
5353 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5354 esac
5355 done
5356
5357
5358 # If the user did not use the arguments to specify the items to instantiate,
5359 # then the envvar interface is used. Set only those that are not.
5360 # We use the long form for the default assignment because of an extremely
5361 # bizarre bug on SunOS 4.1.3.
5362 if $ac_need_defaults; then
5363 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5364 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5365 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5366 fi
5367
5368 # Have a temporary directory for convenience. Make it in the build tree
5369 # simply because there is no reason against having it here, and in addition,
5370 # creating and moving files from /tmp can sometimes cause problems.
5371 # Hook for its removal unless debugging.
5372 # Note that there is a small window in which the directory will not be cleaned:
5373 # after its creation but before its name has been assigned to `$tmp'.
5374 $debug ||
5375 {
5376 tmp= ac_tmp=
5377 trap 'exit_status=$?
5378 : "${ac_tmp:=$tmp}"
5379 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5380 ' 0
5381 trap 'as_fn_exit 1' 1 2 13 15
5382 }
5383 # Create a (secure) tmp directory for tmp files.
5384
5385 {
5386 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5387 test -d "$tmp"
5388 } ||
5389 {
5390 tmp=./conf$$-$RANDOM
5391 (umask 077 && mkdir "$tmp")
5392 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5393 ac_tmp=$tmp
5394
5395 # Set up the scripts for CONFIG_FILES section.
5396 # No need to generate them if there are no CONFIG_FILES.
5397 # This happens for instance with `./config.status config.h'.
5398 if test -n "$CONFIG_FILES"; then
5399
5400
5401 ac_cr=`echo X | tr X '\015'`
5402 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5403 # But we know of no other shell where ac_cr would be empty at this
5404 # point, so we can use a bashism as a fallback.
5405 if test "x$ac_cr" = x; then
5406 eval ac_cr=\$\'\\r\'
5407 fi
5408 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5409 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5410 ac_cs_awk_cr='\\r'
5411 else
5412 ac_cs_awk_cr=$ac_cr
5413 fi
5414
5415 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5416 _ACEOF
5417
5418
5419 {
5420 echo "cat >conf$$subs.awk <<_ACEOF" &&
5421 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5422 echo "_ACEOF"
5423 } >conf$$subs.sh ||
5424 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5425 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5426 ac_delim='%!_!# '
5427 for ac_last_try in false false false false false :; do
5428 . ./conf$$subs.sh ||
5429 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5430
5431 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5432 if test $ac_delim_n = $ac_delim_num; then
5433 break
5434 elif $ac_last_try; then
5435 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5436 else
5437 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5438 fi
5439 done
5440 rm -f conf$$subs.sh
5441
5442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5443 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5444 _ACEOF
5445 sed -n '
5446 h
5447 s/^/S["/; s/!.*/"]=/
5448 p
5449 g
5450 s/^[^!]*!//
5451 :repl
5452 t repl
5453 s/'"$ac_delim"'$//
5454 t delim
5455 :nl
5456 h
5457 s/\(.\{148\}\)..*/\1/
5458 t more1
5459 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5460 p
5461 n
5462 b repl
5463 :more1
5464 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5465 p
5466 g
5467 s/.\{148\}//
5468 t nl
5469 :delim
5470 h
5471 s/\(.\{148\}\)..*/\1/
5472 t more2
5473 s/["\\]/\\&/g; s/^/"/; s/$/"/
5474 p
5475 b
5476 :more2
5477 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5478 p
5479 g
5480 s/.\{148\}//
5481 t delim
5482 ' <conf$$subs.awk | sed '
5483 /^[^""]/{
5484 N
5485 s/\n//
5486 }
5487 ' >>$CONFIG_STATUS || ac_write_fail=1
5488 rm -f conf$$subs.awk
5489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5490 _ACAWK
5491 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5492 for (key in S) S_is_set[key] = 1
5493 FS = ""
5494
5495 }
5496 {
5497 line = $ 0
5498 nfields = split(line, field, "@")
5499 substed = 0
5500 len = length(field[1])
5501 for (i = 2; i < nfields; i++) {
5502 key = field[i]
5503 keylen = length(key)
5504 if (S_is_set[key]) {
5505 value = S[key]
5506 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5507 len += length(value) + length(field[++i])