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