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