OSDN Git Service

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