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