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