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