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