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