Debian Codegraph @

configure

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