OSDN Git Service

24b4204747d1de2d88223ef182b53d9ccf13bbd4
[islib/islib.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for islib 1.0.0.
4 #
5 # Report bugs to <issoftware@users.sourceforge.jp>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order.  Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119   { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154          X"$0" : 'X\(//\)$' \| \
155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157     sed '/^.*\/\([^/][^/]*\)\/*$/{
158             s//\1/
159             q
160           }
161           /^X\/\(\/\/\)$/{
162             s//\1/
163             q
164           }
165           /^X\/\(\/\).*/{
166             s//\1/
167             q
168           }
169           s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = yes &&     (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234   as_lineno_1=\$LINENO
235   as_lineno_2=\$LINENO
236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245   IFS=$as_save_IFS
246   test -z "$as_dir" && as_dir=.
247   case $as_dir in
248          /*)
249            for as_base in sh bash ksh sh5; do
250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251            done;;
252        esac
253 done
254 IFS=$as_save_IFS
255
256
257       for as_shell in $as_candidate_shells $SHELL; do
258          # Try only shells that exist, to save several forks.
259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260                 { ("$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   # Pre-4.2 versions of Zsh do 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 _ASEOF
278 }; then
279   CONFIG_SHELL=$as_shell
280                as_have_required=yes
281                if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283   emulate sh
284   NULLCMD=:
285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286   # is contrary to our usage.  Disable this feature.
287   alias -g '${1+"$@"}'='"$@"'
288   setopt NO_GLOB_SUBST
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349   as_lineno_1=$LINENO
350   as_lineno_2=$LINENO
351   test "x$as_lineno_1" != "x$as_lineno_2" &&
352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356   break
357 fi
358
359 fi
360
361       done
362
363       if test "x$CONFIG_SHELL" != x; then
364   for as_var in BASH_ENV ENV
365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366         done
367         export CONFIG_SHELL
368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372     if test $as_have_required = no; then
373   echo This script requires a shell more modern than all the
374       echo shells that I found on your system.  Please install a
375       echo modern shell, or manually run the script under such a
376       echo shell if you do have one.
377       { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436   echo No shell found that supports shell functions.
437   echo Please tell bug-autoconf@gnu.org about your system,
438   echo including any error possibly output before this message.
439   echo This can help us improve future autoconf versions.
440   echo Configuration will now proceed without shell functions.
441 }
442
443
444
445   as_lineno_1=$LINENO
446   as_lineno_2=$LINENO
447   test "x$as_lineno_1" != "x$as_lineno_2" &&
448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451   # uniformly replaced by the line number.  The first 'sed' inserts a
452   # line-number line after each line using $LINENO; the second 'sed'
453   # does the real work.  The second script uses 'N' to pair each
454   # line-number line with the line containing $LINENO, and appends
455   # trailing '-' during substitution so that $LINENO is not a special
456   # case at line end.
457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
459   # E. McMahon (1931-1989) for sed's syntax.  :-)
460   sed -n '
461     p
462     /[$]LINENO/=
463   ' <$as_myself |
464     sed '
465       s/[$]LINENO.*/&-/
466       t lineno
467       b
468       :lineno
469       N
470       :loop
471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472       t loop
473       s/-\n.*//
474     ' >$as_me.lineno &&
475   chmod +x "$as_me.lineno" ||
476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477    { (exit 1); exit 1; }; }
478
479   # Don't try to exec as it changes $[0], causing all sort of problems
480   # (the dirname of $[0] is not the place where we might find the
481   # original and so on.  Autoconf is especially sensitive to this).
482   . "./$as_me.lineno"
483   # Exit status is that of the last command.
484   exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497   case `echo 'x\c'` in
498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499   *)   ECHO_C='\c';;
500   esac;;
501 *)
502   ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519   if ln -s conf$$.file conf$$ 2>/dev/null; then
520     as_ln_s='ln -s'
521     # ... but there are two gotchas:
522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524     # In both cases, we have to default to `cp -p'.
525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526       as_ln_s='cp -p'
527   elif ln conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s=ln
529   else
530     as_ln_s='cp -p'
531   fi
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
548   if ls -dL / >/dev/null 2>&1; then
549     as_ls_L_option=L
550   else
551     as_ls_L_option=
552   fi
553   as_test_x='
554     eval sh -c '\''
555       if test -d "$1"; then
556         test -d "$1/.";
557       else
558         case $1 in
559         -*)set "./$1";;
560         esac;
561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562         ???[sx]*):;;*)false;;esac;fi
563     '\'' sh
564   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576 exec 7<&0 </dev/null 6>&1
577
578 # Name of the host.
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
583 #
584 # Initializations.
585 #
586 ac_default_prefix=/usr/local
587 ac_clean_files=
588 ac_config_libobj_dir=.
589 LIBOBJS=
590 cross_compiling=no
591 subdirs=
592 MFLAGS=
593 MAKEFLAGS=
594 SHELL=${CONFIG_SHELL-/bin/sh}
595
596 # Identity of this package.
597 PACKAGE_NAME='islib'
598 PACKAGE_TARNAME='islib'
599 PACKAGE_VERSION='1.0.0'
600 PACKAGE_STRING='islib 1.0.0'
601 PACKAGE_BUGREPORT='issoftware@users.sourceforge.jp'
602
603 ac_unique_file="config.h.in"
604 # Factoring default headers for most tests.
605 ac_includes_default="\
606 #include <stdio.h>
607 #ifdef HAVE_SYS_TYPES_H
608 # include <sys/types.h>
609 #endif
610 #ifdef HAVE_SYS_STAT_H
611 # include <sys/stat.h>
612 #endif
613 #ifdef STDC_HEADERS
614 # include <stdlib.h>
615 # include <stddef.h>
616 #else
617 # ifdef HAVE_STDLIB_H
618 #  include <stdlib.h>
619 # endif
620 #endif
621 #ifdef HAVE_STRING_H
622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 #  include <memory.h>
624 # endif
625 # include <string.h>
626 #endif
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
629 #endif
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
632 #endif
633 #ifdef HAVE_STDINT_H
634 # include <stdint.h>
635 #endif
636 #ifdef HAVE_UNISTD_H
637 # include <unistd.h>
638 #endif"
639
640 ac_subst_vars='LTLIBOBJS
641 LIBOBJS
642 EGREP
643 GREP
644 CPP
645 am__fastdepCC_FALSE
646 am__fastdepCC_TRUE
647 CCDEPMODE
648 ac_ct_CC
649 CFLAGS
650 CC
651 RANLIB
652 am__fastdepCXX_FALSE
653 am__fastdepCXX_TRUE
654 CXXDEPMODE
655 AMDEPBACKSLASH
656 AMDEP_FALSE
657 AMDEP_TRUE
658 am__quote
659 am__include
660 DEPDIR
661 OBJEXT
662 EXEEXT
663 ac_ct_CXX
664 CPPFLAGS
665 LDFLAGS
666 CXXFLAGS
667 CXX
668 DEBUG_FALSE
669 DEBUG_TRUE
670 am__untar
671 am__tar
672 AMTAR
673 am__leading_dot
674 SET_MAKE
675 AWK
676 mkdir_p
677 MKDIR_P
678 INSTALL_STRIP_PROGRAM
679 STRIP
680 install_sh
681 MAKEINFO
682 AUTOHEADER
683 AUTOMAKE
684 AUTOCONF
685 ACLOCAL
686 VERSION
687 PACKAGE
688 CYGPATH_W
689 am__isrc
690 INSTALL_DATA
691 INSTALL_SCRIPT
692 INSTALL_PROGRAM
693 target_alias
694 host_alias
695 build_alias
696 LIBS
697 ECHO_T
698 ECHO_N
699 ECHO_C
700 DEFS
701 mandir
702 localedir
703 libdir
704 psdir
705 pdfdir
706 dvidir
707 htmldir
708 infodir
709 docdir
710 oldincludedir
711 includedir
712 localstatedir
713 sharedstatedir
714 sysconfdir
715 datadir
716 datarootdir
717 libexecdir
718 sbindir
719 bindir
720 program_transform_name
721 prefix
722 exec_prefix
723 PACKAGE_BUGREPORT
724 PACKAGE_STRING
725 PACKAGE_VERSION
726 PACKAGE_TARNAME
727 PACKAGE_NAME
728 PATH_SEPARATOR
729 SHELL'
730 ac_subst_files=''
731 ac_user_opts='
732 enable_option_checking
733 enable_debug
734 enable_dependency_tracking
735 '
736       ac_precious_vars='build_alias
737 host_alias
738 target_alias
739 CXX
740 CXXFLAGS
741 LDFLAGS
742 LIBS
743 CPPFLAGS
744 CCC
745 CC
746 CFLAGS
747 CPP'
748
749
750 # Initialize some variables set by options.
751 ac_init_help=
752 ac_init_version=false
753 ac_unrecognized_opts=
754 ac_unrecognized_sep=
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
757 cache_file=/dev/null
758 exec_prefix=NONE
759 no_create=
760 no_recursion=
761 prefix=NONE
762 program_prefix=NONE
763 program_suffix=NONE
764 program_transform_name=s,x,x,
765 silent=
766 site=
767 srcdir=
768 verbose=
769 x_includes=NONE
770 x_libraries=NONE
771
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir='${exec_prefix}/bin'
779 sbindir='${exec_prefix}/sbin'
780 libexecdir='${exec_prefix}/libexec'
781 datarootdir='${prefix}/share'
782 datadir='${datarootdir}'
783 sysconfdir='${prefix}/etc'
784 sharedstatedir='${prefix}/com'
785 localstatedir='${prefix}/var'
786 includedir='${prefix}/include'
787 oldincludedir='/usr/include'
788 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir='${datarootdir}/info'
790 htmldir='${docdir}'
791 dvidir='${docdir}'
792 pdfdir='${docdir}'
793 psdir='${docdir}'
794 libdir='${exec_prefix}/lib'
795 localedir='${datarootdir}/locale'
796 mandir='${datarootdir}/man'
797
798 ac_prev=
799 ac_dashdash=
800 for ac_option
801 do
802   # If the previous option needs an argument, assign it.
803   if test -n "$ac_prev"; then
804     eval $ac_prev=\$ac_option
805     ac_prev=
806     continue
807   fi
808
809   case $ac_option in
810   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811   *)    ac_optarg=yes ;;
812   esac
813
814   # Accept the important Cygnus configure options, so we can diagnose typos.
815
816   case $ac_dashdash$ac_option in
817   --)
818     ac_dashdash=yes ;;
819
820   -bindir | --bindir | --bindi | --bind | --bin | --bi)
821     ac_prev=bindir ;;
822   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823     bindir=$ac_optarg ;;
824
825   -build | --build | --buil | --bui | --bu)
826     ac_prev=build_alias ;;
827   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828     build_alias=$ac_optarg ;;
829
830   -cache-file | --cache-file | --cache-fil | --cache-fi \
831   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832     ac_prev=cache_file ;;
833   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835     cache_file=$ac_optarg ;;
836
837   --config-cache | -C)
838     cache_file=config.cache ;;
839
840   -datadir | --datadir | --datadi | --datad)
841     ac_prev=datadir ;;
842   -datadir=* | --datadir=* | --datadi=* | --datad=*)
843     datadir=$ac_optarg ;;
844
845   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846   | --dataroo | --dataro | --datar)
847     ac_prev=datarootdir ;;
848   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850     datarootdir=$ac_optarg ;;
851
852   -disable-* | --disable-*)
853     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854     # Reject names that are not valid shell variable names.
855     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
857    { (exit 1); exit 1; }; }
858     ac_useropt_orig=$ac_useropt
859     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860     case $ac_user_opts in
861       *"
862 "enable_$ac_useropt"
863 "*) ;;
864       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
865          ac_unrecognized_sep=', ';;
866     esac
867     eval enable_$ac_useropt=no ;;
868
869   -docdir | --docdir | --docdi | --doc | --do)
870     ac_prev=docdir ;;
871   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
872     docdir=$ac_optarg ;;
873
874   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
875     ac_prev=dvidir ;;
876   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
877     dvidir=$ac_optarg ;;
878
879   -enable-* | --enable-*)
880     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
881     # Reject names that are not valid shell variable names.
882     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
884    { (exit 1); exit 1; }; }
885     ac_useropt_orig=$ac_useropt
886     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887     case $ac_user_opts in
888       *"
889 "enable_$ac_useropt"
890 "*) ;;
891       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
892          ac_unrecognized_sep=', ';;
893     esac
894     eval enable_$ac_useropt=\$ac_optarg ;;
895
896   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
897   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
898   | --exec | --exe | --ex)
899     ac_prev=exec_prefix ;;
900   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
901   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
902   | --exec=* | --exe=* | --ex=*)
903     exec_prefix=$ac_optarg ;;
904
905   -gas | --gas | --ga | --g)
906     # Obsolete; use --with-gas.
907     with_gas=yes ;;
908
909   -help | --help | --hel | --he | -h)
910     ac_init_help=long ;;
911   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
912     ac_init_help=recursive ;;
913   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
914     ac_init_help=short ;;
915
916   -host | --host | --hos | --ho)
917     ac_prev=host_alias ;;
918   -host=* | --host=* | --hos=* | --ho=*)
919     host_alias=$ac_optarg ;;
920
921   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
922     ac_prev=htmldir ;;
923   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
924   | --ht=*)
925     htmldir=$ac_optarg ;;
926
927   -includedir | --includedir | --includedi | --included | --include \
928   | --includ | --inclu | --incl | --inc)
929     ac_prev=includedir ;;
930   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
931   | --includ=* | --inclu=* | --incl=* | --inc=*)
932     includedir=$ac_optarg ;;
933
934   -infodir | --infodir | --infodi | --infod | --info | --inf)
935     ac_prev=infodir ;;
936   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
937     infodir=$ac_optarg ;;
938
939   -libdir | --libdir | --libdi | --libd)
940     ac_prev=libdir ;;
941   -libdir=* | --libdir=* | --libdi=* | --libd=*)
942     libdir=$ac_optarg ;;
943
944   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
945   | --libexe | --libex | --libe)
946     ac_prev=libexecdir ;;
947   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
948   | --libexe=* | --libex=* | --libe=*)
949     libexecdir=$ac_optarg ;;
950
951   -localedir | --localedir | --localedi | --localed | --locale)
952     ac_prev=localedir ;;
953   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
954     localedir=$ac_optarg ;;
955
956   -localstatedir | --localstatedir | --localstatedi | --localstated \
957   | --localstate | --localstat | --localsta | --localst | --locals)
958     ac_prev=localstatedir ;;
959   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
960   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
961     localstatedir=$ac_optarg ;;
962
963   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
964     ac_prev=mandir ;;
965   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
966     mandir=$ac_optarg ;;
967
968   -nfp | --nfp | --nf)
969     # Obsolete; use --without-fp.
970     with_fp=no ;;
971
972   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
973   | --no-cr | --no-c | -n)
974     no_create=yes ;;
975
976   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
977   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
978     no_recursion=yes ;;
979
980   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
981   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
982   | --oldin | --oldi | --old | --ol | --o)
983     ac_prev=oldincludedir ;;
984   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
985   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
986   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
987     oldincludedir=$ac_optarg ;;
988
989   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
990     ac_prev=prefix ;;
991   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
992     prefix=$ac_optarg ;;
993
994   -program-prefix | --program-prefix | --program-prefi | --program-pref \
995   | --program-pre | --program-pr | --program-p)
996     ac_prev=program_prefix ;;
997   -program-prefix=* | --program-prefix=* | --program-prefi=* \
998   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
999     program_prefix=$ac_optarg ;;
1000
1001   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1002   | --program-suf | --program-su | --program-s)
1003     ac_prev=program_suffix ;;
1004   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1005   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1006     program_suffix=$ac_optarg ;;
1007
1008   -program-transform-name | --program-transform-name \
1009   | --program-transform-nam | --program-transform-na \
1010   | --program-transform-n | --program-transform- \
1011   | --program-transform | --program-transfor \
1012   | --program-transfo | --program-transf \
1013   | --program-trans | --program-tran \
1014   | --progr-tra | --program-tr | --program-t)
1015     ac_prev=program_transform_name ;;
1016   -program-transform-name=* | --program-transform-name=* \
1017   | --program-transform-nam=* | --program-transform-na=* \
1018   | --program-transform-n=* | --program-transform-=* \
1019   | --program-transform=* | --program-transfor=* \
1020   | --program-transfo=* | --program-transf=* \
1021   | --program-trans=* | --program-tran=* \
1022   | --progr-tra=* | --program-tr=* | --program-t=*)
1023     program_transform_name=$ac_optarg ;;
1024
1025   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1026     ac_prev=pdfdir ;;
1027   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1028     pdfdir=$ac_optarg ;;
1029
1030   -psdir | --psdir | --psdi | --psd | --ps)
1031     ac_prev=psdir ;;
1032   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1033     psdir=$ac_optarg ;;
1034
1035   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036   | -silent | --silent | --silen | --sile | --sil)
1037     silent=yes ;;
1038
1039   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1040     ac_prev=sbindir ;;
1041   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1042   | --sbi=* | --sb=*)
1043     sbindir=$ac_optarg ;;
1044
1045   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1046   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1047   | --sharedst | --shareds | --shared | --share | --shar \
1048   | --sha | --sh)
1049     ac_prev=sharedstatedir ;;
1050   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1051   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1052   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1053   | --sha=* | --sh=*)
1054     sharedstatedir=$ac_optarg ;;
1055
1056   -site | --site | --sit)
1057     ac_prev=site ;;
1058   -site=* | --site=* | --sit=*)
1059     site=$ac_optarg ;;
1060
1061   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1062     ac_prev=srcdir ;;
1063   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1064     srcdir=$ac_optarg ;;
1065
1066   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1067   | --syscon | --sysco | --sysc | --sys | --sy)
1068     ac_prev=sysconfdir ;;
1069   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1070   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1071     sysconfdir=$ac_optarg ;;
1072
1073   -target | --target | --targe | --targ | --tar | --ta | --t)
1074     ac_prev=target_alias ;;
1075   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1076     target_alias=$ac_optarg ;;
1077
1078   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1079     verbose=yes ;;
1080
1081   -version | --version | --versio | --versi | --vers | -V)
1082     ac_init_version=: ;;
1083
1084   -with-* | --with-*)
1085     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1086     # Reject names that are not valid shell variable names.
1087     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1089    { (exit 1); exit 1; }; }
1090     ac_useropt_orig=$ac_useropt
1091     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092     case $ac_user_opts in
1093       *"
1094 "with_$ac_useropt"
1095 "*) ;;
1096       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1097          ac_unrecognized_sep=', ';;
1098     esac
1099     eval with_$ac_useropt=\$ac_optarg ;;
1100
1101   -without-* | --without-*)
1102     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1103     # Reject names that are not valid shell variable names.
1104     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1106    { (exit 1); exit 1; }; }
1107     ac_useropt_orig=$ac_useropt
1108     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109     case $ac_user_opts in
1110       *"
1111 "with_$ac_useropt"
1112 "*) ;;
1113       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1114          ac_unrecognized_sep=', ';;
1115     esac
1116     eval with_$ac_useropt=no ;;
1117
1118   --x)
1119     # Obsolete; use --with-x.
1120     with_x=yes ;;
1121
1122   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1123   | --x-incl | --x-inc | --x-in | --x-i)
1124     ac_prev=x_includes ;;
1125   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1126   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1127     x_includes=$ac_optarg ;;
1128
1129   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1130   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1131     ac_prev=x_libraries ;;
1132   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1133   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1134     x_libraries=$ac_optarg ;;
1135
1136   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1137 Try \`$0 --help' for more information." >&2
1138    { (exit 1); exit 1; }; }
1139     ;;
1140
1141   *=*)
1142     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1143     # Reject names that are not valid shell variable names.
1144     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1145       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1146    { (exit 1); exit 1; }; }
1147     eval $ac_envvar=\$ac_optarg
1148     export $ac_envvar ;;
1149
1150   *)
1151     # FIXME: should be removed in autoconf 3.0.
1152     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1153     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1154       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1155     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1156     ;;
1157
1158   esac
1159 done
1160
1161 if test -n "$ac_prev"; then
1162   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1163   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1164    { (exit 1); exit 1; }; }
1165 fi
1166
1167 if test -n "$ac_unrecognized_opts"; then
1168   case $enable_option_checking in
1169     no) ;;
1170     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1171    { (exit 1); exit 1; }; } ;;
1172     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1173   esac
1174 fi
1175
1176 # Check all directory arguments for consistency.
1177 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178                 datadir sysconfdir sharedstatedir localstatedir includedir \
1179                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180                 libdir localedir mandir
1181 do
1182   eval ac_val=\$$ac_var
1183   # Remove trailing slashes.
1184   case $ac_val in
1185     */ )
1186       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1187       eval $ac_var=\$ac_val;;
1188   esac
1189   # Be sure to have absolute directory names.
1190   case $ac_val in
1191     [\\/$]* | ?:[\\/]* )  continue;;
1192     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1193   esac
1194   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1195    { (exit 1); exit 1; }; }
1196 done
1197
1198 # There might be people who depend on the old broken behavior: `$host'
1199 # used to hold the argument of --host etc.
1200 # FIXME: To remove some day.
1201 build=$build_alias
1202 host=$host_alias
1203 target=$target_alias
1204
1205 # FIXME: To remove some day.
1206 if test "x$host_alias" != x; then
1207   if test "x$build_alias" = x; then
1208     cross_compiling=maybe
1209     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1210     If a cross compiler is detected then cross compile mode will be used." >&2
1211   elif test "x$build_alias" != "x$host_alias"; then
1212     cross_compiling=yes
1213   fi
1214 fi
1215
1216 ac_tool_prefix=
1217 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1218
1219 test "$silent" = yes && exec 6>/dev/null
1220
1221
1222 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1223 ac_ls_di=`ls -di .` &&
1224 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1225   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1226    { (exit 1); exit 1; }; }
1227 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1228   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1229    { (exit 1); exit 1; }; }
1230
1231
1232 # Find the source files, if location was not specified.
1233 if test -z "$srcdir"; then
1234   ac_srcdir_defaulted=yes
1235   # Try the directory containing this script, then the parent directory.
1236   ac_confdir=`$as_dirname -- "$as_myself" ||
1237 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238          X"$as_myself" : 'X\(//\)[^/]' \| \
1239          X"$as_myself" : 'X\(//\)$' \| \
1240          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241 $as_echo X"$as_myself" |
1242     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243             s//\1/
1244             q
1245           }
1246           /^X\(\/\/\)[^/].*/{
1247             s//\1/
1248             q
1249           }
1250           /^X\(\/\/\)$/{
1251             s//\1/
1252             q
1253           }
1254           /^X\(\/\).*/{
1255             s//\1/
1256             q
1257           }
1258           s/.*/./; q'`
1259   srcdir=$ac_confdir
1260   if test ! -r "$srcdir/$ac_unique_file"; then
1261     srcdir=..
1262   fi
1263 else
1264   ac_srcdir_defaulted=no
1265 fi
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1269    { (exit 1); exit 1; }; }
1270 fi
1271 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1272 ac_abs_confdir=`(
1273         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1274    { (exit 1); exit 1; }; }
1275         pwd)`
1276 # When building in place, set srcdir=.
1277 if test "$ac_abs_confdir" = "$ac_pwd"; then
1278   srcdir=.
1279 fi
1280 # Remove unnecessary trailing slashes from srcdir.
1281 # Double slashes in file names in object file debugging info
1282 # mess up M-x gdb in Emacs.
1283 case $srcdir in
1284 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1285 esac
1286 for ac_var in $ac_precious_vars; do
1287   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1288   eval ac_env_${ac_var}_value=\$${ac_var}
1289   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1290   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1291 done
1292
1293 #
1294 # Report the --help message.
1295 #
1296 if test "$ac_init_help" = "long"; then
1297   # Omit some internal or obsolete options to make the list less imposing.
1298   # This message is too long to be a string in the A/UX 3.1 sh.
1299   cat <<_ACEOF
1300 \`configure' configures islib 1.0.0 to adapt to many kinds of systems.
1301
1302 Usage: $0 [OPTION]... [VAR=VALUE]...
1303
1304 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1305 VAR=VALUE.  See below for descriptions of some of the useful variables.
1306
1307 Defaults for the options are specified in brackets.
1308
1309 Configuration:
1310   -h, --help              display this help and exit
1311       --help=short        display options specific to this package
1312       --help=recursive    display the short help of all the included packages
1313   -V, --version           display version information and exit
1314   -q, --quiet, --silent   do not print \`checking...' messages
1315       --cache-file=FILE   cache test results in FILE [disabled]
1316   -C, --config-cache      alias for \`--cache-file=config.cache'
1317   -n, --no-create         do not create output files
1318       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1319
1320 Installation directories:
1321   --prefix=PREFIX         install architecture-independent files in PREFIX
1322                           [$ac_default_prefix]
1323   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1324                           [PREFIX]
1325
1326 By default, \`make install' will install all the files in
1327 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1328 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1329 for instance \`--prefix=\$HOME'.
1330
1331 For better control, use the options below.
1332
1333 Fine tuning of the installation directories:
1334   --bindir=DIR            user executables [EPREFIX/bin]
1335   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1336   --libexecdir=DIR        program executables [EPREFIX/libexec]
1337   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1338   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1339   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1340   --libdir=DIR            object code libraries [EPREFIX/lib]
1341   --includedir=DIR        C header files [PREFIX/include]
1342   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1343   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1344   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1345   --infodir=DIR           info documentation [DATAROOTDIR/info]
1346   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1347   --mandir=DIR            man documentation [DATAROOTDIR/man]
1348   --docdir=DIR            documentation root [DATAROOTDIR/doc/islib]
1349   --htmldir=DIR           html documentation [DOCDIR]
1350   --dvidir=DIR            dvi documentation [DOCDIR]
1351   --pdfdir=DIR            pdf documentation [DOCDIR]
1352   --psdir=DIR             ps documentation [DOCDIR]
1353 _ACEOF
1354
1355   cat <<\_ACEOF
1356
1357 Program names:
1358   --program-prefix=PREFIX            prepend PREFIX to installed program names
1359   --program-suffix=SUFFIX            append SUFFIX to installed program names
1360   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1361 _ACEOF
1362 fi
1363
1364 if test -n "$ac_init_help"; then
1365   case $ac_init_help in
1366      short | recursive ) echo "Configuration of islib 1.0.0:";;
1367    esac
1368   cat <<\_ACEOF
1369
1370 Optional Features:
1371   --disable-option-checking  ignore unrecognized --enable/--with options
1372   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1373   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1374   --enable-debug          Turn on debugging
1375   --disable-dependency-tracking  speeds up one-time build
1376   --enable-dependency-tracking   do not reject slow dependency extractors
1377
1378 Some influential environment variables:
1379   CXX         C++ compiler command
1380   CXXFLAGS    C++ compiler flags
1381   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1382               nonstandard directory <lib dir>
1383   LIBS        libraries to pass to the linker, e.g. -l<library>
1384   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1385               you have headers in a nonstandard directory <include dir>
1386   CC          C compiler command
1387   CFLAGS      C compiler flags
1388   CPP         C preprocessor
1389
1390 Use these variables to override the choices made by `configure' or to help
1391 it to find libraries and programs with nonstandard names/locations.
1392
1393 Report bugs to <issoftware@users.sourceforge.jp>.
1394 _ACEOF
1395 ac_status=$?
1396 fi
1397
1398 if test "$ac_init_help" = "recursive"; then
1399   # If there are subdirs, report their specific --help.
1400   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1401     test -d "$ac_dir" ||
1402       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1403       continue
1404     ac_builddir=.
1405
1406 case "$ac_dir" in
1407 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1408 *)
1409   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1410   # A ".." for each directory in $ac_dir_suffix.
1411   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1412   case $ac_top_builddir_sub in
1413   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1415   esac ;;
1416 esac
1417 ac_abs_top_builddir=$ac_pwd
1418 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1419 # for backward compatibility:
1420 ac_top_builddir=$ac_top_build_prefix
1421
1422 case $srcdir in
1423   .)  # We are building in place.
1424     ac_srcdir=.
1425     ac_top_srcdir=$ac_top_builddir_sub
1426     ac_abs_top_srcdir=$ac_pwd ;;
1427   [\\/]* | ?:[\\/]* )  # Absolute name.
1428     ac_srcdir=$srcdir$ac_dir_suffix;
1429     ac_top_srcdir=$srcdir
1430     ac_abs_top_srcdir=$srcdir ;;
1431   *) # Relative name.
1432     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1433     ac_top_srcdir=$ac_top_build_prefix$srcdir
1434     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1435 esac
1436 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1437
1438     cd "$ac_dir" || { ac_status=$?; continue; }
1439     # Check for guested configure.
1440     if test -f "$ac_srcdir/configure.gnu"; then
1441       echo &&
1442       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1443     elif test -f "$ac_srcdir/configure"; then
1444       echo &&
1445       $SHELL "$ac_srcdir/configure" --help=recursive
1446     else
1447       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1448     fi || ac_status=$?
1449     cd "$ac_pwd" || { ac_status=$?; break; }
1450   done
1451 fi
1452
1453 test -n "$ac_init_help" && exit $ac_status
1454 if $ac_init_version; then
1455   cat <<\_ACEOF
1456 islib configure 1.0.0
1457 generated by GNU Autoconf 2.63
1458
1459 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1460 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1461 This configure script is free software; the Free Software Foundation
1462 gives unlimited permission to copy, distribute and modify it.
1463 _ACEOF
1464   exit
1465 fi
1466 cat >config.log <<_ACEOF
1467 This file contains any messages produced by compilers while
1468 running configure, to aid debugging if configure makes a mistake.
1469
1470 It was created by islib $as_me 1.0.0, which was
1471 generated by GNU Autoconf 2.63.  Invocation command line was
1472
1473   $ $0 $@
1474
1475 _ACEOF
1476 exec 5>>config.log
1477 {
1478 cat <<_ASUNAME
1479 ## --------- ##
1480 ## Platform. ##
1481 ## --------- ##
1482
1483 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1484 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1485 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1486 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1487 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1488
1489 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1490 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1491
1492 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1493 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1494 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1495 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1496 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1497 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1498 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1499
1500 _ASUNAME
1501
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503 for as_dir in $PATH
1504 do
1505   IFS=$as_save_IFS
1506   test -z "$as_dir" && as_dir=.
1507   $as_echo "PATH: $as_dir"
1508 done
1509 IFS=$as_save_IFS
1510
1511 } >&5
1512
1513 cat >&5 <<_ACEOF
1514
1515
1516 ## ----------- ##
1517 ## Core tests. ##
1518 ## ----------- ##
1519
1520 _ACEOF
1521
1522
1523 # Keep a trace of the command line.
1524 # Strip out --no-create and --no-recursion so they do not pile up.
1525 # Strip out --silent because we don't want to record it for future runs.
1526 # Also quote any args containing shell meta-characters.
1527 # Make two passes to allow for proper duplicate-argument suppression.
1528 ac_configure_args=
1529 ac_configure_args0=
1530 ac_configure_args1=
1531 ac_must_keep_next=false
1532 for ac_pass in 1 2
1533 do
1534   for ac_arg
1535   do
1536     case $ac_arg in
1537     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1538     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1539     | -silent | --silent | --silen | --sile | --sil)
1540       continue ;;
1541     *\'*)
1542       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1543     esac
1544     case $ac_pass in
1545     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1546     2)
1547       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1548       if test $ac_must_keep_next = true; then
1549         ac_must_keep_next=false # Got value, back to normal.
1550       else
1551         case $ac_arg in
1552           *=* | --config-cache | -C | -disable-* | --disable-* \
1553           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1554           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1555           | -with-* | --with-* | -without-* | --without-* | --x)
1556             case "$ac_configure_args0 " in
1557               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1558             esac
1559             ;;
1560           -* ) ac_must_keep_next=true ;;
1561         esac
1562       fi
1563       ac_configure_args="$ac_configure_args '$ac_arg'"
1564       ;;
1565     esac
1566   done
1567 done
1568 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1569 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1570
1571 # When interrupted or exit'd, cleanup temporary files, and complete
1572 # config.log.  We remove comments because anyway the quotes in there
1573 # would cause problems or look ugly.
1574 # WARNING: Use '\'' to represent an apostrophe within the trap.
1575 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1576 trap 'exit_status=$?
1577   # Save into config.log some information that might help in debugging.
1578   {
1579     echo
1580
1581     cat <<\_ASBOX
1582 ## ---------------- ##
1583 ## Cache variables. ##
1584 ## ---------------- ##
1585 _ASBOX
1586     echo
1587     # The following way of writing the cache mishandles newlines in values,
1588 (
1589   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1590     eval ac_val=\$$ac_var
1591     case $ac_val in #(
1592     *${as_nl}*)
1593       case $ac_var in #(
1594       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1595 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1596       esac
1597       case $ac_var in #(
1598       _ | IFS | as_nl) ;; #(
1599       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1600       *) $as_unset $ac_var ;;
1601       esac ;;
1602     esac
1603   done
1604   (set) 2>&1 |
1605     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1606     *${as_nl}ac_space=\ *)
1607       sed -n \
1608         "s/'\''/'\''\\\\'\'''\''/g;
1609           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1610       ;; #(
1611     *)
1612       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1613       ;;
1614     esac |
1615     sort
1616 )
1617     echo
1618
1619     cat <<\_ASBOX
1620 ## ----------------- ##
1621 ## Output variables. ##
1622 ## ----------------- ##
1623 _ASBOX
1624     echo
1625     for ac_var in $ac_subst_vars
1626     do
1627       eval ac_val=\$$ac_var
1628       case $ac_val in
1629       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1630       esac
1631       $as_echo "$ac_var='\''$ac_val'\''"
1632     done | sort
1633     echo
1634
1635     if test -n "$ac_subst_files"; then
1636       cat <<\_ASBOX
1637 ## ------------------- ##
1638 ## File substitutions. ##
1639 ## ------------------- ##
1640 _ASBOX
1641       echo
1642       for ac_var in $ac_subst_files
1643       do
1644         eval ac_val=\$$ac_var
1645         case $ac_val in
1646         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1647         esac
1648         $as_echo "$ac_var='\''$ac_val'\''"
1649       done | sort
1650       echo
1651     fi
1652
1653     if test -s confdefs.h; then
1654       cat <<\_ASBOX
1655 ## ----------- ##
1656 ## confdefs.h. ##
1657 ## ----------- ##
1658 _ASBOX
1659       echo
1660       cat confdefs.h
1661       echo
1662     fi
1663     test "$ac_signal" != 0 &&
1664       $as_echo "$as_me: caught signal $ac_signal"
1665     $as_echo "$as_me: exit $exit_status"
1666   } >&5
1667   rm -f core *.core core.conftest.* &&
1668     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1669     exit $exit_status
1670 ' 0
1671 for ac_signal in 1 2 13 15; do
1672   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1673 done
1674 ac_signal=0
1675
1676 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1677 rm -f -r conftest* confdefs.h
1678
1679 # Predefined preprocessor variables.
1680
1681 cat >>confdefs.h <<_ACEOF
1682 #define PACKAGE_NAME "$PACKAGE_NAME"
1683 _ACEOF
1684
1685
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1688 _ACEOF
1689
1690
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1693 _ACEOF
1694
1695
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_STRING "$PACKAGE_STRING"
1698 _ACEOF
1699
1700
1701 cat >>confdefs.h <<_ACEOF
1702 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1703 _ACEOF
1704
1705
1706 # Let the site file select an alternate cache file if it wants to.
1707 # Prefer an explicitly selected file to automatically selected ones.
1708 ac_site_file1=NONE
1709 ac_site_file2=NONE
1710 if test -n "$CONFIG_SITE"; then
1711   ac_site_file1=$CONFIG_SITE
1712 elif test "x$prefix" != xNONE; then
1713   ac_site_file1=$prefix/share/config.site
1714   ac_site_file2=$prefix/etc/config.site
1715 else
1716   ac_site_file1=$ac_default_prefix/share/config.site
1717   ac_site_file2=$ac_default_prefix/etc/config.site
1718 fi
1719 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1720 do
1721   test "x$ac_site_file" = xNONE && continue
1722   if test -r "$ac_site_file"; then
1723     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1724 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1725     sed 's/^/| /' "$ac_site_file" >&5
1726     . "$ac_site_file"
1727   fi
1728 done
1729
1730 if test -r "$cache_file"; then
1731   # Some versions of bash will fail to source /dev/null (special
1732   # files actually), so we avoid doing that.
1733   if test -f "$cache_file"; then
1734     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1735 $as_echo "$as_me: loading cache $cache_file" >&6;}
1736     case $cache_file in
1737       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1738       *)                      . "./$cache_file";;
1739     esac
1740   fi
1741 else
1742   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1743 $as_echo "$as_me: creating cache $cache_file" >&6;}
1744   >$cache_file
1745 fi
1746
1747 # Check that the precious variables saved in the cache have kept the same
1748 # value.
1749 ac_cache_corrupted=false
1750 for ac_var in $ac_precious_vars; do
1751   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1752   eval ac_new_set=\$ac_env_${ac_var}_set
1753   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1754   eval ac_new_val=\$ac_env_${ac_var}_value
1755   case $ac_old_set,$ac_new_set in
1756     set,)
1757       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1758 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1759       ac_cache_corrupted=: ;;
1760     ,set)
1761       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1762 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1763       ac_cache_corrupted=: ;;
1764     ,);;
1765     *)
1766       if test "x$ac_old_val" != "x$ac_new_val"; then
1767         # differences in whitespace do not lead to failure.
1768         ac_old_val_w=`echo x $ac_old_val`
1769         ac_new_val_w=`echo x $ac_new_val`
1770         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1771           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1772 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1773           ac_cache_corrupted=:
1774         else
1775           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1776 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1777           eval $ac_var=\$ac_old_val
1778         fi
1779         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1780 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1781         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1782 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1783       fi;;
1784   esac
1785   # Pass precious variables to config.status.
1786   if test "$ac_new_set" = set; then
1787     case $ac_new_val in
1788     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1789     *) ac_arg=$ac_var=$ac_new_val ;;
1790     esac
1791     case " $ac_configure_args " in
1792       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1793       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1794     esac
1795   fi
1796 done
1797 if $ac_cache_corrupted; then
1798   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1800   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1801 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1802   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1803 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1804    { (exit 1); exit 1; }; }
1805 fi
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831 ac_ext=c
1832 ac_cpp='$CPP $CPPFLAGS'
1833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1836
1837
1838
1839 ac_config_headers="$ac_config_headers config.h"
1840
1841
1842 # Check whether --enable-debug was given.
1843 if test "${enable_debug+set}" = set; then
1844   enableval=$enable_debug; enable_debug="$enableval"
1845 else
1846   enable_fcgi="no"
1847 fi
1848
1849
1850 am__api_version='1.10'
1851
1852 ac_aux_dir=
1853 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1854   if test -f "$ac_dir/install-sh"; then
1855     ac_aux_dir=$ac_dir
1856     ac_install_sh="$ac_aux_dir/install-sh -c"
1857     break
1858   elif test -f "$ac_dir/install.sh"; then
1859     ac_aux_dir=$ac_dir
1860     ac_install_sh="$ac_aux_dir/install.sh -c"
1861     break
1862   elif test -f "$ac_dir/shtool"; then
1863     ac_aux_dir=$ac_dir
1864     ac_install_sh="$ac_aux_dir/shtool install -c"
1865     break
1866   fi
1867 done
1868 if test -z "$ac_aux_dir"; then
1869   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1870 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1871    { (exit 1); exit 1; }; }
1872 fi
1873
1874 # These three variables are undocumented and unsupported,
1875 # and are intended to be withdrawn in a future Autoconf release.
1876 # They can cause serious problems if a builder's source tree is in a directory
1877 # whose full name contains unusual characters.
1878 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1879 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1880 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1881
1882
1883 # Find a good install program.  We prefer a C program (faster),
1884 # so one script is as good as another.  But avoid the broken or
1885 # incompatible versions:
1886 # SysV /etc/install, /usr/sbin/install
1887 # SunOS /usr/etc/install
1888 # IRIX /sbin/install
1889 # AIX /bin/install
1890 # AmigaOS /C/install, which installs bootblocks on floppy discs
1891 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1892 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1893 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1894 # OS/2's system install, which has a completely different semantic
1895 # ./install, which can be erroneously created by make from ./install.sh.
1896 # Reject install programs that cannot install multiple files.
1897 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1898 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1899 if test -z "$INSTALL"; then
1900 if test "${ac_cv_path_install+set}" = set; then
1901   $as_echo_n "(cached) " >&6
1902 else
1903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 for as_dir in $PATH
1905 do
1906   IFS=$as_save_IFS
1907   test -z "$as_dir" && as_dir=.
1908   # Account for people who put trailing slashes in PATH elements.
1909 case $as_dir/ in
1910   ./ | .// | /cC/* | \
1911   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1912   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1913   /usr/ucb/* ) ;;
1914   *)
1915     # OSF1 and SCO ODT 3.0 have their own names for install.
1916     # Don't use installbsd from OSF since it installs stuff as root
1917     # by default.
1918     for ac_prog in ginstall scoinst install; do
1919       for ac_exec_ext in '' $ac_executable_extensions; do
1920         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1921           if test $ac_prog = install &&
1922             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1923             # AIX install.  It has an incompatible calling convention.
1924             :
1925           elif test $ac_prog = install &&
1926             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1927             # program-specific install script used by HP pwplus--don't use.
1928             :
1929           else
1930             rm -rf conftest.one conftest.two conftest.dir
1931             echo one > conftest.one
1932             echo two > conftest.two
1933             mkdir conftest.dir
1934             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1935               test -s conftest.one && test -s conftest.two &&
1936               test -s conftest.dir/conftest.one &&
1937               test -s conftest.dir/conftest.two
1938             then
1939               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1940               break 3
1941             fi
1942           fi
1943         fi
1944       done
1945     done
1946     ;;
1947 esac
1948
1949 done
1950 IFS=$as_save_IFS
1951
1952 rm -rf conftest.one conftest.two conftest.dir
1953
1954 fi
1955   if test "${ac_cv_path_install+set}" = set; then
1956     INSTALL=$ac_cv_path_install
1957   else
1958     # As a last resort, use the slow shell script.  Don't cache a
1959     # value for INSTALL within a source directory, because that will
1960     # break other packages using the cache if that directory is
1961     # removed, or if the value is a relative name.
1962     INSTALL=$ac_install_sh
1963   fi
1964 fi
1965 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
1966 $as_echo "$INSTALL" >&6; }
1967
1968 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1969 # It thinks the first close brace ends the variable substitution.
1970 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1971
1972 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1973
1974 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1975
1976 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1977 $as_echo_n "checking whether build environment is sane... " >&6; }
1978 # Just in case
1979 sleep 1
1980 echo timestamp > conftest.file
1981 # Do `set' in a subshell so we don't clobber the current shell's
1982 # arguments.  Must try -L first in case configure is actually a
1983 # symlink; some systems play weird games with the mod time of symlinks
1984 # (eg FreeBSD returns the mod time of the symlink's containing
1985 # directory).
1986 if (
1987    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1988    if test "$*" = "X"; then
1989       # -L didn't work.
1990       set X `ls -t $srcdir/configure conftest.file`
1991    fi
1992    rm -f conftest.file
1993    if test "$*" != "X $srcdir/configure conftest.file" \
1994       && test "$*" != "X conftest.file $srcdir/configure"; then
1995
1996       # If neither matched, then we have a broken ls.  This can happen
1997       # if, for instance, CONFIG_SHELL is bash and it inherits a
1998       # broken ls alias from the environment.  This has actually
1999       # happened.  Such a system could not be considered "sane".
2000       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2001 alias in your environment" >&5
2002 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2003 alias in your environment" >&2;}
2004    { (exit 1); exit 1; }; }
2005    fi
2006
2007    test "$2" = conftest.file
2008    )
2009 then
2010    # Ok.
2011    :
2012 else
2013    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2014 Check your system clock" >&5
2015 $as_echo "$as_me: error: newly created file is older than distributed files!
2016 Check your system clock" >&2;}
2017    { (exit 1); exit 1; }; }
2018 fi
2019 { $as_echo "$as_me:$LINENO: result: yes" >&5
2020 $as_echo "yes" >&6; }
2021 test "$program_prefix" != NONE &&
2022   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2023 # Use a double $ so make ignores it.
2024 test "$program_suffix" != NONE &&
2025   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2026 # Double any \ or $.
2027 # By default was `s,x,x', remove it if useless.
2028 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2029 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2030
2031 # expand $ac_aux_dir to an absolute path
2032 am_aux_dir=`cd $ac_aux_dir && pwd`
2033
2034 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2035 # Use eval to expand $SHELL
2036 if eval "$MISSING --run true"; then
2037   am_missing_run="$MISSING --run "
2038 else
2039   am_missing_run=
2040   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2041 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2042 fi
2043
2044 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2045 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2046 if test -z "$MKDIR_P"; then
2047   if test "${ac_cv_path_mkdir+set}" = set; then
2048   $as_echo_n "(cached) " >&6
2049 else
2050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2052 do
2053   IFS=$as_save_IFS
2054   test -z "$as_dir" && as_dir=.
2055   for ac_prog in mkdir gmkdir; do
2056          for ac_exec_ext in '' $ac_executable_extensions; do
2057            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2058            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2059              'mkdir (GNU coreutils) '* | \
2060              'mkdir (coreutils) '* | \
2061              'mkdir (fileutils) '4.1*)
2062                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2063                break 3;;
2064            esac
2065          done
2066        done
2067 done
2068 IFS=$as_save_IFS
2069
2070 fi
2071
2072   if test "${ac_cv_path_mkdir+set}" = set; then
2073     MKDIR_P="$ac_cv_path_mkdir -p"
2074   else
2075     # As a last resort, use the slow shell script.  Don't cache a
2076     # value for MKDIR_P within a source directory, because that will
2077     # break other packages using the cache if that directory is
2078     # removed, or if the value is a relative name.
2079     test -d ./--version && rmdir ./--version
2080     MKDIR_P="$ac_install_sh -d"
2081   fi
2082 fi
2083 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2084 $as_echo "$MKDIR_P" >&6; }
2085
2086 mkdir_p="$MKDIR_P"
2087 case $mkdir_p in
2088   [\\/$]* | ?:[\\/]*) ;;
2089   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2090 esac
2091
2092 for ac_prog in gawk mawk nawk awk
2093 do
2094   # Extract the first word of "$ac_prog", so it can be a program name with args.
2095 set dummy $ac_prog; ac_word=$2
2096 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 $as_echo_n "checking for $ac_word... " >&6; }
2098 if test "${ac_cv_prog_AWK+set}" = set; then
2099   $as_echo_n "(cached) " >&6
2100 else
2101   if test -n "$AWK"; then
2102   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2103 else
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 for as_dir in $PATH
2106 do
2107   IFS=$as_save_IFS
2108   test -z "$as_dir" && as_dir=.
2109   for ac_exec_ext in '' $ac_executable_extensions; do
2110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2111     ac_cv_prog_AWK="$ac_prog"
2112     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113     break 2
2114   fi
2115 done
2116 done
2117 IFS=$as_save_IFS
2118
2119 fi
2120 fi
2121 AWK=$ac_cv_prog_AWK
2122 if test -n "$AWK"; then
2123   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2124 $as_echo "$AWK" >&6; }
2125 else
2126   { $as_echo "$as_me:$LINENO: result: no" >&5
2127 $as_echo "no" >&6; }
2128 fi
2129
2130
2131   test -n "$AWK" && break
2132 done
2133
2134 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2135 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2136 set x ${MAKE-make}
2137 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2138 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2139   $as_echo_n "(cached) " >&6
2140 else
2141   cat >conftest.make <<\_ACEOF
2142 SHELL = /bin/sh
2143 all:
2144         @echo '@@@%%%=$(MAKE)=@@@%%%'
2145 _ACEOF
2146 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2147 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2148   *@@@%%%=?*=@@@%%%*)
2149     eval ac_cv_prog_make_${ac_make}_set=yes;;
2150   *)
2151     eval ac_cv_prog_make_${ac_make}_set=no;;
2152 esac
2153 rm -f conftest.make
2154 fi
2155 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2156   { $as_echo "$as_me:$LINENO: result: yes" >&5
2157 $as_echo "yes" >&6; }
2158   SET_MAKE=
2159 else
2160   { $as_echo "$as_me:$LINENO: result: no" >&5
2161 $as_echo "no" >&6; }
2162   SET_MAKE="MAKE=${MAKE-make}"
2163 fi
2164
2165 rm -rf .tst 2>/dev/null
2166 mkdir .tst 2>/dev/null
2167 if test -d .tst; then
2168   am__leading_dot=.
2169 else
2170   am__leading_dot=_
2171 fi
2172 rmdir .tst 2>/dev/null
2173
2174 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2175   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2176   # is not polluted with repeated "-I."
2177   am__isrc=' -I$(srcdir)'
2178   # test to see if srcdir already configured
2179   if test -f $srcdir/config.status; then
2180     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2181 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2182    { (exit 1); exit 1; }; }
2183   fi
2184 fi
2185
2186 # test whether we have cygpath
2187 if test -z "$CYGPATH_W"; then
2188   if (cygpath --version) >/dev/null 2>/dev/null; then
2189     CYGPATH_W='cygpath -w'
2190   else
2191     CYGPATH_W=echo
2192   fi
2193 fi
2194
2195
2196 # Define the identity of the package.
2197  PACKAGE=$PACKAGE_NAME
2198  VERSION=$PACKAGE_VERSION
2199
2200
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE "$PACKAGE"
2203 _ACEOF
2204
2205
2206 cat >>confdefs.h <<_ACEOF
2207 #define VERSION "$VERSION"
2208 _ACEOF
2209
2210 # Some tools Automake needs.
2211
2212 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2213
2214
2215 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2216
2217
2218 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2219
2220
2221 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2222
2223
2224 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2225
2226 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2227
2228 # Installed binaries are usually stripped using `strip' when the user
2229 # run `make install-strip'.  However `strip' might not be the right
2230 # tool to use in cross-compilation environments, therefore Automake
2231 # will honor the `STRIP' environment variable to overrule this program.
2232 if test "$cross_compiling" != no; then
2233   if test -n "$ac_tool_prefix"; then
2234   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2235 set dummy ${ac_tool_prefix}strip; ac_word=$2
2236 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2237 $as_echo_n "checking for $ac_word... " >&6; }
2238 if test "${ac_cv_prog_STRIP+set}" = set; then
2239   $as_echo_n "(cached) " >&6
2240 else
2241   if test -n "$STRIP"; then
2242   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2243 else
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 for as_dir in $PATH
2246 do
2247   IFS=$as_save_IFS
2248   test -z "$as_dir" && as_dir=.
2249   for ac_exec_ext in '' $ac_executable_extensions; do
2250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2251     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2252     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253     break 2
2254   fi
2255 done
2256 done
2257 IFS=$as_save_IFS
2258
2259 fi
2260 fi
2261 STRIP=$ac_cv_prog_STRIP
2262 if test -n "$STRIP"; then
2263   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2264 $as_echo "$STRIP" >&6; }
2265 else
2266   { $as_echo "$as_me:$LINENO: result: no" >&5
2267 $as_echo "no" >&6; }
2268 fi
2269
2270
2271 fi
2272 if test -z "$ac_cv_prog_STRIP"; then
2273   ac_ct_STRIP=$STRIP
2274   # Extract the first word of "strip", so it can be a program name with args.
2275 set dummy strip; ac_word=$2
2276 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2277 $as_echo_n "checking for $ac_word... " >&6; }
2278 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2279   $as_echo_n "(cached) " >&6
2280 else
2281   if test -n "$ac_ct_STRIP"; then
2282   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2283 else
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 for as_dir in $PATH
2286 do
2287   IFS=$as_save_IFS
2288   test -z "$as_dir" && as_dir=.
2289   for ac_exec_ext in '' $ac_executable_extensions; do
2290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291     ac_cv_prog_ac_ct_STRIP="strip"
2292     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2293     break 2
2294   fi
2295 done
2296 done
2297 IFS=$as_save_IFS
2298
2299 fi
2300 fi
2301 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2302 if test -n "$ac_ct_STRIP"; then
2303   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2304 $as_echo "$ac_ct_STRIP" >&6; }
2305 else
2306   { $as_echo "$as_me:$LINENO: result: no" >&5
2307 $as_echo "no" >&6; }
2308 fi
2309
2310   if test "x$ac_ct_STRIP" = x; then
2311     STRIP=":"
2312   else
2313     case $cross_compiling:$ac_tool_warned in
2314 yes:)
2315 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2317 ac_tool_warned=yes ;;
2318 esac
2319     STRIP=$ac_ct_STRIP
2320   fi
2321 else
2322   STRIP="$ac_cv_prog_STRIP"
2323 fi
2324
2325 fi
2326 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2327
2328 # We need awk for the "check" target.  The system "awk" is bad on
2329 # some platforms.
2330 # Always define AMTAR for backward compatibility.
2331
2332 AMTAR=${AMTAR-"${am_missing_run}tar"}
2333
2334 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2335
2336
2337
2338
2339
2340  if test "$enable_debug" = "yes"; then
2341   DEBUG_TRUE=
2342   DEBUG_FALSE='#'
2343 else
2344   DEBUG_TRUE='#'
2345   DEBUG_FALSE=
2346 fi
2347
2348
2349 # Checks for programs.
2350 ac_ext=cpp
2351 ac_cpp='$CXXCPP $CPPFLAGS'
2352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2355 if test -z "$CXX"; then
2356   if test -n "$CCC"; then
2357     CXX=$CCC
2358   else
2359     if test -n "$ac_tool_prefix"; then
2360   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2361   do
2362     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2364 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 $as_echo_n "checking for $ac_word... " >&6; }
2366 if test "${ac_cv_prog_CXX+set}" = set; then
2367   $as_echo_n "(cached) " >&6
2368 else
2369   if test -n "$CXX"; then
2370   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375   IFS=$as_save_IFS
2376   test -z "$as_dir" && as_dir=.
2377   for ac_exec_ext in '' $ac_executable_extensions; do
2378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2380     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381     break 2
2382   fi
2383 done
2384 done
2385 IFS=$as_save_IFS
2386
2387 fi
2388 fi
2389 CXX=$ac_cv_prog_CXX
2390 if test -n "$CXX"; then
2391   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
2392 $as_echo "$CXX" >&6; }
2393 else
2394   { $as_echo "$as_me:$LINENO: result: no" >&5
2395 $as_echo "no" >&6; }
2396 fi
2397
2398
2399     test -n "$CXX" && break
2400   done
2401 fi
2402 if test -z "$CXX"; then
2403   ac_ct_CXX=$CXX
2404   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2405 do
2406   # Extract the first word of "$ac_prog", so it can be a program name with args.
2407 set dummy $ac_prog; ac_word=$2
2408 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2409 $as_echo_n "checking for $ac_word... " >&6; }
2410 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2411   $as_echo_n "(cached) " >&6
2412 else
2413   if test -n "$ac_ct_CXX"; then
2414   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2415 else
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2418 do
2419   IFS=$as_save_IFS
2420   test -z "$as_dir" && as_dir=.
2421   for ac_exec_ext in '' $ac_executable_extensions; do
2422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2423     ac_cv_prog_ac_ct_CXX="$ac_prog"
2424     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425     break 2
2426   fi
2427 done
2428 done
2429 IFS=$as_save_IFS
2430
2431 fi
2432 fi
2433 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2434 if test -n "$ac_ct_CXX"; then
2435   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2436 $as_echo "$ac_ct_CXX" >&6; }
2437 else
2438   { $as_echo "$as_me:$LINENO: result: no" >&5
2439 $as_echo "no" >&6; }
2440 fi
2441
2442
2443   test -n "$ac_ct_CXX" && break
2444 done
2445
2446   if test "x$ac_ct_CXX" = x; then
2447     CXX="g++"
2448   else
2449     case $cross_compiling:$ac_tool_warned in
2450 yes:)
2451 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2453 ac_tool_warned=yes ;;
2454 esac
2455     CXX=$ac_ct_CXX
2456   fi
2457 fi
2458
2459   fi
2460 fi
2461 # Provide some information about the compiler.
2462 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2463 set X $ac_compile
2464 ac_compiler=$2
2465 { (ac_try="$ac_compiler --version >&5"
2466 case "(($ac_try" in
2467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468   *) ac_try_echo=$ac_try;;
2469 esac
2470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2471 $as_echo "$ac_try_echo") >&5
2472   (eval "$ac_compiler --version >&5") 2>&5
2473   ac_status=$?
2474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); }
2476 { (ac_try="$ac_compiler -v >&5"
2477 case "(($ac_try" in
2478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479   *) ac_try_echo=$ac_try;;
2480 esac
2481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2482 $as_echo "$ac_try_echo") >&5
2483   (eval "$ac_compiler -v >&5") 2>&5
2484   ac_status=$?
2485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }
2487 { (ac_try="$ac_compiler -V >&5"
2488 case "(($ac_try" in
2489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490   *) ac_try_echo=$ac_try;;
2491 esac
2492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2493 $as_echo "$ac_try_echo") >&5
2494   (eval "$ac_compiler -V >&5") 2>&5
2495   ac_status=$?
2496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497   (exit $ac_status); }
2498
2499 cat >conftest.$ac_ext <<_ACEOF
2500 /* confdefs.h.  */
2501 _ACEOF
2502 cat confdefs.h >>conftest.$ac_ext
2503 cat >>conftest.$ac_ext <<_ACEOF
2504 /* end confdefs.h.  */
2505
2506 int
2507 main ()
2508 {
2509
2510   ;
2511   return 0;
2512 }
2513 _ACEOF
2514 ac_clean_files_save=$ac_clean_files
2515 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2516 # Try to create an executable without -o first, disregard a.out.
2517 # It will help us diagnose broken compilers, and finding out an intuition
2518 # of exeext.
2519 { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2520 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2521 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2522
2523 # The possible output files:
2524 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2525
2526 ac_rmfiles=
2527 for ac_file in $ac_files
2528 do
2529   case $ac_file in
2530     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2531     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2532   esac
2533 done
2534 rm -f $ac_rmfiles
2535
2536 if { (ac_try="$ac_link_default"
2537 case "(($ac_try" in
2538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539   *) ac_try_echo=$ac_try;;
2540 esac
2541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2542 $as_echo "$ac_try_echo") >&5
2543   (eval "$ac_link_default") 2>&5
2544   ac_status=$?
2545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); }; then
2547   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2548 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2549 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2550 # so that the user can short-circuit this test for compilers unknown to
2551 # Autoconf.
2552 for ac_file in $ac_files ''
2553 do
2554   test -f "$ac_file" || continue
2555   case $ac_file in
2556     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2557         ;;
2558     [ab].out )
2559         # We found the default executable, but exeext='' is most
2560         # certainly right.
2561         break;;
2562     *.* )
2563         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2564         then :; else
2565            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2566         fi
2567         # We set ac_cv_exeext here because the later test for it is not
2568         # safe: cross compilers may not add the suffix if given an `-o'
2569         # argument, so we may need to know it at that point already.
2570         # Even if this section looks crufty: it has the advantage of
2571         # actually working.
2572         break;;
2573     * )
2574         break;;
2575   esac
2576 done
2577 test "$ac_cv_exeext" = no && ac_cv_exeext=
2578
2579 else
2580   ac_file=''
2581 fi
2582
2583 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2584 $as_echo "$ac_file" >&6; }
2585 if test -z "$ac_file"; then
2586   $as_echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.$ac_ext >&5
2588
2589 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2591 { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2592 See \`config.log' for more details." >&5
2593 $as_echo "$as_me: error: C++ compiler cannot create executables
2594 See \`config.log' for more details." >&2;}
2595    { (exit 77); exit 77; }; }; }
2596 fi
2597
2598 ac_exeext=$ac_cv_exeext
2599
2600 # Check that the compiler produces executables we can run.  If not, either
2601 # the compiler is broken, or we cross compile.
2602 { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2603 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2604 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2605 # If not cross compiling, check that we can run a simple program.
2606 if test "$cross_compiling" != yes; then
2607   if { ac_try='./$ac_file'
2608   { (case "(($ac_try" in
2609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610   *) ac_try_echo=$ac_try;;
2611 esac
2612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2613 $as_echo "$ac_try_echo") >&5
2614   (eval "$ac_try") 2>&5
2615   ac_status=$?
2616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); }; }; then
2618     cross_compiling=no
2619   else
2620     if test "$cross_compiling" = maybe; then
2621         cross_compiling=yes
2622     else
2623         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2625 { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2626 If you meant to cross compile, use \`--host'.
2627 See \`config.log' for more details." >&5
2628 $as_echo "$as_me: error: cannot run C++ compiled programs.
2629 If you meant to cross compile, use \`--host'.
2630 See \`config.log' for more details." >&2;}
2631    { (exit 1); exit 1; }; }; }
2632     fi
2633   fi
2634 fi
2635 { $as_echo "$as_me:$LINENO: result: yes" >&5
2636 $as_echo "yes" >&6; }
2637
2638 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2639 ac_clean_files=$ac_clean_files_save
2640 # Check that the compiler produces executables we can run.  If not, either
2641 # the compiler is broken, or we cross compile.
2642 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2643 $as_echo_n "checking whether we are cross compiling... " >&6; }
2644 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2645 $as_echo "$cross_compiling" >&6; }
2646
2647 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2648 $as_echo_n "checking for suffix of executables... " >&6; }
2649 if { (ac_try="$ac_link"
2650 case "(($ac_try" in
2651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652   *) ac_try_echo=$ac_try;;
2653 esac
2654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2655 $as_echo "$ac_try_echo") >&5
2656   (eval "$ac_link") 2>&5
2657   ac_status=$?
2658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); }; then
2660   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2661 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2662 # work properly (i.e., refer to `conftest.exe'), while it won't with
2663 # `rm'.
2664 for ac_file in conftest.exe conftest conftest.*; do
2665   test -f "$ac_file" || continue
2666   case $ac_file in
2667     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2668     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2669           break;;
2670     * ) break;;
2671   esac
2672 done
2673 else
2674   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2676 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2677 See \`config.log' for more details." >&5
2678 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2679 See \`config.log' for more details." >&2;}
2680    { (exit 1); exit 1; }; }; }
2681 fi
2682
2683 rm -f conftest$ac_cv_exeext
2684 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2685 $as_echo "$ac_cv_exeext" >&6; }
2686
2687 rm -f conftest.$ac_ext
2688 EXEEXT=$ac_cv_exeext
2689 ac_exeext=$EXEEXT
2690 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2691 $as_echo_n "checking for suffix of object files... " >&6; }
2692 if test "${ac_cv_objext+set}" = set; then
2693   $as_echo_n "(cached) " >&6
2694 else
2695   cat >conftest.$ac_ext <<_ACEOF
2696 /* confdefs.h.  */
2697 _ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h.  */
2701
2702 int
2703 main ()
2704 {
2705
2706   ;
2707   return 0;
2708 }
2709 _ACEOF
2710 rm -f conftest.o conftest.obj
2711 if { (ac_try="$ac_compile"
2712 case "(($ac_try" in
2713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714   *) ac_try_echo=$ac_try;;
2715 esac
2716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2717 $as_echo "$ac_try_echo") >&5
2718   (eval "$ac_compile") 2>&5
2719   ac_status=$?
2720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; then
2722   for ac_file in conftest.o conftest.obj conftest.*; do
2723   test -f "$ac_file" || continue;
2724   case $ac_file in
2725     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2726     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2727        break;;
2728   esac
2729 done
2730 else
2731   $as_echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2733
2734 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2736 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2737 See \`config.log' for more details." >&5
2738 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2739 See \`config.log' for more details." >&2;}
2740    { (exit 1); exit 1; }; }; }
2741 fi
2742
2743 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2744 fi
2745 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2746 $as_echo "$ac_cv_objext" >&6; }
2747 OBJEXT=$ac_cv_objext
2748 ac_objext=$OBJEXT
2749 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2750 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2751 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2752   $as_echo_n "(cached) " >&6
2753 else
2754   cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h.  */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h.  */
2760
2761 int
2762 main ()
2763 {
2764 #ifndef __GNUC__
2765        choke me
2766 #endif
2767
2768   ;
2769   return 0;
2770 }
2771 _ACEOF
2772 rm -f conftest.$ac_objext
2773 if { (ac_try="$ac_compile"
2774 case "(($ac_try" in
2775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776   *) ac_try_echo=$ac_try;;
2777 esac
2778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2779 $as_echo "$ac_try_echo") >&5
2780   (eval "$ac_compile") 2>conftest.er1
2781   ac_status=$?
2782   grep -v '^ *+' conftest.er1 >conftest.err
2783   rm -f conftest.er1
2784   cat conftest.err >&5
2785   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); } && {
2787          test -z "$ac_cxx_werror_flag" ||
2788          test ! -s conftest.err
2789        } && test -s conftest.$ac_objext; then
2790   ac_compiler_gnu=yes
2791 else
2792   $as_echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2794
2795         ac_compiler_gnu=no
2796 fi
2797
2798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2799 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2800
2801 fi
2802 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2803 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2804 if test $ac_compiler_gnu = yes; then
2805   GXX=yes
2806 else
2807   GXX=
2808 fi
2809 ac_test_CXXFLAGS=${CXXFLAGS+set}
2810 ac_save_CXXFLAGS=$CXXFLAGS
2811 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2812 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
2813 if test "${ac_cv_prog_cxx_g+set}" = set; then
2814   $as_echo_n "(cached) " >&6
2815 else
2816   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2817    ac_cxx_werror_flag=yes
2818    ac_cv_prog_cxx_g=no
2819    CXXFLAGS="-g"
2820    cat >conftest.$ac_ext <<_ACEOF
2821 /* confdefs.h.  */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h.  */
2826
2827 int
2828 main ()
2829 {
2830
2831   ;
2832   return 0;
2833 }
2834 _ACEOF
2835 rm -f conftest.$ac_objext
2836 if { (ac_try="$ac_compile"
2837 case "(($ac_try" in
2838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839   *) ac_try_echo=$ac_try;;
2840 esac
2841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2842 $as_echo "$ac_try_echo") >&5
2843   (eval "$ac_compile") 2>conftest.er1
2844   ac_status=$?
2845   grep -v '^ *+' conftest.er1 >conftest.err
2846   rm -f conftest.er1
2847   cat conftest.err >&5
2848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849   (exit $ac_status); } && {
2850          test -z "$ac_cxx_werror_flag" ||
2851          test ! -s conftest.err
2852        } && test -s conftest.$ac_objext; then
2853   ac_cv_prog_cxx_g=yes
2854 else
2855   $as_echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2857
2858         CXXFLAGS=""
2859       cat >conftest.$ac_ext <<_ACEOF
2860 /* confdefs.h.  */
2861 _ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h.  */
2865
2866 int
2867 main ()
2868 {
2869
2870   ;
2871   return 0;
2872 }
2873 _ACEOF
2874 rm -f conftest.$ac_objext
2875 if { (ac_try="$ac_compile"
2876 case "(($ac_try" in
2877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878   *) ac_try_echo=$ac_try;;
2879 esac
2880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2881 $as_echo "$ac_try_echo") >&5
2882   (eval "$ac_compile") 2>conftest.er1
2883   ac_status=$?
2884   grep -v '^ *+' conftest.er1 >conftest.err
2885   rm -f conftest.er1
2886   cat conftest.err >&5
2887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); } && {
2889          test -z "$ac_cxx_werror_flag" ||
2890          test ! -s conftest.err
2891        } && test -s conftest.$ac_objext; then
2892   :
2893 else
2894   $as_echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2896
2897         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2898          CXXFLAGS="-g"
2899          cat >conftest.$ac_ext <<_ACEOF
2900 /* confdefs.h.  */
2901 _ACEOF
2902 cat confdefs.h >>conftest.$ac_ext
2903 cat >>conftest.$ac_ext <<_ACEOF
2904 /* end confdefs.h.  */
2905
2906 int
2907 main ()
2908 {
2909
2910   ;
2911   return 0;
2912 }
2913 _ACEOF
2914 rm -f conftest.$ac_objext
2915 if { (ac_try="$ac_compile"
2916 case "(($ac_try" in
2917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918   *) ac_try_echo=$ac_try;;
2919 esac
2920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2921 $as_echo "$ac_try_echo") >&5
2922   (eval "$ac_compile") 2>conftest.er1
2923   ac_status=$?
2924   grep -v '^ *+' conftest.er1 >conftest.err
2925   rm -f conftest.er1
2926   cat conftest.err >&5
2927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928   (exit $ac_status); } && {
2929          test -z "$ac_cxx_werror_flag" ||
2930          test ! -s conftest.err
2931        } && test -s conftest.$ac_objext; then
2932   ac_cv_prog_cxx_g=yes
2933 else
2934   $as_echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2936
2937
2938 fi
2939
2940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2941 fi
2942
2943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2944 fi
2945
2946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2947    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2948 fi
2949 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2950 $as_echo "$ac_cv_prog_cxx_g" >&6; }
2951 if test "$ac_test_CXXFLAGS" = set; then
2952   CXXFLAGS=$ac_save_CXXFLAGS
2953 elif test $ac_cv_prog_cxx_g = yes; then
2954   if test "$GXX" = yes; then
2955     CXXFLAGS="-g -O2"
2956   else
2957     CXXFLAGS="-g"
2958   fi
2959 else
2960   if test "$GXX" = yes; then
2961     CXXFLAGS="-O2"
2962   else
2963     CXXFLAGS=
2964   fi
2965 fi
2966 ac_ext=c
2967 ac_cpp='$CPP $CPPFLAGS'
2968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2971 DEPDIR="${am__leading_dot}deps"
2972
2973 ac_config_commands="$ac_config_commands depfiles"
2974
2975
2976 am_make=${MAKE-make}
2977 cat > confinc << 'END'
2978 am__doit:
2979         @echo done
2980 .PHONY: am__doit
2981 END
2982 # If we don't find an include directive, just comment out the code.
2983 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2984 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2985 am__include="#"
2986 am__quote=
2987 _am_result=none
2988 # First try GNU make style include.
2989 echo "include confinc" > confmf
2990 # We grep out `Entering directory' and `Leaving directory'
2991 # messages which can occur if `w' ends up in MAKEFLAGS.
2992 # In particular we don't look at `^make:' because GNU make might
2993 # be invoked under some other name (usually "gmake"), in which
2994 # case it prints its new name instead of `make'.
2995 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2996    am__include=include
2997    am__quote=
2998    _am_result=GNU
2999 fi
3000 # Now try BSD make style include.
3001 if test "$am__include" = "#"; then
3002    echo '.include "confinc"' > confmf
3003    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3004       am__include=.include
3005       am__quote="\""
3006       _am_result=BSD
3007    fi
3008 fi
3009
3010
3011 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3012 $as_echo "$_am_result" >&6; }
3013 rm -f confinc confmf
3014
3015 # Check whether --enable-dependency-tracking was given.
3016 if test "${enable_dependency_tracking+set}" = set; then
3017   enableval=$enable_dependency_tracking;
3018 fi
3019
3020 if test "x$enable_dependency_tracking" != xno; then
3021   am_depcomp="$ac_aux_dir/depcomp"
3022   AMDEPBACKSLASH='\'
3023 fi
3024  if test "x$enable_dependency_tracking" != xno; then
3025   AMDEP_TRUE=
3026   AMDEP_FALSE='#'
3027 else
3028   AMDEP_TRUE='#'
3029   AMDEP_FALSE=
3030 fi
3031
3032
3033
3034 depcc="$CXX"  am_compiler_list=
3035
3036 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3037 $as_echo_n "checking dependency style of $depcc... " >&6; }
3038 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3039   $as_echo_n "(cached) " >&6
3040 else
3041   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3042   # We make a subdir and do the tests there.  Otherwise we can end up
3043   # making bogus files that we don't know about and never remove.  For
3044   # instance it was reported that on HP-UX the gcc test will end up
3045   # making a dummy file named `D' -- because `-MD' means `put the output
3046   # in D'.
3047   mkdir conftest.dir
3048   # Copy depcomp to subdir because otherwise we won't find it if we're
3049   # using a relative directory.
3050   cp "$am_depcomp" conftest.dir
3051   cd conftest.dir
3052   # We will build objects and dependencies in a subdirectory because
3053   # it helps to detect inapplicable dependency modes.  For instance
3054   # both Tru64's cc and ICC support -MD to output dependencies as a
3055   # side effect of compilation, but ICC will put the dependencies in
3056   # the current directory while Tru64 will put them in the object
3057   # directory.
3058   mkdir sub
3059
3060   am_cv_CXX_dependencies_compiler_type=none
3061   if test "$am_compiler_list" = ""; then
3062      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3063   fi
3064   for depmode in $am_compiler_list; do
3065     # Setup a source with many dependencies, because some compilers
3066     # like to wrap large dependency lists on column 80 (with \), and
3067     # we should not choose a depcomp mode which is confused by this.
3068     #
3069     # We need to recreate these files for each test, as the compiler may
3070     # overwrite some of them when testing with obscure command lines.
3071     # This happens at least with the AIX C compiler.
3072     : > sub/conftest.c
3073     for i in 1 2 3 4 5 6; do
3074       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3075       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3076       # Solaris 8's {/usr,}/bin/sh.
3077       touch sub/conftst$i.h
3078     done
3079     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3080
3081     case $depmode in
3082     nosideeffect)
3083       # after this tag, mechanisms are not by side-effect, so they'll
3084       # only be used when explicitly requested
3085       if test "x$enable_dependency_tracking" = xyes; then
3086         continue
3087       else
3088         break
3089       fi
3090       ;;
3091     none) break ;;
3092     esac
3093     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3094     # mode.  It turns out that the SunPro C++ compiler does not properly
3095     # handle `-M -o', and we need to detect this.
3096     if depmode=$depmode \
3097        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3098        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3099        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3100          >/dev/null 2>conftest.err &&
3101        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3102        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3103        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3104        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3105       # icc doesn't choke on unknown options, it will just issue warnings
3106       # or remarks (even with -Werror).  So we grep stderr for any message
3107       # that says an option was ignored or not supported.
3108       # When given -MP, icc 7.0 and 7.1 complain thusly:
3109       #   icc: Command line warning: ignoring option '-M'; no argument required
3110       # The diagnosis changed in icc 8.0:
3111       #   icc: Command line remark: option '-MP' not supported
3112       if (grep 'ignoring option' conftest.err ||
3113           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3114         am_cv_CXX_dependencies_compiler_type=$depmode
3115         break
3116       fi
3117     fi
3118   done
3119
3120   cd ..
3121   rm -rf conftest.dir
3122 else
3123   am_cv_CXX_dependencies_compiler_type=none
3124 fi
3125
3126 fi
3127 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3128 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3129 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3130
3131  if
3132   test "x$enable_dependency_tracking" != xno \
3133   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3134   am__fastdepCXX_TRUE=
3135   am__fastdepCXX_FALSE='#'
3136 else
3137   am__fastdepCXX_TRUE='#'
3138   am__fastdepCXX_FALSE=
3139 fi
3140
3141
3142 # Find a good install program.  We prefer a C program (faster),
3143 # so one script is as good as another.  But avoid the broken or
3144 # incompatible versions:
3145 # SysV /etc/install, /usr/sbin/install
3146 # SunOS /usr/etc/install
3147 # IRIX /sbin/install
3148 # AIX /bin/install
3149 # AmigaOS /C/install, which installs bootblocks on floppy discs
3150 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3151 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3152 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3153 # OS/2's system install, which has a completely different semantic
3154 # ./install, which can be erroneously created by make from ./install.sh.
3155 # Reject install programs that cannot install multiple files.
3156 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3157 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3158 if test -z "$INSTALL"; then
3159 if test "${ac_cv_path_install+set}" = set; then
3160   $as_echo_n "(cached) " >&6
3161 else
3162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165   IFS=$as_save_IFS
3166   test -z "$as_dir" && as_dir=.
3167   # Account for people who put trailing slashes in PATH elements.
3168 case $as_dir/ in
3169   ./ | .// | /cC/* | \
3170   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3171   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3172   /usr/ucb/* ) ;;
3173   *)
3174     # OSF1 and SCO ODT 3.0 have their own names for install.
3175     # Don't use installbsd from OSF since it installs stuff as root
3176     # by default.
3177     for ac_prog in ginstall scoinst install; do
3178       for ac_exec_ext in '' $ac_executable_extensions; do
3179         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3180           if test $ac_prog = install &&
3181             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3182             # AIX install.  It has an incompatible calling convention.
3183             :
3184           elif test $ac_prog = install &&
3185             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3186             # program-specific install script used by HP pwplus--don't use.
3187             :
3188           else
3189             rm -rf conftest.one conftest.two conftest.dir
3190             echo one > conftest.one
3191             echo two > conftest.two
3192             mkdir conftest.dir
3193             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3194               test -s conftest.one && test -s conftest.two &&
3195               test -s conftest.dir/conftest.one &&
3196               test -s conftest.dir/conftest.two
3197             then
3198               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3199               break 3
3200             fi
3201           fi
3202         fi
3203       done
3204     done
3205     ;;
3206 esac
3207
3208 done
3209 IFS=$as_save_IFS
3210
3211 rm -rf conftest.one conftest.two conftest.dir
3212
3213 fi
3214   if test "${ac_cv_path_install+set}" = set; then
3215     INSTALL=$ac_cv_path_install
3216   else
3217     # As a last resort, use the slow shell script.  Don't cache a
3218     # value for INSTALL within a source directory, because that will
3219     # break other packages using the cache if that directory is
3220     # removed, or if the value is a relative name.
3221     INSTALL=$ac_install_sh
3222   fi
3223 fi
3224 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3225 $as_echo "$INSTALL" >&6; }
3226
3227 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3228 # It thinks the first close brace ends the variable substitution.
3229 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3230
3231 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3232
3233 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3234
3235 if test -n "$ac_tool_prefix"; then
3236   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3237 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if test "${ac_cv_prog_RANLIB+set}" = set; then
3241   $as_echo_n "(cached) " >&6
3242 else
3243   if test -n "$RANLIB"; then
3244   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249   IFS=$as_save_IFS
3250   test -z "$as_dir" && as_dir=.
3251   for ac_exec_ext in '' $ac_executable_extensions; do
3252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3253     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3254     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3255     break 2
3256   fi
3257 done
3258 done
3259 IFS=$as_save_IFS
3260
3261 fi
3262 fi
3263 RANLIB=$ac_cv_prog_RANLIB
3264 if test -n "$RANLIB"; then
3265   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3266 $as_echo "$RANLIB" >&6; }
3267 else
3268   { $as_echo "$as_me:$LINENO: result: no" >&5
3269 $as_echo "no" >&6; }
3270 fi
3271
3272
3273 fi
3274 if test -z "$ac_cv_prog_RANLIB"; then
3275   ac_ct_RANLIB=$RANLIB
3276   # Extract the first word of "ranlib", so it can be a program name with args.
3277 set dummy ranlib; ac_word=$2
3278 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3281   $as_echo_n "(cached) " >&6
3282 else
3283   if test -n "$ac_ct_RANLIB"; then
3284   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3288 do
3289   IFS=$as_save_IFS
3290   test -z "$as_dir" && as_dir=.
3291   for ac_exec_ext in '' $ac_executable_extensions; do
3292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3293     ac_cv_prog_ac_ct_RANLIB="ranlib"
3294     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295     break 2
3296   fi
3297 done
3298 done
3299 IFS=$as_save_IFS
3300
3301 fi
3302 fi
3303 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3304 if test -n "$ac_ct_RANLIB"; then
3305   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3306 $as_echo "$ac_ct_RANLIB" >&6; }
3307 else
3308   { $as_echo "$as_me:$LINENO: result: no" >&5
3309 $as_echo "no" >&6; }
3310 fi
3311
3312   if test "x$ac_ct_RANLIB" = x; then
3313     RANLIB=":"
3314   else
3315     case $cross_compiling:$ac_tool_warned in
3316 yes:)
3317 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3319 ac_tool_warned=yes ;;
3320 esac
3321     RANLIB=$ac_ct_RANLIB
3322   fi
3323 else
3324   RANLIB="$ac_cv_prog_RANLIB"
3325 fi
3326
3327
3328 # Checks for libraries.
3329 ac_ext=c
3330 ac_cpp='$CPP $CPPFLAGS'
3331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334 if test -n "$ac_tool_prefix"; then
3335   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3336 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3337 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 $as_echo_n "checking for $ac_word... " >&6; }
3339 if test "${ac_cv_prog_CC+set}" = set; then
3340   $as_echo_n "(cached) " >&6
3341 else
3342   if test -n "$CC"; then
3343   ac_cv_prog_CC="$CC" # Let the user override the test.
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348   IFS=$as_save_IFS
3349   test -z "$as_dir" && as_dir=.
3350   for ac_exec_ext in '' $ac_executable_extensions; do
3351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3352     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3353     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3354     break 2
3355   fi
3356 done
3357 done
3358 IFS=$as_save_IFS
3359
3360 fi
3361 fi
3362 CC=$ac_cv_prog_CC
3363 if test -n "$CC"; then
3364   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3365 $as_echo "$CC" >&6; }
3366 else
3367   { $as_echo "$as_me:$LINENO: result: no" >&5
3368 $as_echo "no" >&6; }
3369 fi
3370
3371
3372 fi
3373 if test -z "$ac_cv_prog_CC"; then
3374   ac_ct_CC=$CC
3375   # Extract the first word of "gcc", so it can be a program name with args.
3376 set dummy gcc; ac_word=$2
3377 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3380   $as_echo_n "(cached) " >&6
3381 else
3382   if test -n "$ac_ct_CC"; then
3383   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388   IFS=$as_save_IFS
3389   test -z "$as_dir" && as_dir=.
3390   for ac_exec_ext in '' $ac_executable_extensions; do
3391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3392     ac_cv_prog_ac_ct_CC="gcc"
3393     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394     break 2
3395   fi
3396 done
3397 done
3398 IFS=$as_save_IFS
3399
3400 fi
3401 fi
3402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3403 if test -n "$ac_ct_CC"; then
3404   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3405 $as_echo "$ac_ct_CC" >&6; }
3406 else
3407   { $as_echo "$as_me:$LINENO: result: no" >&5
3408 $as_echo "no" >&6; }
3409 fi
3410
3411   if test "x$ac_ct_CC" = x; then
3412     CC=""
3413   else
3414     case $cross_compiling:$ac_tool_warned in
3415 yes:)
3416 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3418 ac_tool_warned=yes ;;
3419 esac
3420     CC=$ac_ct_CC
3421   fi
3422 else
3423   CC="$ac_cv_prog_CC"
3424 fi
3425
3426 if test -z "$CC"; then
3427           if test -n "$ac_tool_prefix"; then
3428     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3429 set dummy ${ac_tool_prefix}cc; ac_word=$2
3430 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if test "${ac_cv_prog_CC+set}" = set; then
3433   $as_echo_n "(cached) " >&6
3434 else
3435   if test -n "$CC"; then
3436   ac_cv_prog_CC="$CC" # Let the user override the test.
3437 else
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 for as_dir in $PATH
3440 do
3441   IFS=$as_save_IFS
3442   test -z "$as_dir" && as_dir=.
3443   for ac_exec_ext in '' $ac_executable_extensions; do
3444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3445     ac_cv_prog_CC="${ac_tool_prefix}cc"
3446     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3447     break 2
3448   fi
3449 done
3450 done
3451 IFS=$as_save_IFS
3452
3453 fi
3454 fi
3455 CC=$ac_cv_prog_CC
3456 if test -n "$CC"; then
3457   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3458 $as_echo "$CC" >&6; }
3459 else
3460   { $as_echo "$as_me:$LINENO: result: no" >&5
3461 $as_echo "no" >&6; }
3462 fi
3463
3464
3465   fi
3466 fi
3467 if test -z "$CC"; then
3468   # Extract the first word of "cc", so it can be a program name with args.
3469 set dummy cc; ac_word=$2
3470 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3471 $as_echo_n "checking for $ac_word... " >&6; }
3472 if test "${ac_cv_prog_CC+set}" = set; then
3473   $as_echo_n "(cached) " >&6
3474 else
3475   if test -n "$CC"; then
3476   ac_cv_prog_CC="$CC" # Let the user override the test.
3477 else
3478   ac_prog_rejected=no
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3481 do
3482   IFS=$as_save_IFS
3483   test -z "$as_dir" && as_dir=.
3484   for ac_exec_ext in '' $ac_executable_extensions; do
3485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3487        ac_prog_rejected=yes
3488        continue
3489      fi
3490     ac_cv_prog_CC="cc"
3491     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3492     break 2
3493   fi
3494 done
3495 done
3496 IFS=$as_save_IFS
3497
3498 if test $ac_prog_rejected = yes; then
3499   # We found a bogon in the path, so make sure we never use it.
3500   set dummy $ac_cv_prog_CC
3501   shift
3502   if test $# != 0; then
3503     # We chose a different compiler from the bogus one.
3504     # However, it has the same basename, so the bogon will be chosen
3505     # first if we set CC to just the basename; use the full file name.
3506     shift
3507     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3508   fi
3509 fi
3510 fi
3511 fi
3512 CC=$ac_cv_prog_CC
3513 if test -n "$CC"; then
3514   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3515 $as_echo "$CC" >&6; }
3516 else
3517   { $as_echo "$as_me:$LINENO: result: no" >&5
3518 $as_echo "no" >&6; }
3519 fi
3520
3521
3522 fi
3523 if test -z "$CC"; then
3524   if test -n "$ac_tool_prefix"; then
3525   for ac_prog in cl.exe
3526   do
3527     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3529 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3530 $as_echo_n "checking for $ac_word... " >&6; }
3531 if test "${ac_cv_prog_CC+set}" = set; then
3532   $as_echo_n "(cached) " >&6
3533 else
3534   if test -n "$CC"; then
3535   ac_cv_prog_CC="$CC" # Let the user override the test.
3536 else
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 for as_dir in $PATH
3539 do
3540   IFS=$as_save_IFS
3541   test -z "$as_dir" && as_dir=.
3542   for ac_exec_ext in '' $ac_executable_extensions; do
3543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3544     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3545     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3546     break 2
3547   fi
3548 done
3549 done
3550 IFS=$as_save_IFS
3551
3552 fi
3553 fi
3554 CC=$ac_cv_prog_CC
3555 if test -n "$CC"; then
3556   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3557 $as_echo "$CC" >&6; }
3558 else
3559   { $as_echo "$as_me:$LINENO: result: no" >&5
3560 $as_echo "no" >&6; }
3561 fi
3562
3563
3564     test -n "$CC" && break
3565   done
3566 fi
3567 if test -z "$CC"; then
3568   ac_ct_CC=$CC
3569   for ac_prog in cl.exe
3570 do
3571   # Extract the first word of "$ac_prog", so it can be a program name with args.
3572 set dummy $ac_prog; ac_word=$2
3573 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3574 $as_echo_n "checking for $ac_word... " >&6; }
3575 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3576   $as_echo_n "(cached) " >&6
3577 else
3578   if test -n "$ac_ct_CC"; then
3579   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3580 else
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 for as_dir in $PATH
3583 do
3584   IFS=$as_save_IFS
3585   test -z "$as_dir" && as_dir=.
3586   for ac_exec_ext in '' $ac_executable_extensions; do
3587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3588     ac_cv_prog_ac_ct_CC="$ac_prog"
3589     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3590     break 2
3591   fi
3592 done
3593 done
3594 IFS=$as_save_IFS
3595
3596 fi
3597 fi
3598 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3599 if test -n "$ac_ct_CC"; then
3600   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3601 $as_echo "$ac_ct_CC" >&6; }
3602 else
3603   { $as_echo "$as_me:$LINENO: result: no" >&5
3604 $as_echo "no" >&6; }
3605 fi
3606
3607
3608   test -n "$ac_ct_CC" && break
3609 done
3610
3611   if test "x$ac_ct_CC" = x; then
3612     CC=""
3613   else
3614     case $cross_compiling:$ac_tool_warned in
3615 yes:)
3616 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3618 ac_tool_warned=yes ;;
3619 esac
3620     CC=$ac_ct_CC
3621   fi
3622 fi
3623
3624 fi
3625
3626
3627 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3630 See \`config.log' for more details." >&5
3631 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3632 See \`config.log' for more details." >&2;}
3633    { (exit 1); exit 1; }; }; }
3634
3635 # Provide some information about the compiler.
3636 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3637 set X $ac_compile
3638 ac_compiler=$2
3639 { (ac_try="$ac_compiler --version >&5"
3640 case "(($ac_try" in
3641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642   *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645 $as_echo "$ac_try_echo") >&5
3646   (eval "$ac_compiler --version >&5") 2>&5
3647   ac_status=$?
3648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649   (exit $ac_status); }
3650 { (ac_try="$ac_compiler -v >&5"
3651 case "(($ac_try" in
3652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653   *) ac_try_echo=$ac_try;;
3654 esac
3655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3656 $as_echo "$ac_try_echo") >&5
3657   (eval "$ac_compiler -v >&5") 2>&5
3658   ac_status=$?
3659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660   (exit $ac_status); }
3661 { (ac_try="$ac_compiler -V >&5"
3662 case "(($ac_try" in
3663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664   *) ac_try_echo=$ac_try;;
3665 esac
3666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3667 $as_echo "$ac_try_echo") >&5
3668   (eval "$ac_compiler -V >&5") 2>&5
3669   ac_status=$?
3670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); }
3672
3673 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3674 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3675 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3676   $as_echo_n "(cached) " >&6
3677 else
3678   cat >conftest.$ac_ext <<_ACEOF
3679 /* confdefs.h.  */
3680 _ACEOF
3681 cat confdefs.h >>conftest.$ac_ext
3682 cat >>conftest.$ac_ext <<_ACEOF
3683 /* end confdefs.h.  */
3684
3685 int
3686 main ()
3687 {
3688 #ifndef __GNUC__
3689        choke me
3690 #endif
3691
3692   ;
3693   return 0;
3694 }
3695 _ACEOF
3696 rm -f conftest.$ac_objext
3697 if { (ac_try="$ac_compile"
3698 case "(($ac_try" in
3699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700   *) ac_try_echo=$ac_try;;
3701 esac
3702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3703 $as_echo "$ac_try_echo") >&5
3704   (eval "$ac_compile") 2>conftest.er1
3705   ac_status=$?
3706   grep -v '^ *+' conftest.er1 >conftest.err
3707   rm -f conftest.er1
3708   cat conftest.err >&5
3709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); } && {
3711          test -z "$ac_c_werror_flag" ||
3712          test ! -s conftest.err
3713        } && test -s conftest.$ac_objext; then
3714   ac_compiler_gnu=yes
3715 else
3716   $as_echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3718
3719         ac_compiler_gnu=no
3720 fi
3721
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3724
3725 fi
3726 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3727 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3728 if test $ac_compiler_gnu = yes; then
3729   GCC=yes
3730 else
3731   GCC=
3732 fi
3733 ac_test_CFLAGS=${CFLAGS+set}
3734 ac_save_CFLAGS=$CFLAGS
3735 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3736 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3737 if test "${ac_cv_prog_cc_g+set}" = set; then
3738   $as_echo_n "(cached) " >&6
3739 else
3740   ac_save_c_werror_flag=$ac_c_werror_flag
3741    ac_c_werror_flag=yes
3742    ac_cv_prog_cc_g=no
3743    CFLAGS="-g"
3744    cat >conftest.$ac_ext <<_ACEOF
3745 /* confdefs.h.  */
3746 _ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h.  */
3750
3751 int
3752 main ()
3753 {
3754
3755   ;
3756   return 0;
3757 }
3758 _ACEOF
3759 rm -f conftest.$ac_objext
3760 if { (ac_try="$ac_compile"
3761 case "(($ac_try" in
3762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763   *) ac_try_echo=$ac_try;;
3764 esac
3765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3766 $as_echo "$ac_try_echo") >&5
3767   (eval "$ac_compile") 2>conftest.er1
3768   ac_status=$?
3769   grep -v '^ *+' conftest.er1 >conftest.err
3770   rm -f conftest.er1
3771   cat conftest.err >&5
3772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773   (exit $ac_status); } && {
3774          test -z "$ac_c_werror_flag" ||
3775          test ! -s conftest.err
3776        } && test -s conftest.$ac_objext; then
3777   ac_cv_prog_cc_g=yes
3778 else
3779   $as_echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3781
3782         CFLAGS=""
3783       cat >conftest.$ac_ext <<_ACEOF
3784 /* confdefs.h.  */
3785 _ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h.  */
3789
3790 int
3791 main ()
3792 {
3793
3794   ;
3795   return 0;
3796 }
3797 _ACEOF
3798 rm -f conftest.$ac_objext
3799 if { (ac_try="$ac_compile"
3800 case "(($ac_try" in
3801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802   *) ac_try_echo=$ac_try;;
3803 esac
3804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3805 $as_echo "$ac_try_echo") >&5
3806   (eval "$ac_compile") 2>conftest.er1
3807   ac_status=$?
3808   grep -v '^ *+' conftest.er1 >conftest.err
3809   rm -f conftest.er1
3810   cat conftest.err >&5
3811   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812   (exit $ac_status); } && {
3813          test -z "$ac_c_werror_flag" ||
3814          test ! -s conftest.err
3815        } && test -s conftest.$ac_objext; then
3816   :
3817 else
3818   $as_echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3820
3821         ac_c_werror_flag=$ac_save_c_werror_flag
3822          CFLAGS="-g"
3823          cat >conftest.$ac_ext <<_ACEOF
3824 /* confdefs.h.  */
3825 _ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h.  */
3829
3830 int
3831 main ()
3832 {
3833
3834   ;
3835   return 0;
3836 }
3837 _ACEOF
3838 rm -f conftest.$ac_objext
3839 if { (ac_try="$ac_compile"
3840 case "(($ac_try" in
3841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842   *) ac_try_echo=$ac_try;;
3843 esac
3844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3845 $as_echo "$ac_try_echo") >&5
3846   (eval "$ac_compile") 2>conftest.er1
3847   ac_status=$?
3848   grep -v '^ *+' conftest.er1 >conftest.err
3849   rm -f conftest.er1
3850   cat conftest.err >&5
3851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852   (exit $ac_status); } && {
3853          test -z "$ac_c_werror_flag" ||
3854          test ! -s conftest.err
3855        } && test -s conftest.$ac_objext; then
3856   ac_cv_prog_cc_g=yes
3857 else
3858   $as_echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3860
3861
3862 fi
3863
3864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3865 fi
3866
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 fi
3869
3870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871    ac_c_werror_flag=$ac_save_c_werror_flag
3872 fi
3873 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3874 $as_echo "$ac_cv_prog_cc_g" >&6; }
3875 if test "$ac_test_CFLAGS" = set; then
3876   CFLAGS=$ac_save_CFLAGS
3877 elif test $ac_cv_prog_cc_g = yes; then
3878   if test "$GCC" = yes; then
3879     CFLAGS="-g -O2"
3880   else
3881     CFLAGS="-g"
3882   fi
3883 else
3884   if test "$GCC" = yes; then
3885     CFLAGS="-O2"
3886   else
3887     CFLAGS=
3888   fi
3889 fi
3890 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3891 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3892 if test "${ac_cv_prog_cc_c89+set}" = set; then
3893   $as_echo_n "(cached) " >&6
3894 else
3895   ac_cv_prog_cc_c89=no
3896 ac_save_CC=$CC
3897 cat >conftest.$ac_ext <<_ACEOF
3898 /* confdefs.h.  */
3899 _ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h.  */
3903 #include <stdarg.h>
3904 #include <stdio.h>
3905 #include <sys/types.h>
3906 #include <sys/stat.h>
3907 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3908 struct buf { int x; };
3909 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3910 static char *e (p, i)
3911      char **p;
3912      int i;
3913 {
3914   return p[i];
3915 }
3916 static char *f (char * (*g) (char **, int), char **p, ...)
3917 {
3918   char *s;
3919   va_list v;
3920   va_start (v,p);
3921   s = g (p, va_arg (v,int));
3922   va_end (v);
3923   return s;
3924 }
3925
3926 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3927    function prototypes and stuff, but not '\xHH' hex character constants.
3928    These don't provoke an error unfortunately, instead are silently treated
3929    as 'x'.  The following induces an error, until -std is added to get
3930    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3931    array size at least.  It's necessary to write '\x00'==0 to get something
3932    that's true only with -std.  */
3933 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3934
3935 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3936    inside strings and character constants.  */
3937 #define FOO(x) 'x'
3938 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3939
3940 int test (int i, double x);
3941 struct s1 {int (*f) (int a);};
3942 struct s2 {int (*f) (double a);};
3943 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3944 int argc;
3945 char **argv;
3946 int
3947 main ()
3948 {
3949 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3950   ;
3951   return 0;
3952 }
3953 _ACEOF
3954 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3955         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3956 do
3957   CC="$ac_save_CC $ac_arg"
3958   rm -f conftest.$ac_objext
3959 if { (ac_try="$ac_compile"
3960 case "(($ac_try" in
3961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962   *) ac_try_echo=$ac_try;;
3963 esac
3964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3965 $as_echo "$ac_try_echo") >&5
3966   (eval "$ac_compile") 2>conftest.er1
3967   ac_status=$?
3968   grep -v '^ *+' conftest.er1 >conftest.err
3969   rm -f conftest.er1
3970   cat conftest.err >&5
3971   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972   (exit $ac_status); } && {
3973          test -z "$ac_c_werror_flag" ||
3974          test ! -s conftest.err
3975        } && test -s conftest.$ac_objext; then
3976   ac_cv_prog_cc_c89=$ac_arg
3977 else
3978   $as_echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981
3982 fi
3983
3984 rm -f core conftest.err conftest.$ac_objext
3985   test "x$ac_cv_prog_cc_c89" != "xno" && break
3986 done
3987 rm -f conftest.$ac_ext
3988 CC=$ac_save_CC
3989
3990 fi
3991 # AC_CACHE_VAL
3992 case "x$ac_cv_prog_cc_c89" in
3993   x)
3994     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3995 $as_echo "none needed" >&6; } ;;
3996   xno)
3997     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3998 $as_echo "unsupported" >&6; } ;;
3999   *)
4000     CC="$CC $ac_cv_prog_cc_c89"
4001     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4002 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4003 esac
4004
4005
4006 ac_ext=c
4007 ac_cpp='$CPP $CPPFLAGS'
4008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4011
4012 depcc="$CC"   am_compiler_list=
4013
4014 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4015 $as_echo_n "checking dependency style of $depcc... " >&6; }
4016 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4017   $as_echo_n "(cached) " >&6
4018 else
4019   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4020   # We make a subdir and do the tests there.  Otherwise we can end up
4021   # making bogus files that we don't know about and never remove.  For
4022   # instance it was reported that on HP-UX the gcc test will end up
4023   # making a dummy file named `D' -- because `-MD' means `put the output
4024   # in D'.
4025   mkdir conftest.dir
4026   # Copy depcomp to subdir because otherwise we won't find it if we're
4027   # using a relative directory.
4028   cp "$am_depcomp" conftest.dir
4029   cd conftest.dir
4030   # We will build objects and dependencies in a subdirectory because
4031   # it helps to detect inapplicable dependency modes.  For instance
4032   # both Tru64's cc and ICC support -MD to output dependencies as a
4033   # side effect of compilation, but ICC will put the dependencies in
4034   # the current directory while Tru64 will put them in the object
4035   # directory.
4036   mkdir sub
4037
4038   am_cv_CC_dependencies_compiler_type=none
4039   if test "$am_compiler_list" = ""; then
4040      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4041   fi
4042   for depmode in $am_compiler_list; do
4043     # Setup a source with many dependencies, because some compilers
4044     # like to wrap large dependency lists on column 80 (with \), and
4045     # we should not choose a depcomp mode which is confused by this.
4046     #
4047     # We need to recreate these files for each test, as the compiler may
4048     # overwrite some of them when testing with obscure command lines.
4049     # This happens at least with the AIX C compiler.
4050     : > sub/conftest.c
4051     for i in 1 2 3 4 5 6; do
4052       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4053       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4054       # Solaris 8's {/usr,}/bin/sh.
4055       touch sub/conftst$i.h
4056     done
4057     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4058
4059     case $depmode in
4060     nosideeffect)
4061       # after this tag, mechanisms are not by side-effect, so they'll
4062       # only be used when explicitly requested
4063       if test "x$enable_dependency_tracking" = xyes; then
4064         continue
4065       else
4066         break
4067       fi
4068       ;;
4069     none) break ;;
4070     esac
4071     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4072     # mode.  It turns out that the SunPro C++ compiler does not properly
4073     # handle `-M -o', and we need to detect this.
4074     if depmode=$depmode \
4075        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4076        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4077        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4078          >/dev/null 2>conftest.err &&
4079        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4080        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4081        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4082        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4083       # icc doesn't choke on unknown options, it will just issue warnings
4084       # or remarks (even with -Werror).  So we grep stderr for any message
4085       # that says an option was ignored or not supported.
4086       # When given -MP, icc 7.0 and 7.1 complain thusly:
4087       #   icc: Command line warning: ignoring option '-M'; no argument required
4088       # The diagnosis changed in icc 8.0:
4089       #   icc: Command line remark: option '-MP' not supported
4090       if (grep 'ignoring option' conftest.err ||
4091           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4092         am_cv_CC_dependencies_compiler_type=$depmode
4093         break
4094       fi
4095     fi
4096   done
4097
4098   cd ..
4099   rm -rf conftest.dir
4100 else
4101   am_cv_CC_dependencies_compiler_type=none
4102 fi
4103
4104 fi
4105 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4106 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4107 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4108
4109  if
4110   test "x$enable_dependency_tracking" != xno \
4111   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4112   am__fastdepCC_TRUE=
4113   am__fastdepCC_FALSE='#'
4114 else
4115   am__fastdepCC_TRUE='#'
4116   am__fastdepCC_FALSE=
4117 fi
4118
4119
4120
4121
4122 { $as_echo "$as_me:$LINENO: checking for -lboost_filesystem in -lboost_filesystem" >&5
4123 $as_echo_n "checking for -lboost_filesystem in -lboost_filesystem... " >&6; }
4124 if test "${ac_cv_lib_boost_filesystem__lboost_filesystem+set}" = set; then
4125   $as_echo_n "(cached) " >&6
4126 else
4127   ac_check_lib_save_LIBS=$LIBS
4128 LIBS="-lboost_filesystem  $LIBS"
4129 cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h.  */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h.  */
4135
4136 /* Override any GCC internal prototype to avoid an error.
4137    Use char because int might match the return type of a GCC
4138    builtin and then its argument prototype would still apply.  */
4139 #ifdef __cplusplus
4140 extern "C"
4141 #endif
4142 char -lboost_filesystem ();
4143 int
4144 main ()
4145 {
4146 return -lboost_filesystem ();
4147   ;
4148   return 0;
4149 }
4150 _ACEOF
4151 rm -f conftest.$ac_objext conftest$ac_exeext
4152 if { (ac_try="$ac_link"
4153 case "(($ac_try" in
4154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155   *) ac_try_echo=$ac_try;;
4156 esac
4157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4158 $as_echo "$ac_try_echo") >&5
4159   (eval "$ac_link") 2>conftest.er1
4160   ac_status=$?
4161   grep -v '^ *+' conftest.er1 >conftest.err
4162   rm -f conftest.er1
4163   cat conftest.err >&5
4164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); } && {
4166          test -z "$ac_c_werror_flag" ||
4167          test ! -s conftest.err
4168        } && test -s conftest$ac_exeext && {
4169          test "$cross_compiling" = yes ||
4170          $as_test_x conftest$ac_exeext
4171        }; then
4172   ac_cv_lib_boost_filesystem__lboost_filesystem=yes
4173 else
4174   $as_echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4176
4177         ac_cv_lib_boost_filesystem__lboost_filesystem=no
4178 fi
4179
4180 rm -rf conftest.dSYM
4181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4182       conftest$ac_exeext conftest.$ac_ext
4183 LIBS=$ac_check_lib_save_LIBS
4184 fi
4185 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_boost_filesystem__lboost_filesystem" >&5
4186 $as_echo "$ac_cv_lib_boost_filesystem__lboost_filesystem" >&6; }
4187 if test "x$ac_cv_lib_boost_filesystem__lboost_filesystem" = x""yes; then
4188   cat >>confdefs.h <<_ACEOF
4189 #define HAVE_LIBBOOST_FILESYSTEM 1
4190 _ACEOF
4191
4192   LIBS="-lboost_filesystem $LIBS"
4193
4194 fi
4195
4196
4197 # Checks for header files.
4198 ac_ext=c
4199 ac_cpp='$CPP $CPPFLAGS'
4200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4204 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4205 # On Suns, sometimes $CPP names a directory.
4206 if test -n "$CPP" && test -d "$CPP"; then
4207   CPP=
4208 fi
4209 if test -z "$CPP"; then
4210   if test "${ac_cv_prog_CPP+set}" = set; then
4211   $as_echo_n "(cached) " >&6
4212 else
4213       # Double quotes because CPP needs to be expanded
4214     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4215     do
4216       ac_preproc_ok=false
4217 for ac_c_preproc_warn_flag in '' yes
4218 do
4219   # Use a header file that comes with gcc, so configuring glibc
4220   # with a fresh cross-compiler works.
4221   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4222   # <limits.h> exists even on freestanding compilers.
4223   # On the NeXT, cc -E runs the code through the compiler's parser,
4224   # not just through cpp. "Syntax error" is here to catch this case.
4225   cat >conftest.$ac_ext <<_ACEOF
4226 /* confdefs.h.  */
4227 _ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h.  */
4231 #ifdef __STDC__
4232 # include <limits.h>
4233 #else
4234 # include <assert.h>
4235 #endif
4236                      Syntax error
4237 _ACEOF
4238 if { (ac_try="$ac_cpp conftest.$ac_ext"
4239 case "(($ac_try" in
4240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241   *) ac_try_echo=$ac_try;;
4242 esac
4243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4244 $as_echo "$ac_try_echo") >&5
4245   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4246   ac_status=$?
4247   grep -v '^ *+' conftest.er1 >conftest.err
4248   rm -f conftest.er1
4249   cat conftest.err >&5
4250   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251   (exit $ac_status); } >/dev/null && {
4252          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4253          test ! -s conftest.err
4254        }; then
4255   :
4256 else
4257   $as_echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4259
4260   # Broken: fails on valid input.
4261 continue
4262 fi
4263
4264 rm -f conftest.err conftest.$ac_ext
4265
4266   # OK, works on sane cases.  Now check whether nonexistent headers
4267   # can be detected and how.
4268   cat >conftest.$ac_ext <<_ACEOF
4269 /* confdefs.h.  */
4270 _ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h.  */
4274 #include <ac_nonexistent.h>
4275 _ACEOF
4276 if { (ac_try="$ac_cpp conftest.$ac_ext"
4277 case "(($ac_try" in
4278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279   *) ac_try_echo=$ac_try;;
4280 esac
4281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4282 $as_echo "$ac_try_echo") >&5
4283   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4284   ac_status=$?
4285   grep -v '^ *+' conftest.er1 >conftest.err
4286   rm -f conftest.er1
4287   cat conftest.err >&5
4288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289   (exit $ac_status); } >/dev/null && {
4290          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4291          test ! -s conftest.err
4292        }; then
4293   # Broken: success on invalid input.
4294 continue
4295 else
4296   $as_echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4298
4299   # Passes both tests.
4300 ac_preproc_ok=:
4301 break
4302 fi
4303
4304 rm -f conftest.err conftest.$ac_ext
4305
4306 done
4307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4308 rm -f conftest.err conftest.$ac_ext
4309 if $ac_preproc_ok; then
4310   break
4311 fi
4312
4313     done
4314     ac_cv_prog_CPP=$CPP
4315
4316 fi
4317   CPP=$ac_cv_prog_CPP
4318 else
4319   ac_cv_prog_CPP=$CPP
4320 fi
4321 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4322 $as_echo "$CPP" >&6; }
4323 ac_preproc_ok=false
4324 for ac_c_preproc_warn_flag in '' yes
4325 do
4326   # Use a header file that comes with gcc, so configuring glibc
4327   # with a fresh cross-compiler works.
4328   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4329   # <limits.h> exists even on freestanding compilers.
4330   # On the NeXT, cc -E runs the code through the compiler's parser,
4331   # not just through cpp. "Syntax error" is here to catch this case.
4332   cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h.  */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h.  */
4338 #ifdef __STDC__
4339 # include <limits.h>
4340 #else
4341 # include <assert.h>
4342 #endif
4343                      Syntax error
4344 _ACEOF
4345 if { (ac_try="$ac_cpp conftest.$ac_ext"
4346 case "(($ac_try" in
4347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348   *) ac_try_echo=$ac_try;;
4349 esac
4350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4351 $as_echo "$ac_try_echo") >&5
4352   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4353   ac_status=$?
4354   grep -v '^ *+' conftest.er1 >conftest.err
4355   rm -f conftest.er1
4356   cat conftest.err >&5
4357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358   (exit $ac_status); } >/dev/null && {
4359          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4360          test ! -s conftest.err
4361        }; then
4362   :
4363 else
4364   $as_echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4366
4367   # Broken: fails on valid input.
4368 continue
4369 fi
4370
4371 rm -f conftest.err conftest.$ac_ext
4372
4373   # OK, works on sane cases.  Now check whether nonexistent headers
4374   # can be detected and how.
4375   cat >conftest.$ac_ext <<_ACEOF
4376 /* confdefs.h.  */
4377 _ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h.  */
4381 #include <ac_nonexistent.h>
4382 _ACEOF
4383 if { (ac_try="$ac_cpp conftest.$ac_ext"
4384 case "(($ac_try" in
4385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386   *) ac_try_echo=$ac_try;;
4387 esac
4388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4389 $as_echo "$ac_try_echo") >&5
4390   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4391   ac_status=$?
4392   grep -v '^ *+' conftest.er1 >conftest.err
4393   rm -f conftest.er1
4394   cat conftest.err >&5
4395   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); } >/dev/null && {
4397          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4398          test ! -s conftest.err
4399        }; then
4400   # Broken: success on invalid input.
4401 continue
4402 else
4403   $as_echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4405
4406   # Passes both tests.
4407 ac_preproc_ok=:
4408 break
4409 fi
4410
4411 rm -f conftest.err conftest.$ac_ext
4412
4413 done
4414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4415 rm -f conftest.err conftest.$ac_ext
4416 if $ac_preproc_ok; then
4417   :
4418 else
4419   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4421 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4422 See \`config.log' for more details." >&5
4423 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4424 See \`config.log' for more details." >&2;}
4425    { (exit 1); exit 1; }; }; }
4426 fi
4427
4428 ac_ext=c
4429 ac_cpp='$CPP $CPPFLAGS'
4430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433
4434
4435 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4436 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4437 if test "${ac_cv_path_GREP+set}" = set; then
4438   $as_echo_n "(cached) " >&6
4439 else
4440   if test -z "$GREP"; then
4441   ac_path_GREP_found=false
4442   # Loop through the user's path and test for each of PROGNAME-LIST
4443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4445 do
4446   IFS=$as_save_IFS
4447   test -z "$as_dir" && as_dir=.
4448   for ac_prog in grep ggrep; do
4449     for ac_exec_ext in '' $ac_executable_extensions; do
4450       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4451       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4452 # Check for GNU ac_path_GREP and select it if it is found.
4453   # Check for GNU $ac_path_GREP
4454 case `"$ac_path_GREP" --version 2>&1` in
4455 *GNU*)
4456   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4457 *)
4458   ac_count=0
4459   $as_echo_n 0123456789 >"conftest.in"
4460   while :
4461   do
4462     cat "conftest.in" "conftest.in" >"conftest.tmp"
4463     mv "conftest.tmp" "conftest.in"
4464     cp "conftest.in" "conftest.nl"
4465     $as_echo 'GREP' >> "conftest.nl"
4466     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4467     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4468     ac_count=`expr $ac_count + 1`
4469     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4470       # Best one so far, save it but keep looking for a better one
4471       ac_cv_path_GREP="$ac_path_GREP"
4472       ac_path_GREP_max=$ac_count
4473     fi
4474     # 10*(2^10) chars as input seems more than enough
4475     test $ac_count -gt 10 && break
4476   done
4477   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4478 esac
4479
4480       $ac_path_GREP_found && break 3
4481     done
4482   done
4483 done
4484 IFS=$as_save_IFS
4485   if test -z "$ac_cv_path_GREP"; then
4486     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4487 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4488    { (exit 1); exit 1; }; }
4489   fi
4490 else
4491   ac_cv_path_GREP=$GREP
4492 fi
4493
4494 fi
4495 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4496 $as_echo "$ac_cv_path_GREP" >&6; }
4497  GREP="$ac_cv_path_GREP"
4498
4499
4500 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4501 $as_echo_n "checking for egrep... " >&6; }
4502 if test "${ac_cv_path_EGREP+set}" = set; then
4503   $as_echo_n "(cached) " >&6
4504 else
4505   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4506    then ac_cv_path_EGREP="$GREP -E"
4507    else
4508      if test -z "$EGREP"; then
4509   ac_path_EGREP_found=false
4510   # Loop through the user's path and test for each of PROGNAME-LIST
4511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4513 do
4514   IFS=$as_save_IFS
4515   test -z "$as_dir" && as_dir=.
4516   for ac_prog in egrep; do
4517     for ac_exec_ext in '' $ac_executable_extensions; do
4518       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4519       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4520 # Check for GNU ac_path_EGREP and select it if it is found.
4521   # Check for GNU $ac_path_EGREP
4522 case `"$ac_path_EGREP" --version 2>&1` in
4523 *GNU*)
4524   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4525 *)
4526   ac_count=0
4527   $as_echo_n 0123456789 >"conftest.in"
4528   while :
4529   do
4530     cat "conftest.in" "conftest.in" >"conftest.tmp"
4531     mv "conftest.tmp" "conftest.in"
4532     cp "conftest.in" "conftest.nl"
4533     $as_echo 'EGREP' >> "conftest.nl"
4534     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4535     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4536     ac_count=`expr $ac_count + 1`
4537     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4538       # Best one so far, save it but keep looking for a better one
4539       ac_cv_path_EGREP="$ac_path_EGREP"
4540       ac_path_EGREP_max=$ac_count
4541     fi
4542     # 10*(2^10) chars as input seems more than enough
4543     test $ac_count -gt 10 && break
4544   done
4545   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4546 esac
4547
4548       $ac_path_EGREP_found && break 3
4549     done
4550   done
4551 done
4552 IFS=$as_save_IFS
4553   if test -z "$ac_cv_path_EGREP"; then
4554     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4555 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4556    { (exit 1); exit 1; }; }
4557   fi
4558 else
4559   ac_cv_path_EGREP=$EGREP
4560 fi
4561
4562    fi
4563 fi
4564 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4565 $as_echo "$ac_cv_path_EGREP" >&6; }
4566  EGREP="$ac_cv_path_EGREP"
4567
4568
4569 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4570 $as_echo_n "checking for ANSI C header files... " >&6; }
4571 if test "${ac_cv_header_stdc+set}" = set; then
4572   $as_echo_n "(cached) " >&6
4573 else
4574   cat >conftest.$ac_ext <<_ACEOF
4575 /* confdefs.h.  */
4576 _ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h.  */
4580 #include <stdlib.h>
4581 #include <stdarg.h>
4582 #include <string.h>
4583 #include <float.h>
4584
4585 int
4586 main ()
4587 {
4588
4589   ;
4590   return 0;
4591 }
4592 _ACEOF
4593 rm -f conftest.$ac_objext
4594 if { (ac_try="$ac_compile"
4595 case "(($ac_try" in
4596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597   *) ac_try_echo=$ac_try;;
4598 esac
4599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4600 $as_echo "$ac_try_echo") >&5
4601   (eval "$ac_compile") 2>conftest.er1
4602   ac_status=$?
4603   grep -v '^ *+' conftest.er1 >conftest.err
4604   rm -f conftest.er1
4605   cat conftest.err >&5
4606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607   (exit $ac_status); } && {
4608          test -z "$ac_c_werror_flag" ||
4609          test ! -s conftest.err
4610        } && test -s conftest.$ac_objext; then
4611   ac_cv_header_stdc=yes
4612 else
4613   $as_echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4615
4616         ac_cv_header_stdc=no
4617 fi
4618
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4620
4621 if test $ac_cv_header_stdc = yes; then
4622   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4623   cat >conftest.$ac_ext <<_ACEOF
4624 /* confdefs.h.  */
4625 _ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h.  */
4629 #include <string.h>
4630
4631 _ACEOF
4632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4633   $EGREP "memchr" >/dev/null 2>&1; then
4634   :
4635 else
4636   ac_cv_header_stdc=no
4637 fi
4638 rm -f conftest*
4639
4640 fi
4641
4642 if test $ac_cv_header_stdc = yes; then
4643   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4644   cat >conftest.$ac_ext <<_ACEOF
4645 /* confdefs.h.  */
4646 _ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h.  */
4650 #include <stdlib.h>
4651
4652 _ACEOF
4653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4654   $EGREP "free" >/dev/null 2>&1; then
4655   :
4656 else
4657   ac_cv_header_stdc=no
4658 fi
4659 rm -f conftest*
4660
4661 fi
4662
4663 if test $ac_cv_header_stdc = yes; then
4664   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4665   if test "$cross_compiling" = yes; then
4666   :
4667 else
4668   cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h.  */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h.  */
4674 #include <ctype.h>
4675 #include <stdlib.h>
4676 #if ((' ' & 0x0FF) == 0x020)
4677 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4678 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4679 #else
4680 # define ISLOWER(c) \
4681                    (('a' <= (c) && (c) <= 'i') \
4682                      || ('j' <= (c) && (c) <= 'r') \
4683                      || ('s' <= (c) && (c) <= 'z'))
4684 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4685 #endif
4686
4687 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4688 int
4689 main ()
4690 {
4691   int i;
4692   for (i = 0; i < 256; i++)
4693     if (XOR (islower (i), ISLOWER (i))
4694         || toupper (i) != TOUPPER (i))
4695       return 2;
4696   return 0;
4697 }
4698 _ACEOF
4699 rm -f conftest$ac_exeext
4700 if { (ac_try="$ac_link"
4701 case "(($ac_try" in
4702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703   *) ac_try_echo=$ac_try;;
4704 esac
4705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4706 $as_echo "$ac_try_echo") >&5
4707   (eval "$ac_link") 2>&5
4708   ac_status=$?
4709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4711   { (case "(($ac_try" in
4712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713   *) ac_try_echo=$ac_try;;
4714 esac
4715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4716 $as_echo "$ac_try_echo") >&5
4717   (eval "$ac_try") 2>&5
4718   ac_status=$?
4719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); }; }; then
4721   :
4722 else
4723   $as_echo "$as_me: program exited with status $ac_status" >&5
4724 $as_echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4726
4727 ( exit $ac_status )
4728 ac_cv_header_stdc=no
4729 fi
4730 rm -rf conftest.dSYM
4731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4732 fi
4733
4734
4735 fi
4736 fi
4737 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4738 $as_echo "$ac_cv_header_stdc" >&6; }
4739 if test $ac_cv_header_stdc = yes; then
4740
4741 cat >>confdefs.h <<\_ACEOF
4742 #define STDC_HEADERS 1
4743 _ACEOF
4744
4745 fi
4746
4747 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4758                   inttypes.h stdint.h unistd.h
4759 do
4760 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4761 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4762 $as_echo_n "checking for $ac_header... " >&6; }
4763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4764   $as_echo_n "(cached) " >&6
4765 else
4766   cat >conftest.$ac_ext <<_ACEOF
4767 /* confdefs.h.  */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h.  */
4772 $ac_includes_default
4773
4774 #include <$ac_header>
4775 _ACEOF
4776 rm -f conftest.$ac_objext
4777 if { (ac_try="$ac_compile"
4778 case "(($ac_try" in
4779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780   *) ac_try_echo=$ac_try;;
4781 esac
4782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4783 $as_echo "$ac_try_echo") >&5
4784   (eval "$ac_compile") 2>conftest.er1
4785   ac_status=$?
4786   grep -v '^ *+' conftest.er1 >conftest.err
4787   rm -f conftest.er1
4788   cat conftest.err >&5
4789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); } && {
4791          test -z "$ac_c_werror_flag" ||
4792          test ! -s conftest.err
4793        } && test -s conftest.$ac_objext; then
4794   eval "$as_ac_Header=yes"
4795 else
4796   $as_echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4798
4799         eval "$as_ac_Header=no"
4800 fi
4801
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 fi
4804 ac_res=`eval 'as_val=${'$as_ac_Header'}
4805                  $as_echo "$as_val"'`
4806                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4807 $as_echo "$ac_res" >&6; }
4808 as_val=`eval 'as_val=${'$as_ac_Header'}
4809                  $as_echo "$as_val"'`
4810    if test "x$as_val" = x""yes; then
4811   cat >>confdefs.h <<_ACEOF
4812 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4813 _ACEOF
4814
4815 fi
4816
4817 done
4818
4819
4820
4821
4822
4823 for ac_header in string.h unistd.h utime.h
4824 do
4825 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4827   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4828 $as_echo_n "checking for $ac_header... " >&6; }
4829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4830   $as_echo_n "(cached) " >&6
4831 fi
4832 ac_res=`eval 'as_val=${'$as_ac_Header'}
4833                  $as_echo "$as_val"'`
4834                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4835 $as_echo "$ac_res" >&6; }
4836 else
4837   # Is the header compilable?
4838 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4839 $as_echo_n "checking $ac_header usability... " >&6; }
4840 cat >conftest.$ac_ext <<_ACEOF
4841 /* confdefs.h.  */
4842 _ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h.  */
4846 $ac_includes_default
4847 #include <$ac_header>
4848 _ACEOF
4849 rm -f conftest.$ac_objext
4850 if { (ac_try="$ac_compile"
4851 case "(($ac_try" in
4852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853   *) ac_try_echo=$ac_try;;
4854 esac
4855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4856 $as_echo "$ac_try_echo") >&5
4857   (eval "$ac_compile") 2>conftest.er1
4858   ac_status=$?
4859   grep -v '^ *+' conftest.er1 >conftest.err
4860   rm -f conftest.er1
4861   cat conftest.err >&5
4862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863   (exit $ac_status); } && {
4864          test -z "$ac_c_werror_flag" ||
4865          test ! -s conftest.err
4866        } && test -s conftest.$ac_objext; then
4867   ac_header_compiler=yes
4868 else
4869   $as_echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4871
4872         ac_header_compiler=no
4873 fi
4874
4875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4876 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4877 $as_echo "$ac_header_compiler" >&6; }
4878
4879 # Is the header present?
4880 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4881 $as_echo_n "checking $ac_header presence... " >&6; }
4882 cat >conftest.$ac_ext <<_ACEOF
4883 /* confdefs.h.  */
4884 _ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h.  */
4888 #include <$ac_header>
4889 _ACEOF
4890 if { (ac_try="$ac_cpp conftest.$ac_ext"
4891 case "(($ac_try" in
4892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4893   *) ac_try_echo=$ac_try;;
4894 esac
4895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4896 $as_echo "$ac_try_echo") >&5
4897   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4898   ac_status=$?
4899   grep -v '^ *+' conftest.er1 >conftest.err
4900   rm -f conftest.er1
4901   cat conftest.err >&5
4902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); } >/dev/null && {
4904          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4905          test ! -s conftest.err
4906        }; then
4907   ac_header_preproc=yes
4908 else
4909   $as_echo "$as_me: failed program was:" >&5
4910 sed 's/^/| /' conftest.$ac_ext >&5
4911
4912   ac_header_preproc=no
4913 fi
4914
4915 rm -f conftest.err conftest.$ac_ext
4916 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4917 $as_echo "$ac_header_preproc" >&6; }
4918
4919 # So?  What about this header?
4920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4921   yes:no: )
4922     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4923 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4924     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4925 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4926     ac_header_preproc=yes
4927     ;;
4928   no:yes:* )
4929     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4930 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4931     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4932 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4933     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4934 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4935     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4936 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4937     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4938 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4939     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4940 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4941     ( cat <<\_ASBOX
4942 ## ---------------------------------------------- ##
4943 ## Report this to issoftware@users.sourceforge.jp ##
4944 ## ---------------------------------------------- ##
4945 _ASBOX
4946      ) | sed "s/^/$as_me: WARNING:     /" >&2
4947     ;;
4948 esac
4949 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4950 $as_echo_n "checking for $ac_header... " >&6; }
4951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4952   $as_echo_n "(cached) " >&6
4953 else
4954   eval "$as_ac_Header=\$ac_header_preproc"
4955 fi
4956 ac_res=`eval 'as_val=${'$as_ac_Header'}
4957                  $as_echo "$as_val"'`
4958                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4959 $as_echo "$ac_res" >&6; }
4960
4961 fi
4962 as_val=`eval 'as_val=${'$as_ac_Header'}
4963                  $as_echo "$as_val"'`
4964    if test "x$as_val" = x""yes; then
4965   cat >>confdefs.h <<_ACEOF
4966 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4967 _ACEOF
4968
4969 fi
4970
4971 done
4972
4973
4974 # Checks for typedefs, structures, and compiler characteristics.
4975 { $as_echo "$as_me:$LINENO: checking for inline" >&5
4976 $as_echo_n "checking for inline... " >&6; }
4977 if test "${ac_cv_c_inline+set}" = set; then
4978   $as_echo_n "(cached) " >&6
4979 else
4980   ac_cv_c_inline=no
4981 for ac_kw in inline __inline__ __inline; do
4982   cat >conftest.$ac_ext <<_ACEOF
4983 /* confdefs.h.  */
4984 _ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h.  */
4988 #ifndef __cplusplus
4989 typedef int foo_t;
4990 static $ac_kw foo_t static_foo () {return 0; }
4991 $ac_kw foo_t foo () {return 0; }
4992 #endif
4993
4994 _ACEOF
4995 rm -f conftest.$ac_objext
4996 if { (ac_try="$ac_compile"
4997 case "(($ac_try" in
4998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4999   *) ac_try_echo=$ac_try;;
5000 esac
5001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5002 $as_echo "$ac_try_echo") >&5
5003   (eval "$ac_compile") 2>conftest.er1
5004   ac_status=$?
5005   grep -v '^ *+' conftest.er1 >conftest.err
5006   rm -f conftest.er1
5007   cat conftest.err >&5
5008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009   (exit $ac_status); } && {
5010          test -z "$ac_c_werror_flag" ||
5011          test ! -s conftest.err
5012        } && test -s conftest.$ac_objext; then
5013   ac_cv_c_inline=$ac_kw
5014 else
5015   $as_echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5017
5018
5019 fi
5020
5021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022   test "$ac_cv_c_inline" != no && break
5023 done
5024
5025 fi
5026 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5027 $as_echo "$ac_cv_c_inline" >&6; }
5028
5029
5030 case $ac_cv_c_inline in
5031   inline | yes) ;;
5032   *)
5033     case $ac_cv_c_inline in
5034       no) ac_val=;;
5035       *) ac_val=$ac_cv_c_inline;;
5036     esac
5037     cat >>confdefs.h <<_ACEOF
5038 #ifndef __cplusplus
5039 #define inline $ac_val
5040 #endif
5041 _ACEOF
5042     ;;
5043 esac
5044
5045 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
5046 $as_echo_n "checking for mode_t... " >&6; }
5047 if test "${ac_cv_type_mode_t+set}" = set; then
5048   $as_echo_n "(cached) " >&6
5049 else
5050   ac_cv_type_mode_t=no
5051 cat >conftest.$ac_ext <<_ACEOF
5052 /* confdefs.h.  */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h.  */
5057 $ac_includes_default
5058 int
5059 main ()
5060 {
5061 if (sizeof (mode_t))
5062        return 0;
5063   ;
5064   return 0;
5065 }
5066 _ACEOF
5067 rm -f conftest.$ac_objext
5068 if { (ac_try="$ac_compile"
5069 case "(($ac_try" in
5070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5071   *) ac_try_echo=$ac_try;;
5072 esac
5073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5074 $as_echo "$ac_try_echo") >&5
5075   (eval "$ac_compile") 2>conftest.er1
5076   ac_status=$?
5077   grep -v '^ *+' conftest.er1 >conftest.err
5078   rm -f conftest.er1
5079   cat conftest.err >&5
5080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081   (exit $ac_status); } && {
5082          test -z "$ac_c_werror_flag" ||
5083          test ! -s conftest.err
5084        } && test -s conftest.$ac_objext; then
5085   cat >conftest.$ac_ext <<_ACEOF
5086 /* confdefs.h.  */
5087 _ACEOF
5088 cat confdefs.h >>conftest.$ac_ext
5089 cat >>conftest.$ac_ext <<_ACEOF
5090 /* end confdefs.h.  */
5091 $ac_includes_default
5092 int
5093 main ()
5094 {
5095 if (sizeof ((mode_t)))
5096           return 0;
5097   ;
5098   return 0;
5099 }
5100 _ACEOF
5101 rm -f conftest.$ac_objext
5102 if { (ac_try="$ac_compile"
5103 case "(($ac_try" in
5104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5105   *) ac_try_echo=$ac_try;;
5106 esac
5107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5108 $as_echo "$ac_try_echo") >&5
5109   (eval "$ac_compile") 2>conftest.er1
5110   ac_status=$?
5111   grep -v '^ *+' conftest.er1 >conftest.err
5112   rm -f conftest.er1
5113   cat conftest.err >&5
5114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115   (exit $ac_status); } && {
5116          test -z "$ac_c_werror_flag" ||
5117          test ! -s conftest.err
5118        } && test -s conftest.$ac_objext; then
5119   :
5120 else
5121   $as_echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5123
5124         ac_cv_type_mode_t=yes
5125 fi
5126
5127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5128 else
5129   $as_echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5131
5132
5133 fi
5134
5135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5136 fi
5137 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5138 $as_echo "$ac_cv_type_mode_t" >&6; }
5139 if test "x$ac_cv_type_mode_t" = x""yes; then
5140   :
5141 else
5142
5143 cat >>confdefs.h <<_ACEOF
5144 #define mode_t int
5145 _ACEOF
5146
5147 fi
5148
5149 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5150 $as_echo_n "checking for off_t... " >&6; }
5151 if test "${ac_cv_type_off_t+set}" = set; then
5152   $as_echo_n "(cached) " >&6
5153 else
5154   ac_cv_type_off_t=no
5155 cat >conftest.$ac_ext <<_ACEOF
5156 /* confdefs.h.  */
5157 _ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h.  */
5161 $ac_includes_default
5162 int
5163 main ()
5164 {
5165 if (sizeof (off_t))
5166        return 0;
5167   ;
5168   return 0;
5169 }
5170 _ACEOF
5171 rm -f conftest.$ac_objext
5172 if { (ac_try="$ac_compile"
5173 case "(($ac_try" in
5174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175   *) ac_try_echo=$ac_try;;
5176 esac
5177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5178 $as_echo "$ac_try_echo") >&5
5179   (eval "$ac_compile") 2>conftest.er1
5180   ac_status=$?
5181   grep -v '^ *+' conftest.er1 >conftest.err
5182   rm -f conftest.er1
5183   cat conftest.err >&5
5184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185   (exit $ac_status); } && {
5186          test -z "$ac_c_werror_flag" ||
5187          test ! -s conftest.err
5188        } && test -s conftest.$ac_objext; then
5189   cat >conftest.$ac_ext <<_ACEOF
5190 /* confdefs.h.  */
5191 _ACEOF
5192 cat confdefs.h >>conftest.$ac_ext
5193 cat >>conftest.$ac_ext <<_ACEOF
5194 /* end confdefs.h.  */
5195 $ac_includes_default
5196 int
5197 main ()
5198 {
5199 if (sizeof ((off_t)))
5200           return 0;
5201   ;
5202   return 0;
5203 }
5204 _ACEOF
5205 rm -f conftest.$ac_objext
5206 if { (ac_try="$ac_compile"
5207 case "(($ac_try" in
5208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209   *) ac_try_echo=$ac_try;;
5210 esac
5211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5212 $as_echo "$ac_try_echo") >&5
5213   (eval "$ac_compile") 2>conftest.er1
5214   ac_status=$?
5215   grep -v '^ *+' conftest.er1 >conftest.err
5216   rm -f conftest.er1
5217   cat conftest.err >&5
5218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); } && {
5220          test -z "$ac_c_werror_flag" ||
5221          test ! -s conftest.err
5222        } && test -s conftest.$ac_objext; then
5223   :
5224 else
5225   $as_echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.$ac_ext >&5
5227
5228         ac_cv_type_off_t=yes
5229 fi
5230
5231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5232 else
5233   $as_echo "$as_me: failed program was:" >&5
5234 sed 's/^/| /' conftest.$ac_ext >&5
5235
5236
5237 fi
5238
5239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5240 fi
5241 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5242 $as_echo "$ac_cv_type_off_t" >&6; }
5243 if test "x$ac_cv_type_off_t" = x""yes; then
5244   :
5245 else
5246
5247 cat >>confdefs.h <<_ACEOF
5248 #define off_t long int
5249 _ACEOF
5250
5251 fi
5252
5253 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5254 $as_echo_n "checking for size_t... " >&6; }
5255 if test "${ac_cv_type_size_t+set}" = set; then
5256   $as_echo_n "(cached) " >&6
5257 else
5258   ac_cv_type_size_t=no
5259 cat >conftest.$ac_ext <<_ACEOF
5260 /* confdefs.h.  */
5261 _ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h.  */
5265 $ac_includes_default
5266 int
5267 main ()
5268 {
5269 if (sizeof (size_t))
5270        return 0;
5271   ;
5272   return 0;
5273 }
5274 _ACEOF
5275 rm -f conftest.$ac_objext
5276 if { (ac_try="$ac_compile"
5277 case "(($ac_try" in
5278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5279   *) ac_try_echo=$ac_try;;
5280 esac
5281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5282 $as_echo "$ac_try_echo") >&5
5283   (eval "$ac_compile") 2>conftest.er1
5284   ac_status=$?
5285   grep -v '^ *+' conftest.er1 >conftest.err
5286   rm -f conftest.er1
5287   cat conftest.err >&5
5288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289   (exit $ac_status); } && {
5290          test -z "$ac_c_werror_flag" ||
5291          test ! -s conftest.err
5292        } && test -s conftest.$ac_objext; then
5293   cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h.  */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h.  */
5299 $ac_includes_default
5300 int
5301 main ()
5302 {
5303 if (sizeof ((size_t)))
5304           return 0;
5305   ;
5306   return 0;
5307 }
5308 _ACEOF
5309 rm -f conftest.$ac_objext
5310 if { (ac_try="$ac_compile"
5311 case "(($ac_try" in
5312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313   *) ac_try_echo=$ac_try;;
5314 esac
5315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5316 $as_echo "$ac_try_echo") >&5
5317   (eval "$ac_compile") 2>conftest.er1
5318   ac_status=$?
5319   grep -v '^ *+' conftest.er1 >conftest.err
5320   rm -f conftest.er1
5321   cat conftest.err >&5
5322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323   (exit $ac_status); } && {
5324          test -z "$ac_c_werror_flag" ||
5325          test ! -s conftest.err
5326        } && test -s conftest.$ac_objext; then
5327   :
5328 else
5329   $as_echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.$ac_ext >&5
5331
5332         ac_cv_type_size_t=yes
5333 fi
5334
5335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5336 else
5337   $as_echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5339
5340
5341 fi
5342
5343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344 fi
5345 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5346 $as_echo "$ac_cv_type_size_t" >&6; }
5347 if test "x$ac_cv_type_size_t" = x""yes; then
5348   :
5349 else
5350
5351 cat >>confdefs.h <<_ACEOF
5352 #define size_t unsigned int
5353 _ACEOF
5354
5355 fi
5356
5357 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
5358 $as_echo_n "checking for ssize_t... " >&6; }
5359 if test "${ac_cv_type_ssize_t+set}" = set; then
5360   $as_echo_n "(cached) " >&6
5361 else
5362   ac_cv_type_ssize_t=no
5363 cat >conftest.$ac_ext <<_ACEOF
5364 /* confdefs.h.  */
5365 _ACEOF
5366 cat confdefs.h >>conftest.$ac_ext
5367 cat >>conftest.$ac_ext <<_ACEOF
5368 /* end confdefs.h.  */
5369 $ac_includes_default
5370 int
5371 main ()
5372 {
5373 if (sizeof (ssize_t))
5374        return 0;
5375   ;
5376   return 0;
5377 }
5378 _ACEOF
5379 rm -f conftest.$ac_objext
5380 if { (ac_try="$ac_compile"
5381 case "(($ac_try" in
5382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383   *) ac_try_echo=$ac_try;;
5384 esac
5385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5386 $as_echo "$ac_try_echo") >&5
5387   (eval "$ac_compile") 2>conftest.er1
5388   ac_status=$?
5389   grep -v '^ *+' conftest.er1 >conftest.err
5390   rm -f conftest.er1
5391   cat conftest.err >&5
5392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393   (exit $ac_status); } && {
5394          test -z "$ac_c_werror_flag" ||
5395          test ! -s conftest.err
5396        } && test -s conftest.$ac_objext; then
5397   cat >conftest.$ac_ext <<_ACEOF
5398 /* confdefs.h.  */
5399 _ACEOF
5400 cat confdefs.h >>conftest.$ac_ext
5401 cat >>conftest.$ac_ext <<_ACEOF
5402 /* end confdefs.h.  */
5403 $ac_includes_default
5404 int
5405 main ()
5406 {
5407 if (sizeof ((ssize_t)))
5408           return 0;
5409   ;
5410   return 0;
5411 }
5412 _ACEOF
5413 rm -f conftest.$ac_objext
5414 if { (ac_try="$ac_compile"
5415 case "(($ac_try" in
5416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417   *) ac_try_echo=$ac_try;;
5418 esac
5419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5420 $as_echo "$ac_try_echo") >&5
5421   (eval "$ac_compile") 2>conftest.er1
5422   ac_status=$?
5423   grep -v '^ *+' conftest.er1 >conftest.err
5424   rm -f conftest.er1
5425   cat conftest.err >&5
5426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427   (exit $ac_status); } && {
5428          test -z "$ac_c_werror_flag" ||
5429          test ! -s conftest.err
5430        } && test -s conftest.$ac_objext; then
5431   :
5432 else
5433   $as_echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5435
5436         ac_cv_type_ssize_t=yes
5437 fi
5438
5439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440 else
5441   $as_echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5443
5444
5445 fi
5446
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448 fi
5449 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
5450 $as_echo "$ac_cv_type_ssize_t" >&6; }
5451 if test "x$ac_cv_type_ssize_t" = x""yes; then
5452   :
5453 else
5454
5455 cat >>confdefs.h <<_ACEOF
5456 #define ssize_t int
5457 _ACEOF
5458
5459 fi
5460
5461
5462 # Checks for library functions.
5463 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
5464 $as_echo_n "checking whether strerror_r is declared... " >&6; }
5465 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
5466   $as_echo_n "(cached) " >&6
5467 else
5468   cat >conftest.$ac_ext <<_ACEOF
5469 /* confdefs.h.  */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h.  */
5474 $ac_includes_default
5475 int
5476 main ()
5477 {
5478 #ifndef strerror_r
5479   (void) strerror_r;
5480 #endif
5481
5482   ;
5483   return 0;
5484 }
5485 _ACEOF
5486 rm -f conftest.$ac_objext
5487 if { (ac_try="$ac_compile"
5488 case "(($ac_try" in
5489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490   *) ac_try_echo=$ac_try;;
5491 esac
5492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5493 $as_echo "$ac_try_echo") >&5
5494   (eval "$ac_compile") 2>conftest.er1
5495   ac_status=$?
5496   grep -v '^ *+' conftest.er1 >conftest.err
5497   rm -f conftest.er1
5498   cat conftest.err >&5
5499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500   (exit $ac_status); } && {
5501          test -z "$ac_c_werror_flag" ||
5502          test ! -s conftest.err
5503        } && test -s conftest.$ac_objext; then
5504   ac_cv_have_decl_strerror_r=yes
5505 else
5506   $as_echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5508
5509         ac_cv_have_decl_strerror_r=no
5510 fi
5511
5512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5513 fi
5514 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
5515 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
5516 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
5517
5518 cat >>confdefs.h <<_ACEOF
5519 #define HAVE_DECL_STRERROR_R 1
5520 _ACEOF
5521
5522
5523 else
5524   cat >>confdefs.h <<_ACEOF
5525 #define HAVE_DECL_STRERROR_R 0
5526 _ACEOF
5527
5528
5529 fi
5530
5531
5532
5533 for ac_func in strerror_r
5534 do
5535 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5536 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5537 $as_echo_n "checking for $ac_func... " >&6; }
5538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5539   $as_echo_n "(cached) " >&6
5540 else
5541   cat >conftest.$ac_ext <<_ACEOF
5542 /* confdefs.h.  */
5543 _ACEOF
5544 cat confdefs.h >>conftest.$ac_ext
5545 cat >>conftest.$ac_ext <<_ACEOF
5546 /* end confdefs.h.  */
5547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5549 #define $ac_func innocuous_$ac_func
5550
5551 /* System header to define __stub macros and hopefully few prototypes,
5552     which can conflict with char $ac_func (); below.
5553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5554     <limits.h> exists even on freestanding compilers.  */
5555
5556 #ifdef __STDC__
5557 # include <limits.h>
5558 #else
5559 # include <assert.h>
5560 #endif
5561
5562 #undef $ac_func
5563
5564 /* Override any GCC internal prototype to avoid an error.
5565    Use char because int might match the return type of a GCC
5566    builtin and then its argument prototype would still apply.  */
5567 #ifdef __cplusplus
5568 extern "C"
5569 #endif
5570 char $ac_func ();
5571 /* The GNU C library defines this for functions which it implements
5572     to always fail with ENOSYS.  Some functions are actually named
5573     something starting with __ and the normal name is an alias.  */
5574 #if defined __stub_$ac_func || defined __stub___$ac_func
5575 choke me
5576 #endif
5577
5578 int
5579 main ()
5580 {
5581 return $ac_func ();
5582   ;
5583   return 0;
5584 }
5585 _ACEOF
5586 rm -f conftest.$ac_objext conftest$ac_exeext
5587 if { (ac_try="$ac_link"
5588 case "(($ac_try" in
5589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590   *) ac_try_echo=$ac_try;;
5591 esac
5592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5593 $as_echo "$ac_try_echo") >&5
5594   (eval "$ac_link") 2>conftest.er1
5595   ac_status=$?
5596   grep -v '^ *+' conftest.er1 >conftest.err
5597   rm -f conftest.er1
5598   cat conftest.err >&5
5599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); } && {
5601          test -z "$ac_c_werror_flag" ||
5602          test ! -s conftest.err
5603        } && test -s conftest$ac_exeext && {
5604          test "$cross_compiling" = yes ||
5605          $as_test_x conftest$ac_exeext
5606        }; then
5607   eval "$as_ac_var=yes"
5608 else
5609   $as_echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5611
5612         eval "$as_ac_var=no"
5613 fi
5614
5615 rm -rf conftest.dSYM
5616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5617       conftest$ac_exeext conftest.$ac_ext
5618 fi
5619 ac_res=`eval 'as_val=${'$as_ac_var'}
5620                  $as_echo "$as_val"'`
5621                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5622 $as_echo "$ac_res" >&6; }
5623 as_val=`eval 'as_val=${'$as_ac_var'}
5624                  $as_echo "$as_val"'`
5625    if test "x$as_val" = x""yes; then
5626   cat >>confdefs.h <<_ACEOF
5627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5628 _ACEOF
5629
5630 fi
5631 done
5632
5633 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
5634 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
5635 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
5636   $as_echo_n "(cached) " >&6
5637 else
5638
5639     ac_cv_func_strerror_r_char_p=no
5640     if test $ac_cv_have_decl_strerror_r = yes; then
5641       cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h.  */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h.  */
5647 $ac_includes_default
5648 int
5649 main ()
5650 {
5651
5652           char buf[100];
5653           char x = *strerror_r (0, buf, sizeof buf);
5654           char *p = strerror_r (0, buf, sizeof buf);
5655           return !p || x;
5656
5657   ;
5658   return 0;
5659 }
5660 _ACEOF
5661 rm -f conftest.$ac_objext
5662 if { (ac_try="$ac_compile"
5663 case "(($ac_try" in
5664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665   *) ac_try_echo=$ac_try;;
5666 esac
5667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5668 $as_echo "$ac_try_echo") >&5
5669   (eval "$ac_compile") 2>conftest.er1
5670   ac_status=$?
5671   grep -v '^ *+' conftest.er1 >conftest.err
5672   rm -f conftest.er1
5673   cat conftest.err >&5
5674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); } && {
5676          test -z "$ac_c_werror_flag" ||
5677          test ! -s conftest.err
5678        } && test -s conftest.$ac_objext; then
5679   ac_cv_func_strerror_r_char_p=yes
5680 else
5681   $as_echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5683
5684
5685 fi
5686
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688     else
5689       # strerror_r is not declared.  Choose between
5690       # systems that have relatively inaccessible declarations for the
5691       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
5692       # former has a strerror_r that returns char*, while the latter
5693       # has a strerror_r that returns `int'.
5694       # This test should segfault on the DEC system.
5695       if test "$cross_compiling" = yes; then
5696   :
5697 else
5698   cat >conftest.$ac_ext <<_ACEOF
5699 /* confdefs.h.  */
5700 _ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h.  */
5704 $ac_includes_default
5705         extern char *strerror_r ();
5706 int
5707 main ()
5708 {
5709 char buf[100];
5710           char x = *strerror_r (0, buf, sizeof buf);
5711           return ! isalpha (x);
5712   ;
5713   return 0;
5714 }
5715 _ACEOF
5716 rm -f conftest$ac_exeext
5717 if { (ac_try="$ac_link"
5718 case "(($ac_try" in
5719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720   *) ac_try_echo=$ac_try;;
5721 esac
5722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5723 $as_echo "$ac_try_echo") >&5
5724   (eval "$ac_link") 2>&5
5725   ac_status=$?
5726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5728   { (case "(($ac_try" in
5729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730   *) ac_try_echo=$ac_try;;
5731 esac
5732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5733 $as_echo "$ac_try_echo") >&5
5734   (eval "$ac_try") 2>&5
5735   ac_status=$?
5736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); }; }; then
5738   ac_cv_func_strerror_r_char_p=yes
5739 else
5740   $as_echo "$as_me: program exited with status $ac_status" >&5
5741 $as_echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5743
5744 fi
5745 rm -rf conftest.dSYM
5746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5747 fi
5748
5749
5750     fi
5751
5752 fi
5753 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
5754 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
5755 if test $ac_cv_func_strerror_r_char_p = yes; then
5756
5757 cat >>confdefs.h <<\_ACEOF
5758 #define STRERROR_R_CHAR_P 1
5759 _ACEOF
5760
5761 fi
5762
5763
5764
5765
5766
5767 for ac_func in localtime_r mkdir pow utime
5768 do
5769 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5770 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5771 $as_echo_n "checking for $ac_func... " >&6; }
5772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5773   $as_echo_n "(cached) " >&6
5774 else
5775   cat >conftest.$ac_ext <<_ACEOF
5776 /* confdefs.h.  */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h.  */
5781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5782    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5783 #define $ac_func innocuous_$ac_func
5784
5785 /* System header to define __stub macros and hopefully few prototypes,
5786     which can conflict with char $ac_func (); below.
5787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5788     <limits.h> exists even on freestanding compilers.  */
5789
5790 #ifdef __STDC__
5791 # include <limits.h>
5792 #else
5793 # include <assert.h>
5794 #endif
5795
5796 #undef $ac_func
5797
5798 /* Override any GCC internal prototype to avoid an error.
5799    Use char because int might match the return type of a GCC
5800    builtin and then its argument prototype would still apply.  */
5801 #ifdef __cplusplus
5802 extern "C"
5803 #endif
5804 char $ac_func ();
5805 /* The GNU C library defines this for functions which it implements
5806     to always fail with ENOSYS.  Some functions are actually named
5807     something starting with __ and the normal name is an alias.  */
5808 #if defined __stub_$ac_func || defined __stub___$ac_func
5809 choke me
5810 #endif
5811
5812 int
5813 main ()
5814 {
5815 return $ac_func ();
5816   ;
5817   return 0;
5818 }
5819 _ACEOF
5820 rm -f conftest.$ac_objext conftest$ac_exeext
5821 if { (ac_try="$ac_link"
5822 case "(($ac_try" in
5823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824   *) ac_try_echo=$ac_try;;
5825 esac
5826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5827 $as_echo "$ac_try_echo") >&5
5828   (eval "$ac_link") 2>conftest.er1
5829   ac_status=$?
5830   grep -v '^ *+' conftest.er1 >conftest.err
5831   rm -f conftest.er1
5832   cat conftest.err >&5
5833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834   (exit $ac_status); } && {
5835          test -z "$ac_c_werror_flag" ||
5836          test ! -s conftest.err
5837        } && test -s conftest$ac_exeext && {
5838          test "$cross_compiling" = yes ||
5839          $as_test_x conftest$ac_exeext
5840        }; then
5841   eval "$as_ac_var=yes"
5842 else
5843   $as_echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5845
5846         eval "$as_ac_var=no"
5847 fi
5848
5849 rm -rf conftest.dSYM
5850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5851       conftest$ac_exeext conftest.$ac_ext
5852 fi
5853 ac_res=`eval 'as_val=${'$as_ac_var'}
5854                  $as_echo "$as_val"'`
5855                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5856 $as_echo "$ac_res" >&6; }
5857 as_val=`eval 'as_val=${'$as_ac_var'}
5858                  $as_echo "$as_val"'`
5859    if test "x$as_val" = x""yes; then
5860   cat >>confdefs.h <<_ACEOF
5861 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5862 _ACEOF
5863
5864 fi
5865 done
5866
5867
5868 ac_config_files="$ac_config_files Makefile"
5869
5870 cat >confcache <<\_ACEOF
5871 # This file is a shell script that caches the results of configure
5872 # tests run on this system so they can be shared between configure
5873 # scripts and configure runs, see configure's option --config-cache.
5874 # It is not useful on other systems.  If it contains results you don't
5875 # want to keep, you may remove or edit it.
5876 #
5877 # config.status only pays attention to the cache file if you give it
5878 # the --recheck option to rerun configure.
5879 #
5880 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5881 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5882 # following values.
5883
5884 _ACEOF
5885
5886 # The following way of writing the cache mishandles newlines in values,
5887 # but we know of no workaround that is simple, portable, and efficient.
5888 # So, we kill variables containing newlines.
5889 # Ultrix sh set writes to stderr and can't be redirected directly,
5890 # and sets the high bit in the cache file unless we assign to the vars.
5891 (
5892   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5893     eval ac_val=\$$ac_var
5894     case $ac_val in #(
5895     *${as_nl}*)
5896       case $ac_var in #(
5897       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
5898 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5899       esac
5900       case $ac_var in #(
5901       _ | IFS | as_nl) ;; #(
5902       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5903       *) $as_unset $ac_var ;;
5904       esac ;;
5905     esac
5906   done
5907
5908   (set) 2>&1 |
5909     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5910     *${as_nl}ac_space=\ *)
5911       # `set' does not quote correctly, so add quotes (double-quote
5912       # substitution turns \\\\ into \\, and sed turns \\ into \).
5913       sed -n \
5914         "s/'/'\\\\''/g;
5915           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5916       ;; #(
5917     *)
5918       # `set' quotes correctly as required by POSIX, so do not add quotes.
5919       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5920       ;;
5921     esac |
5922     sort
5923 ) |
5924   sed '
5925      /^ac_cv_env_/b end
5926      t clear
5927      :clear
5928      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5929      t end
5930      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5931      :end' >>confcache
5932 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5933   if test -w "$cache_file"; then
5934     test "x$cache_file" != "x/dev/null" &&
5935       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
5936 $as_echo "$as_me: updating cache $cache_file" >&6;}
5937     cat confcache >$cache_file
5938   else
5939     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5940 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5941   fi
5942 fi
5943 rm -f confcache
5944
5945 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5946 # Let make expand exec_prefix.
5947 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5948
5949 DEFS=-DHAVE_CONFIG_H
5950
5951 ac_libobjs=
5952 ac_ltlibobjs=
5953 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5954   # 1. Remove the extension, and $U if already installed.
5955   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5956   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5957   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
5958   #    will be set to the directory where LIBOBJS objects are built.
5959   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5960   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5961 done
5962 LIBOBJS=$ac_libobjs
5963
5964 LTLIBOBJS=$ac_ltlibobjs
5965
5966
5967 if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
5968   { { $as_echo "$as_me:$LINENO: error: conditional \"DEBUG\" was never defined.
5969 Usually this means the macro was only invoked conditionally." >&5
5970 $as_echo "$as_me: error: conditional \"DEBUG\" was never defined.
5971 Usually this means the macro was only invoked conditionally." >&2;}
5972    { (exit 1); exit 1; }; }
5973 fi
5974 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5975   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5976 Usually this means the macro was only invoked conditionally." >&5
5977 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
5978 Usually this means the macro was only invoked conditionally." >&2;}
5979    { (exit 1); exit 1; }; }
5980 fi
5981 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5982   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
5983 Usually this means the macro was only invoked conditionally." >&5
5984 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
5985 Usually this means the macro was only invoked conditionally." >&2;}
5986    { (exit 1); exit 1; }; }
5987 fi
5988 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5989   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5990 Usually this means the macro was only invoked conditionally." >&5
5991 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5992 Usually this means the macro was only invoked conditionally." >&2;}
5993    { (exit 1); exit 1; }; }
5994 fi
5995
5996 : ${CONFIG_STATUS=./config.status}
5997 ac_write_fail=0
5998 ac_clean_files_save=$ac_clean_files
5999 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6000 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6001 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6002 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6003 #! $SHELL
6004 # Generated by $as_me.
6005 # Run this file to recreate the current configuration.
6006 # Compiler output produced by configure, useful for debugging
6007 # configure, is in config.log if it exists.
6008
6009 debug=false
6010 ac_cs_recheck=false
6011 ac_cs_silent=false
6012 SHELL=\${CONFIG_SHELL-$SHELL}
6013 _ACEOF
6014
6015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6016 ## --------------------- ##
6017 ## M4sh Initialization.  ##
6018 ## --------------------- ##
6019
6020 # Be more Bourne compatible
6021 DUALCASE=1; export DUALCASE # for MKS sh
6022 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6023   emulate sh
6024   NULLCMD=:
6025   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6026   # is contrary to our usage.  Disable this feature.
6027   alias -g '${1+"$@"}'='"$@"'
6028   setopt NO_GLOB_SUBST
6029 else
6030   case `(set -o) 2>/dev/null` in
6031   *posix*) set -o posix ;;
6032 esac
6033
6034 fi
6035
6036
6037
6038
6039 # PATH needs CR
6040 # Avoid depending upon Character Ranges.
6041 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6042 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6043 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6044 as_cr_digits='0123456789'
6045 as_cr_alnum=$as_cr_Letters$as_cr_digits
6046
6047 as_nl='
6048 '
6049 export as_nl
6050 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6051 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6052 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6053 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6054 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6055   as_echo='printf %s\n'
6056   as_echo_n='printf %s'
6057 else
6058   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6059     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6060     as_echo_n='/usr/ucb/echo -n'
6061   else
6062     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6063     as_echo_n_body='eval
6064       arg=$1;
6065       case $arg in
6066       *"$as_nl"*)
6067         expr "X$arg" : "X\\(.*\\)$as_nl";
6068         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6069       esac;
6070       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6071     '
6072     export as_echo_n_body
6073     as_echo_n='sh -c $as_echo_n_body as_echo'
6074   fi
6075   export as_echo_body
6076   as_echo='sh -c $as_echo_body as_echo'
6077 fi
6078
6079 # The user is always right.
6080 if test "${PATH_SEPARATOR+set}" != set; then
6081   PATH_SEPARATOR=:
6082   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6083     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6084       PATH_SEPARATOR=';'
6085   }
6086 fi
6087
6088 # Support unset when possible.
6089 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6090   as_unset=unset
6091 else
6092   as_unset=false
6093 fi
6094
6095
6096 # IFS
6097 # We need space, tab and new line, in precisely that order.  Quoting is
6098 # there to prevent editors from complaining about space-tab.
6099 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6100 # splitting by setting IFS to empty value.)
6101 IFS=" ""        $as_nl"
6102
6103 # Find who we are.  Look in the path if we contain no directory separator.
6104 case $0 in
6105   *[\\/]* ) as_myself=$0 ;;
6106   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 for as_dir in $PATH
6108 do
6109   IFS=$as_save_IFS
6110   test -z "$as_dir" && as_dir=.
6111   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6112 done
6113 IFS=$as_save_IFS
6114
6115      ;;
6116 esac
6117 # We did not find ourselves, most probably we were run as `sh COMMAND'
6118 # in which case we are not to be found in the path.
6119 if test "x$as_myself" = x; then
6120   as_myself=$0
6121 fi
6122 if test ! -f "$as_myself"; then
6123   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6124   { (exit 1); exit 1; }
6125 fi
6126
6127 # Work around bugs in pre-3.0 UWIN ksh.
6128 for as_var in ENV MAIL MAILPATH
6129 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6130 done
6131 PS1='$ '
6132 PS2='> '
6133 PS4='+ '
6134
6135 # NLS nuisances.
6136 LC_ALL=C
6137 export LC_ALL
6138 LANGUAGE=C
6139 export LANGUAGE
6140
6141 # Required to use basename.
6142 if expr a : '\(a\)' >/dev/null 2>&1 &&
6143    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6144   as_expr=expr
6145 else
6146   as_expr=false
6147 fi
6148
6149 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6150   as_basename=basename
6151 else
6152   as_basename=false
6153 fi
6154
6155
6156 # Name of the executable.
6157 as_me=`$as_basename -- "$0" ||
6158 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6159          X"$0" : 'X\(//\)$' \| \
6160          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6161 $as_echo X/"$0" |
6162     sed '/^.*\/\([^/][^/]*\)\/*$/{
6163             s//\1/
6164             q
6165           }
6166           /^X\/\(\/\/\)$/{
6167             s//\1/
6168             q
6169           }
6170           /^X\/\(\/\).*/{
6171             s//\1/
6172             q
6173           }
6174           s/.*/./; q'`
6175
6176 # CDPATH.
6177 $as_unset CDPATH
6178
6179
6180
6181   as_lineno_1=$LINENO
6182   as_lineno_2=$LINENO
6183   test "x$as_lineno_1" != "x$as_lineno_2" &&
6184   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6185
6186   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6187   # uniformly replaced by the line number.  The first 'sed' inserts a
6188   # line-number line after each line using $LINENO; the second 'sed'
6189   # does the real work.  The second script uses 'N' to pair each
6190   # line-number line with the line containing $LINENO, and appends
6191   # trailing '-' during substitution so that $LINENO is not a special
6192   # case at line end.
6193   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6194   # scripts with optimization help from Paolo Bonzini.  Blame Lee
6195   # E. McMahon (1931-1989) for sed's syntax.  :-)
6196   sed -n '
6197     p
6198     /[$]LINENO/=
6199   ' <$as_myself |
6200     sed '
6201       s/[$]LINENO.*/&-/
6202       t lineno
6203       b
6204       :lineno
6205       N
6206       :loop
6207       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6208       t loop
6209       s/-\n.*//
6210     ' >$as_me.lineno &&
6211   chmod +x "$as_me.lineno" ||
6212     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6213    { (exit 1); exit 1; }; }
6214
6215   # Don't try to exec as it changes $[0], causing all sort of problems
6216   # (the dirname of $[0] is not the place where we might find the
6217   # original and so on.  Autoconf is especially sensitive to this).
6218   . "./$as_me.lineno"
6219   # Exit status is that of the last command.
6220   exit
6221 }
6222
6223
6224 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6225   as_dirname=dirname
6226 else
6227   as_dirname=false
6228 fi
6229
6230 ECHO_C= ECHO_N= ECHO_T=
6231 case `echo -n x` in
6232 -n*)
6233   case `echo 'x\c'` in
6234   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6235   *)   ECHO_C='\c';;
6236   esac;;
6237 *)
6238   ECHO_N='-n';;
6239 esac
6240 if expr a : '\(a\)' >/dev/null 2>&1 &&
6241    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6242   as_expr=expr
6243 else
6244   as_expr=false
6245 fi
6246
6247 rm -f conf$$ conf$$.exe conf$$.file
6248 if test -d conf$$.dir; then
6249   rm -f conf$$.dir/conf$$.file
6250 else
6251   rm -f conf$$.dir
6252   mkdir conf$$.dir 2>/dev/null
6253 fi
6254 if (echo >conf$$.file) 2>/dev/null; then
6255   if ln -s conf$$.file conf$$ 2>/dev/null; then
6256     as_ln_s='ln -s'
6257     # ... but there are two gotchas:
6258     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6259     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6260     # In both cases, we have to default to `cp -p'.
6261     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6262       as_ln_s='cp -p'
6263   elif ln conf$$.file conf$$ 2>/dev/null; then
6264     as_ln_s=ln
6265   else
6266     as_ln_s='cp -p'
6267   fi
6268 else
6269   as_ln_s='cp -p'
6270 fi
6271 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6272 rmdir conf$$.dir 2>/dev/null
6273
6274 if mkdir -p . 2>/dev/null; then
6275   as_mkdir_p=:
6276 else
6277   test -d ./-p && rmdir ./-p
6278   as_mkdir_p=false
6279 fi
6280
6281 if test -x / >/dev/null 2>&1; then
6282   as_test_x='test -x'
6283 else
6284   if ls -dL / >/dev/null 2>&1; then
6285     as_ls_L_option=L
6286   else
6287     as_ls_L_option=
6288   fi
6289   as_test_x='
6290     eval sh -c '\''
6291       if test -d "$1"; then
6292         test -d "$1/.";
6293       else
6294         case $1 in
6295         -*)set "./$1";;
6296         esac;
6297         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6298         ???[sx]*):;;*)false;;esac;fi
6299     '\'' sh
6300   '
6301 fi
6302 as_executable_p=$as_test_x
6303
6304 # Sed expression to map a string onto a valid CPP name.
6305 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6306
6307 # Sed expression to map a string onto a valid variable name.
6308 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6309
6310
6311 exec 6>&1
6312
6313 # Save the log message, to keep $[0] and so on meaningful, and to
6314 # report actual input values of CONFIG_FILES etc. instead of their
6315 # values after options handling.
6316 ac_log="
6317 This file was extended by islib $as_me 1.0.0, which was
6318 generated by GNU Autoconf 2.63.  Invocation command line was
6319
6320   CONFIG_FILES    = $CONFIG_FILES
6321   CONFIG_HEADERS  = $CONFIG_HEADERS
6322   CONFIG_LINKS    = $CONFIG_LINKS
6323   CONFIG_COMMANDS = $CONFIG_COMMANDS
6324   $ $0 $@
6325
6326 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6327 "
6328
6329 _ACEOF
6330
6331 case $ac_config_files in *"
6332 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6333 esac
6334
6335 case $ac_config_headers in *"
6336 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6337 esac
6338
6339
6340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6341 # Files that config.status was made for.
6342 config_files="$ac_config_files"
6343 config_headers="$ac_config_headers"
6344 config_commands="$ac_config_commands"
6345
6346 _ACEOF
6347
6348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6349 ac_cs_usage="\
6350 \`$as_me' instantiates files from templates according to the
6351 current configuration.
6352
6353 Usage: $0 [OPTION]... [FILE]...
6354
6355   -h, --help       print this help, then exit
6356   -V, --version    print version number and configuration settings, then exit
6357   -q, --quiet, --silent
6358                    do not print progress messages
6359   -d, --debug      don't remove temporary files
6360       --recheck    update $as_me by reconfiguring in the same conditions
6361       --file=FILE[:TEMPLATE]
6362                    instantiate the configuration file FILE
6363       --header=FILE[:TEMPLATE]
6364                    instantiate the configuration header FILE
6365
6366 Configuration files:
6367 $config_files
6368
6369 Configuration headers:
6370 $config_headers
6371
6372 Configuration commands:
6373 $config_commands
6374
6375 Report bugs to <bug-autoconf@gnu.org>."
6376
6377 _ACEOF
6378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6379 ac_cs_version="\\
6380 islib config.status 1.0.0
6381 configured by $0, generated by GNU Autoconf 2.63,
6382   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6383
6384 Copyright (C) 2008 Free Software Foundation, Inc.
6385 This config.status script is free software; the Free Software Foundation
6386 gives unlimited permission to copy, distribute and modify it."
6387
6388 ac_pwd='$ac_pwd'
6389 srcdir='$srcdir'
6390 INSTALL='$INSTALL'
6391 MKDIR_P='$MKDIR_P'
6392 AWK='$AWK'
6393 test -n "\$AWK" || AWK=awk
6394 _ACEOF
6395
6396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6397 # The default lists apply if the user does not specify any file.
6398 ac_need_defaults=:
6399 while test $# != 0
6400 do
6401   case $1 in
6402   --*=*)
6403     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6404     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6405     ac_shift=:
6406     ;;
6407   *)
6408     ac_option=$1
6409     ac_optarg=$2
6410     ac_shift=shift
6411     ;;
6412   esac
6413
6414   case $ac_option in
6415   # Handling of the options.
6416   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6417     ac_cs_recheck=: ;;
6418   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6419     $as_echo "$ac_cs_version"; exit ;;
6420   --debug | --debu | --deb | --de | --d | -d )
6421     debug=: ;;
6422   --file | --fil | --fi | --f )
6423     $ac_shift
6424     case $ac_optarg in
6425     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6426     esac
6427     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
6428     ac_need_defaults=false;;
6429   --header | --heade | --head | --hea )
6430     $ac_shift
6431     case $ac_optarg in
6432     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6433     esac
6434     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
6435     ac_need_defaults=false;;
6436   --he | --h)
6437     # Conflict between --help and --header
6438     { $as_echo "$as_me: error: ambiguous option: $1
6439 Try \`$0 --help' for more information." >&2
6440    { (exit 1); exit 1; }; };;
6441   --help | --hel | -h )
6442     $as_echo "$ac_cs_usage"; exit ;;
6443   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6444   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6445     ac_cs_silent=: ;;
6446
6447   # This is an error.
6448   -*) { $as_echo "$as_me: error: unrecognized option: $1
6449 Try \`$0 --help' for more information." >&2
6450    { (exit 1); exit 1; }; } ;;
6451
6452   *) ac_config_targets="$ac_config_targets $1"
6453      ac_need_defaults=false ;;
6454
6455   esac
6456   shift
6457 done
6458
6459 ac_configure_extra_args=
6460
6461 if $ac_cs_silent; then
6462   exec 6>/dev/null
6463   ac_configure_extra_args="$ac_configure_extra_args --silent"
6464 fi
6465
6466 _ACEOF
6467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6468 if \$ac_cs_recheck; then
6469   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6470   shift
6471   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6472   CONFIG_SHELL='$SHELL'
6473   export CONFIG_SHELL
6474   exec "\$@"
6475 fi
6476
6477 _ACEOF
6478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6479 exec 5>>config.log
6480 {
6481   echo
6482   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6483 ## Running $as_me. ##
6484 _ASBOX
6485   $as_echo "$ac_log"
6486 } >&5
6487
6488 _ACEOF
6489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6490 #
6491 # INIT-COMMANDS
6492 #
6493 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6494
6495 _ACEOF
6496
6497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6498
6499 # Handling of arguments.
6500 for ac_config_target in $ac_config_targets
6501 do
6502   case $ac_config_target in
6503     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6504     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6505     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6506
6507   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6508 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6509    { (exit 1); exit 1; }; };;
6510   esac
6511 done
6512
6513
6514 # If the user did not use the arguments to specify the items to instantiate,
6515 # then the envvar interface is used.  Set only those that are not.
6516 # We use the long form for the default assignment because of an extremely
6517 # bizarre bug on SunOS 4.1.3.
6518 if $ac_need_defaults; then
6519   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6520   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6521   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6522 fi
6523
6524 # Have a temporary directory for convenience.  Make it in the build tree
6525 # simply because there is no reason against having it here, and in addition,
6526 # creating and moving files from /tmp can sometimes cause problems.
6527 # Hook for its removal unless debugging.
6528 # Note that there is a small window in which the directory will not be cleaned:
6529 # after its creation but before its name has been assigned to `$tmp'.
6530 $debug ||
6531 {
6532   tmp=
6533   trap 'exit_status=$?
6534   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6535 ' 0
6536   trap '{ (exit 1); exit 1; }' 1 2 13 15
6537 }
6538 # Create a (secure) tmp directory for tmp files.
6539
6540 {
6541   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6542   test -n "$tmp" && test -d "$tmp"
6543 }  ||
6544 {
6545   tmp=./conf$$-$RANDOM
6546   (umask 077 && mkdir "$tmp")
6547 } ||
6548 {
6549    $as_echo "$as_me: cannot create a temporary directory in ." >&2
6550    { (exit 1); exit 1; }
6551 }
6552
6553 # Set up the scripts for CONFIG_FILES section.
6554 # No need to generate them if there are no CONFIG_FILES.
6555 # This happens for instance with `./config.status config.h'.
6556 if test -n "$CONFIG_FILES"; then
6557
6558
6559 ac_cr='\r'
6560 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6561 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6562   ac_cs_awk_cr='\\r'
6563 else
6564   ac_cs_awk_cr=$ac_cr
6565 fi
6566
6567 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6568 _ACEOF
6569
6570
6571 {
6572   echo "cat >conf$$subs.awk <<_ACEOF" &&
6573   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6574   echo "_ACEOF"
6575 } >conf$$subs.sh ||
6576   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6577 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6578    { (exit 1); exit 1; }; }
6579 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6580 ac_delim='%!_!# '
6581 for ac_last_try in false false false false false :; do
6582   . ./conf$$subs.sh ||
6583     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6584 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6585    { (exit 1); exit 1; }; }
6586
6587   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6588   if test $ac_delim_n = $ac_delim_num; then
6589     break
6590   elif $ac_last_try; then
6591     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6592 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6593    { (exit 1); exit 1; }; }
6594   else
6595     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6596   fi
6597 done
6598 rm -f conf$$subs.sh
6599
6600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6601 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6602 _ACEOF
6603 sed -n '
6604 h
6605 s/^/S["/; s/!.*/"]=/
6606 p
6607 g
6608 s/^[^!]*!//
6609 :repl
6610 t repl
6611 s/'"$ac_delim"'$//
6612 t delim
6613 :nl
6614 h
6615 s/\(.\{148\}\).*/\1/
6616 t more1
6617 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6618 p
6619 n
6620 b repl
6621 :more1
6622 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6623 p
6624 g
6625 s/.\{148\}//
6626 t nl
6627 :delim
6628 h
6629 s/\(.\{148\}\).*/\1/
6630 t more2
6631 s/["\\]/\\&/g; s/^/"/; s/$/"/
6632 p
6633 b
6634 :more2
6635 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6636 p
6637 g
6638 s/.\{148\}//
6639 t delim
6640 ' <conf$$subs.awk | sed '
6641 /^[^""]/{
6642   N
6643   s/\n//
6644 }
6645 ' >>$CONFIG_STATUS || ac_write_fail=1
6646 rm -f conf$$subs.awk
6647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6648 _ACAWK
6649 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6650   for (key in S) S_is_set[key] = 1
6651   FS = "\a"
6652
6653 }
6654 {
6655   line = $ 0
6656   nfields = split(line, field, "@")
6657   substed = 0
6658   len = length(field[1])
6659   for (i = 2; i < nfields; i++) {
6660     key = field[i]
6661     keylen = length(key)
6662     if (S_is_set[key]) {
6663       value = S[key]
6664       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6665       len += length(value) + length(field[++i])
6666       substed = 1
6667     } else
6668       len += 1 + keylen
6669   }
6670
6671   print line
6672 }
6673
6674 _ACAWK
6675 _ACEOF
6676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6677 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6678   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6679 else
6680   cat
6681 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6682   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
6683 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
6684    { (exit 1); exit 1; }; }
6685 _ACEOF
6686
6687 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6688 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6689 # trailing colons and then remove the whole line if VPATH becomes empty
6690 # (actually we leave an empty line to preserve line numbers).
6691 if test "x$srcdir" = x.; then
6692   ac_vpsub='/^[  ]*VPATH[        ]*=/{
6693 s/:*\$(srcdir):*/:/
6694 s/:*\${srcdir}:*/:/
6695 s/:*@srcdir@:*/:/
6696 s/^\([^=]*=[     ]*\):*/\1/
6697 s/:*$//
6698 s/^[^=]*=[       ]*$//
6699 }'
6700 fi
6701
6702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6703 fi # test -n "$CONFIG_FILES"
6704
6705 # Set up the scripts for CONFIG_HEADERS section.
6706 # No need to generate them if there are no CONFIG_HEADERS.
6707 # This happens for instance with `./config.status Makefile'.
6708 if test -n "$CONFIG_HEADERS"; then
6709 cat >"$tmp/defines.awk" <<\_ACAWK ||
6710 BEGIN {
6711 _ACEOF
6712
6713 # Transform confdefs.h into an awk script `defines.awk', embedded as
6714 # here-document in config.status, that substitutes the proper values into
6715 # config.h.in to produce config.h.
6716
6717 # Create a delimiter string that does not exist in confdefs.h, to ease
6718 # handling of long lines.
6719 ac_delim='%!_!# '
6720 for ac_last_try in false false :; do
6721   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6722   if test -z "$ac_t"; then
6723     break
6724   elif $ac_last_try; then
6725     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
6726 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
6727    { (exit 1); exit 1; }; }
6728   else
6729     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6730   fi
6731 done
6732
6733 # For the awk script, D is an array of macro values keyed by name,
6734 # likewise P contains macro parameters if any.  Preserve backslash
6735 # newline sequences.
6736
6737 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6738 sed -n '
6739 s/.\{148\}/&'"$ac_delim"'/g
6740 t rset
6741 :rset
6742 s/^[     ]*#[    ]*define[       ][      ]*/ /
6743 t def
6744 d
6745 :def
6746 s/\\$//
6747 t bsnl
6748 s/["\\]/\\&/g
6749 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6750 D["\1"]=" \3"/p
6751 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
6752 d
6753 :bsnl
6754 s/["\\]/\\&/g
6755 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
6756 D["\1"]=" \3\\\\\\n"\\/p
6757 t cont
6758 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6759 t cont
6760 d
6761 :cont
6762 n
6763 s/.\{148\}/&'"$ac_delim"'/g
6764 t clear
6765 :clear
6766 s/\\$//
6767 t bsnlc
6768 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6769 d
6770 :bsnlc
6771 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6772 b cont
6773 ' <confdefs.h | sed '
6774 s/'"$ac_delim"'/"\\\
6775 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6776
6777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6778   for (key in D) D_is_set[key] = 1
6779   FS = "\a"
6780 }
6781 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6782   line = \$ 0
6783   split(line, arg, " ")
6784   if (arg[1] == "#") {
6785     defundef = arg[2]
6786     mac1 = arg[3]
6787   } else {
6788     defundef = substr(arg[1], 2)
6789     mac1 = arg[2]
6790   }
6791   split(mac1, mac2, "(") #)
6792   macro = mac2[1]
6793   prefix = substr(line, 1, index(line, defundef) - 1)
6794   if (D_is_set[macro]) {
6795     # Preserve the white space surrounding the "#".
6796     print prefix "define", macro P[macro] D[macro]
6797     next
6798   } else {
6799     # Replace #undef with comments.  This is necessary, for example,
6800     # in the case of _POSIX_SOURCE, which is predefined and required
6801     # on some systems where configure will not decide to define it.
6802     if (defundef == "undef") {
6803       print "/*", prefix defundef, macro, "*/"
6804       next
6805     }
6806   }
6807 }
6808 { print }
6809 _ACAWK
6810 _ACEOF
6811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6812   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
6813 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
6814    { (exit 1); exit 1; }; }
6815 fi # test -n "$CONFIG_HEADERS"
6816
6817
6818 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
6819 shift
6820 for ac_tag
6821 do
6822   case $ac_tag in
6823   :[FHLC]) ac_mode=$ac_tag; continue;;
6824   esac
6825   case $ac_mode$ac_tag in
6826   :[FHL]*:*);;
6827   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
6828 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
6829    { (exit 1); exit 1; }; };;
6830   :[FH]-) ac_tag=-:-;;
6831   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6832   esac
6833   ac_save_IFS=$IFS
6834   IFS=:
6835   set x $ac_tag
6836   IFS=$ac_save_IFS
6837   shift
6838   ac_file=$1
6839   shift
6840
6841   case $ac_mode in
6842   :L) ac_source=$1;;
6843   :[FH])
6844     ac_file_inputs=
6845     for ac_f
6846     do
6847       case $ac_f in
6848       -) ac_f="$tmp/stdin";;
6849       *) # Look for the file first in the build tree, then in the source tree
6850          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6851          # because $ac_f cannot contain `:'.
6852          test -f "$ac_f" ||
6853            case $ac_f in
6854            [\\/$]*) false;;
6855            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6856            esac ||
6857            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6858 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6859    { (exit 1); exit 1; }; };;
6860       esac
6861       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6862       ac_file_inputs="$ac_file_inputs '$ac_f'"
6863     done
6864
6865     # Let's still pretend it is `configure' which instantiates (i.e., don't
6866     # use $as_me), people would be surprised to read:
6867     #    /* config.h.  Generated by config.status.  */
6868     configure_input='Generated from '`
6869           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6870         `' by configure.'
6871     if test x"$ac_file" != x-; then
6872       configure_input="$ac_file.  $configure_input"
6873       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
6874 $as_echo "$as_me: creating $ac_file" >&6;}
6875     fi
6876     # Neutralize special characters interpreted by sed in replacement strings.
6877     case $configure_input in #(
6878     *\&* | *\|* | *\\* )
6879        ac_sed_conf_input=`$as_echo "$configure_input" |
6880        sed 's/[\\\\&|]/\\\\&/g'`;; #(
6881     *) ac_sed_conf_input=$configure_input;;
6882     esac
6883
6884     case $ac_tag in
6885     *:-:* | *:-) cat >"$tmp/stdin" \
6886       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6887 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6888    { (exit 1); exit 1; }; } ;;
6889     esac
6890     ;;
6891   esac
6892
6893   ac_dir=`$as_dirname -- "$ac_file" ||
6894 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6895          X"$ac_file" : 'X\(//\)[^/]' \| \
6896          X"$ac_file" : 'X\(//\)$' \| \
6897          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6898 $as_echo X"$ac_file" |
6899     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6900             s//\1/
6901             q
6902           }
6903           /^X\(\/\/\)[^/].*/{
6904             s//\1/
6905             q
6906           }
6907           /^X\(\/\/\)$/{
6908             s//\1/
6909             q
6910           }
6911           /^X\(\/\).*/{
6912             s//\1/
6913             q
6914           }
6915           s/.*/./; q'`
6916   { as_dir="$ac_dir"
6917   case $as_dir in #(
6918   -*) as_dir=./$as_dir;;
6919   esac
6920   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6921     as_dirs=
6922     while :; do
6923       case $as_dir in #(
6924       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6925       *) as_qdir=$as_dir;;
6926       esac
6927       as_dirs="'$as_qdir' $as_dirs"
6928       as_dir=`$as_dirname -- "$as_dir" ||
6929 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6930          X"$as_dir" : 'X\(//\)[^/]' \| \
6931          X"$as_dir" : 'X\(//\)$' \| \
6932          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6933 $as_echo X"$as_dir" |
6934     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6935             s//\1/
6936             q
6937           }
6938           /^X\(\/\/\)[^/].*/{
6939             s//\1/
6940             q
6941           }
6942           /^X\(\/\/\)$/{
6943             s//\1/
6944             q
6945           }
6946           /^X\(\/\).*/{
6947             s//\1/
6948             q
6949           }
6950           s/.*/./; q'`
6951       test -d "$as_dir" && break
6952     done
6953     test -z "$as_dirs" || eval "mkdir $as_dirs"
6954   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6955 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
6956    { (exit 1); exit 1; }; }; }
6957   ac_builddir=.
6958
6959 case "$ac_dir" in
6960 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6961 *)
6962   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6963   # A ".." for each directory in $ac_dir_suffix.
6964   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6965   case $ac_top_builddir_sub in
6966   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6967   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6968   esac ;;
6969 esac
6970 ac_abs_top_builddir=$ac_pwd
6971 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6972 # for backward compatibility:
6973 ac_top_builddir=$ac_top_build_prefix
6974
6975 case $srcdir in
6976   .)  # We are building in place.
6977     ac_srcdir=.
6978     ac_top_srcdir=$ac_top_builddir_sub
6979     ac_abs_top_srcdir=$ac_pwd ;;
6980   [\\/]* | ?:[\\/]* )  # Absolute name.
6981     ac_srcdir=$srcdir$ac_dir_suffix;
6982     ac_top_srcdir=$srcdir
6983     ac_abs_top_srcdir=$srcdir ;;
6984   *) # Relative name.
6985     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6986     ac_top_srcdir=$ac_top_build_prefix$srcdir
6987     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6988 esac
6989 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6990
6991
6992   case $ac_mode in
6993   :F)
6994   #
6995   # CONFIG_FILE
6996   #
6997
6998   case $INSTALL in
6999   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7000   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7001   esac
7002   ac_MKDIR_P=$MKDIR_P
7003   case $MKDIR_P in
7004   [\\/$]* | ?:[\\/]* ) ;;
7005   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7006   esac
7007 _ACEOF
7008
7009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7010 # If the template does not know about datarootdir, expand it.
7011 # FIXME: This hack should be removed a few years after 2.60.
7012 ac_datarootdir_hack=; ac_datarootdir_seen=
7013
7014 ac_sed_dataroot='
7015 /datarootdir/ {
7016   p
7017   q
7018 }
7019 /@datadir@/p
7020 /@docdir@/p
7021 /@infodir@/p
7022 /@localedir@/p
7023 /@mandir@/p
7024 '
7025 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7026 *datarootdir*) ac_datarootdir_seen=yes;;
7027 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7028   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7029 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7030 _ACEOF
7031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7032   ac_datarootdir_hack='
7033   s&@datadir@&$datadir&g
7034   s&@docdir@&$docdir&g
7035   s&@infodir@&$infodir&g
7036   s&@localedir@&$localedir&g
7037   s&@mandir@&$mandir&g
7038     s&\\\${datarootdir}&$datarootdir&g' ;;
7039 esac
7040 _ACEOF
7041
7042 # Neutralize VPATH when `$srcdir' = `.'.
7043 # Shell code in configure.ac might set extrasub.
7044 # FIXME: do we really want to maintain this feature?
7045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7046 ac_sed_extra="$ac_vpsub
7047 $extrasub
7048 _ACEOF
7049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7050 :t
7051 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7052 s|@configure_input@|$ac_sed_conf_input|;t t
7053 s&@top_builddir@&$ac_top_builddir_sub&;t t
7054 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7055 s&@srcdir@&$ac_srcdir&;t t
7056 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7057 s&@top_srcdir@&$ac_top_srcdir&;t t
7058 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7059 s&@builddir@&$ac_builddir&;t t
7060 s&@abs_builddir@&$ac_abs_builddir&;t t
7061 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7062 s&@INSTALL@&$ac_INSTALL&;t t
7063 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7064 $ac_datarootdir_hack
7065 "
7066 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7067   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7068 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7069    { (exit 1); exit 1; }; }
7070
7071 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7072   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7073   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7074   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7075 which seems to be undefined.  Please make sure it is defined." >&5
7076 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7077 which seems to be undefined.  Please make sure it is defined." >&2;}
7078
7079   rm -f "$tmp/stdin"
7080   case $ac_file in
7081   -) cat "$tmp/out" && rm -f "$tmp/out";;
7082   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7083   esac \
7084   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7085 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7086    { (exit 1); exit 1; }; }
7087  ;;
7088   :H)
7089   #
7090   # CONFIG_HEADER
7091   #
7092   if test x"$ac_file" != x-; then
7093     {
7094       $as_echo "/* $configure_input  */" \
7095       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7096     } >"$tmp/config.h" \
7097       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7098 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7099    { (exit 1); exit 1; }; }
7100     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7101       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7102 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7103     else
7104       rm -f "$ac_file"
7105       mv "$tmp/config.h" "$ac_file" \
7106         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7107 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7108    { (exit 1); exit 1; }; }
7109     fi
7110   else
7111     $as_echo "/* $configure_input  */" \
7112       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7113       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
7114 $as_echo "$as_me: error: could not create -" >&2;}
7115    { (exit 1); exit 1; }; }
7116   fi
7117 # Compute "$ac_file"'s index in $config_headers.
7118 _am_arg="$ac_file"
7119 _am_stamp_count=1
7120 for _am_header in $config_headers :; do
7121   case $_am_header in
7122     $_am_arg | $_am_arg:* )
7123       break ;;
7124     * )
7125       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7126   esac
7127 done
7128 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7129 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7130          X"$_am_arg" : 'X\(//\)[^/]' \| \
7131          X"$_am_arg" : 'X\(//\)$' \| \
7132          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7133 $as_echo X"$_am_arg" |
7134     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7135             s//\1/
7136             q
7137           }
7138           /^X\(\/\/\)[^/].*/{
7139             s//\1/
7140             q
7141           }
7142           /^X\(\/\/\)$/{
7143             s//\1/
7144             q
7145           }
7146           /^X\(\/\).*/{
7147             s//\1/
7148             q
7149           }
7150           s/.*/./; q'`/stamp-h$_am_stamp_count
7151  ;;
7152
7153   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
7154 $as_echo "$as_me: executing $ac_file commands" >&6;}
7155  ;;
7156   esac
7157
7158
7159   case $ac_file$ac_mode in
7160     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7161   # Autoconf 2.62 quotes --file arguments for eval, but not when files
7162   # are listed without --file.  Let's play safe and only enable the eval
7163   # if we detect the quoting.
7164   case $CONFIG_FILES in
7165   *\'*) eval set x "$CONFIG_FILES" ;;
7166   *)   set x $CONFIG_FILES ;;
7167   esac
7168   shift
7169   for mf
7170   do
7171     # Strip MF so we end up with the name of the file.
7172     mf=`echo "$mf" | sed -e 's/:.*$//'`
7173     # Check whether this is an Automake generated Makefile or not.
7174     # We used to match only the files named `Makefile.in', but
7175     # some people rename them; so instead we look at the file content.
7176     # Grep'ing the first line is not enough: some people post-process
7177     # each Makefile.in and add a new line on top of each file to say so.
7178     # Grep'ing the whole file is not good either: AIX grep has a line
7179     # limit of 2048, but all sed's we know have understand at least 4000.
7180     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7181       dirpart=`$as_dirname -- "$mf" ||
7182 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7183          X"$mf" : 'X\(//\)[^/]' \| \
7184          X"$mf" : 'X\(//\)$' \| \
7185          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7186 $as_echo X"$mf" |
7187     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7188             s//\1/
7189             q
7190           }
7191           /^X\(\/\/\)[^/].*/{
7192             s//\1/
7193             q
7194           }
7195           /^X\(\/\/\)$/{
7196             s//\1/
7197             q
7198           }
7199           /^X\(\/\).*/{
7200             s//\1/
7201             q
7202           }
7203           s/.*/./; q'`
7204     else
7205       continue
7206     fi
7207     # Extract the definition of DEPDIR, am__include, and am__quote
7208     # from the Makefile without running `make'.
7209     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7210     test -z "$DEPDIR" && continue
7211     am__include=`sed -n 's/^am__include = //p' < "$mf"`
7212     test -z "am__include" && continue
7213     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7214     # When using ansi2knr, U may be empty or an underscore; expand it
7215     U=`sed -n 's/^U = //p' < "$mf"`
7216     # Find all dependency output files, they are included files with
7217     # $(DEPDIR) in their names.  We invoke sed twice because it is the
7218     # simplest approach to changing $(DEPDIR) to its actual value in the
7219     # expansion.
7220     for file in `sed -n "
7221       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7222          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7223       # Make sure the directory exists.
7224       test -f "$dirpart/$file" && continue
7225       fdir=`$as_dirname -- "$file" ||
7226 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7227          X"$file" : 'X\(//\)[^/]' \| \
7228          X"$file" : 'X\(//\)$' \| \
7229          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7230 $as_echo X"$file" |
7231     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7232             s//\1/
7233             q
7234           }
7235           /^X\(\/\/\)[^/].*/{
7236             s//\1/
7237             q
7238           }
7239           /^X\(\/\/\)$/{
7240             s//\1/
7241             q
7242           }
7243           /^X\(\/\).*/{
7244             s//\1/
7245             q
7246           }
7247           s/.*/./; q'`
7248       { as_dir=$dirpart/$fdir
7249   case $as_dir in #(
7250   -*) as_dir=./$as_dir;;
7251   esac
7252   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7253     as_dirs=
7254     while :; do
7255       case $as_dir in #(
7256       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7257       *) as_qdir=$as_dir;;
7258       esac
7259       as_dirs="'$as_qdir' $as_dirs"
7260       as_dir=`$as_dirname -- "$as_dir" ||
7261 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7262          X"$as_dir" : 'X\(//\)[^/]' \| \
7263          X"$as_dir" : 'X\(//\)$' \| \
7264          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7265 $as_echo X"$as_dir" |
7266     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7267             s//\1/
7268             q
7269           }
7270           /^X\(\/\/\)[^/].*/{
7271             s//\1/
7272             q
7273           }
7274           /^X\(\/\/\)$/{
7275             s//\1/
7276             q
7277           }
7278           /^X\(\/\).*/{
7279             s//\1/
7280             q
7281           }
7282           s/.*/./; q'`
7283       test -d "$as_dir" && break
7284     done
7285     test -z "$as_dirs" || eval "mkdir $as_dirs"
7286   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7287 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
7288    { (exit 1); exit 1; }; }; }
7289       # echo "creating $dirpart/$file"
7290       echo '# dummy' > "$dirpart/$file"
7291     done
7292   done
7293 }
7294  ;;
7295
7296   esac
7297 done # for ac_tag
7298
7299
7300 { (exit 0); exit 0; }
7301 _ACEOF
7302 chmod +x $CONFIG_STATUS
7303 ac_clean_files=$ac_clean_files_save
7304
7305 test $ac_write_fail = 0 ||
7306   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
7307 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
7308    { (exit 1); exit 1; }; }
7309
7310
7311 # configure is writing to config.log, and then calls config.status.
7312 # config.status does its own redirection, appending to config.log.
7313 # Unfortunately, on DOS this fails, as config.log is still kept open
7314 # by configure, so config.status won't be able to write to it; its
7315 # output is simply discarded.  So we exec the FD to /dev/null,
7316 # effectively closing config.log, so it can be properly (re)opened and
7317 # appended to by config.status.  When coming back to configure, we
7318 # need to make the FD available again.
7319 if test "$no_create" != yes; then
7320   ac_cs_success=:
7321   ac_config_status_args=
7322   test "$silent" = yes &&
7323     ac_config_status_args="$ac_config_status_args --quiet"
7324   exec 5>/dev/null
7325   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7326   exec 5>>config.log
7327   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7328   # would make configure fail if this is the last instruction.
7329   $ac_cs_success || { (exit 1); exit 1; }
7330 fi
7331 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7332   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7333 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7334 fi
7335