130f4f8a1495c263b0a60ba04db7181b0bb449e0
[platform/upstream/make.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in,v 1.156 2010/07/28 05:39:50 psmith Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 for GNU make 3.82.
5 #
6 # Report bugs to <bug-make@gnu.org>.
7 #
8 #
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # Inc.
12 #
13 #
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
19
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23   emulate sh
24   NULLCMD=:
25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26   # is contrary to our usage.  Disable this feature.
27   alias -g '${1+"$@"}'='"$@"'
28   setopt NO_GLOB_SUBST
29 else
30   case `(set -o) 2>/dev/null` in #(
31   *posix*) :
32     set -o posix ;; #(
33   *) :
34      ;;
35 esac
36 fi
37
38
39 as_nl='
40 '
41 export as_nl
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='print -r --'
51   as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53   as_echo='printf %s\n'
54   as_echo_n='printf %s'
55 else
56   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58     as_echo_n='/usr/ucb/echo -n'
59   else
60     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61     as_echo_n_body='eval
62       arg=$1;
63       case $arg in #(
64       *"$as_nl"*)
65         expr "X$arg" : "X\\(.*\\)$as_nl";
66         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67       esac;
68       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69     '
70     export as_echo_n_body
71     as_echo_n='sh -c $as_echo_n_body as_echo'
72   fi
73   export as_echo_body
74   as_echo='sh -c $as_echo_body as_echo'
75 fi
76
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
84 fi
85
86
87 # IFS
88 # We need space, tab and new line, in precisely that order.  Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
92 IFS=" ""        $as_nl"
93
94 # Find who we are.  Look in the path if we contain no directory separator.
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178   if (eval "$as_required") 2>/dev/null; then :
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190   IFS=$as_save_IFS
191   test -z "$as_dir" && as_dir=.
192   as_found=:
193   case $as_dir in #(
194          /*)
195            for as_base in sh bash ksh sh5; do
196              # Try only shells that exist, to save several forks.
197              as_shell=$as_dir/$as_base
198              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   CONFIG_SHELL=$as_shell as_have_required=yes
201                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202   break 2
203 fi
204 fi
205            done;;
206        esac
207   as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211   CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216       if test "x$CONFIG_SHELL" != x; then :
217   # We cannot yet assume a decent shell, so we have to provide a
218         # neutralization value for shells without unset; and this also
219         # works around shells that cannot unset nonexistent variables.
220         BASH_ENV=/dev/null
221         ENV=/dev/null
222         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223         export CONFIG_SHELL
224         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225 fi
226
227     if test x$as_have_required = xno; then :
228   $as_echo "$0: This script requires a shell more modern than all"
229   $as_echo "$0: the shells that I found on your system."
230   if test x${ZSH_VERSION+set} = xset ; then
231     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233   else
234     $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-make@gnu.org
235 $0: about your system, including any error possibly output
236 $0: before this message. Then install a modern shell, or
237 $0: manually run the script under such a shell if you do
238 $0: have one."
239   fi
240   exit 1
241 fi
242 fi
243 fi
244 SHELL=${CONFIG_SHELL-/bin/sh}
245 export SHELL
246 # Unset more variables known to interfere with behavior of common tools.
247 CLICOLOR_FORCE= GREP_OPTIONS=
248 unset CLICOLOR_FORCE GREP_OPTIONS
249
250 ## --------------------- ##
251 ## M4sh Shell Functions. ##
252 ## --------------------- ##
253 # as_fn_unset VAR
254 # ---------------
255 # Portably unset VAR.
256 as_fn_unset ()
257 {
258   { eval $1=; unset $1;}
259 }
260 as_unset=as_fn_unset
261
262 # as_fn_set_status STATUS
263 # -----------------------
264 # Set $? to STATUS, without forking.
265 as_fn_set_status ()
266 {
267   return $1
268 } # as_fn_set_status
269
270 # as_fn_exit STATUS
271 # -----------------
272 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273 as_fn_exit ()
274 {
275   set +e
276   as_fn_set_status $1
277   exit $1
278 } # as_fn_exit
279
280 # as_fn_mkdir_p
281 # -------------
282 # Create "$as_dir" as a directory, including parents if necessary.
283 as_fn_mkdir_p ()
284 {
285
286   case $as_dir in #(
287   -*) as_dir=./$as_dir;;
288   esac
289   test -d "$as_dir" || eval $as_mkdir_p || {
290     as_dirs=
291     while :; do
292       case $as_dir in #(
293       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294       *) as_qdir=$as_dir;;
295       esac
296       as_dirs="'$as_qdir' $as_dirs"
297       as_dir=`$as_dirname -- "$as_dir" ||
298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299          X"$as_dir" : 'X\(//\)[^/]' \| \
300          X"$as_dir" : 'X\(//\)$' \| \
301          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302 $as_echo X"$as_dir" |
303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)[^/].*/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)$/{
312             s//\1/
313             q
314           }
315           /^X\(\/\).*/{
316             s//\1/
317             q
318           }
319           s/.*/./; q'`
320       test -d "$as_dir" && break
321     done
322     test -z "$as_dirs" || eval "mkdir $as_dirs"
323   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326 } # as_fn_mkdir_p
327 # as_fn_append VAR VALUE
328 # ----------------------
329 # Append the text in VALUE to the end of the definition contained in VAR. Take
330 # advantage of any shell optimizations that allow amortized linear growth over
331 # repeated appends, instead of the typical quadratic growth present in naive
332 # implementations.
333 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334   eval 'as_fn_append ()
335   {
336     eval $1+=\$2
337   }'
338 else
339   as_fn_append ()
340   {
341     eval $1=\$$1\$2
342   }
343 fi # as_fn_append
344
345 # as_fn_arith ARG...
346 # ------------------
347 # Perform arithmetic evaluation on the ARGs, and store the result in the
348 # global $as_val. Take advantage of shells that can avoid forks. The arguments
349 # must be portable across $(()) and expr.
350 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351   eval 'as_fn_arith ()
352   {
353     as_val=$(( $* ))
354   }'
355 else
356   as_fn_arith ()
357   {
358     as_val=`expr "$@" || test $? -eq 1`
359   }
360 fi # as_fn_arith
361
362
363 # as_fn_error ERROR [LINENO LOG_FD]
364 # ---------------------------------
365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367 # script with status $?, using 1 if that was 0.
368 as_fn_error ()
369 {
370   as_status=$?; test $as_status -eq 0 && as_status=1
371   if test "$3"; then
372     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374   fi
375   $as_echo "$as_me: error: $1" >&2
376   as_fn_exit $as_status
377 } # as_fn_error
378
379 if expr a : '\(a\)' >/dev/null 2>&1 &&
380    test "X`expr 00001 : '.*\(...\)'`" = X001; then
381   as_expr=expr
382 else
383   as_expr=false
384 fi
385
386 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387   as_basename=basename
388 else
389   as_basename=false
390 fi
391
392 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393   as_dirname=dirname
394 else
395   as_dirname=false
396 fi
397
398 as_me=`$as_basename -- "$0" ||
399 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400          X"$0" : 'X\(//\)$' \| \
401          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 $as_echo X/"$0" |
403     sed '/^.*\/\([^/][^/]*\)\/*$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\/\)$/{
408             s//\1/
409             q
410           }
411           /^X\/\(\/\).*/{
412             s//\1/
413             q
414           }
415           s/.*/./; q'`
416
417 # Avoid depending upon Character Ranges.
418 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421 as_cr_digits='0123456789'
422 as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425   as_lineno_1=$LINENO as_lineno_1a=$LINENO
426   as_lineno_2=$LINENO as_lineno_2a=$LINENO
427   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430   sed -n '
431     p
432     /[$]LINENO/=
433   ' <$as_myself |
434     sed '
435       s/[$]LINENO.*/&-/
436       t lineno
437       b
438       :lineno
439       N
440       :loop
441       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442       t loop
443       s/-\n.*//
444     ' >$as_me.lineno &&
445   chmod +x "$as_me.lineno" ||
446     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448   # Don't try to exec as it changes $[0], causing all sort of problems
449   # (the dirname of $[0] is not the place where we might find the
450   # original and so on.  Autoconf is especially sensitive to this).
451   . "./$as_me.lineno"
452   # Exit status is that of the last command.
453   exit
454 }
455
456 ECHO_C= ECHO_N= ECHO_T=
457 case `echo -n x` in #(((((
458 -n*)
459   case `echo 'xy\c'` in
460   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
461   xy)  ECHO_C='\c';;
462   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463        ECHO_T=' ';;
464   esac;;
465 *)
466   ECHO_N='-n';;
467 esac
468
469 rm -f conf$$ conf$$.exe conf$$.file
470 if test -d conf$$.dir; then
471   rm -f conf$$.dir/conf$$.file
472 else
473   rm -f conf$$.dir
474   mkdir conf$$.dir 2>/dev/null
475 fi
476 if (echo >conf$$.file) 2>/dev/null; then
477   if ln -s conf$$.file conf$$ 2>/dev/null; then
478     as_ln_s='ln -s'
479     # ... but there are two gotchas:
480     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482     # In both cases, we have to default to `cp -p'.
483     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484       as_ln_s='cp -p'
485   elif ln conf$$.file conf$$ 2>/dev/null; then
486     as_ln_s=ln
487   else
488     as_ln_s='cp -p'
489   fi
490 else
491   as_ln_s='cp -p'
492 fi
493 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494 rmdir conf$$.dir 2>/dev/null
495
496 if mkdir -p . 2>/dev/null; then
497   as_mkdir_p='mkdir -p "$as_dir"'
498 else
499   test -d ./-p && rmdir ./-p
500   as_mkdir_p=false
501 fi
502
503 if test -x / >/dev/null 2>&1; then
504   as_test_x='test -x'
505 else
506   if ls -dL / >/dev/null 2>&1; then
507     as_ls_L_option=L
508   else
509     as_ls_L_option=
510   fi
511   as_test_x='
512     eval sh -c '\''
513       if test -d "$1"; then
514         test -d "$1/.";
515       else
516         case $1 in #(
517         -*)set "./$1";;
518         esac;
519         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520         ???[sx]*):;;*)false;;esac;fi
521     '\'' sh
522   '
523 fi
524 as_executable_p=$as_test_x
525
526 # Sed expression to map a string onto a valid CPP name.
527 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529 # Sed expression to map a string onto a valid variable name.
530 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533 test -n "$DJDIR" || exec 7<&0 </dev/null
534 exec 6>&1
535
536 # Name of the host.
537 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
538 # so uname gets run too.
539 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540
541 #
542 # Initializations.
543 #
544 ac_default_prefix=/usr/local
545 ac_clean_files=
546 ac_config_libobj_dir=.
547 LIBOBJS=
548 cross_compiling=no
549 subdirs=
550 MFLAGS=
551 MAKEFLAGS=
552
553 # Identity of this package.
554 PACKAGE_NAME='GNU make'
555 PACKAGE_TARNAME='make'
556 PACKAGE_VERSION='3.82'
557 PACKAGE_STRING='GNU make 3.82'
558 PACKAGE_BUGREPORT='bug-make@gnu.org'
559 PACKAGE_URL='http://www.gnu.org/software/make/'
560
561 ac_unique_file="vpath.c"
562 # Factoring default headers for most tests.
563 ac_includes_default="\
564 #include <stdio.h>
565 #ifdef HAVE_SYS_TYPES_H
566 # include <sys/types.h>
567 #endif
568 #ifdef HAVE_SYS_STAT_H
569 # include <sys/stat.h>
570 #endif
571 #ifdef STDC_HEADERS
572 # include <stdlib.h>
573 # include <stddef.h>
574 #else
575 # ifdef HAVE_STDLIB_H
576 #  include <stdlib.h>
577 # endif
578 #endif
579 #ifdef HAVE_STRING_H
580 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #  include <memory.h>
582 # endif
583 # include <string.h>
584 #endif
585 #ifdef HAVE_STRINGS_H
586 # include <strings.h>
587 #endif
588 #ifdef HAVE_INTTYPES_H
589 # include <inttypes.h>
590 #endif
591 #ifdef HAVE_STDINT_H
592 # include <stdint.h>
593 #endif
594 #ifdef HAVE_UNISTD_H
595 # include <unistd.h>
596 #endif"
597
598 ac_subst_vars='am__EXEEXT_FALSE
599 am__EXEEXT_TRUE
600 LTLIBOBJS
601 WINDOWSENV_FALSE
602 WINDOWSENV_TRUE
603 MAKE_HOST
604 USE_LOCAL_GLOB_FALSE
605 USE_LOCAL_GLOB_TRUE
606 GLOBLIB
607 GLOBINC
608 USE_CUSTOMS_FALSE
609 USE_CUSTOMS_TRUE
610 REMOTE
611 GETLOADAVG_LIBS
612 KMEM_GROUP
613 NEED_SETGID
614 LIBOBJS
615 ALLOCA
616 POSUB
617 LTLIBINTL
618 LIBINTL
619 INTLLIBS
620 LTLIBICONV
621 LIBICONV
622 MSGMERGE
623 XGETTEXT
624 GMSGFMT
625 MSGFMT
626 USE_NLS
627 MKINSTALLDIRS
628 EGREP
629 GREP
630 host_os
631 host_vendor
632 host_cpu
633 host
634 build_os
635 build_vendor
636 build_cpu
637 build
638 PERL
639 AR
640 CPP
641 RANLIB
642 am__fastdepCC_FALSE
643 am__fastdepCC_TRUE
644 CCDEPMODE
645 AMDEPBACKSLASH
646 AMDEP_FALSE
647 AMDEP_TRUE
648 am__quote
649 am__include
650 DEPDIR
651 OBJEXT
652 EXEEXT
653 ac_ct_CC
654 CPPFLAGS
655 LDFLAGS
656 CFLAGS
657 CC
658 am__untar
659 am__tar
660 AMTAR
661 am__leading_dot
662 SET_MAKE
663 AWK
664 mkdir_p
665 MKDIR_P
666 INSTALL_STRIP_PROGRAM
667 STRIP
668 install_sh
669 MAKEINFO
670 AUTOHEADER
671 AUTOMAKE
672 AUTOCONF
673 ACLOCAL
674 VERSION
675 PACKAGE
676 CYGPATH_W
677 am__isrc
678 INSTALL_DATA
679 INSTALL_SCRIPT
680 INSTALL_PROGRAM
681 target_alias
682 host_alias
683 build_alias
684 LIBS
685 ECHO_T
686 ECHO_N
687 ECHO_C
688 DEFS
689 mandir
690 localedir
691 libdir
692 psdir
693 pdfdir
694 dvidir
695 htmldir
696 infodir
697 docdir
698 oldincludedir
699 includedir
700 localstatedir
701 sharedstatedir
702 sysconfdir
703 datadir
704 datarootdir
705 libexecdir
706 sbindir
707 bindir
708 program_transform_name
709 prefix
710 exec_prefix
711 PACKAGE_URL
712 PACKAGE_BUGREPORT
713 PACKAGE_STRING
714 PACKAGE_VERSION
715 PACKAGE_TARNAME
716 PACKAGE_NAME
717 PATH_SEPARATOR
718 SHELL'
719 ac_subst_files='MAINT_MAKEFILE'
720 ac_user_opts='
721 enable_option_checking
722 enable_dependency_tracking
723 enable_nls
724 with_gnu_ld
725 enable_rpath
726 with_libiconv_prefix
727 with_libintl_prefix
728 enable_largefile
729 with_customs
730 enable_case_insensitive_file_system
731 enable_job_server
732 with_dmalloc
733 '
734       ac_precious_vars='build_alias
735 host_alias
736 target_alias
737 CC
738 CFLAGS
739 LDFLAGS
740 LIBS
741 CPPFLAGS
742 CPP'
743
744
745 # Initialize some variables set by options.
746 ac_init_help=
747 ac_init_version=false
748 ac_unrecognized_opts=
749 ac_unrecognized_sep=
750 # The variables have the same names as the options, with
751 # dashes changed to underlines.
752 cache_file=/dev/null
753 exec_prefix=NONE
754 no_create=
755 no_recursion=
756 prefix=NONE
757 program_prefix=NONE
758 program_suffix=NONE
759 program_transform_name=s,x,x,
760 silent=
761 site=
762 srcdir=
763 verbose=
764 x_includes=NONE
765 x_libraries=NONE
766
767 # Installation directory options.
768 # These are left unexpanded so users can "make install exec_prefix=/foo"
769 # and all the variables that are supposed to be based on exec_prefix
770 # by default will actually change.
771 # Use braces instead of parens because sh, perl, etc. also accept them.
772 # (The list follows the same order as the GNU Coding Standards.)
773 bindir='${exec_prefix}/bin'
774 sbindir='${exec_prefix}/sbin'
775 libexecdir='${exec_prefix}/libexec'
776 datarootdir='${prefix}/share'
777 datadir='${datarootdir}'
778 sysconfdir='${prefix}/etc'
779 sharedstatedir='${prefix}/com'
780 localstatedir='${prefix}/var'
781 includedir='${prefix}/include'
782 oldincludedir='/usr/include'
783 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784 infodir='${datarootdir}/info'
785 htmldir='${docdir}'
786 dvidir='${docdir}'
787 pdfdir='${docdir}'
788 psdir='${docdir}'
789 libdir='${exec_prefix}/lib'
790 localedir='${datarootdir}/locale'
791 mandir='${datarootdir}/man'
792
793 ac_prev=
794 ac_dashdash=
795 for ac_option
796 do
797   # If the previous option needs an argument, assign it.
798   if test -n "$ac_prev"; then
799     eval $ac_prev=\$ac_option
800     ac_prev=
801     continue
802   fi
803
804   case $ac_option in
805   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806   *)    ac_optarg=yes ;;
807   esac
808
809   # Accept the important Cygnus configure options, so we can diagnose typos.
810
811   case $ac_dashdash$ac_option in
812   --)
813     ac_dashdash=yes ;;
814
815   -bindir | --bindir | --bindi | --bind | --bin | --bi)
816     ac_prev=bindir ;;
817   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
818     bindir=$ac_optarg ;;
819
820   -build | --build | --buil | --bui | --bu)
821     ac_prev=build_alias ;;
822   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
823     build_alias=$ac_optarg ;;
824
825   -cache-file | --cache-file | --cache-fil | --cache-fi \
826   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
827     ac_prev=cache_file ;;
828   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
829   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
830     cache_file=$ac_optarg ;;
831
832   --config-cache | -C)
833     cache_file=config.cache ;;
834
835   -datadir | --datadir | --datadi | --datad)
836     ac_prev=datadir ;;
837   -datadir=* | --datadir=* | --datadi=* | --datad=*)
838     datadir=$ac_optarg ;;
839
840   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
841   | --dataroo | --dataro | --datar)
842     ac_prev=datarootdir ;;
843   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
844   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
845     datarootdir=$ac_optarg ;;
846
847   -disable-* | --disable-*)
848     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
849     # Reject names that are not valid shell variable names.
850     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
851       as_fn_error "invalid feature name: $ac_useropt"
852     ac_useropt_orig=$ac_useropt
853     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
854     case $ac_user_opts in
855       *"
856 "enable_$ac_useropt"
857 "*) ;;
858       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
859          ac_unrecognized_sep=', ';;
860     esac
861     eval enable_$ac_useropt=no ;;
862
863   -docdir | --docdir | --docdi | --doc | --do)
864     ac_prev=docdir ;;
865   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
866     docdir=$ac_optarg ;;
867
868   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
869     ac_prev=dvidir ;;
870   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
871     dvidir=$ac_optarg ;;
872
873   -enable-* | --enable-*)
874     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
875     # Reject names that are not valid shell variable names.
876     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
877       as_fn_error "invalid feature name: $ac_useropt"
878     ac_useropt_orig=$ac_useropt
879     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880     case $ac_user_opts in
881       *"
882 "enable_$ac_useropt"
883 "*) ;;
884       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
885          ac_unrecognized_sep=', ';;
886     esac
887     eval enable_$ac_useropt=\$ac_optarg ;;
888
889   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
890   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
891   | --exec | --exe | --ex)
892     ac_prev=exec_prefix ;;
893   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
894   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
895   | --exec=* | --exe=* | --ex=*)
896     exec_prefix=$ac_optarg ;;
897
898   -gas | --gas | --ga | --g)
899     # Obsolete; use --with-gas.
900     with_gas=yes ;;
901
902   -help | --help | --hel | --he | -h)
903     ac_init_help=long ;;
904   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
905     ac_init_help=recursive ;;
906   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
907     ac_init_help=short ;;
908
909   -host | --host | --hos | --ho)
910     ac_prev=host_alias ;;
911   -host=* | --host=* | --hos=* | --ho=*)
912     host_alias=$ac_optarg ;;
913
914   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
915     ac_prev=htmldir ;;
916   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
917   | --ht=*)
918     htmldir=$ac_optarg ;;
919
920   -includedir | --includedir | --includedi | --included | --include \
921   | --includ | --inclu | --incl | --inc)
922     ac_prev=includedir ;;
923   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
924   | --includ=* | --inclu=* | --incl=* | --inc=*)
925     includedir=$ac_optarg ;;
926
927   -infodir | --infodir | --infodi | --infod | --info | --inf)
928     ac_prev=infodir ;;
929   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
930     infodir=$ac_optarg ;;
931
932   -libdir | --libdir | --libdi | --libd)
933     ac_prev=libdir ;;
934   -libdir=* | --libdir=* | --libdi=* | --libd=*)
935     libdir=$ac_optarg ;;
936
937   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
938   | --libexe | --libex | --libe)
939     ac_prev=libexecdir ;;
940   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
941   | --libexe=* | --libex=* | --libe=*)
942     libexecdir=$ac_optarg ;;
943
944   -localedir | --localedir | --localedi | --localed | --locale)
945     ac_prev=localedir ;;
946   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
947     localedir=$ac_optarg ;;
948
949   -localstatedir | --localstatedir | --localstatedi | --localstated \
950   | --localstate | --localstat | --localsta | --localst | --locals)
951     ac_prev=localstatedir ;;
952   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
953   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
954     localstatedir=$ac_optarg ;;
955
956   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
957     ac_prev=mandir ;;
958   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
959     mandir=$ac_optarg ;;
960
961   -nfp | --nfp | --nf)
962     # Obsolete; use --without-fp.
963     with_fp=no ;;
964
965   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
966   | --no-cr | --no-c | -n)
967     no_create=yes ;;
968
969   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
970   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
971     no_recursion=yes ;;
972
973   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
974   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
975   | --oldin | --oldi | --old | --ol | --o)
976     ac_prev=oldincludedir ;;
977   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
978   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
979   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
980     oldincludedir=$ac_optarg ;;
981
982   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
983     ac_prev=prefix ;;
984   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
985     prefix=$ac_optarg ;;
986
987   -program-prefix | --program-prefix | --program-prefi | --program-pref \
988   | --program-pre | --program-pr | --program-p)
989     ac_prev=program_prefix ;;
990   -program-prefix=* | --program-prefix=* | --program-prefi=* \
991   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
992     program_prefix=$ac_optarg ;;
993
994   -program-suffix | --program-suffix | --program-suffi | --program-suff \
995   | --program-suf | --program-su | --program-s)
996     ac_prev=program_suffix ;;
997   -program-suffix=* | --program-suffix=* | --program-suffi=* \
998   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
999     program_suffix=$ac_optarg ;;
1000
1001   -program-transform-name | --program-transform-name \
1002   | --program-transform-nam | --program-transform-na \
1003   | --program-transform-n | --program-transform- \
1004   | --program-transform | --program-transfor \
1005   | --program-transfo | --program-transf \
1006   | --program-trans | --program-tran \
1007   | --progr-tra | --program-tr | --program-t)
1008     ac_prev=program_transform_name ;;
1009   -program-transform-name=* | --program-transform-name=* \
1010   | --program-transform-nam=* | --program-transform-na=* \
1011   | --program-transform-n=* | --program-transform-=* \
1012   | --program-transform=* | --program-transfor=* \
1013   | --program-transfo=* | --program-transf=* \
1014   | --program-trans=* | --program-tran=* \
1015   | --progr-tra=* | --program-tr=* | --program-t=*)
1016     program_transform_name=$ac_optarg ;;
1017
1018   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1019     ac_prev=pdfdir ;;
1020   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1021     pdfdir=$ac_optarg ;;
1022
1023   -psdir | --psdir | --psdi | --psd | --ps)
1024     ac_prev=psdir ;;
1025   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1026     psdir=$ac_optarg ;;
1027
1028   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1029   | -silent | --silent | --silen | --sile | --sil)
1030     silent=yes ;;
1031
1032   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1033     ac_prev=sbindir ;;
1034   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1035   | --sbi=* | --sb=*)
1036     sbindir=$ac_optarg ;;
1037
1038   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1039   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1040   | --sharedst | --shareds | --shared | --share | --shar \
1041   | --sha | --sh)
1042     ac_prev=sharedstatedir ;;
1043   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1044   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1045   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1046   | --sha=* | --sh=*)
1047     sharedstatedir=$ac_optarg ;;
1048
1049   -site | --site | --sit)
1050     ac_prev=site ;;
1051   -site=* | --site=* | --sit=*)
1052     site=$ac_optarg ;;
1053
1054   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1055     ac_prev=srcdir ;;
1056   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1057     srcdir=$ac_optarg ;;
1058
1059   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1060   | --syscon | --sysco | --sysc | --sys | --sy)
1061     ac_prev=sysconfdir ;;
1062   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1063   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1064     sysconfdir=$ac_optarg ;;
1065
1066   -target | --target | --targe | --targ | --tar | --ta | --t)
1067     ac_prev=target_alias ;;
1068   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1069     target_alias=$ac_optarg ;;
1070
1071   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1072     verbose=yes ;;
1073
1074   -version | --version | --versio | --versi | --vers | -V)
1075     ac_init_version=: ;;
1076
1077   -with-* | --with-*)
1078     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1079     # Reject names that are not valid shell variable names.
1080     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081       as_fn_error "invalid package name: $ac_useropt"
1082     ac_useropt_orig=$ac_useropt
1083     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084     case $ac_user_opts in
1085       *"
1086 "with_$ac_useropt"
1087 "*) ;;
1088       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1089          ac_unrecognized_sep=', ';;
1090     esac
1091     eval with_$ac_useropt=\$ac_optarg ;;
1092
1093   -without-* | --without-*)
1094     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1095     # Reject names that are not valid shell variable names.
1096     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097       as_fn_error "invalid package name: $ac_useropt"
1098     ac_useropt_orig=$ac_useropt
1099     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100     case $ac_user_opts in
1101       *"
1102 "with_$ac_useropt"
1103 "*) ;;
1104       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1105          ac_unrecognized_sep=', ';;
1106     esac
1107     eval with_$ac_useropt=no ;;
1108
1109   --x)
1110     # Obsolete; use --with-x.
1111     with_x=yes ;;
1112
1113   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1114   | --x-incl | --x-inc | --x-in | --x-i)
1115     ac_prev=x_includes ;;
1116   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1117   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1118     x_includes=$ac_optarg ;;
1119
1120   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1121   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1122     ac_prev=x_libraries ;;
1123   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1124   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1125     x_libraries=$ac_optarg ;;
1126
1127   -*) as_fn_error "unrecognized option: \`$ac_option'
1128 Try \`$0 --help' for more information."
1129     ;;
1130
1131   *=*)
1132     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1133     # Reject names that are not valid shell variable names.
1134     case $ac_envvar in #(
1135       '' | [0-9]* | *[!_$as_cr_alnum]* )
1136       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1137     esac
1138     eval $ac_envvar=\$ac_optarg
1139     export $ac_envvar ;;
1140
1141   *)
1142     # FIXME: should be removed in autoconf 3.0.
1143     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1144     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1145       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1146     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1147     ;;
1148
1149   esac
1150 done
1151
1152 if test -n "$ac_prev"; then
1153   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1154   as_fn_error "missing argument to $ac_option"
1155 fi
1156
1157 if test -n "$ac_unrecognized_opts"; then
1158   case $enable_option_checking in
1159     no) ;;
1160     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1161     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1162   esac
1163 fi
1164
1165 # Check all directory arguments for consistency.
1166 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1167                 datadir sysconfdir sharedstatedir localstatedir includedir \
1168                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1169                 libdir localedir mandir
1170 do
1171   eval ac_val=\$$ac_var
1172   # Remove trailing slashes.
1173   case $ac_val in
1174     */ )
1175       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1176       eval $ac_var=\$ac_val;;
1177   esac
1178   # Be sure to have absolute directory names.
1179   case $ac_val in
1180     [\\/$]* | ?:[\\/]* )  continue;;
1181     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1182   esac
1183   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1184 done
1185
1186 # There might be people who depend on the old broken behavior: `$host'
1187 # used to hold the argument of --host etc.
1188 # FIXME: To remove some day.
1189 build=$build_alias
1190 host=$host_alias
1191 target=$target_alias
1192
1193 # FIXME: To remove some day.
1194 if test "x$host_alias" != x; then
1195   if test "x$build_alias" = x; then
1196     cross_compiling=maybe
1197     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1198     If a cross compiler is detected then cross compile mode will be used." >&2
1199   elif test "x$build_alias" != "x$host_alias"; then
1200     cross_compiling=yes
1201   fi
1202 fi
1203
1204 ac_tool_prefix=
1205 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1206
1207 test "$silent" = yes && exec 6>/dev/null
1208
1209
1210 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1211 ac_ls_di=`ls -di .` &&
1212 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1213   as_fn_error "working directory cannot be determined"
1214 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1215   as_fn_error "pwd does not report name of working directory"
1216
1217
1218 # Find the source files, if location was not specified.
1219 if test -z "$srcdir"; then
1220   ac_srcdir_defaulted=yes
1221   # Try the directory containing this script, then the parent directory.
1222   ac_confdir=`$as_dirname -- "$as_myself" ||
1223 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1224          X"$as_myself" : 'X\(//\)[^/]' \| \
1225          X"$as_myself" : 'X\(//\)$' \| \
1226          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1227 $as_echo X"$as_myself" |
1228     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1229             s//\1/
1230             q
1231           }
1232           /^X\(\/\/\)[^/].*/{
1233             s//\1/
1234             q
1235           }
1236           /^X\(\/\/\)$/{
1237             s//\1/
1238             q
1239           }
1240           /^X\(\/\).*/{
1241             s//\1/
1242             q
1243           }
1244           s/.*/./; q'`
1245   srcdir=$ac_confdir
1246   if test ! -r "$srcdir/$ac_unique_file"; then
1247     srcdir=..
1248   fi
1249 else
1250   ac_srcdir_defaulted=no
1251 fi
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1254   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1255 fi
1256 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1257 ac_abs_confdir=`(
1258         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1259         pwd)`
1260 # When building in place, set srcdir=.
1261 if test "$ac_abs_confdir" = "$ac_pwd"; then
1262   srcdir=.
1263 fi
1264 # Remove unnecessary trailing slashes from srcdir.
1265 # Double slashes in file names in object file debugging info
1266 # mess up M-x gdb in Emacs.
1267 case $srcdir in
1268 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1269 esac
1270 for ac_var in $ac_precious_vars; do
1271   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1272   eval ac_env_${ac_var}_value=\$${ac_var}
1273   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1274   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1275 done
1276
1277 #
1278 # Report the --help message.
1279 #
1280 if test "$ac_init_help" = "long"; then
1281   # Omit some internal or obsolete options to make the list less imposing.
1282   # This message is too long to be a string in the A/UX 3.1 sh.
1283   cat <<_ACEOF
1284 \`configure' configures GNU make 3.82 to adapt to many kinds of systems.
1285
1286 Usage: $0 [OPTION]... [VAR=VALUE]...
1287
1288 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1289 VAR=VALUE.  See below for descriptions of some of the useful variables.
1290
1291 Defaults for the options are specified in brackets.
1292
1293 Configuration:
1294   -h, --help              display this help and exit
1295       --help=short        display options specific to this package
1296       --help=recursive    display the short help of all the included packages
1297   -V, --version           display version information and exit
1298   -q, --quiet, --silent   do not print \`checking...' messages
1299       --cache-file=FILE   cache test results in FILE [disabled]
1300   -C, --config-cache      alias for \`--cache-file=config.cache'
1301   -n, --no-create         do not create output files
1302       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1303
1304 Installation directories:
1305   --prefix=PREFIX         install architecture-independent files in PREFIX
1306                           [$ac_default_prefix]
1307   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1308                           [PREFIX]
1309
1310 By default, \`make install' will install all the files in
1311 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1312 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1313 for instance \`--prefix=\$HOME'.
1314
1315 For better control, use the options below.
1316
1317 Fine tuning of the installation directories:
1318   --bindir=DIR            user executables [EPREFIX/bin]
1319   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1320   --libexecdir=DIR        program executables [EPREFIX/libexec]
1321   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1322   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1323   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1324   --libdir=DIR            object code libraries [EPREFIX/lib]
1325   --includedir=DIR        C header files [PREFIX/include]
1326   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1327   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1328   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1329   --infodir=DIR           info documentation [DATAROOTDIR/info]
1330   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1331   --mandir=DIR            man documentation [DATAROOTDIR/man]
1332   --docdir=DIR            documentation root [DATAROOTDIR/doc/make]
1333   --htmldir=DIR           html documentation [DOCDIR]
1334   --dvidir=DIR            dvi documentation [DOCDIR]
1335   --pdfdir=DIR            pdf documentation [DOCDIR]
1336   --psdir=DIR             ps documentation [DOCDIR]
1337 _ACEOF
1338
1339   cat <<\_ACEOF
1340
1341 Program names:
1342   --program-prefix=PREFIX            prepend PREFIX to installed program names
1343   --program-suffix=SUFFIX            append SUFFIX to installed program names
1344   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1345
1346 System types:
1347   --build=BUILD     configure for building on BUILD [guessed]
1348   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1349 _ACEOF
1350 fi
1351
1352 if test -n "$ac_init_help"; then
1353   case $ac_init_help in
1354      short | recursive ) echo "Configuration of GNU make 3.82:";;
1355    esac
1356   cat <<\_ACEOF
1357
1358 Optional Features:
1359   --disable-option-checking  ignore unrecognized --enable/--with options
1360   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1361   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1362   --disable-dependency-tracking  speeds up one-time build
1363   --enable-dependency-tracking   do not reject slow dependency extractors
1364   --disable-nls           do not use Native Language Support
1365   --disable-rpath         do not hardcode runtime library paths
1366   --disable-largefile     omit support for large files
1367   --enable-case-insensitive-file-system
1368                           assume file systems are case insensitive
1369   --disable-job-server    disallow recursive make communication during -jN
1370
1371 Optional Packages:
1372   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1373   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1374   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1375   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1376   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1377   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1378   --without-libintl-prefix     don't search for libintl in includedir and libdir
1379   --with-customs=DIR      enable remote jobs via Customs--see README.customs
1380   --with-dmalloc          use dmalloc, as in
1381                           http://www.dmalloc.com/dmalloc.tar.gz
1382
1383 Some influential environment variables:
1384   CC          C compiler command
1385   CFLAGS      C compiler flags
1386   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1387               nonstandard directory <lib dir>
1388   LIBS        libraries to pass to the linker, e.g. -l<library>
1389   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1390               you have headers in a nonstandard directory <include dir>
1391   CPP         C preprocessor
1392
1393 Use these variables to override the choices made by `configure' or to help
1394 it to find libraries and programs with nonstandard names/locations.
1395
1396 Report bugs to <bug-make@gnu.org>.
1397 GNU make home page: <http://www.gnu.org/software/make/>.
1398 General help using GNU software: <http://www.gnu.org/gethelp/>.
1399 _ACEOF
1400 ac_status=$?
1401 fi
1402
1403 if test "$ac_init_help" = "recursive"; then
1404   # If there are subdirs, report their specific --help.
1405   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1406     test -d "$ac_dir" ||
1407       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1408       continue
1409     ac_builddir=.
1410
1411 case "$ac_dir" in
1412 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 *)
1414   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1415   # A ".." for each directory in $ac_dir_suffix.
1416   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1417   case $ac_top_builddir_sub in
1418   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1420   esac ;;
1421 esac
1422 ac_abs_top_builddir=$ac_pwd
1423 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1424 # for backward compatibility:
1425 ac_top_builddir=$ac_top_build_prefix
1426
1427 case $srcdir in
1428   .)  # We are building in place.
1429     ac_srcdir=.
1430     ac_top_srcdir=$ac_top_builddir_sub
1431     ac_abs_top_srcdir=$ac_pwd ;;
1432   [\\/]* | ?:[\\/]* )  # Absolute name.
1433     ac_srcdir=$srcdir$ac_dir_suffix;
1434     ac_top_srcdir=$srcdir
1435     ac_abs_top_srcdir=$srcdir ;;
1436   *) # Relative name.
1437     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1438     ac_top_srcdir=$ac_top_build_prefix$srcdir
1439     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1440 esac
1441 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1442
1443     cd "$ac_dir" || { ac_status=$?; continue; }
1444     # Check for guested configure.
1445     if test -f "$ac_srcdir/configure.gnu"; then
1446       echo &&
1447       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1448     elif test -f "$ac_srcdir/configure"; then
1449       echo &&
1450       $SHELL "$ac_srcdir/configure" --help=recursive
1451     else
1452       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1453     fi || ac_status=$?
1454     cd "$ac_pwd" || { ac_status=$?; break; }
1455   done
1456 fi
1457
1458 test -n "$ac_init_help" && exit $ac_status
1459 if $ac_init_version; then
1460   cat <<\_ACEOF
1461 GNU make configure 3.82
1462 generated by GNU Autoconf 2.65
1463
1464 Copyright (C) 2009 Free Software Foundation, Inc.
1465 This configure script is free software; the Free Software Foundation
1466 gives unlimited permission to copy, distribute and modify it.
1467 _ACEOF
1468   exit
1469 fi
1470
1471 ## ------------------------ ##
1472 ## Autoconf initialization. ##
1473 ## ------------------------ ##
1474
1475 # ac_fn_c_try_compile LINENO
1476 # --------------------------
1477 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1478 ac_fn_c_try_compile ()
1479 {
1480   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1481   rm -f conftest.$ac_objext
1482   if { { ac_try="$ac_compile"
1483 case "(($ac_try" in
1484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1485   *) ac_try_echo=$ac_try;;
1486 esac
1487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1488 $as_echo "$ac_try_echo"; } >&5
1489   (eval "$ac_compile") 2>conftest.err
1490   ac_status=$?
1491   if test -s conftest.err; then
1492     grep -v '^ *+' conftest.err >conftest.er1
1493     cat conftest.er1 >&5
1494     mv -f conftest.er1 conftest.err
1495   fi
1496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1497   test $ac_status = 0; } && {
1498          test -z "$ac_c_werror_flag" ||
1499          test ! -s conftest.err
1500        } && test -s conftest.$ac_objext; then :
1501   ac_retval=0
1502 else
1503   $as_echo "$as_me: failed program was:" >&5
1504 sed 's/^/| /' conftest.$ac_ext >&5
1505
1506         ac_retval=1
1507 fi
1508   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1509   as_fn_set_status $ac_retval
1510
1511 } # ac_fn_c_try_compile
1512
1513 # ac_fn_c_try_cpp LINENO
1514 # ----------------------
1515 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1516 ac_fn_c_try_cpp ()
1517 {
1518   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519   if { { ac_try="$ac_cpp conftest.$ac_ext"
1520 case "(($ac_try" in
1521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522   *) ac_try_echo=$ac_try;;
1523 esac
1524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525 $as_echo "$ac_try_echo"; } >&5
1526   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1527   ac_status=$?
1528   if test -s conftest.err; then
1529     grep -v '^ *+' conftest.err >conftest.er1
1530     cat conftest.er1 >&5
1531     mv -f conftest.er1 conftest.err
1532   fi
1533   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534   test $ac_status = 0; } >/dev/null && {
1535          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1536          test ! -s conftest.err
1537        }; then :
1538   ac_retval=0
1539 else
1540   $as_echo "$as_me: failed program was:" >&5
1541 sed 's/^/| /' conftest.$ac_ext >&5
1542
1543     ac_retval=1
1544 fi
1545   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1546   as_fn_set_status $ac_retval
1547
1548 } # ac_fn_c_try_cpp
1549
1550 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1551 # -------------------------------------------------------
1552 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1553 # the include files in INCLUDES and setting the cache variable VAR
1554 # accordingly.
1555 ac_fn_c_check_header_mongrel ()
1556 {
1557   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1560 $as_echo_n "checking for $2... " >&6; }
1561 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1562   $as_echo_n "(cached) " >&6
1563 fi
1564 eval ac_res=\$$3
1565                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1566 $as_echo "$ac_res" >&6; }
1567 else
1568   # Is the header compilable?
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1570 $as_echo_n "checking $2 usability... " >&6; }
1571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1572 /* end confdefs.h.  */
1573 $4
1574 #include <$2>
1575 _ACEOF
1576 if ac_fn_c_try_compile "$LINENO"; then :
1577   ac_header_compiler=yes
1578 else
1579   ac_header_compiler=no
1580 fi
1581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1583 $as_echo "$ac_header_compiler" >&6; }
1584
1585 # Is the header present?
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1587 $as_echo_n "checking $2 presence... " >&6; }
1588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1589 /* end confdefs.h.  */
1590 #include <$2>
1591 _ACEOF
1592 if ac_fn_c_try_cpp "$LINENO"; then :
1593   ac_header_preproc=yes
1594 else
1595   ac_header_preproc=no
1596 fi
1597 rm -f conftest.err conftest.$ac_ext
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1599 $as_echo "$ac_header_preproc" >&6; }
1600
1601 # So?  What about this header?
1602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1603   yes:no: )
1604     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1605 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1606     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1607 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1608     ;;
1609   no:yes:* )
1610     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1611 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1612     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1613 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1614     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1615 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1616     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1617 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1618     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1619 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1620 ( cat <<\_ASBOX
1621 ## ------------------------------- ##
1622 ## Report this to bug-make@gnu.org ##
1623 ## ------------------------------- ##
1624 _ASBOX
1625      ) | sed "s/^/$as_me: WARNING:     /" >&2
1626     ;;
1627 esac
1628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1629 $as_echo_n "checking for $2... " >&6; }
1630 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1631   $as_echo_n "(cached) " >&6
1632 else
1633   eval "$3=\$ac_header_compiler"
1634 fi
1635 eval ac_res=\$$3
1636                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1637 $as_echo "$ac_res" >&6; }
1638 fi
1639   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640
1641 } # ac_fn_c_check_header_mongrel
1642
1643 # ac_fn_c_try_run LINENO
1644 # ----------------------
1645 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1646 # that executables *can* be run.
1647 ac_fn_c_try_run ()
1648 {
1649   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650   if { { ac_try="$ac_link"
1651 case "(($ac_try" in
1652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653   *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657   (eval "$ac_link") 2>&5
1658   ac_status=$?
1659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1661   { { case "(($ac_try" in
1662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663   *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667   (eval "$ac_try") 2>&5
1668   ac_status=$?
1669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670   test $ac_status = 0; }; }; then :
1671   ac_retval=0
1672 else
1673   $as_echo "$as_me: program exited with status $ac_status" >&5
1674        $as_echo "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1676
1677        ac_retval=$ac_status
1678 fi
1679   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1680   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681   as_fn_set_status $ac_retval
1682
1683 } # ac_fn_c_try_run
1684
1685 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1686 # -------------------------------------------------------
1687 # Tests whether HEADER exists and can be compiled using the include files in
1688 # INCLUDES, setting the cache variable VAR accordingly.
1689 ac_fn_c_check_header_compile ()
1690 {
1691   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693 $as_echo_n "checking for $2... " >&6; }
1694 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1695   $as_echo_n "(cached) " >&6
1696 else
1697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1698 /* end confdefs.h.  */
1699 $4
1700 #include <$2>
1701 _ACEOF
1702 if ac_fn_c_try_compile "$LINENO"; then :
1703   eval "$3=yes"
1704 else
1705   eval "$3=no"
1706 fi
1707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708 fi
1709 eval ac_res=\$$3
1710                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 $as_echo "$ac_res" >&6; }
1712   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1713
1714 } # ac_fn_c_check_header_compile
1715
1716 # ac_fn_c_try_link LINENO
1717 # -----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_link ()
1720 {
1721   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722   rm -f conftest.$ac_objext conftest$ac_exeext
1723   if { { ac_try="$ac_link"
1724 case "(($ac_try" in
1725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726   *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730   (eval "$ac_link") 2>conftest.err
1731   ac_status=$?
1732   if test -s conftest.err; then
1733     grep -v '^ *+' conftest.err >conftest.er1
1734     cat conftest.er1 >&5
1735     mv -f conftest.er1 conftest.err
1736   fi
1737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738   test $ac_status = 0; } && {
1739          test -z "$ac_c_werror_flag" ||
1740          test ! -s conftest.err
1741        } && test -s conftest$ac_exeext && {
1742          test "$cross_compiling" = yes ||
1743          $as_test_x conftest$ac_exeext
1744        }; then :
1745   ac_retval=0
1746 else
1747   $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1749
1750         ac_retval=1
1751 fi
1752   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1753   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1754   # interfere with the next link command; also delete a directory that is
1755   # left behind by Apple's compiler.  We do this before executing the actions.
1756   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758   as_fn_set_status $ac_retval
1759
1760 } # ac_fn_c_try_link
1761
1762 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1763 # -------------------------------------------
1764 # Tests whether TYPE exists after having included INCLUDES, setting cache
1765 # variable VAR accordingly.
1766 ac_fn_c_check_type ()
1767 {
1768   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1772   $as_echo_n "(cached) " >&6
1773 else
1774   eval "$3=no"
1775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h.  */
1777 $4
1778 int
1779 main ()
1780 {
1781 if (sizeof ($2))
1782          return 0;
1783   ;
1784   return 0;
1785 }
1786 _ACEOF
1787 if ac_fn_c_try_compile "$LINENO"; then :
1788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h.  */
1790 $4
1791 int
1792 main ()
1793 {
1794 if (sizeof (($2)))
1795             return 0;
1796   ;
1797   return 0;
1798 }
1799 _ACEOF
1800 if ac_fn_c_try_compile "$LINENO"; then :
1801
1802 else
1803   eval "$3=yes"
1804 fi
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806 fi
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808 fi
1809 eval ac_res=\$$3
1810                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813
1814 } # ac_fn_c_check_type
1815
1816 # ac_fn_c_check_func LINENO FUNC VAR
1817 # ----------------------------------
1818 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1819 ac_fn_c_check_func ()
1820 {
1821   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1825   $as_echo_n "(cached) " >&6
1826 else
1827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h.  */
1829 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1831 #define $2 innocuous_$2
1832
1833 /* System header to define __stub macros and hopefully few prototypes,
1834     which can conflict with char $2 (); below.
1835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1836     <limits.h> exists even on freestanding compilers.  */
1837
1838 #ifdef __STDC__
1839 # include <limits.h>
1840 #else
1841 # include <assert.h>
1842 #endif
1843
1844 #undef $2
1845
1846 /* Override any GCC internal prototype to avoid an error.
1847    Use char because int might match the return type of a GCC
1848    builtin and then its argument prototype would still apply.  */
1849 #ifdef __cplusplus
1850 extern "C"
1851 #endif
1852 char $2 ();
1853 /* The GNU C library defines this for functions which it implements
1854     to always fail with ENOSYS.  Some functions are actually named
1855     something starting with __ and the normal name is an alias.  */
1856 #if defined __stub_$2 || defined __stub___$2
1857 choke me
1858 #endif
1859
1860 int
1861 main ()
1862 {
1863 return $2 ();
1864   ;
1865   return 0;
1866 }
1867 _ACEOF
1868 if ac_fn_c_try_link "$LINENO"; then :
1869   eval "$3=yes"
1870 else
1871   eval "$3=no"
1872 fi
1873 rm -f core conftest.err conftest.$ac_objext \
1874     conftest$ac_exeext conftest.$ac_ext
1875 fi
1876 eval ac_res=\$$3
1877                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880
1881 } # ac_fn_c_check_func
1882
1883 # ac_fn_c_check_decl LINENO SYMBOL VAR
1884 # ------------------------------------
1885 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1886 ac_fn_c_check_decl ()
1887 {
1888   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1890 $as_echo_n "checking whether $2 is declared... " >&6; }
1891 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1892   $as_echo_n "(cached) " >&6
1893 else
1894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h.  */
1896 $4
1897 int
1898 main ()
1899 {
1900 #ifndef $2
1901   (void) $2;
1902 #endif
1903
1904   ;
1905   return 0;
1906 }
1907 _ACEOF
1908 if ac_fn_c_try_compile "$LINENO"; then :
1909   eval "$3=yes"
1910 else
1911   eval "$3=no"
1912 fi
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914 fi
1915 eval ac_res=\$$3
1916                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919
1920 } # ac_fn_c_check_decl
1921
1922 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1923 # ----------------------------------------------------
1924 # Tries to find if the field MEMBER exists in type AGGR, after including
1925 # INCLUDES, setting cache variable VAR accordingly.
1926 ac_fn_c_check_member ()
1927 {
1928   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1930 $as_echo_n "checking for $2.$3... " >&6; }
1931 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1932   $as_echo_n "(cached) " >&6
1933 else
1934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h.  */
1936 $5
1937 int
1938 main ()
1939 {
1940 static $2 ac_aggr;
1941 if (ac_aggr.$3)
1942 return 0;
1943   ;
1944   return 0;
1945 }
1946 _ACEOF
1947 if ac_fn_c_try_compile "$LINENO"; then :
1948   eval "$4=yes"
1949 else
1950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h.  */
1952 $5
1953 int
1954 main ()
1955 {
1956 static $2 ac_aggr;
1957 if (sizeof ac_aggr.$3)
1958 return 0;
1959   ;
1960   return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964   eval "$4=yes"
1965 else
1966   eval "$4=no"
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 fi
1970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 fi
1972 eval ac_res=\$$4
1973                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974 $as_echo "$ac_res" >&6; }
1975   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976
1977 } # ac_fn_c_check_member
1978 cat >config.log <<_ACEOF
1979 This file contains any messages produced by compilers while
1980 running configure, to aid debugging if configure makes a mistake.
1981
1982 It was created by GNU make $as_me 3.82, which was
1983 generated by GNU Autoconf 2.65.  Invocation command line was
1984
1985   $ $0 $@
1986
1987 _ACEOF
1988 exec 5>>config.log
1989 {
1990 cat <<_ASUNAME
1991 ## --------- ##
1992 ## Platform. ##
1993 ## --------- ##
1994
1995 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1996 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1997 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1998 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1999 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2000
2001 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2002 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2003
2004 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2005 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2006 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2007 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2008 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2009 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2010 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2011
2012 _ASUNAME
2013
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 for as_dir in $PATH
2016 do
2017   IFS=$as_save_IFS
2018   test -z "$as_dir" && as_dir=.
2019     $as_echo "PATH: $as_dir"
2020   done
2021 IFS=$as_save_IFS
2022
2023 } >&5
2024
2025 cat >&5 <<_ACEOF
2026
2027
2028 ## ----------- ##
2029 ## Core tests. ##
2030 ## ----------- ##
2031
2032 _ACEOF
2033
2034
2035 # Keep a trace of the command line.
2036 # Strip out --no-create and --no-recursion so they do not pile up.
2037 # Strip out --silent because we don't want to record it for future runs.
2038 # Also quote any args containing shell meta-characters.
2039 # Make two passes to allow for proper duplicate-argument suppression.
2040 ac_configure_args=
2041 ac_configure_args0=
2042 ac_configure_args1=
2043 ac_must_keep_next=false
2044 for ac_pass in 1 2
2045 do
2046   for ac_arg
2047   do
2048     case $ac_arg in
2049     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2050     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2051     | -silent | --silent | --silen | --sile | --sil)
2052       continue ;;
2053     *\'*)
2054       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2055     esac
2056     case $ac_pass in
2057     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2058     2)
2059       as_fn_append ac_configure_args1 " '$ac_arg'"
2060       if test $ac_must_keep_next = true; then
2061         ac_must_keep_next=false # Got value, back to normal.
2062       else
2063         case $ac_arg in
2064           *=* | --config-cache | -C | -disable-* | --disable-* \
2065           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2066           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2067           | -with-* | --with-* | -without-* | --without-* | --x)
2068             case "$ac_configure_args0 " in
2069               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2070             esac
2071             ;;
2072           -* ) ac_must_keep_next=true ;;
2073         esac
2074       fi
2075       as_fn_append ac_configure_args " '$ac_arg'"
2076       ;;
2077     esac
2078   done
2079 done
2080 { ac_configure_args0=; unset ac_configure_args0;}
2081 { ac_configure_args1=; unset ac_configure_args1;}
2082
2083 # When interrupted or exit'd, cleanup temporary files, and complete
2084 # config.log.  We remove comments because anyway the quotes in there
2085 # would cause problems or look ugly.
2086 # WARNING: Use '\'' to represent an apostrophe within the trap.
2087 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2088 trap 'exit_status=$?
2089   # Save into config.log some information that might help in debugging.
2090   {
2091     echo
2092
2093     cat <<\_ASBOX
2094 ## ---------------- ##
2095 ## Cache variables. ##
2096 ## ---------------- ##
2097 _ASBOX
2098     echo
2099     # The following way of writing the cache mishandles newlines in values,
2100 (
2101   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2102     eval ac_val=\$$ac_var
2103     case $ac_val in #(
2104     *${as_nl}*)
2105       case $ac_var in #(
2106       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2108       esac
2109       case $ac_var in #(
2110       _ | IFS | as_nl) ;; #(
2111       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2112       *) { eval $ac_var=; unset $ac_var;} ;;
2113       esac ;;
2114     esac
2115   done
2116   (set) 2>&1 |
2117     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2118     *${as_nl}ac_space=\ *)
2119       sed -n \
2120         "s/'\''/'\''\\\\'\'''\''/g;
2121           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2122       ;; #(
2123     *)
2124       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2125       ;;
2126     esac |
2127     sort
2128 )
2129     echo
2130
2131     cat <<\_ASBOX
2132 ## ----------------- ##
2133 ## Output variables. ##
2134 ## ----------------- ##
2135 _ASBOX
2136     echo
2137     for ac_var in $ac_subst_vars
2138     do
2139       eval ac_val=\$$ac_var
2140       case $ac_val in
2141       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142       esac
2143       $as_echo "$ac_var='\''$ac_val'\''"
2144     done | sort
2145     echo
2146
2147     if test -n "$ac_subst_files"; then
2148       cat <<\_ASBOX
2149 ## ------------------- ##
2150 ## File substitutions. ##
2151 ## ------------------- ##
2152 _ASBOX
2153       echo
2154       for ac_var in $ac_subst_files
2155       do
2156         eval ac_val=\$$ac_var
2157         case $ac_val in
2158         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2159         esac
2160         $as_echo "$ac_var='\''$ac_val'\''"
2161       done | sort
2162       echo
2163     fi
2164
2165     if test -s confdefs.h; then
2166       cat <<\_ASBOX
2167 ## ----------- ##
2168 ## confdefs.h. ##
2169 ## ----------- ##
2170 _ASBOX
2171       echo
2172       cat confdefs.h
2173       echo
2174     fi
2175     test "$ac_signal" != 0 &&
2176       $as_echo "$as_me: caught signal $ac_signal"
2177     $as_echo "$as_me: exit $exit_status"
2178   } >&5
2179   rm -f core *.core core.conftest.* &&
2180     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2181     exit $exit_status
2182 ' 0
2183 for ac_signal in 1 2 13 15; do
2184   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2185 done
2186 ac_signal=0
2187
2188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2189 rm -f -r conftest* confdefs.h
2190
2191 $as_echo "/* confdefs.h */" > confdefs.h
2192
2193 # Predefined preprocessor variables.
2194
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_NAME "$PACKAGE_NAME"
2197 _ACEOF
2198
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2201 _ACEOF
2202
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2205 _ACEOF
2206
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_STRING "$PACKAGE_STRING"
2209 _ACEOF
2210
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2213 _ACEOF
2214
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_URL "$PACKAGE_URL"
2217 _ACEOF
2218
2219
2220 # Let the site file select an alternate cache file if it wants to.
2221 # Prefer an explicitly selected file to automatically selected ones.
2222 ac_site_file1=NONE
2223 ac_site_file2=NONE
2224 if test -n "$CONFIG_SITE"; then
2225   ac_site_file1=$CONFIG_SITE
2226 elif test "x$prefix" != xNONE; then
2227   ac_site_file1=$prefix/share/config.site
2228   ac_site_file2=$prefix/etc/config.site
2229 else
2230   ac_site_file1=$ac_default_prefix/share/config.site
2231   ac_site_file2=$ac_default_prefix/etc/config.site
2232 fi
2233 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2234 do
2235   test "x$ac_site_file" = xNONE && continue
2236   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2237     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2238 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2239     sed 's/^/| /' "$ac_site_file" >&5
2240     . "$ac_site_file"
2241   fi
2242 done
2243
2244 if test -r "$cache_file"; then
2245   # Some versions of bash will fail to source /dev/null (special files
2246   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2247   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2248     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2249 $as_echo "$as_me: loading cache $cache_file" >&6;}
2250     case $cache_file in
2251       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2252       *)                      . "./$cache_file";;
2253     esac
2254   fi
2255 else
2256   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2257 $as_echo "$as_me: creating cache $cache_file" >&6;}
2258   >$cache_file
2259 fi
2260
2261 # Check that the precious variables saved in the cache have kept the same
2262 # value.
2263 ac_cache_corrupted=false
2264 for ac_var in $ac_precious_vars; do
2265   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2266   eval ac_new_set=\$ac_env_${ac_var}_set
2267   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2268   eval ac_new_val=\$ac_env_${ac_var}_value
2269   case $ac_old_set,$ac_new_set in
2270     set,)
2271       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2272 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2273       ac_cache_corrupted=: ;;
2274     ,set)
2275       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2276 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2277       ac_cache_corrupted=: ;;
2278     ,);;
2279     *)
2280       if test "x$ac_old_val" != "x$ac_new_val"; then
2281         # differences in whitespace do not lead to failure.
2282         ac_old_val_w=`echo x $ac_old_val`
2283         ac_new_val_w=`echo x $ac_new_val`
2284         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2285           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2286 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2287           ac_cache_corrupted=:
2288         else
2289           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2290 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2291           eval $ac_var=\$ac_old_val
2292         fi
2293         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2294 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2295         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2296 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2297       fi;;
2298   esac
2299   # Pass precious variables to config.status.
2300   if test "$ac_new_set" = set; then
2301     case $ac_new_val in
2302     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2303     *) ac_arg=$ac_var=$ac_new_val ;;
2304     esac
2305     case " $ac_configure_args " in
2306       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2307       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2308     esac
2309   fi
2310 done
2311 if $ac_cache_corrupted; then
2312   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2314   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2315 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2316   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2317 fi
2318 ## -------------------- ##
2319 ## Main body of script. ##
2320 ## -------------------- ##
2321
2322 ac_ext=c
2323 ac_cpp='$CPP $CPPFLAGS'
2324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2327
2328
2329
2330
2331
2332
2333 # Autoconf setup
2334 ac_aux_dir=
2335 for ac_dir in config "$srcdir"/config; do
2336   for ac_t in install-sh install.sh shtool; do
2337     if test -f "$ac_dir/$ac_t"; then
2338       ac_aux_dir=$ac_dir
2339       ac_install_sh="$ac_aux_dir/$ac_t -c"
2340       break 2
2341     fi
2342   done
2343 done
2344 if test -z "$ac_aux_dir"; then
2345   as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2346 fi
2347
2348 # These three variables are undocumented and unsupported,
2349 # and are intended to be withdrawn in a future Autoconf release.
2350 # They can cause serious problems if a builder's source tree is in a directory
2351 # whose full name contains unusual characters.
2352 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2353 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2354 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2355
2356
2357
2358 ac_config_headers="$ac_config_headers config.h"
2359
2360
2361 # Automake setup
2362 am__api_version='1.11'
2363
2364 # Find a good install program.  We prefer a C program (faster),
2365 # so one script is as good as another.  But avoid the broken or
2366 # incompatible versions:
2367 # SysV /etc/install, /usr/sbin/install
2368 # SunOS /usr/etc/install
2369 # IRIX /sbin/install
2370 # AIX /bin/install
2371 # AmigaOS /C/install, which installs bootblocks on floppy discs
2372 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2373 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2374 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2375 # OS/2's system install, which has a completely different semantic
2376 # ./install, which can be erroneously created by make from ./install.sh.
2377 # Reject install programs that cannot install multiple files.
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2379 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2380 if test -z "$INSTALL"; then
2381 if test "${ac_cv_path_install+set}" = set; then :
2382   $as_echo_n "(cached) " >&6
2383 else
2384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 for as_dir in $PATH
2386 do
2387   IFS=$as_save_IFS
2388   test -z "$as_dir" && as_dir=.
2389     # Account for people who put trailing slashes in PATH elements.
2390 case $as_dir/ in #((
2391   ./ | .// | /[cC]/* | \
2392   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2393   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2394   /usr/ucb/* ) ;;
2395   *)
2396     # OSF1 and SCO ODT 3.0 have their own names for install.
2397     # Don't use installbsd from OSF since it installs stuff as root
2398     # by default.
2399     for ac_prog in ginstall scoinst install; do
2400       for ac_exec_ext in '' $ac_executable_extensions; do
2401         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2402           if test $ac_prog = install &&
2403             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2404             # AIX install.  It has an incompatible calling convention.
2405             :
2406           elif test $ac_prog = install &&
2407             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2408             # program-specific install script used by HP pwplus--don't use.
2409             :
2410           else
2411             rm -rf conftest.one conftest.two conftest.dir
2412             echo one > conftest.one
2413             echo two > conftest.two
2414             mkdir conftest.dir
2415             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2416               test -s conftest.one && test -s conftest.two &&
2417               test -s conftest.dir/conftest.one &&
2418               test -s conftest.dir/conftest.two
2419             then
2420               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2421               break 3
2422             fi
2423           fi
2424         fi
2425       done
2426     done
2427     ;;
2428 esac
2429
2430   done
2431 IFS=$as_save_IFS
2432
2433 rm -rf conftest.one conftest.two conftest.dir
2434
2435 fi
2436   if test "${ac_cv_path_install+set}" = set; then
2437     INSTALL=$ac_cv_path_install
2438   else
2439     # As a last resort, use the slow shell script.  Don't cache a
2440     # value for INSTALL within a source directory, because that will
2441     # break other packages using the cache if that directory is
2442     # removed, or if the value is a relative name.
2443     INSTALL=$ac_install_sh
2444   fi
2445 fi
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2447 $as_echo "$INSTALL" >&6; }
2448
2449 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2450 # It thinks the first close brace ends the variable substitution.
2451 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2452
2453 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2454
2455 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2456
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2458 $as_echo_n "checking whether build environment is sane... " >&6; }
2459 # Just in case
2460 sleep 1
2461 echo timestamp > conftest.file
2462 # Reject unsafe characters in $srcdir or the absolute working directory
2463 # name.  Accept space and tab only in the latter.
2464 am_lf='
2465 '
2466 case `pwd` in
2467   *[\\\"\#\$\&\'\`$am_lf]*)
2468     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2469 esac
2470 case $srcdir in
2471   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2472     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2473 esac
2474
2475 # Do `set' in a subshell so we don't clobber the current shell's
2476 # arguments.  Must try -L first in case configure is actually a
2477 # symlink; some systems play weird games with the mod time of symlinks
2478 # (eg FreeBSD returns the mod time of the symlink's containing
2479 # directory).
2480 if (
2481    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2482    if test "$*" = "X"; then
2483       # -L didn't work.
2484       set X `ls -t "$srcdir/configure" conftest.file`
2485    fi
2486    rm -f conftest.file
2487    if test "$*" != "X $srcdir/configure conftest.file" \
2488       && test "$*" != "X conftest.file $srcdir/configure"; then
2489
2490       # If neither matched, then we have a broken ls.  This can happen
2491       # if, for instance, CONFIG_SHELL is bash and it inherits a
2492       # broken ls alias from the environment.  This has actually
2493       # happened.  Such a system could not be considered "sane".
2494       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2495 alias in your environment" "$LINENO" 5
2496    fi
2497
2498    test "$2" = conftest.file
2499    )
2500 then
2501    # Ok.
2502    :
2503 else
2504    as_fn_error "newly created file is older than distributed files!
2505 Check your system clock" "$LINENO" 5
2506 fi
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2508 $as_echo "yes" >&6; }
2509 test "$program_prefix" != NONE &&
2510   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2511 # Use a double $ so make ignores it.
2512 test "$program_suffix" != NONE &&
2513   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2514 # Double any \ or $.
2515 # By default was `s,x,x', remove it if useless.
2516 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2517 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2518
2519 # expand $ac_aux_dir to an absolute path
2520 am_aux_dir=`cd $ac_aux_dir && pwd`
2521
2522 if test x"${MISSING+set}" != xset; then
2523   case $am_aux_dir in
2524   *\ * | *\     *)
2525     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2526   *)
2527     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2528   esac
2529 fi
2530 # Use eval to expand $SHELL
2531 if eval "$MISSING --run true"; then
2532   am_missing_run="$MISSING --run "
2533 else
2534   am_missing_run=
2535   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2536 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2537 fi
2538
2539 if test x"${install_sh}" != xset; then
2540   case $am_aux_dir in
2541   *\ * | *\     *)
2542     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2543   *)
2544     install_sh="\${SHELL} $am_aux_dir/install-sh"
2545   esac
2546 fi
2547
2548 # Installed binaries are usually stripped using `strip' when the user
2549 # run `make install-strip'.  However `strip' might not be the right
2550 # tool to use in cross-compilation environments, therefore Automake
2551 # will honor the `STRIP' environment variable to overrule this program.
2552 if test "$cross_compiling" != no; then
2553   if test -n "$ac_tool_prefix"; then
2554   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2555 set dummy ${ac_tool_prefix}strip; ac_word=$2
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557 $as_echo_n "checking for $ac_word... " >&6; }
2558 if test "${ac_cv_prog_STRIP+set}" = set; then :
2559   $as_echo_n "(cached) " >&6
2560 else
2561   if test -n "$STRIP"; then
2562   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2566 do
2567   IFS=$as_save_IFS
2568   test -z "$as_dir" && as_dir=.
2569     for ac_exec_ext in '' $ac_executable_extensions; do
2570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573     break 2
2574   fi
2575 done
2576   done
2577 IFS=$as_save_IFS
2578
2579 fi
2580 fi
2581 STRIP=$ac_cv_prog_STRIP
2582 if test -n "$STRIP"; then
2583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2584 $as_echo "$STRIP" >&6; }
2585 else
2586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587 $as_echo "no" >&6; }
2588 fi
2589
2590
2591 fi
2592 if test -z "$ac_cv_prog_STRIP"; then
2593   ac_ct_STRIP=$STRIP
2594   # Extract the first word of "strip", so it can be a program name with args.
2595 set dummy strip; ac_word=$2
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597 $as_echo_n "checking for $ac_word... " >&6; }
2598 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2599   $as_echo_n "(cached) " >&6
2600 else
2601   if test -n "$ac_ct_STRIP"; then
2602   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607   IFS=$as_save_IFS
2608   test -z "$as_dir" && as_dir=.
2609     for ac_exec_ext in '' $ac_executable_extensions; do
2610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611     ac_cv_prog_ac_ct_STRIP="strip"
2612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613     break 2
2614   fi
2615 done
2616   done
2617 IFS=$as_save_IFS
2618
2619 fi
2620 fi
2621 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2622 if test -n "$ac_ct_STRIP"; then
2623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2624 $as_echo "$ac_ct_STRIP" >&6; }
2625 else
2626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627 $as_echo "no" >&6; }
2628 fi
2629
2630   if test "x$ac_ct_STRIP" = x; then
2631     STRIP=":"
2632   else
2633     case $cross_compiling:$ac_tool_warned in
2634 yes:)
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2637 ac_tool_warned=yes ;;
2638 esac
2639     STRIP=$ac_ct_STRIP
2640   fi
2641 else
2642   STRIP="$ac_cv_prog_STRIP"
2643 fi
2644
2645 fi
2646 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2647
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2649 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2650 if test -z "$MKDIR_P"; then
2651   if test "${ac_cv_path_mkdir+set}" = set; then :
2652   $as_echo_n "(cached) " >&6
2653 else
2654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2656 do
2657   IFS=$as_save_IFS
2658   test -z "$as_dir" && as_dir=.
2659     for ac_prog in mkdir gmkdir; do
2660          for ac_exec_ext in '' $ac_executable_extensions; do
2661            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2662            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2663              'mkdir (GNU coreutils) '* | \
2664              'mkdir (coreutils) '* | \
2665              'mkdir (fileutils) '4.1*)
2666                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2667                break 3;;
2668            esac
2669          done
2670        done
2671   done
2672 IFS=$as_save_IFS
2673
2674 fi
2675
2676   test -d ./--version && rmdir ./--version
2677   if test "${ac_cv_path_mkdir+set}" = set; then
2678     MKDIR_P="$ac_cv_path_mkdir -p"
2679   else
2680     # As a last resort, use the slow shell script.  Don't cache a
2681     # value for MKDIR_P within a source directory, because that will
2682     # break other packages using the cache if that directory is
2683     # removed, or if the value is a relative name.
2684     MKDIR_P="$ac_install_sh -d"
2685   fi
2686 fi
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2688 $as_echo "$MKDIR_P" >&6; }
2689
2690 mkdir_p="$MKDIR_P"
2691 case $mkdir_p in
2692   [\\/$]* | ?:[\\/]*) ;;
2693   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2694 esac
2695
2696 for ac_prog in gawk mawk nawk awk
2697 do
2698   # Extract the first word of "$ac_prog", so it can be a program name with args.
2699 set dummy $ac_prog; ac_word=$2
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701 $as_echo_n "checking for $ac_word... " >&6; }
2702 if test "${ac_cv_prog_AWK+set}" = set; then :
2703   $as_echo_n "(cached) " >&6
2704 else
2705   if test -n "$AWK"; then
2706   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2710 do
2711   IFS=$as_save_IFS
2712   test -z "$as_dir" && as_dir=.
2713     for ac_exec_ext in '' $ac_executable_extensions; do
2714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715     ac_cv_prog_AWK="$ac_prog"
2716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717     break 2
2718   fi
2719 done
2720   done
2721 IFS=$as_save_IFS
2722
2723 fi
2724 fi
2725 AWK=$ac_cv_prog_AWK
2726 if test -n "$AWK"; then
2727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2728 $as_echo "$AWK" >&6; }
2729 else
2730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731 $as_echo "no" >&6; }
2732 fi
2733
2734
2735   test -n "$AWK" && break
2736 done
2737
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2739 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2740 set x ${MAKE-make}
2741 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2742 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2743   $as_echo_n "(cached) " >&6
2744 else
2745   cat >conftest.make <<\_ACEOF
2746 SHELL = /bin/sh
2747 all:
2748         @echo '@@@%%%=$(MAKE)=@@@%%%'
2749 _ACEOF
2750 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2751 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2752   *@@@%%%=?*=@@@%%%*)
2753     eval ac_cv_prog_make_${ac_make}_set=yes;;
2754   *)
2755     eval ac_cv_prog_make_${ac_make}_set=no;;
2756 esac
2757 rm -f conftest.make
2758 fi
2759 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2761 $as_echo "yes" >&6; }
2762   SET_MAKE=
2763 else
2764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2766   SET_MAKE="MAKE=${MAKE-make}"
2767 fi
2768
2769 rm -rf .tst 2>/dev/null
2770 mkdir .tst 2>/dev/null
2771 if test -d .tst; then
2772   am__leading_dot=.
2773 else
2774   am__leading_dot=_
2775 fi
2776 rmdir .tst 2>/dev/null
2777
2778 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2779   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2780   # is not polluted with repeated "-I."
2781   am__isrc=' -I$(srcdir)'
2782   # test to see if srcdir already configured
2783   if test -f $srcdir/config.status; then
2784     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2785   fi
2786 fi
2787
2788 # test whether we have cygpath
2789 if test -z "$CYGPATH_W"; then
2790   if (cygpath --version) >/dev/null 2>/dev/null; then
2791     CYGPATH_W='cygpath -w'
2792   else
2793     CYGPATH_W=echo
2794   fi
2795 fi
2796
2797
2798 # Define the identity of the package.
2799  PACKAGE='make'
2800  VERSION='3.82'
2801
2802
2803 cat >>confdefs.h <<_ACEOF
2804 #define PACKAGE "$PACKAGE"
2805 _ACEOF
2806
2807
2808 cat >>confdefs.h <<_ACEOF
2809 #define VERSION "$VERSION"
2810 _ACEOF
2811
2812 # Some tools Automake needs.
2813
2814 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2815
2816
2817 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2818
2819
2820 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2821
2822
2823 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2824
2825
2826 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2827
2828 # We need awk for the "check" target.  The system "awk" is bad on
2829 # some platforms.
2830 # Always define AMTAR for backward compatibility.
2831
2832 AMTAR=${AMTAR-"${am_missing_run}tar"}
2833
2834 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2835
2836
2837
2838
2839
2840
2841 # Checks for programs.
2842 ac_ext=c
2843 ac_cpp='$CPP $CPPFLAGS'
2844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2847 if test -n "$ac_tool_prefix"; then
2848   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2849 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if test "${ac_cv_prog_CC+set}" = set; then :
2853   $as_echo_n "(cached) " >&6
2854 else
2855   if test -n "$CC"; then
2856   ac_cv_prog_CC="$CC" # Let the user override the test.
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2860 do
2861   IFS=$as_save_IFS
2862   test -z "$as_dir" && as_dir=.
2863     for ac_exec_ext in '' $ac_executable_extensions; do
2864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867     break 2
2868   fi
2869 done
2870   done
2871 IFS=$as_save_IFS
2872
2873 fi
2874 fi
2875 CC=$ac_cv_prog_CC
2876 if test -n "$CC"; then
2877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2878 $as_echo "$CC" >&6; }
2879 else
2880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2882 fi
2883
2884
2885 fi
2886 if test -z "$ac_cv_prog_CC"; then
2887   ac_ct_CC=$CC
2888   # Extract the first word of "gcc", so it can be a program name with args.
2889 set dummy gcc; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2893   $as_echo_n "(cached) " >&6
2894 else
2895   if test -n "$ac_ct_CC"; then
2896   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2900 do
2901   IFS=$as_save_IFS
2902   test -z "$as_dir" && as_dir=.
2903     for ac_exec_ext in '' $ac_executable_extensions; do
2904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2905     ac_cv_prog_ac_ct_CC="gcc"
2906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907     break 2
2908   fi
2909 done
2910   done
2911 IFS=$as_save_IFS
2912
2913 fi
2914 fi
2915 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2916 if test -n "$ac_ct_CC"; then
2917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2918 $as_echo "$ac_ct_CC" >&6; }
2919 else
2920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2922 fi
2923
2924   if test "x$ac_ct_CC" = x; then
2925     CC=""
2926   else
2927     case $cross_compiling:$ac_tool_warned in
2928 yes:)
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2931 ac_tool_warned=yes ;;
2932 esac
2933     CC=$ac_ct_CC
2934   fi
2935 else
2936   CC="$ac_cv_prog_CC"
2937 fi
2938
2939 if test -z "$CC"; then
2940           if test -n "$ac_tool_prefix"; then
2941     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2942 set dummy ${ac_tool_prefix}cc; ac_word=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if test "${ac_cv_prog_CC+set}" = set; then :
2946   $as_echo_n "(cached) " >&6
2947 else
2948   if test -n "$CC"; then
2949   ac_cv_prog_CC="$CC" # Let the user override the test.
2950 else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2953 do
2954   IFS=$as_save_IFS
2955   test -z "$as_dir" && as_dir=.
2956     for ac_exec_ext in '' $ac_executable_extensions; do
2957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958     ac_cv_prog_CC="${ac_tool_prefix}cc"
2959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960     break 2
2961   fi
2962 done
2963   done
2964 IFS=$as_save_IFS
2965
2966 fi
2967 fi
2968 CC=$ac_cv_prog_CC
2969 if test -n "$CC"; then
2970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971 $as_echo "$CC" >&6; }
2972 else
2973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2975 fi
2976
2977
2978   fi
2979 fi
2980 if test -z "$CC"; then
2981   # Extract the first word of "cc", so it can be a program name with args.
2982 set dummy cc; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if test "${ac_cv_prog_CC+set}" = set; then :
2986   $as_echo_n "(cached) " >&6
2987 else
2988   if test -n "$CC"; then
2989   ac_cv_prog_CC="$CC" # Let the user override the test.
2990 else
2991   ac_prog_rejected=no
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995   IFS=$as_save_IFS
2996   test -z "$as_dir" && as_dir=.
2997     for ac_exec_ext in '' $ac_executable_extensions; do
2998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3000        ac_prog_rejected=yes
3001        continue
3002      fi
3003     ac_cv_prog_CC="cc"
3004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005     break 2
3006   fi
3007 done
3008   done
3009 IFS=$as_save_IFS
3010
3011 if test $ac_prog_rejected = yes; then
3012   # We found a bogon in the path, so make sure we never use it.
3013   set dummy $ac_cv_prog_CC
3014   shift
3015   if test $# != 0; then
3016     # We chose a different compiler from the bogus one.
3017     # However, it has the same basename, so the bogon will be chosen
3018     # first if we set CC to just the basename; use the full file name.
3019     shift
3020     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3021   fi
3022 fi
3023 fi
3024 fi
3025 CC=$ac_cv_prog_CC
3026 if test -n "$CC"; then
3027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3028 $as_echo "$CC" >&6; }
3029 else
3030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3032 fi
3033
3034
3035 fi
3036 if test -z "$CC"; then
3037   if test -n "$ac_tool_prefix"; then
3038   for ac_prog in cl.exe
3039   do
3040     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if test "${ac_cv_prog_CC+set}" = set; then :
3045   $as_echo_n "(cached) " >&6
3046 else
3047   if test -n "$CC"; then
3048   ac_cv_prog_CC="$CC" # Let the user override the test.
3049 else
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3052 do
3053   IFS=$as_save_IFS
3054   test -z "$as_dir" && as_dir=.
3055     for ac_exec_ext in '' $ac_executable_extensions; do
3056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3057     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
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 fi
3066 fi
3067 CC=$ac_cv_prog_CC
3068 if test -n "$CC"; then
3069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070 $as_echo "$CC" >&6; }
3071 else
3072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074 fi
3075
3076
3077     test -n "$CC" && break
3078   done
3079 fi
3080 if test -z "$CC"; then
3081   ac_ct_CC=$CC
3082   for ac_prog in cl.exe
3083 do
3084   # Extract the first word of "$ac_prog", so it can be a program name with args.
3085 set dummy $ac_prog; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3089   $as_echo_n "(cached) " >&6
3090 else
3091   if test -n "$ac_ct_CC"; then
3092   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH
3096 do
3097   IFS=$as_save_IFS
3098   test -z "$as_dir" && as_dir=.
3099     for ac_exec_ext in '' $ac_executable_extensions; do
3100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3101     ac_cv_prog_ac_ct_CC="$ac_prog"
3102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103     break 2
3104   fi
3105 done
3106   done
3107 IFS=$as_save_IFS
3108
3109 fi
3110 fi
3111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3112 if test -n "$ac_ct_CC"; then
3113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3114 $as_echo "$ac_ct_CC" >&6; }
3115 else
3116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 fi
3119
3120
3121   test -n "$ac_ct_CC" && break
3122 done
3123
3124   if test "x$ac_ct_CC" = x; then
3125     CC=""
3126   else
3127     case $cross_compiling:$ac_tool_warned in
3128 yes:)
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131 ac_tool_warned=yes ;;
3132 esac
3133     CC=$ac_ct_CC
3134   fi
3135 fi
3136
3137 fi
3138
3139
3140 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142 as_fn_error "no acceptable C compiler found in \$PATH
3143 See \`config.log' for more details." "$LINENO" 5; }
3144
3145 # Provide some information about the compiler.
3146 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3147 set X $ac_compile
3148 ac_compiler=$2
3149 for ac_option in --version -v -V -qversion; do
3150   { { ac_try="$ac_compiler $ac_option >&5"
3151 case "(($ac_try" in
3152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153   *) ac_try_echo=$ac_try;;
3154 esac
3155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156 $as_echo "$ac_try_echo"; } >&5
3157   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3158   ac_status=$?
3159   if test -s conftest.err; then
3160     sed '10a\
3161 ... rest of stderr output deleted ...
3162          10q' conftest.err >conftest.er1
3163     cat conftest.er1 >&5
3164   fi
3165   rm -f conftest.er1 conftest.err
3166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167   test $ac_status = 0; }
3168 done
3169
3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 /* end confdefs.h.  */
3172
3173 int
3174 main ()
3175 {
3176
3177   ;
3178   return 0;
3179 }
3180 _ACEOF
3181 ac_clean_files_save=$ac_clean_files
3182 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3183 # Try to create an executable without -o first, disregard a.out.
3184 # It will help us diagnose broken compilers, and finding out an intuition
3185 # of exeext.
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3187 $as_echo_n "checking whether the C compiler works... " >&6; }
3188 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3189
3190 # The possible output files:
3191 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3192
3193 ac_rmfiles=
3194 for ac_file in $ac_files
3195 do
3196   case $ac_file in
3197     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3198     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3199   esac
3200 done
3201 rm -f $ac_rmfiles
3202
3203 if { { ac_try="$ac_link_default"
3204 case "(($ac_try" in
3205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206   *) ac_try_echo=$ac_try;;
3207 esac
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210   (eval "$ac_link_default") 2>&5
3211   ac_status=$?
3212   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213   test $ac_status = 0; }; then :
3214   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3215 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3216 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3217 # so that the user can short-circuit this test for compilers unknown to
3218 # Autoconf.
3219 for ac_file in $ac_files ''
3220 do
3221   test -f "$ac_file" || continue
3222   case $ac_file in
3223     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3224         ;;
3225     [ab].out )
3226         # We found the default executable, but exeext='' is most
3227         # certainly right.
3228         break;;
3229     *.* )
3230         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3231         then :; else
3232            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233         fi
3234         # We set ac_cv_exeext here because the later test for it is not
3235         # safe: cross compilers may not add the suffix if given an `-o'
3236         # argument, so we may need to know it at that point already.
3237         # Even if this section looks crufty: it has the advantage of
3238         # actually working.
3239         break;;
3240     * )
3241         break;;
3242   esac
3243 done
3244 test "$ac_cv_exeext" = no && ac_cv_exeext=
3245
3246 else
3247   ac_file=''
3248 fi
3249 if test -z "$ac_file"; then :
3250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3252 $as_echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 { as_fn_set_status 77
3258 as_fn_error "C compiler cannot create executables
3259 See \`config.log' for more details." "$LINENO" 5; }; }
3260 else
3261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3262 $as_echo "yes" >&6; }
3263 fi
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3265 $as_echo_n "checking for C compiler default output file name... " >&6; }
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3267 $as_echo "$ac_file" >&6; }
3268 ac_exeext=$ac_cv_exeext
3269
3270 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3271 ac_clean_files=$ac_clean_files_save
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3273 $as_echo_n "checking for suffix of executables... " >&6; }
3274 if { { ac_try="$ac_link"
3275 case "(($ac_try" in
3276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277   *) ac_try_echo=$ac_try;;
3278 esac
3279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280 $as_echo "$ac_try_echo"; } >&5
3281   (eval "$ac_link") 2>&5
3282   ac_status=$?
3283   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284   test $ac_status = 0; }; then :
3285   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3286 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3287 # work properly (i.e., refer to `conftest.exe'), while it won't with
3288 # `rm'.
3289 for ac_file in conftest.exe conftest conftest.*; do
3290   test -f "$ac_file" || continue
3291   case $ac_file in
3292     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3293     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3294           break;;
3295     * ) break;;
3296   esac
3297 done
3298 else
3299   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301 as_fn_error "cannot compute suffix of executables: cannot compile and link
3302 See \`config.log' for more details." "$LINENO" 5; }
3303 fi
3304 rm -f conftest conftest$ac_cv_exeext
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3306 $as_echo "$ac_cv_exeext" >&6; }
3307
3308 rm -f conftest.$ac_ext
3309 EXEEXT=$ac_cv_exeext
3310 ac_exeext=$EXEEXT
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h.  */
3313 #include <stdio.h>
3314 int
3315 main ()
3316 {
3317 FILE *f = fopen ("conftest.out", "w");
3318  return ferror (f) || fclose (f) != 0;
3319
3320   ;
3321   return 0;
3322 }
3323 _ACEOF
3324 ac_clean_files="$ac_clean_files conftest.out"
3325 # Check that the compiler produces executables we can run.  If not, either
3326 # the compiler is broken, or we cross compile.
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3328 $as_echo_n "checking whether we are cross compiling... " >&6; }
3329 if test "$cross_compiling" != yes; then
3330   { { ac_try="$ac_link"
3331 case "(($ac_try" in
3332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333   *) ac_try_echo=$ac_try;;
3334 esac
3335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336 $as_echo "$ac_try_echo"; } >&5
3337   (eval "$ac_link") 2>&5
3338   ac_status=$?
3339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340   test $ac_status = 0; }
3341   if { ac_try='./conftest$ac_cv_exeext'
3342   { { case "(($ac_try" in
3343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344   *) ac_try_echo=$ac_try;;
3345 esac
3346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347 $as_echo "$ac_try_echo"; } >&5
3348   (eval "$ac_try") 2>&5
3349   ac_status=$?
3350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351   test $ac_status = 0; }; }; then
3352     cross_compiling=no
3353   else
3354     if test "$cross_compiling" = maybe; then
3355         cross_compiling=yes
3356     else
3357         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 as_fn_error "cannot run C compiled programs.
3360 If you meant to cross compile, use \`--host'.
3361 See \`config.log' for more details." "$LINENO" 5; }
3362     fi
3363   fi
3364 fi
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3366 $as_echo "$cross_compiling" >&6; }
3367
3368 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3369 ac_clean_files=$ac_clean_files_save
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3371 $as_echo_n "checking for suffix of object files... " >&6; }
3372 if test "${ac_cv_objext+set}" = set; then :
3373   $as_echo_n "(cached) " >&6
3374 else
3375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h.  */
3377
3378 int
3379 main ()
3380 {
3381
3382   ;
3383   return 0;
3384 }
3385 _ACEOF
3386 rm -f conftest.o conftest.obj
3387 if { { ac_try="$ac_compile"
3388 case "(($ac_try" in
3389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390   *) ac_try_echo=$ac_try;;
3391 esac
3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393 $as_echo "$ac_try_echo"; } >&5
3394   (eval "$ac_compile") 2>&5
3395   ac_status=$?
3396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397   test $ac_status = 0; }; then :
3398   for ac_file in conftest.o conftest.obj conftest.*; do
3399   test -f "$ac_file" || continue;
3400   case $ac_file in
3401     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3402     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3403        break;;
3404   esac
3405 done
3406 else
3407   $as_echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3409
3410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412 as_fn_error "cannot compute suffix of object files: cannot compile
3413 See \`config.log' for more details." "$LINENO" 5; }
3414 fi
3415 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3416 fi
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3418 $as_echo "$ac_cv_objext" >&6; }
3419 OBJEXT=$ac_cv_objext
3420 ac_objext=$OBJEXT
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3422 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3423 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3424   $as_echo_n "(cached) " >&6
3425 else
3426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h.  */
3428
3429 int
3430 main ()
3431 {
3432 #ifndef __GNUC__
3433        choke me
3434 #endif
3435
3436   ;
3437   return 0;
3438 }
3439 _ACEOF
3440 if ac_fn_c_try_compile "$LINENO"; then :
3441   ac_compiler_gnu=yes
3442 else
3443   ac_compiler_gnu=no
3444 fi
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3447
3448 fi
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3450 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3451 if test $ac_compiler_gnu = yes; then
3452   GCC=yes
3453 else
3454   GCC=
3455 fi
3456 ac_test_CFLAGS=${CFLAGS+set}
3457 ac_save_CFLAGS=$CFLAGS
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3459 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3460 if test "${ac_cv_prog_cc_g+set}" = set; then :
3461   $as_echo_n "(cached) " >&6
3462 else
3463   ac_save_c_werror_flag=$ac_c_werror_flag
3464    ac_c_werror_flag=yes
3465    ac_cv_prog_cc_g=no
3466    CFLAGS="-g"
3467    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h.  */
3469
3470 int
3471 main ()
3472 {
3473
3474   ;
3475   return 0;
3476 }
3477 _ACEOF
3478 if ac_fn_c_try_compile "$LINENO"; then :
3479   ac_cv_prog_cc_g=yes
3480 else
3481   CFLAGS=""
3482       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h.  */
3484
3485 int
3486 main ()
3487 {
3488
3489   ;
3490   return 0;
3491 }
3492 _ACEOF
3493 if ac_fn_c_try_compile "$LINENO"; then :
3494
3495 else
3496   ac_c_werror_flag=$ac_save_c_werror_flag
3497          CFLAGS="-g"
3498          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h.  */
3500
3501 int
3502 main ()
3503 {
3504
3505   ;
3506   return 0;
3507 }
3508 _ACEOF
3509 if ac_fn_c_try_compile "$LINENO"; then :
3510   ac_cv_prog_cc_g=yes
3511 fi
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 fi
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 fi
3516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517    ac_c_werror_flag=$ac_save_c_werror_flag
3518 fi
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3520 $as_echo "$ac_cv_prog_cc_g" >&6; }
3521 if test "$ac_test_CFLAGS" = set; then
3522   CFLAGS=$ac_save_CFLAGS
3523 elif test $ac_cv_prog_cc_g = yes; then
3524   if test "$GCC" = yes; then
3525     CFLAGS="-g -O2"
3526   else
3527     CFLAGS="-g"
3528   fi
3529 else
3530   if test "$GCC" = yes; then
3531     CFLAGS="-O2"
3532   else
3533     CFLAGS=
3534   fi
3535 fi
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3537 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3538 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3539   $as_echo_n "(cached) " >&6
3540 else
3541   ac_cv_prog_cc_c89=no
3542 ac_save_CC=$CC
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h.  */
3545 #include <stdarg.h>
3546 #include <stdio.h>
3547 #include <sys/types.h>
3548 #include <sys/stat.h>
3549 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3550 struct buf { int x; };
3551 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3552 static char *e (p, i)
3553      char **p;
3554      int i;
3555 {
3556   return p[i];
3557 }
3558 static char *f (char * (*g) (char **, int), char **p, ...)
3559 {
3560   char *s;
3561   va_list v;
3562   va_start (v,p);
3563   s = g (p, va_arg (v,int));
3564   va_end (v);
3565   return s;
3566 }
3567
3568 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3569    function prototypes and stuff, but not '\xHH' hex character constants.
3570    These don't provoke an error unfortunately, instead are silently treated
3571    as 'x'.  The following induces an error, until -std is added to get
3572    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3573    array size at least.  It's necessary to write '\x00'==0 to get something
3574    that's true only with -std.  */
3575 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3576
3577 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3578    inside strings and character constants.  */
3579 #define FOO(x) 'x'
3580 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3581
3582 int test (int i, double x);
3583 struct s1 {int (*f) (int a);};
3584 struct s2 {int (*f) (double a);};
3585 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3586 int argc;
3587 char **argv;
3588 int
3589 main ()
3590 {
3591 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3592   ;
3593   return 0;
3594 }
3595 _ACEOF
3596 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3597         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3598 do
3599   CC="$ac_save_CC $ac_arg"
3600   if ac_fn_c_try_compile "$LINENO"; then :
3601   ac_cv_prog_cc_c89=$ac_arg
3602 fi
3603 rm -f core conftest.err conftest.$ac_objext
3604   test "x$ac_cv_prog_cc_c89" != "xno" && break
3605 done
3606 rm -f conftest.$ac_ext
3607 CC=$ac_save_CC
3608
3609 fi
3610 # AC_CACHE_VAL
3611 case "x$ac_cv_prog_cc_c89" in
3612   x)
3613     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3614 $as_echo "none needed" >&6; } ;;
3615   xno)
3616     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3617 $as_echo "unsupported" >&6; } ;;
3618   *)
3619     CC="$CC $ac_cv_prog_cc_c89"
3620     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3621 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3622 esac
3623 if test "x$ac_cv_prog_cc_c89" != xno; then :
3624
3625 fi
3626
3627 ac_ext=c
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632 DEPDIR="${am__leading_dot}deps"
3633
3634 ac_config_commands="$ac_config_commands depfiles"
3635
3636
3637 am_make=${MAKE-make}
3638 cat > confinc << 'END'
3639 am__doit:
3640         @echo this is the am__doit target
3641 .PHONY: am__doit
3642 END
3643 # If we don't find an include directive, just comment out the code.
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3645 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3646 am__include="#"
3647 am__quote=
3648 _am_result=none
3649 # First try GNU make style include.
3650 echo "include confinc" > confmf
3651 # Ignore all kinds of additional output from `make'.
3652 case `$am_make -s -f confmf 2> /dev/null` in #(
3653 *the\ am__doit\ target*)
3654   am__include=include
3655   am__quote=
3656   _am_result=GNU
3657   ;;
3658 esac
3659 # Now try BSD make style include.
3660 if test "$am__include" = "#"; then
3661    echo '.include "confinc"' > confmf
3662    case `$am_make -s -f confmf 2> /dev/null` in #(
3663    *the\ am__doit\ target*)
3664      am__include=.include
3665      am__quote="\""
3666      _am_result=BSD
3667      ;;
3668    esac
3669 fi
3670
3671
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3673 $as_echo "$_am_result" >&6; }
3674 rm -f confinc confmf
3675
3676 # Check whether --enable-dependency-tracking was given.
3677 if test "${enable_dependency_tracking+set}" = set; then :
3678   enableval=$enable_dependency_tracking;
3679 fi
3680
3681 if test "x$enable_dependency_tracking" != xno; then
3682   am_depcomp="$ac_aux_dir/depcomp"
3683   AMDEPBACKSLASH='\'
3684 fi
3685  if test "x$enable_dependency_tracking" != xno; then
3686   AMDEP_TRUE=
3687   AMDEP_FALSE='#'
3688 else
3689   AMDEP_TRUE='#'
3690   AMDEP_FALSE=
3691 fi
3692
3693
3694
3695 depcc="$CC"   am_compiler_list=
3696
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3698 $as_echo_n "checking dependency style of $depcc... " >&6; }
3699 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3700   $as_echo_n "(cached) " >&6
3701 else
3702   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3703   # We make a subdir and do the tests there.  Otherwise we can end up
3704   # making bogus files that we don't know about and never remove.  For
3705   # instance it was reported that on HP-UX the gcc test will end up
3706   # making a dummy file named `D' -- because `-MD' means `put the output
3707   # in D'.
3708   mkdir conftest.dir
3709   # Copy depcomp to subdir because otherwise we won't find it if we're
3710   # using a relative directory.
3711   cp "$am_depcomp" conftest.dir
3712   cd conftest.dir
3713   # We will build objects and dependencies in a subdirectory because
3714   # it helps to detect inapplicable dependency modes.  For instance
3715   # both Tru64's cc and ICC support -MD to output dependencies as a
3716   # side effect of compilation, but ICC will put the dependencies in
3717   # the current directory while Tru64 will put them in the object
3718   # directory.
3719   mkdir sub
3720
3721   am_cv_CC_dependencies_compiler_type=none
3722   if test "$am_compiler_list" = ""; then
3723      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3724   fi
3725   am__universal=false
3726   case " $depcc " in #(
3727      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3728      esac
3729
3730   for depmode in $am_compiler_list; do
3731     # Setup a source with many dependencies, because some compilers
3732     # like to wrap large dependency lists on column 80 (with \), and
3733     # we should not choose a depcomp mode which is confused by this.
3734     #
3735     # We need to recreate these files for each test, as the compiler may
3736     # overwrite some of them when testing with obscure command lines.
3737     # This happens at least with the AIX C compiler.
3738     : > sub/conftest.c
3739     for i in 1 2 3 4 5 6; do
3740       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3741       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3742       # Solaris 8's {/usr,}/bin/sh.
3743       touch sub/conftst$i.h
3744     done
3745     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3746
3747     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3748     # mode.  It turns out that the SunPro C++ compiler does not properly
3749     # handle `-M -o', and we need to detect this.  Also, some Intel
3750     # versions had trouble with output in subdirs
3751     am__obj=sub/conftest.${OBJEXT-o}
3752     am__minus_obj="-o $am__obj"
3753     case $depmode in
3754     gcc)
3755       # This depmode causes a compiler race in universal mode.
3756       test "$am__universal" = false || continue
3757       ;;
3758     nosideeffect)
3759       # after this tag, mechanisms are not by side-effect, so they'll
3760       # only be used when explicitly requested
3761       if test "x$enable_dependency_tracking" = xyes; then
3762         continue
3763       else
3764         break
3765       fi
3766       ;;
3767     msvisualcpp | msvcmsys)
3768       # This compiler won't grok `-c -o', but also, the minuso test has
3769       # not run yet.  These depmodes are late enough in the game, and
3770       # so weak that their functioning should not be impacted.
3771       am__obj=conftest.${OBJEXT-o}
3772       am__minus_obj=
3773       ;;
3774     none) break ;;
3775     esac
3776     if depmode=$depmode \
3777        source=sub/conftest.c object=$am__obj \
3778        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3779        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3780          >/dev/null 2>conftest.err &&
3781        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3782        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3783        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3784        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3785       # icc doesn't choke on unknown options, it will just issue warnings
3786       # or remarks (even with -Werror).  So we grep stderr for any message
3787       # that says an option was ignored or not supported.
3788       # When given -MP, icc 7.0 and 7.1 complain thusly:
3789       #   icc: Command line warning: ignoring option '-M'; no argument required
3790       # The diagnosis changed in icc 8.0:
3791       #   icc: Command line remark: option '-MP' not supported
3792       if (grep 'ignoring option' conftest.err ||
3793           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3794         am_cv_CC_dependencies_compiler_type=$depmode
3795         break
3796       fi
3797     fi
3798   done
3799
3800   cd ..
3801   rm -rf conftest.dir
3802 else
3803   am_cv_CC_dependencies_compiler_type=none
3804 fi
3805
3806 fi
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3808 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3809 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3810
3811  if
3812   test "x$enable_dependency_tracking" != xno \
3813   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3814   am__fastdepCC_TRUE=
3815   am__fastdepCC_FALSE='#'
3816 else
3817   am__fastdepCC_TRUE='#'
3818   am__fastdepCC_FALSE=
3819 fi
3820
3821
3822
3823 if test -n "$ac_tool_prefix"; then
3824   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3825 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3827 $as_echo_n "checking for $ac_word... " >&6; }
3828 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3829   $as_echo_n "(cached) " >&6
3830 else
3831   if test -n "$RANLIB"; then
3832   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3833 else
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 for as_dir in $PATH
3836 do
3837   IFS=$as_save_IFS
3838   test -z "$as_dir" && as_dir=.
3839     for ac_exec_ext in '' $ac_executable_extensions; do
3840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3841     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3843     break 2
3844   fi
3845 done
3846   done
3847 IFS=$as_save_IFS
3848
3849 fi
3850 fi
3851 RANLIB=$ac_cv_prog_RANLIB
3852 if test -n "$RANLIB"; then
3853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3854 $as_echo "$RANLIB" >&6; }
3855 else
3856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857 $as_echo "no" >&6; }
3858 fi
3859
3860
3861 fi
3862 if test -z "$ac_cv_prog_RANLIB"; then
3863   ac_ct_RANLIB=$RANLIB
3864   # Extract the first word of "ranlib", so it can be a program name with args.
3865 set dummy ranlib; ac_word=$2
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3867 $as_echo_n "checking for $ac_word... " >&6; }
3868 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3869   $as_echo_n "(cached) " >&6
3870 else
3871   if test -n "$ac_ct_RANLIB"; then
3872   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3873 else
3874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 for as_dir in $PATH
3876 do
3877   IFS=$as_save_IFS
3878   test -z "$as_dir" && as_dir=.
3879     for ac_exec_ext in '' $ac_executable_extensions; do
3880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3881     ac_cv_prog_ac_ct_RANLIB="ranlib"
3882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3883     break 2
3884   fi
3885 done
3886   done
3887 IFS=$as_save_IFS
3888
3889 fi
3890 fi
3891 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3892 if test -n "$ac_ct_RANLIB"; then
3893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3894 $as_echo "$ac_ct_RANLIB" >&6; }
3895 else
3896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897 $as_echo "no" >&6; }
3898 fi
3899
3900   if test "x$ac_ct_RANLIB" = x; then
3901     RANLIB=":"
3902   else
3903     case $cross_compiling:$ac_tool_warned in
3904 yes:)
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3907 ac_tool_warned=yes ;;
3908 esac
3909     RANLIB=$ac_ct_RANLIB
3910   fi
3911 else
3912   RANLIB="$ac_cv_prog_RANLIB"
3913 fi
3914
3915 ac_ext=c
3916 ac_cpp='$CPP $CPPFLAGS'
3917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3921 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3922 # On Suns, sometimes $CPP names a directory.
3923 if test -n "$CPP" && test -d "$CPP"; then
3924   CPP=
3925 fi
3926 if test -z "$CPP"; then
3927   if test "${ac_cv_prog_CPP+set}" = set; then :
3928   $as_echo_n "(cached) " >&6
3929 else
3930       # Double quotes because CPP needs to be expanded
3931     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3932     do
3933       ac_preproc_ok=false
3934 for ac_c_preproc_warn_flag in '' yes
3935 do
3936   # Use a header file that comes with gcc, so configuring glibc
3937   # with a fresh cross-compiler works.
3938   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3939   # <limits.h> exists even on freestanding compilers.
3940   # On the NeXT, cc -E runs the code through the compiler's parser,
3941   # not just through cpp. "Syntax error" is here to catch this case.
3942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h.  */
3944 #ifdef __STDC__
3945 # include <limits.h>
3946 #else
3947 # include <assert.h>
3948 #endif
3949                      Syntax error
3950 _ACEOF
3951 if ac_fn_c_try_cpp "$LINENO"; then :
3952
3953 else
3954   # Broken: fails on valid input.
3955 continue
3956 fi
3957 rm -f conftest.err conftest.$ac_ext
3958
3959   # OK, works on sane cases.  Now check whether nonexistent headers
3960   # can be detected and how.
3961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h.  */
3963 #include <ac_nonexistent.h>
3964 _ACEOF
3965 if ac_fn_c_try_cpp "$LINENO"; then :
3966   # Broken: success on invalid input.
3967 continue
3968 else
3969   # Passes both tests.
3970 ac_preproc_ok=:
3971 break
3972 fi
3973 rm -f conftest.err conftest.$ac_ext
3974
3975 done
3976 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3977 rm -f conftest.err conftest.$ac_ext
3978 if $ac_preproc_ok; then :
3979   break
3980 fi
3981
3982     done
3983     ac_cv_prog_CPP=$CPP
3984
3985 fi
3986   CPP=$ac_cv_prog_CPP
3987 else
3988   ac_cv_prog_CPP=$CPP
3989 fi
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3991 $as_echo "$CPP" >&6; }
3992 ac_preproc_ok=false
3993 for ac_c_preproc_warn_flag in '' yes
3994 do
3995   # Use a header file that comes with gcc, so configuring glibc
3996   # with a fresh cross-compiler works.
3997   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3998   # <limits.h> exists even on freestanding compilers.
3999   # On the NeXT, cc -E runs the code through the compiler's parser,
4000   # not just through cpp. "Syntax error" is here to catch this case.
4001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h.  */
4003 #ifdef __STDC__
4004 # include <limits.h>
4005 #else
4006 # include <assert.h>
4007 #endif
4008                      Syntax error
4009 _ACEOF
4010 if ac_fn_c_try_cpp "$LINENO"; then :
4011
4012 else
4013   # Broken: fails on valid input.
4014 continue
4015 fi
4016 rm -f conftest.err conftest.$ac_ext
4017
4018   # OK, works on sane cases.  Now check whether nonexistent headers
4019   # can be detected and how.
4020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021 /* end confdefs.h.  */
4022 #include <ac_nonexistent.h>
4023 _ACEOF
4024 if ac_fn_c_try_cpp "$LINENO"; then :
4025   # Broken: success on invalid input.
4026 continue
4027 else
4028   # Passes both tests.
4029 ac_preproc_ok=:
4030 break
4031 fi
4032 rm -f conftest.err conftest.$ac_ext
4033
4034 done
4035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4036 rm -f conftest.err conftest.$ac_ext
4037 if $ac_preproc_ok; then :
4038
4039 else
4040   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4042 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4043 See \`config.log' for more details." "$LINENO" 5; }
4044 fi
4045
4046 ac_ext=c
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051
4052 # Extract the first word of "ar", so it can be a program name with args.
4053 set dummy ar; ac_word=$2
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4055 $as_echo_n "checking for $ac_word... " >&6; }
4056 if test "${ac_cv_prog_AR+set}" = set; then :
4057   $as_echo_n "(cached) " >&6
4058 else
4059   if test -n "$AR"; then
4060   ac_cv_prog_AR="$AR" # Let the user override the test.
4061 else
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH
4064 do
4065   IFS=$as_save_IFS
4066   test -z "$as_dir" && as_dir=.
4067     for ac_exec_ext in '' $ac_executable_extensions; do
4068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4069     ac_cv_prog_AR="ar"
4070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4071     break 2
4072   fi
4073 done
4074   done
4075 IFS=$as_save_IFS
4076
4077   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
4078 fi
4079 fi
4080 AR=$ac_cv_prog_AR
4081 if test -n "$AR"; then
4082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4083 $as_echo "$AR" >&6; }
4084 else
4085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 $as_echo "no" >&6; }
4087 fi
4088
4089
4090 # Perl is needed for the test suite (only)
4091 # Extract the first word of "perl", so it can be a program name with args.
4092 set dummy perl; ac_word=$2
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4094 $as_echo_n "checking for $ac_word... " >&6; }
4095 if test "${ac_cv_prog_PERL+set}" = set; then :
4096   $as_echo_n "(cached) " >&6
4097 else
4098   if test -n "$PERL"; then
4099   ac_cv_prog_PERL="$PERL" # Let the user override the test.
4100 else
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH
4103 do
4104   IFS=$as_save_IFS
4105   test -z "$as_dir" && as_dir=.
4106     for ac_exec_ext in '' $ac_executable_extensions; do
4107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4108     ac_cv_prog_PERL="perl"
4109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4110     break 2
4111   fi
4112 done
4113   done
4114 IFS=$as_save_IFS
4115
4116   test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl"
4117 fi
4118 fi
4119 PERL=$ac_cv_prog_PERL
4120 if test -n "$PERL"; then
4121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4122 $as_echo "$PERL" >&6; }
4123 else
4124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125 $as_echo "no" >&6; }
4126 fi
4127
4128
4129
4130 # Specialized system macros
4131 # Make sure we can run config.sub.
4132 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4133   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4134
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4136 $as_echo_n "checking build system type... " >&6; }
4137 if test "${ac_cv_build+set}" = set; then :
4138   $as_echo_n "(cached) " >&6
4139 else
4140   ac_build_alias=$build_alias
4141 test "x$ac_build_alias" = x &&
4142   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4143 test "x$ac_build_alias" = x &&
4144   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4145 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4146   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4147
4148 fi
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4150 $as_echo "$ac_cv_build" >&6; }
4151 case $ac_cv_build in
4152 *-*-*) ;;
4153 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4154 esac
4155 build=$ac_cv_build
4156 ac_save_IFS=$IFS; IFS='-'
4157 set x $ac_cv_build
4158 shift
4159 build_cpu=$1
4160 build_vendor=$2
4161 shift; shift
4162 # Remember, the first character of IFS is used to create $*,
4163 # except with old shells:
4164 build_os=$*
4165 IFS=$ac_save_IFS
4166 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4167
4168
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4170 $as_echo_n "checking host system type... " >&6; }
4171 if test "${ac_cv_host+set}" = set; then :
4172   $as_echo_n "(cached) " >&6
4173 else
4174   if test "x$host_alias" = x; then
4175   ac_cv_host=$ac_cv_build
4176 else
4177   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4178     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4179 fi
4180
4181 fi
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4183 $as_echo "$ac_cv_host" >&6; }
4184 case $ac_cv_host in
4185 *-*-*) ;;
4186 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4187 esac
4188 host=$ac_cv_host
4189 ac_save_IFS=$IFS; IFS='-'
4190 set x $ac_cv_host
4191 shift
4192 host_cpu=$1
4193 host_vendor=$2
4194 shift; shift
4195 # Remember, the first character of IFS is used to create $*,
4196 # except with old shells:
4197 host_os=$*
4198 IFS=$ac_save_IFS
4199 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4200
4201
4202
4203
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4205 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4206 if test "${ac_cv_path_GREP+set}" = set; then :
4207   $as_echo_n "(cached) " >&6
4208 else
4209   if test -z "$GREP"; then
4210   ac_path_GREP_found=false
4211   # Loop through the user's path and test for each of PROGNAME-LIST
4212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4214 do
4215   IFS=$as_save_IFS
4216   test -z "$as_dir" && as_dir=.
4217     for ac_prog in grep ggrep; do
4218     for ac_exec_ext in '' $ac_executable_extensions; do
4219       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4220       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4221 # Check for GNU ac_path_GREP and select it if it is found.
4222   # Check for GNU $ac_path_GREP
4223 case `"$ac_path_GREP" --version 2>&1` in
4224 *GNU*)
4225   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4226 *)
4227   ac_count=0
4228   $as_echo_n 0123456789 >"conftest.in"
4229   while :
4230   do
4231     cat "conftest.in" "conftest.in" >"conftest.tmp"
4232     mv "conftest.tmp" "conftest.in"
4233     cp "conftest.in" "conftest.nl"
4234     $as_echo 'GREP' >> "conftest.nl"
4235     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4236     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4237     as_fn_arith $ac_count + 1 && ac_count=$as_val
4238     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4239       # Best one so far, save it but keep looking for a better one
4240       ac_cv_path_GREP="$ac_path_GREP"
4241       ac_path_GREP_max=$ac_count
4242     fi
4243     # 10*(2^10) chars as input seems more than enough
4244     test $ac_count -gt 10 && break
4245   done
4246   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4247 esac
4248
4249       $ac_path_GREP_found && break 3
4250     done
4251   done
4252   done
4253 IFS=$as_save_IFS
4254   if test -z "$ac_cv_path_GREP"; then
4255     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4256   fi
4257 else
4258   ac_cv_path_GREP=$GREP
4259 fi
4260
4261 fi
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4263 $as_echo "$ac_cv_path_GREP" >&6; }
4264  GREP="$ac_cv_path_GREP"
4265
4266
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4268 $as_echo_n "checking for egrep... " >&6; }
4269 if test "${ac_cv_path_EGREP+set}" = set; then :
4270   $as_echo_n "(cached) " >&6
4271 else
4272   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4273    then ac_cv_path_EGREP="$GREP -E"
4274    else
4275      if test -z "$EGREP"; then
4276   ac_path_EGREP_found=false
4277   # Loop through the user's path and test for each of PROGNAME-LIST
4278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4280 do
4281   IFS=$as_save_IFS
4282   test -z "$as_dir" && as_dir=.
4283     for ac_prog in egrep; do
4284     for ac_exec_ext in '' $ac_executable_extensions; do
4285       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4286       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4287 # Check for GNU ac_path_EGREP and select it if it is found.
4288   # Check for GNU $ac_path_EGREP
4289 case `"$ac_path_EGREP" --version 2>&1` in
4290 *GNU*)
4291   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4292 *)
4293   ac_count=0
4294   $as_echo_n 0123456789 >"conftest.in"
4295   while :
4296   do
4297     cat "conftest.in" "conftest.in" >"conftest.tmp"
4298     mv "conftest.tmp" "conftest.in"
4299     cp "conftest.in" "conftest.nl"
4300     $as_echo 'EGREP' >> "conftest.nl"
4301     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4302     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4303     as_fn_arith $ac_count + 1 && ac_count=$as_val
4304     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4305       # Best one so far, save it but keep looking for a better one
4306       ac_cv_path_EGREP="$ac_path_EGREP"
4307       ac_path_EGREP_max=$ac_count
4308     fi
4309     # 10*(2^10) chars as input seems more than enough
4310     test $ac_count -gt 10 && break
4311   done
4312   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4313 esac
4314
4315       $ac_path_EGREP_found && break 3
4316     done
4317   done
4318   done
4319 IFS=$as_save_IFS
4320   if test -z "$ac_cv_path_EGREP"; then
4321     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4322   fi
4323 else
4324   ac_cv_path_EGREP=$EGREP
4325 fi
4326
4327    fi
4328 fi
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4330 $as_echo "$ac_cv_path_EGREP" >&6; }
4331  EGREP="$ac_cv_path_EGREP"
4332
4333
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4335 $as_echo_n "checking for ANSI C header files... " >&6; }
4336 if test "${ac_cv_header_stdc+set}" = set; then :
4337   $as_echo_n "(cached) " >&6
4338 else
4339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h.  */
4341 #include <stdlib.h>
4342 #include <stdarg.h>
4343 #include <string.h>
4344 #include <float.h>
4345
4346 int
4347 main ()
4348 {
4349
4350   ;
4351   return 0;
4352 }
4353 _ACEOF
4354 if ac_fn_c_try_compile "$LINENO"; then :
4355   ac_cv_header_stdc=yes
4356 else
4357   ac_cv_header_stdc=no
4358 fi
4359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4360
4361 if test $ac_cv_header_stdc = yes; then
4362   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h.  */
4365 #include <string.h>
4366
4367 _ACEOF
4368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4369   $EGREP "memchr" >/dev/null 2>&1; then :
4370
4371 else
4372   ac_cv_header_stdc=no
4373 fi
4374 rm -f conftest*
4375
4376 fi
4377
4378 if test $ac_cv_header_stdc = yes; then
4379   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h.  */
4382 #include <stdlib.h>
4383
4384 _ACEOF
4385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4386   $EGREP "free" >/dev/null 2>&1; then :
4387
4388 else
4389   ac_cv_header_stdc=no
4390 fi
4391 rm -f conftest*
4392
4393 fi
4394
4395 if test $ac_cv_header_stdc = yes; then
4396   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4397   if test "$cross_compiling" = yes; then :
4398   :
4399 else
4400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h.  */
4402 #include <ctype.h>
4403 #include <stdlib.h>
4404 #if ((' ' & 0x0FF) == 0x020)
4405 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4406 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4407 #else
4408 # define ISLOWER(c) \
4409                    (('a' <= (c) && (c) <= 'i') \
4410                      || ('j' <= (c) && (c) <= 'r') \
4411                      || ('s' <= (c) && (c) <= 'z'))
4412 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4413 #endif
4414
4415 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4416 int
4417 main ()
4418 {
4419   int i;
4420   for (i = 0; i < 256; i++)
4421     if (XOR (islower (i), ISLOWER (i))
4422         || toupper (i) != TOUPPER (i))
4423       return 2;
4424   return 0;
4425 }
4426 _ACEOF
4427 if ac_fn_c_try_run "$LINENO"; then :
4428
4429 else
4430   ac_cv_header_stdc=no
4431 fi
4432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4433   conftest.$ac_objext conftest.beam conftest.$ac_ext
4434 fi
4435
4436 fi
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4439 $as_echo "$ac_cv_header_stdc" >&6; }
4440 if test $ac_cv_header_stdc = yes; then
4441
4442 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4443
4444 fi
4445
4446 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4447 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4448                   inttypes.h stdint.h unistd.h
4449 do :
4450   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4451 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4452 "
4453 eval as_val=\$$as_ac_Header
4454    if test "x$as_val" = x""yes; then :
4455   cat >>confdefs.h <<_ACEOF
4456 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4457 _ACEOF
4458
4459 fi
4460
4461 done
4462
4463
4464
4465   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4466 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4467   MINIX=yes
4468 else
4469   MINIX=
4470 fi
4471
4472
4473   if test "$MINIX" = yes; then
4474
4475 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4476
4477
4478 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4479
4480
4481 $as_echo "#define _MINIX 1" >>confdefs.h
4482
4483   fi
4484
4485
4486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4487 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4488 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4489   $as_echo_n "(cached) " >&6
4490 else
4491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h.  */
4493
4494 #         define __EXTENSIONS__ 1
4495           $ac_includes_default
4496 int
4497 main ()
4498 {
4499
4500   ;
4501   return 0;
4502 }
4503 _ACEOF
4504 if ac_fn_c_try_compile "$LINENO"; then :
4505   ac_cv_safe_to_define___extensions__=yes
4506 else
4507   ac_cv_safe_to_define___extensions__=no
4508 fi
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510 fi
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4512 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4513   test $ac_cv_safe_to_define___extensions__ = yes &&
4514     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4515
4516   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4517
4518   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4519
4520   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4521
4522   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4523
4524
4525
4526
4527         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
4528 $as_echo_n "checking for strerror in -lcposix... " >&6; }
4529 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
4530   $as_echo_n "(cached) " >&6
4531 else
4532   ac_check_lib_save_LIBS=$LIBS
4533 LIBS="-lcposix  $LIBS"
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h.  */
4536
4537 /* Override any GCC internal prototype to avoid an error.
4538    Use char because int might match the return type of a GCC
4539    builtin and then its argument prototype would still apply.  */
4540 #ifdef __cplusplus
4541 extern "C"
4542 #endif
4543 char strerror ();
4544 int
4545 main ()
4546 {
4547 return strerror ();
4548   ;
4549   return 0;
4550 }
4551 _ACEOF
4552 if ac_fn_c_try_link "$LINENO"; then :
4553   ac_cv_lib_cposix_strerror=yes
4554 else
4555   ac_cv_lib_cposix_strerror=no
4556 fi
4557 rm -f core conftest.err conftest.$ac_objext \
4558     conftest$ac_exeext conftest.$ac_ext
4559 LIBS=$ac_check_lib_save_LIBS
4560 fi
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
4562 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
4563 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
4564   LIBS="$LIBS -lcposix"
4565 fi
4566
4567
4568
4569
4570
4571 # Enable gettext, in "external" mode.
4572
4573
4574
4575         MKINSTALLDIRS=
4576   if test -n "$ac_aux_dir"; then
4577     case "$ac_aux_dir" in
4578       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4579       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4580     esac
4581   fi
4582   if test -z "$MKINSTALLDIRS"; then
4583     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4584   fi
4585
4586
4587
4588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4589 $as_echo_n "checking whether NLS is requested... " >&6; }
4590     # Check whether --enable-nls was given.
4591 if test "${enable_nls+set}" = set; then :
4592   enableval=$enable_nls; USE_NLS=$enableval
4593 else
4594   USE_NLS=yes
4595 fi
4596
4597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4598 $as_echo "$USE_NLS" >&6; }
4599
4600
4601
4602
4603
4604
4605 # Prepare PATH_SEPARATOR.
4606 # The user is always right.
4607 if test "${PATH_SEPARATOR+set}" != set; then
4608   echo "#! /bin/sh" >conf$$.sh
4609   echo  "exit 0"   >>conf$$.sh
4610   chmod +x conf$$.sh
4611   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4612     PATH_SEPARATOR=';'
4613   else
4614     PATH_SEPARATOR=:
4615   fi
4616   rm -f conf$$.sh
4617 fi
4618
4619 # Find out how to test for executable files. Don't use a zero-byte file,
4620 # as systems may use methods other than mode bits to determine executability.
4621 cat >conf$$.file <<_ASEOF
4622 #! /bin/sh
4623 exit 0
4624 _ASEOF
4625 chmod +x conf$$.file
4626 if test -x conf$$.file >/dev/null 2>&1; then
4627   ac_executable_p="test -x"
4628 else
4629   ac_executable_p="test -f"
4630 fi
4631 rm -f conf$$.file
4632
4633 # Extract the first word of "msgfmt", so it can be a program name with args.
4634 set dummy msgfmt; ac_word=$2
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636 $as_echo_n "checking for $ac_word... " >&6; }
4637 if test "${ac_cv_path_MSGFMT+set}" = set; then :
4638   $as_echo_n "(cached) " >&6
4639 else
4640   case "$MSGFMT" in
4641   [\\/]* | ?:[\\/]*)
4642     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4643     ;;
4644   *)
4645     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4646     for ac_dir in $PATH; do
4647       IFS="$ac_save_IFS"
4648       test -z "$ac_dir" && ac_dir=.
4649       for ac_exec_ext in '' $ac_executable_extensions; do
4650         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4651           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4652      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4653             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4654             break 2
4655           fi
4656         fi
4657       done
4658     done
4659     IFS="$ac_save_IFS"
4660   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4661     ;;
4662 esac
4663 fi
4664 MSGFMT="$ac_cv_path_MSGFMT"
4665 if test "$MSGFMT" != ":"; then
4666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4667 $as_echo "$MSGFMT" >&6; }
4668 else
4669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670 $as_echo "no" >&6; }
4671 fi
4672
4673   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4674 set dummy gmsgfmt; ac_word=$2
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676 $as_echo_n "checking for $ac_word... " >&6; }
4677 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
4678   $as_echo_n "(cached) " >&6
4679 else
4680   case $GMSGFMT in
4681   [\\/]* | ?:[\\/]*)
4682   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4683   ;;
4684   *)
4685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH
4687 do
4688   IFS=$as_save_IFS
4689   test -z "$as_dir" && as_dir=.
4690     for ac_exec_ext in '' $ac_executable_extensions; do
4691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4692     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694     break 2
4695   fi
4696 done
4697   done
4698 IFS=$as_save_IFS
4699
4700   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4701   ;;
4702 esac
4703 fi
4704 GMSGFMT=$ac_cv_path_GMSGFMT
4705 if test -n "$GMSGFMT"; then
4706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4707 $as_echo "$GMSGFMT" >&6; }
4708 else
4709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4711 fi
4712
4713
4714
4715
4716 # Prepare PATH_SEPARATOR.
4717 # The user is always right.
4718 if test "${PATH_SEPARATOR+set}" != set; then
4719   echo "#! /bin/sh" >conf$$.sh
4720   echo  "exit 0"   >>conf$$.sh
4721   chmod +x conf$$.sh
4722   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4723     PATH_SEPARATOR=';'
4724   else
4725     PATH_SEPARATOR=:
4726   fi
4727   rm -f conf$$.sh
4728 fi
4729
4730 # Find out how to test for executable files. Don't use a zero-byte file,
4731 # as systems may use methods other than mode bits to determine executability.
4732 cat >conf$$.file <<_ASEOF
4733 #! /bin/sh
4734 exit 0
4735 _ASEOF
4736 chmod +x conf$$.file
4737 if test -x conf$$.file >/dev/null 2>&1; then
4738   ac_executable_p="test -x"
4739 else
4740   ac_executable_p="test -f"
4741 fi
4742 rm -f conf$$.file
4743
4744 # Extract the first word of "xgettext", so it can be a program name with args.
4745 set dummy xgettext; ac_word=$2
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747 $as_echo_n "checking for $ac_word... " >&6; }
4748 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
4749   $as_echo_n "(cached) " >&6
4750 else
4751   case "$XGETTEXT" in
4752   [\\/]* | ?:[\\/]*)
4753     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4754     ;;
4755   *)
4756     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4757     for ac_dir in $PATH; do
4758       IFS="$ac_save_IFS"
4759       test -z "$ac_dir" && ac_dir=.
4760       for ac_exec_ext in '' $ac_executable_extensions; do
4761         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4762           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4763      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4764             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4765             break 2
4766           fi
4767         fi
4768       done
4769     done
4770     IFS="$ac_save_IFS"
4771   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4772     ;;
4773 esac
4774 fi
4775 XGETTEXT="$ac_cv_path_XGETTEXT"
4776 if test "$XGETTEXT" != ":"; then
4777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4778 $as_echo "$XGETTEXT" >&6; }
4779 else
4780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781 $as_echo "no" >&6; }
4782 fi
4783
4784     rm -f messages.po
4785
4786
4787 # Prepare PATH_SEPARATOR.
4788 # The user is always right.
4789 if test "${PATH_SEPARATOR+set}" != set; then
4790   echo "#! /bin/sh" >conf$$.sh
4791   echo  "exit 0"   >>conf$$.sh
4792   chmod +x conf$$.sh
4793   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4794     PATH_SEPARATOR=';'
4795   else
4796     PATH_SEPARATOR=:
4797   fi
4798   rm -f conf$$.sh
4799 fi
4800
4801 # Find out how to test for executable files. Don't use a zero-byte file,
4802 # as systems may use methods other than mode bits to determine executability.
4803 cat >conf$$.file <<_ASEOF
4804 #! /bin/sh
4805 exit 0
4806 _ASEOF
4807 chmod +x conf$$.file
4808 if test -x conf$$.file >/dev/null 2>&1; then
4809   ac_executable_p="test -x"
4810 else
4811   ac_executable_p="test -f"
4812 fi
4813 rm -f conf$$.file
4814
4815 # Extract the first word of "msgmerge", so it can be a program name with args.
4816 set dummy msgmerge; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
4820   $as_echo_n "(cached) " >&6
4821 else
4822   case "$MSGMERGE" in
4823   [\\/]* | ?:[\\/]*)
4824     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4825     ;;
4826   *)
4827     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4828     for ac_dir in $PATH; do
4829       IFS="$ac_save_IFS"
4830       test -z "$ac_dir" && ac_dir=.
4831       for ac_exec_ext in '' $ac_executable_extensions; do
4832         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4833           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4834             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4835             break 2
4836           fi
4837         fi
4838       done
4839     done
4840     IFS="$ac_save_IFS"
4841   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4842     ;;
4843 esac
4844 fi
4845 MSGMERGE="$ac_cv_path_MSGMERGE"
4846 if test "$MSGMERGE" != ":"; then
4847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4848 $as_echo "$MSGMERGE" >&6; }
4849 else
4850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 $as_echo "no" >&6; }
4852 fi
4853
4854
4855       if test "$GMSGFMT" != ":"; then
4856             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4857        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4858       : ;
4859     else
4860       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4861       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4862 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4863       GMSGFMT=":"
4864     fi
4865   fi
4866
4867       if test "$XGETTEXT" != ":"; then
4868             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4869        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4870       : ;
4871     else
4872       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
4873 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
4874       XGETTEXT=":"
4875     fi
4876         rm -f messages.po
4877   fi
4878
4879   ac_config_commands="$ac_config_commands default-1"
4880
4881
4882
4883       if test "X$prefix" = "XNONE"; then
4884     acl_final_prefix="$ac_default_prefix"
4885   else
4886     acl_final_prefix="$prefix"
4887   fi
4888   if test "X$exec_prefix" = "XNONE"; then
4889     acl_final_exec_prefix='${prefix}'
4890   else
4891     acl_final_exec_prefix="$exec_prefix"
4892   fi
4893   acl_save_prefix="$prefix"
4894   prefix="$acl_final_prefix"
4895   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4896   prefix="$acl_save_prefix"
4897
4898
4899 # Check whether --with-gnu-ld was given.
4900 if test "${with_gnu_ld+set}" = set; then :
4901   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4902 else
4903   with_gnu_ld=no
4904 fi
4905
4906 # Prepare PATH_SEPARATOR.
4907 # The user is always right.
4908 if test "${PATH_SEPARATOR+set}" != set; then
4909   echo "#! /bin/sh" >conf$$.sh
4910   echo  "exit 0"   >>conf$$.sh
4911   chmod +x conf$$.sh
4912   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4913     PATH_SEPARATOR=';'
4914   else
4915     PATH_SEPARATOR=:
4916   fi
4917   rm -f conf$$.sh
4918 fi
4919 ac_prog=ld
4920 if test "$GCC" = yes; then
4921   # Check if gcc -print-prog-name=ld gives a path.
4922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4923 $as_echo_n "checking for ld used by GCC... " >&6; }
4924   case $host in
4925   *-*-mingw*)
4926     # gcc leaves a trailing carriage return which upsets mingw
4927     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4928   *)
4929     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4930   esac
4931   case $ac_prog in
4932     # Accept absolute paths.
4933     [\\/]* | [A-Za-z]:[\\/]*)
4934       re_direlt='/[^/][^/]*/\.\./'
4935       # Canonicalize the path of ld
4936       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4937       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4938         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4939       done
4940       test -z "$LD" && LD="$ac_prog"
4941       ;;
4942   "")
4943     # If it fails, then pretend we aren't using GCC.
4944     ac_prog=ld
4945     ;;
4946   *)
4947     # If it is relative, then search for the first ld in PATH.
4948     with_gnu_ld=unknown
4949     ;;
4950   esac
4951 elif test "$with_gnu_ld" = yes; then
4952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4953 $as_echo_n "checking for GNU ld... " >&6; }
4954 else
4955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4956 $as_echo_n "checking for non-GNU ld... " >&6; }
4957 fi
4958 if test "${acl_cv_path_LD+set}" = set; then :
4959   $as_echo_n "(cached) " >&6
4960 else
4961   if test -z "$LD"; then
4962   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4963   for ac_dir in $PATH; do
4964     test -z "$ac_dir" && ac_dir=.
4965     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4966       acl_cv_path_LD="$ac_dir/$ac_prog"
4967       # Check to see if the program is GNU ld.  I'd rather use --version,
4968       # but apparently some GNU ld's only accept -v.
4969       # Break only if it was the GNU/non-GNU ld that we prefer.
4970       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4971       *GNU* | *'with BFD'*)
4972         test "$with_gnu_ld" != no && break ;;
4973       *)
4974         test "$with_gnu_ld" != yes && break ;;
4975       esac
4976     fi
4977   done
4978   IFS="$ac_save_ifs"
4979 else
4980   acl_cv_path_LD="$LD" # Let the user override the test with a path.
4981 fi
4982 fi
4983
4984 LD="$acl_cv_path_LD"
4985 if test -n "$LD"; then
4986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4987 $as_echo "$LD" >&6; }
4988 else
4989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4991 fi
4992 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4994 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4995 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4996   $as_echo_n "(cached) " >&6
4997 else
4998   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4999 case `$LD -v 2>&1 </dev/null` in
5000 *GNU* | *'with BFD'*)
5001   acl_cv_prog_gnu_ld=yes ;;
5002 *)
5003   acl_cv_prog_gnu_ld=no ;;
5004 esac
5005 fi
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5007 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5008 with_gnu_ld=$acl_cv_prog_gnu_ld
5009
5010
5011
5012                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5013 $as_echo_n "checking for shared library run path origin... " >&6; }
5014 if test "${acl_cv_rpath+set}" = set; then :
5015   $as_echo_n "(cached) " >&6
5016 else
5017
5018     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5019     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5020     . ./conftest.sh
5021     rm -f ./conftest.sh
5022     acl_cv_rpath=done
5023
5024 fi
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5026 $as_echo "$acl_cv_rpath" >&6; }
5027   wl="$acl_cv_wl"
5028   libext="$acl_cv_libext"
5029   shlibext="$acl_cv_shlibext"
5030   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5031   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5032   hardcode_direct="$acl_cv_hardcode_direct"
5033   hardcode_minus_L="$acl_cv_hardcode_minus_L"
5034     # Check whether --enable-rpath was given.
5035 if test "${enable_rpath+set}" = set; then :
5036   enableval=$enable_rpath; :
5037 else
5038   enable_rpath=yes
5039 fi
5040
5041
5042
5043
5044
5045
5046
5047
5048     use_additional=yes
5049
5050   acl_save_prefix="$prefix"
5051   prefix="$acl_final_prefix"
5052   acl_save_exec_prefix="$exec_prefix"
5053   exec_prefix="$acl_final_exec_prefix"
5054
5055     eval additional_includedir=\"$includedir\"
5056     eval additional_libdir=\"$libdir\"
5057
5058   exec_prefix="$acl_save_exec_prefix"
5059   prefix="$acl_save_prefix"
5060
5061
5062 # Check whether --with-libiconv-prefix was given.
5063 if test "${with_libiconv_prefix+set}" = set; then :
5064   withval=$with_libiconv_prefix;
5065     if test "X$withval" = "Xno"; then
5066       use_additional=no
5067     else
5068       if test "X$withval" = "X"; then
5069
5070   acl_save_prefix="$prefix"
5071   prefix="$acl_final_prefix"
5072   acl_save_exec_prefix="$exec_prefix"
5073   exec_prefix="$acl_final_exec_prefix"
5074
5075           eval additional_includedir=\"$includedir\"
5076           eval additional_libdir=\"$libdir\"
5077
5078   exec_prefix="$acl_save_exec_prefix"
5079   prefix="$acl_save_prefix"
5080
5081       else
5082         additional_includedir="$withval/include"
5083         additional_libdir="$withval/lib"
5084       fi
5085     fi
5086
5087 fi
5088
5089       LIBICONV=
5090   LTLIBICONV=
5091   INCICONV=
5092   rpathdirs=
5093   ltrpathdirs=
5094   names_already_handled=
5095   names_next_round='iconv '
5096   while test -n "$names_next_round"; do
5097     names_this_round="$names_next_round"
5098     names_next_round=
5099     for name in $names_this_round; do
5100       already_handled=
5101       for n in $names_already_handled; do
5102         if test "$n" = "$name"; then
5103           already_handled=yes
5104           break
5105         fi
5106       done
5107       if test -z "$already_handled"; then
5108         names_already_handled="$names_already_handled $name"
5109                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5110         eval value=\"\$HAVE_LIB$uppername\"
5111         if test -n "$value"; then
5112           if test "$value" = yes; then
5113             eval value=\"\$LIB$uppername\"
5114             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5115             eval value=\"\$LTLIB$uppername\"
5116             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5117           else
5118                                     :
5119           fi
5120         else
5121                               found_dir=
5122           found_la=
5123           found_so=
5124           found_a=
5125           if test $use_additional = yes; then
5126             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5127               found_dir="$additional_libdir"
5128               found_so="$additional_libdir/lib$name.$shlibext"
5129               if test -f "$additional_libdir/lib$name.la"; then
5130                 found_la="$additional_libdir/lib$name.la"
5131               fi
5132             else
5133               if test -f "$additional_libdir/lib$name.$libext"; then
5134                 found_dir="$additional_libdir"
5135                 found_a="$additional_libdir/lib$name.$libext"
5136                 if test -f "$additional_libdir/lib$name.la"; then
5137                   found_la="$additional_libdir/lib$name.la"
5138                 fi
5139               fi
5140             fi
5141           fi
5142           if test "X$found_dir" = "X"; then
5143             for x in $LDFLAGS $LTLIBICONV; do
5144
5145   acl_save_prefix="$prefix"
5146   prefix="$acl_final_prefix"
5147   acl_save_exec_prefix="$exec_prefix"
5148   exec_prefix="$acl_final_exec_prefix"
5149   eval x=\"$x\"
5150   exec_prefix="$acl_save_exec_prefix"
5151   prefix="$acl_save_prefix"
5152
5153               case "$x" in
5154                 -L*)
5155                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5156                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5157                     found_dir="$dir"
5158                     found_so="$dir/lib$name.$shlibext"
5159                     if test -f "$dir/lib$name.la"; then
5160                       found_la="$dir/lib$name.la"
5161                     fi
5162                   else
5163                     if test -f "$dir/lib$name.$libext"; then
5164                       found_dir="$dir"
5165                       found_a="$dir/lib$name.$libext"
5166                       if test -f "$dir/lib$name.la"; then
5167                         found_la="$dir/lib$name.la"
5168                       fi
5169                     fi
5170                   fi
5171                   ;;
5172               esac
5173               if test "X$found_dir" != "X"; then
5174                 break
5175               fi
5176             done
5177           fi
5178           if test "X$found_dir" != "X"; then
5179                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5180             if test "X$found_so" != "X"; then
5181                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5182                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5183               else
5184                                                                                 haveit=
5185                 for x in $ltrpathdirs; do
5186                   if test "X$x" = "X$found_dir"; then
5187                     haveit=yes
5188                     break
5189                   fi
5190                 done
5191                 if test -z "$haveit"; then
5192                   ltrpathdirs="$ltrpathdirs $found_dir"
5193                 fi
5194                                 if test "$hardcode_direct" = yes; then
5195                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5196                 else
5197                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5198                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5199                                                             haveit=
5200                     for x in $rpathdirs; do
5201                       if test "X$x" = "X$found_dir"; then
5202                         haveit=yes
5203                         break
5204                       fi
5205                     done
5206                     if test -z "$haveit"; then
5207                       rpathdirs="$rpathdirs $found_dir"
5208                     fi
5209                   else
5210                                                                                 haveit=
5211                     for x in $LDFLAGS $LIBICONV; do
5212
5213   acl_save_prefix="$prefix"
5214   prefix="$acl_final_prefix"
5215   acl_save_exec_prefix="$exec_prefix"
5216   exec_prefix="$acl_final_exec_prefix"
5217   eval x=\"$x\"
5218   exec_prefix="$acl_save_exec_prefix"
5219   prefix="$acl_save_prefix"
5220
5221                       if test "X$x" = "X-L$found_dir"; then
5222                         haveit=yes
5223                         break
5224                       fi
5225                     done
5226                     if test -z "$haveit"; then
5227                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5228                     fi
5229                     if test "$hardcode_minus_L" != no; then
5230                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5231                     else
5232                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5233                     fi
5234                   fi
5235                 fi
5236               fi
5237             else
5238               if test "X$found_a" != "X"; then
5239                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5240               else
5241                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5242               fi
5243             fi
5244                         additional_includedir=
5245             case "$found_dir" in
5246               */lib | */lib/)
5247                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5248                 additional_includedir="$basedir/include"
5249                 ;;
5250             esac
5251             if test "X$additional_includedir" != "X"; then
5252                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5253                 haveit=
5254                 if test "X$additional_includedir" = "X/usr/local/include"; then
5255                   if test -n "$GCC"; then
5256                     case $host_os in
5257                       linux*) haveit=yes;;
5258                     esac
5259                   fi
5260                 fi
5261                 if test -z "$haveit"; then
5262                   for x in $CPPFLAGS $INCICONV; do
5263
5264   acl_save_prefix="$prefix"
5265   prefix="$acl_final_prefix"
5266   acl_save_exec_prefix="$exec_prefix"
5267   exec_prefix="$acl_final_exec_prefix"
5268   eval x=\"$x\"
5269   exec_prefix="$acl_save_exec_prefix"
5270   prefix="$acl_save_prefix"
5271
5272                     if test "X$x" = "X-I$additional_includedir"; then
5273                       haveit=yes
5274                       break
5275                     fi
5276                   done
5277                   if test -z "$haveit"; then
5278                     if test -d "$additional_includedir"; then
5279                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5280                     fi
5281                   fi
5282                 fi
5283               fi
5284             fi
5285                         if test -n "$found_la"; then
5286                                                         save_libdir="$libdir"
5287               case "$found_la" in
5288                 */* | *\\*) . "$found_la" ;;
5289                 *) . "./$found_la" ;;
5290               esac
5291               libdir="$save_libdir"
5292                             for dep in $dependency_libs; do
5293                 case "$dep" in
5294                   -L*)
5295                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5296                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
5297                       haveit=
5298                       if test "X$additional_libdir" = "X/usr/local/lib"; then
5299                         if test -n "$GCC"; then
5300                           case $host_os in
5301                             linux*) haveit=yes;;
5302                           esac
5303                         fi
5304                       fi
5305                       if test -z "$haveit"; then
5306                         haveit=
5307                         for x in $LDFLAGS $LIBICONV; do
5308
5309   acl_save_prefix="$prefix"
5310   prefix="$acl_final_prefix"
5311   acl_save_exec_prefix="$exec_prefix"
5312   exec_prefix="$acl_final_exec_prefix"
5313   eval x=\"$x\"
5314   exec_prefix="$acl_save_exec_prefix"
5315   prefix="$acl_save_prefix"
5316
5317                           if test "X$x" = "X-L$additional_libdir"; then
5318                             haveit=yes
5319                             break
5320                           fi
5321                         done
5322                         if test -z "$haveit"; then
5323                           if test -d "$additional_libdir"; then
5324                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5325                           fi
5326                         fi
5327                         haveit=
5328                         for x in $LDFLAGS $LTLIBICONV; do
5329
5330   acl_save_prefix="$prefix"
5331   prefix="$acl_final_prefix"
5332   acl_save_exec_prefix="$exec_prefix"
5333   exec_prefix="$acl_final_exec_prefix"
5334   eval x=\"$x\"
5335   exec_prefix="$acl_save_exec_prefix"
5336   prefix="$acl_save_prefix"
5337
5338                           if test "X$x" = "X-L$additional_libdir"; then
5339                             haveit=yes
5340                             break
5341                           fi
5342                         done
5343                         if test -z "$haveit"; then
5344                           if test -d "$additional_libdir"; then
5345                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5346                           fi
5347                         fi
5348                       fi
5349                     fi
5350                     ;;
5351                   -R*)
5352                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5353                     if test "$enable_rpath" != no; then
5354                                                                   haveit=
5355                       for x in $rpathdirs; do
5356                         if test "X$x" = "X$dir"; then
5357                           haveit=yes
5358                           break
5359                         fi
5360                       done
5361                       if test -z "$haveit"; then
5362                         rpathdirs="$rpathdirs $dir"
5363                       fi
5364                                                                   haveit=
5365                       for x in $ltrpathdirs; do
5366                         if test "X$x" = "X$dir"; then
5367                           haveit=yes
5368                           break
5369                         fi
5370                       done
5371                       if test -z "$haveit"; then
5372                         ltrpathdirs="$ltrpathdirs $dir"
5373                       fi
5374                     fi
5375                     ;;
5376                   -l*)
5377                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5378                     ;;
5379                   *.la)
5380                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5381                     ;;
5382                   *)
5383                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5384                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5385                     ;;
5386                 esac
5387               done
5388             fi
5389           else
5390                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5391             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5392           fi
5393         fi
5394       fi
5395     done
5396   done
5397   if test "X$rpathdirs" != "X"; then
5398     if test -n "$hardcode_libdir_separator"; then
5399                         alldirs=
5400       for found_dir in $rpathdirs; do
5401         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5402       done
5403             acl_save_libdir="$libdir"
5404       libdir="$alldirs"
5405       eval flag=\"$hardcode_libdir_flag_spec\"
5406       libdir="$acl_save_libdir"
5407       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5408     else
5409             for found_dir in $rpathdirs; do
5410         acl_save_libdir="$libdir"
5411         libdir="$found_dir"
5412         eval flag=\"$hardcode_libdir_flag_spec\"
5413         libdir="$acl_save_libdir"
5414         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5415       done
5416     fi
5417   fi
5418   if test "X$ltrpathdirs" != "X"; then
5419             for found_dir in $ltrpathdirs; do
5420       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5421     done
5422   fi
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5442 $as_echo_n "checking whether NLS is requested... " >&6; }
5443     # Check whether --enable-nls was given.
5444 if test "${enable_nls+set}" = set; then :
5445   enableval=$enable_nls; USE_NLS=$enableval
5446 else
5447   USE_NLS=yes
5448 fi
5449
5450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5451 $as_echo "$USE_NLS" >&6; }
5452
5453
5454
5455
5456   LIBINTL=
5457   LTLIBINTL=
5458   POSUB=
5459
5460     if test "$USE_NLS" = "yes"; then
5461     gt_use_preinstalled_gnugettext=no
5462
5463
5464
5465
5466
5467
5468         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5469 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5470 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
5471   $as_echo_n "(cached) " >&6
5472 else
5473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h.  */
5475 #include <libintl.h>
5476 extern int _nl_msg_cat_cntr;
5477 extern int *_nl_domain_bindings;
5478 int
5479 main ()
5480 {
5481 bindtextdomain ("", "");
5482 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5483   ;
5484   return 0;
5485 }
5486 _ACEOF
5487 if ac_fn_c_try_link "$LINENO"; then :
5488   gt_cv_func_gnugettext1_libc=yes
5489 else
5490   gt_cv_func_gnugettext1_libc=no
5491 fi
5492 rm -f core conftest.err conftest.$ac_objext \
5493     conftest$ac_exeext conftest.$ac_ext
5494 fi
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
5496 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
5497
5498         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5499
5500
5501
5502
5503
5504           am_save_CPPFLAGS="$CPPFLAGS"
5505
5506   for element in $INCICONV; do
5507     haveit=
5508     for x in $CPPFLAGS; do
5509
5510   acl_save_prefix="$prefix"
5511   prefix="$acl_final_prefix"
5512   acl_save_exec_prefix="$exec_prefix"
5513   exec_prefix="$acl_final_exec_prefix"
5514   eval x=\"$x\"
5515   exec_prefix="$acl_save_exec_prefix"
5516   prefix="$acl_save_prefix"
5517
5518       if test "X$x" = "X$element"; then
5519         haveit=yes
5520         break
5521       fi
5522     done
5523     if test -z "$haveit"; then
5524       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5525     fi
5526   done
5527
5528
5529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5530 $as_echo_n "checking for iconv... " >&6; }
5531 if test "${am_cv_func_iconv+set}" = set; then :
5532   $as_echo_n "(cached) " >&6
5533 else
5534
5535     am_cv_func_iconv="no, consider installing GNU libiconv"
5536     am_cv_lib_iconv=no
5537     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h.  */
5539 #include <stdlib.h>
5540 #include <iconv.h>
5541 int
5542 main ()
5543 {
5544 iconv_t cd = iconv_open("","");
5545        iconv(cd,NULL,NULL,NULL,NULL);
5546        iconv_close(cd);
5547   ;
5548   return 0;
5549 }
5550 _ACEOF
5551 if ac_fn_c_try_link "$LINENO"; then :
5552   am_cv_func_iconv=yes
5553 fi
5554 rm -f core conftest.err conftest.$ac_objext \
5555     conftest$ac_exeext conftest.$ac_ext
5556     if test "$am_cv_func_iconv" != yes; then
5557       am_save_LIBS="$LIBS"
5558       LIBS="$LIBS $LIBICONV"
5559       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h.  */
5561 #include <stdlib.h>
5562 #include <iconv.h>
5563 int
5564 main ()
5565 {
5566 iconv_t cd = iconv_open("","");
5567          iconv(cd,NULL,NULL,NULL,NULL);
5568          iconv_close(cd);
5569   ;
5570   return 0;
5571 }
5572 _ACEOF
5573 if ac_fn_c_try_link "$LINENO"; then :
5574   am_cv_lib_iconv=yes
5575         am_cv_func_iconv=yes
5576 fi
5577 rm -f core conftest.err conftest.$ac_objext \
5578     conftest$ac_exeext conftest.$ac_ext
5579       LIBS="$am_save_LIBS"
5580     fi
5581
5582 fi
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5584 $as_echo "$am_cv_func_iconv" >&6; }
5585   if test "$am_cv_func_iconv" = yes; then
5586
5587 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5588
5589   fi
5590   if test "$am_cv_lib_iconv" = yes; then
5591     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5592 $as_echo_n "checking how to link with libiconv... " >&6; }
5593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5594 $as_echo "$LIBICONV" >&6; }
5595   else
5596             CPPFLAGS="$am_save_CPPFLAGS"
5597     LIBICONV=
5598     LTLIBICONV=
5599   fi
5600
5601
5602
5603
5604
5605
5606     use_additional=yes
5607
5608   acl_save_prefix="$prefix"
5609   prefix="$acl_final_prefix"
5610   acl_save_exec_prefix="$exec_prefix"
5611   exec_prefix="$acl_final_exec_prefix"
5612
5613     eval additional_includedir=\"$includedir\"
5614     eval additional_libdir=\"$libdir\"
5615
5616   exec_prefix="$acl_save_exec_prefix"
5617   prefix="$acl_save_prefix"
5618
5619
5620 # Check whether --with-libintl-prefix was given.
5621 if test "${with_libintl_prefix+set}" = set; then :
5622   withval=$with_libintl_prefix;
5623     if test "X$withval" = "Xno"; then
5624       use_additional=no
5625     else
5626       if test "X$withval" = "X"; then
5627
5628   acl_save_prefix="$prefix"
5629   prefix="$acl_final_prefix"
5630   acl_save_exec_prefix="$exec_prefix"
5631   exec_prefix="$acl_final_exec_prefix"
5632
5633           eval additional_includedir=\"$includedir\"
5634           eval additional_libdir=\"$libdir\"
5635
5636   exec_prefix="$acl_save_exec_prefix"
5637   prefix="$acl_save_prefix"
5638
5639       else
5640         additional_includedir="$withval/include"
5641         additional_libdir="$withval/lib"
5642       fi
5643     fi
5644
5645 fi
5646
5647       LIBINTL=
5648   LTLIBINTL=
5649   INCINTL=
5650   rpathdirs=
5651   ltrpathdirs=
5652   names_already_handled=
5653   names_next_round='intl '
5654   while test -n "$names_next_round"; do
5655     names_this_round="$names_next_round"
5656     names_next_round=
5657     for name in $names_this_round; do
5658       already_handled=
5659       for n in $names_already_handled; do
5660         if test "$n" = "$name"; then
5661           already_handled=yes
5662           break
5663         fi
5664       done
5665       if test -z "$already_handled"; then
5666         names_already_handled="$names_already_handled $name"
5667                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5668         eval value=\"\$HAVE_LIB$uppername\"
5669         if test -n "$value"; then
5670           if test "$value" = yes; then
5671             eval value=\"\$LIB$uppername\"
5672             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5673             eval value=\"\$LTLIB$uppername\"
5674             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5675           else
5676                                     :
5677           fi
5678         else
5679                               found_dir=
5680           found_la=
5681           found_so=
5682           found_a=
5683           if test $use_additional = yes; then
5684             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5685               found_dir="$additional_libdir"
5686               found_so="$additional_libdir/lib$name.$shlibext"
5687               if test -f "$additional_libdir/lib$name.la"; then
5688                 found_la="$additional_libdir/lib$name.la"
5689               fi
5690             else
5691               if test -f "$additional_libdir/lib$name.$libext"; then
5692                 found_dir="$additional_libdir"
5693                 found_a="$additional_libdir/lib$name.$libext"
5694                 if test -f "$additional_libdir/lib$name.la"; then
5695                   found_la="$additional_libdir/lib$name.la"
5696                 fi
5697               fi
5698             fi
5699           fi
5700           if test "X$found_dir" = "X"; then
5701             for x in $LDFLAGS $LTLIBINTL; do
5702
5703   acl_save_prefix="$prefix"
5704   prefix="$acl_final_prefix"
5705   acl_save_exec_prefix="$exec_prefix"
5706   exec_prefix="$acl_final_exec_prefix"
5707   eval x=\"$x\"
5708   exec_prefix="$acl_save_exec_prefix"
5709   prefix="$acl_save_prefix"
5710
5711               case "$x" in
5712                 -L*)
5713                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5714                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5715                     found_dir="$dir"
5716                     found_so="$dir/lib$name.$shlibext"
5717                     if test -f "$dir/lib$name.la"; then
5718                       found_la="$dir/lib$name.la"
5719                     fi
5720                   else
5721                     if test -f "$dir/lib$name.$libext"; then
5722                       found_dir="$dir"
5723                       found_a="$dir/lib$name.$libext"
5724                       if test -f "$dir/lib$name.la"; then
5725                         found_la="$dir/lib$name.la"
5726                       fi
5727                     fi
5728                   fi
5729                   ;;
5730               esac
5731               if test "X$found_dir" != "X"; then
5732                 break
5733               fi
5734             done
5735           fi
5736           if test "X$found_dir" != "X"; then
5737                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5738             if test "X$found_so" != "X"; then
5739                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5740                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5741               else
5742                                                                                 haveit=
5743                 for x in $ltrpathdirs; do
5744                   if test "X$x" = "X$found_dir"; then
5745                     haveit=yes
5746                     break
5747                   fi
5748                 done
5749                 if test -z "$haveit"; then
5750                   ltrpathdirs="$ltrpathdirs $found_dir"
5751                 fi
5752                                 if test "$hardcode_direct" = yes; then
5753                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5754                 else
5755                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5756                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5757                                                             haveit=
5758                     for x in $rpathdirs; do
5759                       if test "X$x" = "X$found_dir"; then
5760                         haveit=yes
5761                         break
5762                       fi
5763                     done
5764                     if test -z "$haveit"; then
5765                       rpathdirs="$rpathdirs $found_dir"
5766                     fi
5767                   else
5768                                                                                 haveit=
5769                     for x in $LDFLAGS $LIBINTL; do
5770
5771   acl_save_prefix="$prefix"
5772   prefix="$acl_final_prefix"
5773   acl_save_exec_prefix="$exec_prefix"
5774   exec_prefix="$acl_final_exec_prefix"
5775   eval x=\"$x\"
5776   exec_prefix="$acl_save_exec_prefix"
5777   prefix="$acl_save_prefix"
5778
5779                       if test "X$x" = "X-L$found_dir"; then
5780                         haveit=yes
5781                         break
5782                       fi
5783                     done
5784                     if test -z "$haveit"; then
5785                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5786                     fi
5787                     if test "$hardcode_minus_L" != no; then
5788                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5789                     else
5790                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5791                     fi
5792                   fi
5793                 fi
5794               fi
5795             else
5796               if test "X$found_a" != "X"; then
5797                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5798               else
5799                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5800               fi
5801             fi
5802                         additional_includedir=
5803             case "$found_dir" in
5804               */lib | */lib/)
5805                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5806                 additional_includedir="$basedir/include"
5807                 ;;
5808             esac
5809             if test "X$additional_includedir" != "X"; then
5810                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5811                 haveit=
5812                 if test "X$additional_includedir" = "X/usr/local/include"; then
5813                   if test -n "$GCC"; then
5814                     case $host_os in
5815                       linux*) haveit=yes;;
5816                     esac
5817                   fi
5818                 fi
5819                 if test -z "$haveit"; then
5820                   for x in $CPPFLAGS $INCINTL; do
5821
5822   acl_save_prefix="$prefix"
5823   prefix="$acl_final_prefix"
5824   acl_save_exec_prefix="$exec_prefix"
5825   exec_prefix="$acl_final_exec_prefix"
5826   eval x=\"$x\"
5827   exec_prefix="$acl_save_exec_prefix"
5828   prefix="$acl_save_prefix"
5829
5830                     if test "X$x" = "X-I$additional_includedir"; then
5831                       haveit=yes
5832                       break
5833                     fi
5834                   done
5835                   if test -z "$haveit"; then
5836                     if test -d "$additional_includedir"; then
5837                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5838                     fi
5839                   fi
5840                 fi
5841               fi
5842             fi
5843                         if test -n "$found_la"; then
5844                                                         save_libdir="$libdir"
5845               case "$found_la" in
5846                 */* | *\\*) . "$found_la" ;;
5847                 *) . "./$found_la" ;;
5848               esac
5849               libdir="$save_libdir"
5850                             for dep in $dependency_libs; do
5851                 case "$dep" in
5852                   -L*)
5853                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5854                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
5855                       haveit=
5856                       if test "X$additional_libdir" = "X/usr/local/lib"; then
5857                         if test -n "$GCC"; then
5858                           case $host_os in
5859                             linux*) haveit=yes;;
5860                           esac
5861                         fi
5862                       fi
5863                       if test -z "$haveit"; then
5864                         haveit=
5865                         for x in $LDFLAGS $LIBINTL; do
5866
5867   acl_save_prefix="$prefix"
5868   prefix="$acl_final_prefix"
5869   acl_save_exec_prefix="$exec_prefix"
5870   exec_prefix="$acl_final_exec_prefix"
5871   eval x=\"$x\"
5872   exec_prefix="$acl_save_exec_prefix"
5873   prefix="$acl_save_prefix"
5874
5875                           if test "X$x" = "X-L$additional_libdir"; then
5876                             haveit=yes
5877                             break
5878                           fi
5879                         done
5880                         if test -z "$haveit"; then
5881                           if test -d "$additional_libdir"; then
5882                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5883                           fi
5884                         fi
5885                         haveit=
5886                         for x in $LDFLAGS $LTLIBINTL; do
5887
5888   acl_save_prefix="$prefix"
5889   prefix="$acl_final_prefix"
5890   acl_save_exec_prefix="$exec_prefix"
5891   exec_prefix="$acl_final_exec_prefix"
5892   eval x=\"$x\"
5893   exec_prefix="$acl_save_exec_prefix"
5894   prefix="$acl_save_prefix"
5895
5896                           if test "X$x" = "X-L$additional_libdir"; then
5897                             haveit=yes
5898                             break
5899                           fi
5900                         done
5901                         if test -z "$haveit"; then
5902                           if test -d "$additional_libdir"; then
5903                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5904                           fi
5905                         fi
5906                       fi
5907                     fi
5908                     ;;
5909                   -R*)
5910                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5911                     if test "$enable_rpath" != no; then
5912                                                                   haveit=
5913                       for x in $rpathdirs; do
5914                         if test "X$x" = "X$dir"; then
5915                           haveit=yes
5916                           break
5917                         fi
5918                       done
5919                       if test -z "$haveit"; then
5920                         rpathdirs="$rpathdirs $dir"
5921                       fi
5922                                                                   haveit=
5923                       for x in $ltrpathdirs; do
5924                         if test "X$x" = "X$dir"; then
5925                           haveit=yes
5926                           break
5927                         fi
5928                       done
5929                       if test -z "$haveit"; then
5930                         ltrpathdirs="$ltrpathdirs $dir"
5931                       fi
5932                     fi
5933                     ;;
5934                   -l*)
5935                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5936                     ;;
5937                   *.la)
5938                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5939                     ;;
5940                   *)
5941                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5942                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5943                     ;;
5944                 esac
5945               done
5946             fi
5947           else
5948                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5949             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5950           fi
5951         fi
5952       fi
5953     done
5954   done
5955   if test "X$rpathdirs" != "X"; then
5956     if test -n "$hardcode_libdir_separator"; then
5957                         alldirs=
5958       for found_dir in $rpathdirs; do
5959         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5960       done
5961             acl_save_libdir="$libdir"
5962       libdir="$alldirs"
5963       eval flag=\"$hardcode_libdir_flag_spec\"
5964       libdir="$acl_save_libdir"
5965       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5966     else
5967             for found_dir in $rpathdirs; do
5968         acl_save_libdir="$libdir"
5969         libdir="$found_dir"
5970         eval flag=\"$hardcode_libdir_flag_spec\"
5971         libdir="$acl_save_libdir"
5972         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5973       done
5974     fi
5975   fi
5976   if test "X$ltrpathdirs" != "X"; then
5977             for found_dir in $ltrpathdirs; do
5978       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5979     done
5980   fi
5981
5982           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
5983 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
5984 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
5985   $as_echo_n "(cached) " >&6
5986 else
5987   gt_save_CPPFLAGS="$CPPFLAGS"
5988             CPPFLAGS="$CPPFLAGS $INCINTL"
5989             gt_save_LIBS="$LIBS"
5990             LIBS="$LIBS $LIBINTL"
5991                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h.  */
5993 #include <libintl.h>
5994 extern int _nl_msg_cat_cntr;
5995 extern
5996 #ifdef __cplusplus
5997 "C"
5998 #endif
5999 const char *_nl_expand_alias ();
6000 int
6001 main ()
6002 {
6003 bindtextdomain ("", "");
6004 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6005   ;
6006   return 0;
6007 }
6008 _ACEOF
6009 if ac_fn_c_try_link "$LINENO"; then :
6010   gt_cv_func_gnugettext1_libintl=yes
6011 else
6012   gt_cv_func_gnugettext1_libintl=no
6013 fi
6014 rm -f core conftest.err conftest.$ac_objext \
6015     conftest$ac_exeext conftest.$ac_ext
6016                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6017               LIBS="$LIBS $LIBICONV"
6018               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019 /* end confdefs.h.  */
6020 #include <libintl.h>
6021 extern int _nl_msg_cat_cntr;
6022 extern
6023 #ifdef __cplusplus
6024 "C"
6025 #endif
6026 const char *_nl_expand_alias ();
6027 int
6028 main ()
6029 {
6030 bindtextdomain ("", "");
6031 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6032   ;
6033   return 0;
6034 }
6035 _ACEOF
6036 if ac_fn_c_try_link "$LINENO"; then :
6037   LIBINTL="$LIBINTL $LIBICONV"
6038                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6039                 gt_cv_func_gnugettext1_libintl=yes
6040
6041 fi
6042 rm -f core conftest.err conftest.$ac_objext \
6043     conftest$ac_exeext conftest.$ac_ext
6044             fi
6045             CPPFLAGS="$gt_save_CPPFLAGS"
6046             LIBS="$gt_save_LIBS"
6047 fi
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
6049 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
6050         fi
6051
6052                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6053            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6054                 && test "$PACKAGE" != gettext-runtime \
6055                 && test "$PACKAGE" != gettext-tools; }; then
6056           gt_use_preinstalled_gnugettext=yes
6057         else
6058                     LIBINTL=
6059           LTLIBINTL=
6060           INCINTL=
6061         fi
6062
6063
6064
6065     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6066        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6067
6068 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6069
6070     else
6071       USE_NLS=no
6072     fi
6073   fi
6074
6075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6076 $as_echo_n "checking whether to use NLS... " >&6; }
6077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6078 $as_echo "$USE_NLS" >&6; }
6079   if test "$USE_NLS" = "yes"; then
6080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6081 $as_echo_n "checking where the gettext function comes from... " >&6; }
6082     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6083       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6084         gt_source="external libintl"
6085       else
6086         gt_source="libc"
6087       fi
6088     else
6089       gt_source="included intl directory"
6090     fi
6091     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6092 $as_echo "$gt_source" >&6; }
6093   fi
6094
6095   if test "$USE_NLS" = "yes"; then
6096
6097     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6098       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6099         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6100 $as_echo_n "checking how to link with libintl... " >&6; }
6101         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6102 $as_echo "$LIBINTL" >&6; }
6103
6104   for element in $INCINTL; do
6105     haveit=
6106     for x in $CPPFLAGS; do
6107
6108   acl_save_prefix="$prefix"
6109   prefix="$acl_final_prefix"
6110   acl_save_exec_prefix="$exec_prefix"
6111   exec_prefix="$acl_final_exec_prefix"
6112   eval x=\"$x\"
6113   exec_prefix="$acl_save_exec_prefix"
6114   prefix="$acl_save_prefix"
6115
6116       if test "X$x" = "X$element"; then
6117         haveit=yes
6118         break
6119       fi
6120     done
6121     if test -z "$haveit"; then
6122       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6123     fi
6124   done
6125
6126       fi
6127
6128
6129 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6130
6131
6132 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6133
6134     fi
6135
6136         POSUB=po
6137   fi
6138
6139
6140
6141     INTLLIBS="$LIBINTL"
6142
6143
6144
6145
6146
6147
6148
6149 # This test must come as early as possible after the compiler configuration
6150 # tests, because the choice of the file model can (in principle) affect
6151 # whether functions and headers are available, whether they work, etc.
6152 # Check whether --enable-largefile was given.
6153 if test "${enable_largefile+set}" = set; then :
6154   enableval=$enable_largefile;
6155 fi
6156
6157 if test "$enable_largefile" != no; then
6158
6159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6160 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6161 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6162   $as_echo_n "(cached) " >&6
6163 else
6164   ac_cv_sys_largefile_CC=no
6165      if test "$GCC" != yes; then
6166        ac_save_CC=$CC
6167        while :; do
6168          # IRIX 6.2 and later do not support large files by default,
6169          # so use the C compiler's -n32 option if that helps.
6170          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171 /* end confdefs.h.  */
6172 #include <sys/types.h>
6173  /* Check that off_t can represent 2**63 - 1 correctly.
6174     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6175     since some C++ compilers masquerading as C compilers
6176     incorrectly reject 9223372036854775807.  */
6177 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6178   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6179                        && LARGE_OFF_T % 2147483647 == 1)
6180                       ? 1 : -1];
6181 int
6182 main ()
6183 {
6184
6185   ;
6186   return 0;
6187 }
6188 _ACEOF
6189          if ac_fn_c_try_compile "$LINENO"; then :
6190   break
6191 fi
6192 rm -f core conftest.err conftest.$ac_objext
6193          CC="$CC -n32"
6194          if ac_fn_c_try_compile "$LINENO"; then :
6195   ac_cv_sys_largefile_CC=' -n32'; break
6196 fi
6197 rm -f core conftest.err conftest.$ac_objext
6198          break
6199        done
6200        CC=$ac_save_CC
6201        rm -f conftest.$ac_ext
6202     fi
6203 fi
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6205 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6206   if test "$ac_cv_sys_largefile_CC" != no; then
6207     CC=$CC$ac_cv_sys_largefile_CC
6208   fi
6209
6210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6211 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6212 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6213   $as_echo_n "(cached) " >&6
6214 else
6215   while :; do
6216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6217 /* end confdefs.h.  */
6218 #include <sys/types.h>
6219  /* Check that off_t can represent 2**63 - 1 correctly.
6220     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6221     since some C++ compilers masquerading as C compilers
6222     incorrectly reject 9223372036854775807.  */
6223 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6224   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6225                        && LARGE_OFF_T % 2147483647 == 1)
6226                       ? 1 : -1];
6227 int
6228 main ()
6229 {
6230
6231   ;
6232   return 0;
6233 }
6234 _ACEOF
6235 if ac_fn_c_try_compile "$LINENO"; then :
6236   ac_cv_sys_file_offset_bits=no; break
6237 fi
6238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h.  */
6241 #define _FILE_OFFSET_BITS 64
6242 #include <sys/types.h>
6243  /* Check that off_t can represent 2**63 - 1 correctly.
6244     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6245     since some C++ compilers masquerading as C compilers
6246     incorrectly reject 9223372036854775807.  */
6247 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6248   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6249                        && LARGE_OFF_T % 2147483647 == 1)
6250                       ? 1 : -1];
6251 int
6252 main ()
6253 {
6254
6255   ;
6256   return 0;
6257 }
6258 _ACEOF
6259 if ac_fn_c_try_compile "$LINENO"; then :
6260   ac_cv_sys_file_offset_bits=64; break
6261 fi
6262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6263   ac_cv_sys_file_offset_bits=unknown
6264   break
6265 done
6266 fi
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6268 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6269 case $ac_cv_sys_file_offset_bits in #(
6270   no | unknown) ;;
6271   *)
6272 cat >>confdefs.h <<_ACEOF
6273 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6274 _ACEOF
6275 ;;
6276 esac
6277 rm -rf conftest*
6278   if test $ac_cv_sys_file_offset_bits = unknown; then
6279     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6280 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6281 if test "${ac_cv_sys_large_files+set}" = set; then :
6282   $as_echo_n "(cached) " >&6
6283 else
6284   while :; do
6285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h.  */
6287 #include <sys/types.h>
6288  /* Check that off_t can represent 2**63 - 1 correctly.
6289     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6290     since some C++ compilers masquerading as C compilers
6291     incorrectly reject 9223372036854775807.  */
6292 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6293   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6294                        && LARGE_OFF_T % 2147483647 == 1)
6295                       ? 1 : -1];
6296 int
6297 main ()
6298 {
6299
6300   ;
6301   return 0;
6302 }
6303 _ACEOF
6304 if ac_fn_c_try_compile "$LINENO"; then :
6305   ac_cv_sys_large_files=no; break
6306 fi
6307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h.  */
6310 #define _LARGE_FILES 1
6311 #include <sys/types.h>
6312  /* Check that off_t can represent 2**63 - 1 correctly.
6313     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6314     since some C++ compilers masquerading as C compilers
6315     incorrectly reject 9223372036854775807.  */
6316 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6317   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6318                        && LARGE_OFF_T % 2147483647 == 1)
6319                       ? 1 : -1];
6320 int
6321 main ()
6322 {
6323
6324   ;
6325   return 0;
6326 }
6327 _ACEOF
6328 if ac_fn_c_try_compile "$LINENO"; then :
6329   ac_cv_sys_large_files=1; break
6330 fi
6331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332   ac_cv_sys_large_files=unknown
6333   break
6334 done
6335 fi
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6337 $as_echo "$ac_cv_sys_large_files" >&6; }
6338 case $ac_cv_sys_large_files in #(
6339   no | unknown) ;;
6340   *)
6341 cat >>confdefs.h <<_ACEOF
6342 #define _LARGE_FILES $ac_cv_sys_large_files
6343 _ACEOF
6344 ;;
6345 esac
6346 rm -rf conftest*
6347   fi
6348 fi
6349
6350
6351 # Checks for libraries.
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getpwnam" >&5
6353 $as_echo_n "checking for library containing getpwnam... " >&6; }
6354 if test "${ac_cv_search_getpwnam+set}" = set; then :
6355   $as_echo_n "(cached) " >&6
6356 else
6357   ac_func_search_save_LIBS=$LIBS
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h.  */
6360
6361 /* Override any GCC internal prototype to avoid an error.
6362    Use char because int might match the return type of a GCC
6363    builtin and then its argument prototype would still apply.  */
6364 #ifdef __cplusplus
6365 extern "C"
6366 #endif
6367 char getpwnam ();
6368 int
6369 main ()
6370 {
6371 return getpwnam ();
6372   ;
6373   return 0;
6374 }
6375 _ACEOF
6376 for ac_lib in '' sun; do
6377   if test -z "$ac_lib"; then
6378     ac_res="none required"
6379   else
6380     ac_res=-l$ac_lib
6381     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6382   fi
6383   if ac_fn_c_try_link "$LINENO"; then :
6384   ac_cv_search_getpwnam=$ac_res
6385 fi
6386 rm -f core conftest.err conftest.$ac_objext \
6387     conftest$ac_exeext
6388   if test "${ac_cv_search_getpwnam+set}" = set; then :
6389   break
6390 fi
6391 done
6392 if test "${ac_cv_search_getpwnam+set}" = set; then :
6393
6394 else
6395   ac_cv_search_getpwnam=no
6396 fi
6397 rm conftest.$ac_ext
6398 LIBS=$ac_func_search_save_LIBS
6399 fi
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getpwnam" >&5
6401 $as_echo "$ac_cv_search_getpwnam" >&6; }
6402 ac_res=$ac_cv_search_getpwnam
6403 if test "$ac_res" != no; then :
6404   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6405
6406 fi
6407
6408
6409 # Checks for header files.
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6411 $as_echo_n "checking for ANSI C header files... " >&6; }
6412 if test "${ac_cv_header_stdc+set}" = set; then :
6413   $as_echo_n "(cached) " >&6
6414 else
6415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h.  */
6417 #include <stdlib.h>
6418 #include <stdarg.h>
6419 #include <string.h>
6420 #include <float.h>
6421
6422 int
6423 main ()
6424 {
6425
6426   ;
6427   return 0;
6428 }
6429 _ACEOF
6430 if ac_fn_c_try_compile "$LINENO"; then :
6431   ac_cv_header_stdc=yes
6432 else
6433   ac_cv_header_stdc=no
6434 fi
6435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436
6437 if test $ac_cv_header_stdc = yes; then
6438   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h.  */
6441 #include <string.h>
6442
6443 _ACEOF
6444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6445   $EGREP "memchr" >/dev/null 2>&1; then :
6446
6447 else
6448   ac_cv_header_stdc=no
6449 fi
6450 rm -f conftest*
6451
6452 fi
6453
6454 if test $ac_cv_header_stdc = yes; then
6455   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h.  */
6458 #include <stdlib.h>
6459
6460 _ACEOF
6461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6462   $EGREP "free" >/dev/null 2>&1; then :
6463
6464 else
6465   ac_cv_header_stdc=no
6466 fi
6467 rm -f conftest*
6468
6469 fi
6470
6471 if test $ac_cv_header_stdc = yes; then
6472   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6473   if test "$cross_compiling" = yes; then :
6474   :
6475 else
6476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h.  */
6478 #include <ctype.h>
6479 #include <stdlib.h>
6480 #if ((' ' & 0x0FF) == 0x020)
6481 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6482 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6483 #else
6484 # define ISLOWER(c) \
6485                    (('a' <= (c) && (c) <= 'i') \
6486                      || ('j' <= (c) && (c) <= 'r') \
6487                      || ('s' <= (c) && (c) <= 'z'))
6488 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6489 #endif
6490
6491 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6492 int
6493 main ()
6494 {
6495   int i;
6496   for (i = 0; i < 256; i++)
6497     if (XOR (islower (i), ISLOWER (i))
6498         || toupper (i) != TOUPPER (i))
6499       return 2;
6500   return 0;
6501 }
6502 _ACEOF
6503 if ac_fn_c_try_run "$LINENO"; then :
6504
6505 else
6506   ac_cv_header_stdc=no
6507 fi
6508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6509   conftest.$ac_objext conftest.beam conftest.$ac_ext
6510 fi
6511
6512 fi
6513 fi
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6515 $as_echo "$ac_cv_header_stdc" >&6; }
6516 if test $ac_cv_header_stdc = yes; then
6517
6518 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6519
6520 fi
6521
6522 ac_header_dirent=no
6523 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6524   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6526 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
6528   $as_echo_n "(cached) " >&6
6529 else
6530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h.  */
6532 #include <sys/types.h>
6533 #include <$ac_hdr>
6534
6535 int
6536 main ()
6537 {
6538 if ((DIR *) 0)
6539 return 0;
6540   ;
6541   return 0;
6542 }
6543 _ACEOF
6544 if ac_fn_c_try_compile "$LINENO"; then :
6545   eval "$as_ac_Header=yes"
6546 else
6547   eval "$as_ac_Header=no"
6548 fi
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6550 fi
6551 eval ac_res=\$$as_ac_Header
6552                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6553 $as_echo "$ac_res" >&6; }
6554 eval as_val=\$$as_ac_Header
6555    if test "x$as_val" = x""yes; then :
6556   cat >>confdefs.h <<_ACEOF
6557 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6558 _ACEOF
6559
6560 ac_header_dirent=$ac_hdr; break
6561 fi
6562
6563 done
6564 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6565 if test $ac_header_dirent = dirent.h; then
6566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6567 $as_echo_n "checking for library containing opendir... " >&6; }
6568 if test "${ac_cv_search_opendir+set}" = set; then :
6569   $as_echo_n "(cached) " >&6
6570 else
6571   ac_func_search_save_LIBS=$LIBS
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h.  */
6574
6575 /* Override any GCC internal prototype to avoid an error.
6576    Use char because int might match the return type of a GCC
6577    builtin and then its argument prototype would still apply.  */
6578 #ifdef __cplusplus
6579 extern "C"
6580 #endif
6581 char opendir ();
6582 int
6583 main ()
6584 {
6585 return opendir ();
6586   ;
6587   return 0;
6588 }
6589 _ACEOF
6590 for ac_lib in '' dir; do
6591   if test -z "$ac_lib"; then
6592     ac_res="none required"
6593   else
6594     ac_res=-l$ac_lib
6595     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6596   fi
6597   if ac_fn_c_try_link "$LINENO"; then :
6598   ac_cv_search_opendir=$ac_res
6599 fi
6600 rm -f core conftest.err conftest.$ac_objext \
6601     conftest$ac_exeext
6602   if test "${ac_cv_search_opendir+set}" = set; then :
6603   break
6604 fi
6605 done
6606 if test "${ac_cv_search_opendir+set}" = set; then :
6607
6608 else
6609   ac_cv_search_opendir=no
6610 fi
6611 rm conftest.$ac_ext
6612 LIBS=$ac_func_search_save_LIBS
6613 fi
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6615 $as_echo "$ac_cv_search_opendir" >&6; }
6616 ac_res=$ac_cv_search_opendir
6617 if test "$ac_res" != no; then :
6618   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6619
6620 fi
6621
6622 else
6623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6624 $as_echo_n "checking for library containing opendir... " >&6; }
6625 if test "${ac_cv_search_opendir+set}" = set; then :
6626   $as_echo_n "(cached) " >&6
6627 else
6628   ac_func_search_save_LIBS=$LIBS
6629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h.  */
6631
6632 /* Override any GCC internal prototype to avoid an error.
6633    Use char because int might match the return type of a GCC
6634    builtin and then its argument prototype would still apply.  */
6635 #ifdef __cplusplus
6636 extern "C"
6637 #endif
6638 char opendir ();
6639 int
6640 main ()
6641 {
6642 return opendir ();
6643   ;
6644   return 0;
6645 }
6646 _ACEOF
6647 for ac_lib in '' x; do
6648   if test -z "$ac_lib"; then
6649     ac_res="none required"
6650   else
6651     ac_res=-l$ac_lib
6652     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6653   fi
6654   if ac_fn_c_try_link "$LINENO"; then :
6655   ac_cv_search_opendir=$ac_res
6656 fi
6657 rm -f core conftest.err conftest.$ac_objext \
6658     conftest$ac_exeext
6659   if test "${ac_cv_search_opendir+set}" = set; then :
6660   break
6661 fi
6662 done
6663 if test "${ac_cv_search_opendir+set}" = set; then :
6664
6665 else
6666   ac_cv_search_opendir=no
6667 fi
6668 rm conftest.$ac_ext
6669 LIBS=$ac_func_search_save_LIBS
6670 fi
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6672 $as_echo "$ac_cv_search_opendir" >&6; }
6673 ac_res=$ac_cv_search_opendir
6674 if test "$ac_res" != no; then :
6675   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6676
6677 fi
6678
6679 fi
6680
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6682 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6683 if test "${ac_cv_header_stat_broken+set}" = set; then :
6684   $as_echo_n "(cached) " >&6
6685 else
6686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6687 /* end confdefs.h.  */
6688 #include <sys/types.h>
6689 #include <sys/stat.h>
6690
6691 #if defined S_ISBLK && defined S_IFDIR
6692 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6693 #endif
6694
6695 #if defined S_ISBLK && defined S_IFCHR
6696 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6697 #endif
6698
6699 #if defined S_ISLNK && defined S_IFREG
6700 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6701 #endif
6702
6703 #if defined S_ISSOCK && defined S_IFREG
6704 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6705 #endif
6706
6707 _ACEOF
6708 if ac_fn_c_try_compile "$LINENO"; then :
6709   ac_cv_header_stat_broken=no
6710 else
6711   ac_cv_header_stat_broken=yes
6712 fi
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 fi
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6716 $as_echo "$ac_cv_header_stat_broken" >&6; }
6717 if test $ac_cv_header_stat_broken = yes; then
6718
6719 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6720
6721 fi
6722
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6724 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6725 if test "${ac_cv_header_time+set}" = set; then :
6726   $as_echo_n "(cached) " >&6
6727 else
6728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h.  */
6730 #include <sys/types.h>
6731 #include <sys/time.h>
6732 #include <time.h>
6733
6734 int
6735 main ()
6736 {
6737 if ((struct tm *) 0)
6738 return 0;
6739   ;
6740   return 0;
6741 }
6742 _ACEOF
6743 if ac_fn_c_try_compile "$LINENO"; then :
6744   ac_cv_header_time=yes
6745 else
6746   ac_cv_header_time=no
6747 fi
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6749 fi
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6751 $as_echo "$ac_cv_header_time" >&6; }
6752 if test $ac_cv_header_time = yes; then
6753
6754 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6755
6756 fi
6757
6758 for ac_header in stdlib.h locale.h unistd.h limits.h fcntl.h string.h \
6759                  memory.h sys/param.h sys/resource.h sys/time.h sys/timeb.h
6760 do :
6761   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6762 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6763 eval as_val=\$$as_ac_Header
6764    if test "x$as_val" = x""yes; then :
6765   cat >>confdefs.h <<_ACEOF
6766 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6767 _ACEOF
6768
6769 fi
6770
6771 done
6772
6773
6774 # Set a flag if we have an ANSI C compiler
6775 if test "$ac_cv_prog_cc_stdc" != no; then
6776
6777 $as_echo "#define HAVE_ANSI_COMPILER 1" >>confdefs.h
6778
6779 fi
6780
6781
6782 # Determine what kind of variadic function calls we support
6783 for ac_header in stdarg.h varargs.h
6784 do :
6785   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6786 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6787 eval as_val=\$$as_ac_Header
6788    if test "x$as_val" = x""yes; then :
6789   cat >>confdefs.h <<_ACEOF
6790 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6791 _ACEOF
6792  break
6793 fi
6794
6795 done
6796
6797
6798 if test "x$CC" != xcc; then
6799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6800 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6801 else
6802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6803 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6804 fi
6805 set dummy $CC; ac_cc=`$as_echo "$2" |
6806                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6807 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
6808   $as_echo_n "(cached) " >&6
6809 else
6810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h.  */
6812
6813 int
6814 main ()
6815 {
6816
6817   ;
6818   return 0;
6819 }
6820 _ACEOF
6821 # Make sure it works both with $CC and with simple cc.
6822 # We do the test twice because some compilers refuse to overwrite an
6823 # existing .o file with -o, though they will create one.
6824 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6825 rm -f conftest2.*
6826 if { { case "(($ac_try" in
6827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828   *) ac_try_echo=$ac_try;;
6829 esac
6830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6831 $as_echo "$ac_try_echo"; } >&5
6832   (eval "$ac_try") 2>&5
6833   ac_status=$?
6834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835   test $ac_status = 0; } &&
6836    test -f conftest2.$ac_objext && { { case "(($ac_try" in
6837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6838   *) ac_try_echo=$ac_try;;
6839 esac
6840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6841 $as_echo "$ac_try_echo"; } >&5
6842   (eval "$ac_try") 2>&5
6843   ac_status=$?
6844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6845   test $ac_status = 0; };
6846 then
6847   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6848   if test "x$CC" != xcc; then
6849     # Test first that cc exists at all.
6850     if { ac_try='cc -c conftest.$ac_ext >&5'
6851   { { case "(($ac_try" in
6852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6853   *) ac_try_echo=$ac_try;;
6854 esac
6855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6856 $as_echo "$ac_try_echo"; } >&5
6857   (eval "$ac_try") 2>&5
6858   ac_status=$?
6859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6860   test $ac_status = 0; }; }; then
6861       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6862       rm -f conftest2.*
6863       if { { case "(($ac_try" in
6864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6865   *) ac_try_echo=$ac_try;;
6866 esac
6867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6868 $as_echo "$ac_try_echo"; } >&5
6869   (eval "$ac_try") 2>&5
6870   ac_status=$?
6871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6872   test $ac_status = 0; } &&
6873          test -f conftest2.$ac_objext && { { case "(($ac_try" in
6874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875   *) ac_try_echo=$ac_try;;
6876 esac
6877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6878 $as_echo "$ac_try_echo"; } >&5
6879   (eval "$ac_try") 2>&5
6880   ac_status=$?
6881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6882   test $ac_status = 0; };
6883       then
6884         # cc works too.
6885         :
6886       else
6887         # cc exists but doesn't like -o.
6888         eval ac_cv_prog_cc_${ac_cc}_c_o=no
6889       fi
6890     fi
6891   fi
6892 else
6893   eval ac_cv_prog_cc_${ac_cc}_c_o=no
6894 fi
6895 rm -f core conftest*
6896
6897 fi
6898 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6900 $as_echo "yes" >&6; }
6901 else
6902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903 $as_echo "no" >&6; }
6904
6905 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6906
6907 fi
6908
6909 # FIXME: we rely on the cache variable name because
6910 # there is no other way.
6911 set dummy $CC
6912 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6913 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6914 if test "$am_t" != yes; then
6915    # Losing compiler, so override with the script.
6916    # FIXME: It is wrong to rewrite CC.
6917    # But if we don't then we get into trouble of one sort or another.
6918    # A longer-term fix would be to have automake use am__CC in this case,
6919    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6920    CC="$am_aux_dir/compile $CC"
6921 fi
6922
6923
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6925 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6926 if test "${ac_cv_c_const+set}" = set; then :
6927   $as_echo_n "(cached) " >&6
6928 else
6929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h.  */
6931
6932 int
6933 main ()
6934 {
6935 /* FIXME: Include the comments suggested by Paul. */
6936 #ifndef __cplusplus
6937   /* Ultrix mips cc rejects this.  */
6938   typedef int charset[2];
6939   const charset cs;
6940   /* SunOS 4.1.1 cc rejects this.  */
6941   char const *const *pcpcc;
6942   char **ppc;
6943   /* NEC SVR4.0.2 mips cc rejects this.  */
6944   struct point {int x, y;};
6945   static struct point const zero = {0,0};
6946   /* AIX XL C 1.02.0.0 rejects this.
6947      It does not let you subtract one const X* pointer from another in
6948      an arm of an if-expression whose if-part is not a constant
6949      expression */
6950   const char *g = "string";
6951   pcpcc = &g + (g ? g-g : 0);
6952   /* HPUX 7.0 cc rejects these. */
6953   ++pcpcc;
6954   ppc = (char**) pcpcc;
6955   pcpcc = (char const *const *) ppc;
6956   { /* SCO 3.2v4 cc rejects this.  */
6957     char *t;
6958     char const *s = 0 ? (char *) 0 : (char const *) 0;
6959
6960     *t++ = 0;
6961     if (s) return 0;
6962   }
6963   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6964     int x[] = {25, 17};
6965     const int *foo = &x[0];
6966     ++foo;
6967   }
6968   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6969     typedef const int *iptr;
6970     iptr p = 0;
6971     ++p;
6972   }
6973   { /* AIX XL C 1.02.0.0 rejects this saying
6974        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6975     struct s { int j; const int *ap[3]; };
6976     struct s *b; b->j = 5;
6977   }
6978   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6979     const int foo = 10;
6980     if (!foo) return 0;
6981   }
6982   return !cs[0] && !zero.x;
6983 #endif
6984
6985   ;
6986   return 0;
6987 }
6988 _ACEOF
6989 if ac_fn_c_try_compile "$LINENO"; then :
6990   ac_cv_c_const=yes
6991 else
6992   ac_cv_c_const=no
6993 fi
6994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6995 fi
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6997 $as_echo "$ac_cv_c_const" >&6; }
6998 if test $ac_cv_c_const = no; then
6999
7000 $as_echo "#define const /**/" >>confdefs.h
7001
7002 fi
7003
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7005 $as_echo_n "checking return type of signal handlers... " >&6; }
7006 if test "${ac_cv_type_signal+set}" = set; then :
7007   $as_echo_n "(cached) " >&6
7008 else
7009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010 /* end confdefs.h.  */
7011 #include <sys/types.h>
7012 #include <signal.h>
7013
7014 int
7015 main ()
7016 {
7017 return *(signal (0, 0)) (0) == 1;
7018   ;
7019   return 0;
7020 }
7021 _ACEOF
7022 if ac_fn_c_try_compile "$LINENO"; then :
7023   ac_cv_type_signal=int
7024 else
7025   ac_cv_type_signal=void
7026 fi
7027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7028 fi
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7030 $as_echo "$ac_cv_type_signal" >&6; }
7031
7032 cat >>confdefs.h <<_ACEOF
7033 #define RETSIGTYPE $ac_cv_type_signal
7034 _ACEOF
7035
7036
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7038 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7039 if test "${ac_cv_type_uid_t+set}" = set; then :
7040   $as_echo_n "(cached) " >&6
7041 else
7042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043 /* end confdefs.h.  */
7044 #include <sys/types.h>
7045
7046 _ACEOF
7047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7048   $EGREP "uid_t" >/dev/null 2>&1; then :
7049   ac_cv_type_uid_t=yes
7050 else
7051   ac_cv_type_uid_t=no
7052 fi
7053 rm -f conftest*
7054
7055 fi
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7057 $as_echo "$ac_cv_type_uid_t" >&6; }
7058 if test $ac_cv_type_uid_t = no; then
7059
7060 $as_echo "#define uid_t int" >>confdefs.h
7061
7062
7063 $as_echo "#define gid_t int" >>confdefs.h
7064
7065 fi
7066
7067 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7068 if test "x$ac_cv_type_pid_t" = x""yes; then :
7069
7070 else
7071
7072 cat >>confdefs.h <<_ACEOF
7073 #define pid_t int
7074 _ACEOF
7075
7076 fi
7077
7078
7079 # Find some definition for uintmax_t
7080
7081 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
7082 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
7083
7084 else
7085
7086   uintmax_t="unsigned long"
7087   ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
7088 if test "x$ac_cv_type_unsigned_long_long" = x""yes; then :
7089   uintmax_t="unsigned long long"
7090 fi
7091
7092
7093 cat >>confdefs.h <<_ACEOF
7094 #define uintmax_t $uintmax_t
7095 _ACEOF
7096
7097 fi
7098
7099
7100 # Find out whether our struct stat returns nanosecond resolution timestamps.
7101
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanoseconds field of struct stat.st_mtim" >&5
7103 $as_echo_n "checking for nanoseconds field of struct stat.st_mtim... " >&6; }
7104 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then :
7105   $as_echo_n "(cached) " >&6
7106 else
7107   ac_save_CPPFLAGS="$CPPFLAGS"
7108     ac_cv_struct_st_mtim_nsec=no
7109     # tv_nsec -- the usual case
7110     # _tv_nsec -- Solaris 2.6, if
7111     #   (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
7112     #    && !defined __EXTENSIONS__)
7113     # st__tim.tv_nsec -- UnixWare 2.1.2
7114     for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
7115       CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
7116       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117 /* end confdefs.h.  */
7118 #include <sys/types.h>
7119 #include <sys/stat.h>
7120
7121 int
7122 main ()
7123 {
7124 struct stat s; s.st_mtim.ST_MTIM_NSEC;
7125   ;
7126   return 0;
7127 }
7128 _ACEOF
7129 if ac_fn_c_try_compile "$LINENO"; then :
7130   ac_cv_struct_st_mtim_nsec=$ac_val; break
7131 fi
7132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133     done
7134     CPPFLAGS="$ac_save_CPPFLAGS"
7135
7136 fi
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_mtim_nsec" >&5
7138 $as_echo "$ac_cv_struct_st_mtim_nsec" >&6; }
7139
7140   if test $ac_cv_struct_st_mtim_nsec != no; then
7141
7142 cat >>confdefs.h <<_ACEOF
7143 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
7144 _ACEOF
7145
7146   fi
7147
7148
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use high resolution file timestamps" >&5
7150 $as_echo_n "checking whether to use high resolution file timestamps... " >&6; }
7151 if test "${make_cv_file_timestamp_hi_res+set}" = set; then :
7152   $as_echo_n "(cached) " >&6
7153 else
7154
7155   make_cv_file_timestamp_hi_res=no
7156   if test "$ac_cv_struct_st_mtim_nsec" != no; then
7157     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h.  */
7159
7160 #       if HAVE_INTTYPES_H
7161 #        include <inttypes.h>
7162 #       endif
7163 int
7164 main ()
7165 {
7166 char a[0x7fffffff < (uintmax_t)-1 >> 30 ? 1 : -1];
7167   ;
7168   return 0;
7169 }
7170 _ACEOF
7171 if ac_fn_c_try_compile "$LINENO"; then :
7172   make_cv_file_timestamp_hi_res=yes
7173 fi
7174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7175   fi
7176 fi
7177
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_file_timestamp_hi_res" >&5
7179 $as_echo "$make_cv_file_timestamp_hi_res" >&6; }
7180 if test "$make_cv_file_timestamp_hi_res" = yes; then
7181   val=1
7182 else
7183   val=0
7184 fi
7185
7186 cat >>confdefs.h <<_ACEOF
7187 #define FILE_TIMESTAMP_HI_RES $val
7188 _ACEOF
7189
7190
7191 if test "$make_cv_file_timestamp_hi_res" = yes; then
7192   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
7193   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
7194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
7195 $as_echo_n "checking for library containing clock_gettime... " >&6; }
7196 if test "${ac_cv_search_clock_gettime+set}" = set; then :
7197   $as_echo_n "(cached) " >&6
7198 else
7199   ac_func_search_save_LIBS=$LIBS
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h.  */
7202
7203 /* Override any GCC internal prototype to avoid an error.
7204    Use char because int might match the return type of a GCC
7205    builtin and then its argument prototype would still apply.  */
7206 #ifdef __cplusplus
7207 extern "C"
7208 #endif
7209 char clock_gettime ();
7210 int
7211 main ()
7212 {
7213 return clock_gettime ();
7214   ;
7215   return 0;
7216 }
7217 _ACEOF
7218 for ac_lib in '' rt posix4; do
7219   if test -z "$ac_lib"; then
7220     ac_res="none required"
7221   else
7222     ac_res=-l$ac_lib
7223     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7224   fi
7225   if ac_fn_c_try_link "$LINENO"; then :
7226   ac_cv_search_clock_gettime=$ac_res
7227 fi
7228 rm -f core conftest.err conftest.$ac_objext \
7229     conftest$ac_exeext
7230   if test "${ac_cv_search_clock_gettime+set}" = set; then :
7231   break
7232 fi
7233 done
7234 if test "${ac_cv_search_clock_gettime+set}" = set; then :
7235
7236 else
7237   ac_cv_search_clock_gettime=no
7238 fi
7239 rm conftest.$ac_ext
7240 LIBS=$ac_func_search_save_LIBS
7241 fi
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
7243 $as_echo "$ac_cv_search_clock_gettime" >&6; }
7244 ac_res=$ac_cv_search_clock_gettime
7245 if test "$ac_res" != no; then :
7246   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7247
7248 fi
7249
7250   if test "$ac_cv_search_clock_gettime" != no; then
7251
7252 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
7253
7254   fi
7255 fi
7256
7257 # Check for DOS-style pathnames.
7258
7259     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses MSDOS-style paths" >&5
7260 $as_echo_n "checking whether system uses MSDOS-style paths... " >&6; }
7261 if test "${ac_cv_dos_paths+set}" = set; then :
7262   $as_echo_n "(cached) " >&6
7263 else
7264
7265         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h.  */
7267
7268 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__ && !defined __CYGWIN__
7269 neither MSDOS nor Windows nor OS2
7270 #endif
7271
7272 _ACEOF
7273 if ac_fn_c_try_compile "$LINENO"; then :
7274   ac_cv_dos_paths=yes
7275 else
7276   ac_cv_dos_paths=no
7277 fi
7278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279
7280 fi
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dos_paths" >&5
7282 $as_echo "$ac_cv_dos_paths" >&6; }
7283
7284     if test x"$ac_cv_dos_paths" = xyes; then
7285
7286 cat >>confdefs.h <<_ACEOF
7287 #define HAVE_DOS_PATHS 1
7288 _ACEOF
7289
7290     fi
7291
7292
7293 # See if we have a standard version of gettimeofday().  Since actual
7294 # implementations can differ, just make sure we have the most common
7295 # one.
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard gettimeofday" >&5
7297 $as_echo_n "checking for standard gettimeofday... " >&6; }
7298 if test "${ac_cv_func_gettimeofday+set}" = set; then :
7299   $as_echo_n "(cached) " >&6
7300 else
7301   ac_cv_func_gettimeofday=no
7302    if test "$cross_compiling" = yes; then :
7303   ac_cv_func_gettimeofday="no (cross-compiling)"
7304 else
7305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h.  */
7307 #include <sys/time.h>
7308                   int main ()
7309                   {
7310                     struct timeval t; t.tv_sec = -1; t.tv_usec = -1;
7311                     exit (gettimeofday (&t, 0) != 0
7312                           || t.tv_sec < 0 || t.tv_usec < 0);
7313                   }
7314 _ACEOF
7315 if ac_fn_c_try_run "$LINENO"; then :
7316   ac_cv_func_gettimeofday=yes
7317 else
7318   ac_cv_func_gettimeofday=no
7319 fi
7320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7321   conftest.$ac_objext conftest.beam conftest.$ac_ext
7322 fi
7323
7324 fi
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gettimeofday" >&5
7326 $as_echo "$ac_cv_func_gettimeofday" >&6; }
7327 if test "$ac_cv_func_gettimeofday" = yes; then
7328
7329 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
7330
7331 fi
7332
7333 for ac_func in strdup strndup mkstemp mktemp fdopen fileno \
7334                 dup2 getcwd realpath sigsetmask sigaction \
7335                 getgroups seteuid setegid setlinebuf setreuid setregid \
7336                 getrlimit setrlimit setvbuf pipe strerror strsignal \
7337                 lstat readlink atexit
7338 do :
7339   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7340 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7341 eval as_val=\$$as_ac_var
7342    if test "x$as_val" = x""yes; then :
7343   cat >>confdefs.h <<_ACEOF
7344 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7345 _ACEOF
7346
7347 fi
7348 done
7349
7350
7351 # We need to check declarations, not just existence, because on Tru64 this
7352 # function is not declared without special flags, which themselves cause
7353 # other problems.  We'll just use our own.
7354 ac_fn_c_check_decl "$LINENO" "bsd_signal" "ac_cv_have_decl_bsd_signal" "#include <signal.h>
7355 "
7356 if test "x$ac_cv_have_decl_bsd_signal" = x""yes; then :
7357   ac_have_decl=1
7358 else
7359   ac_have_decl=0
7360 fi
7361
7362 cat >>confdefs.h <<_ACEOF
7363 #define HAVE_DECL_BSD_SIGNAL $ac_have_decl
7364 _ACEOF
7365
7366
7367 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
7368   $as_echo_n "(cached) " >&6
7369 else
7370   ac_cv_func_setvbuf_reversed=no
7371 fi
7372
7373
7374
7375 # Rumor has it that strcasecmp lives in -lresolv on some odd systems.
7376 # It doesn't hurt much to use our own if we can't find it so I don't
7377 # make the effort here.
7378 for ac_func in strcasecmp strncasecmp strcmpi strncmpi stricmp strnicmp
7379 do :
7380   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7381 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7382 eval as_val=\$$as_ac_var
7383    if test "x$as_val" = x""yes; then :
7384   cat >>confdefs.h <<_ACEOF
7385 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7386 _ACEOF
7387
7388 fi
7389 done
7390
7391
7392 # strcoll() is used by the GNU glob library
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
7394 $as_echo_n "checking for working strcoll... " >&6; }
7395 if test "${ac_cv_func_strcoll_works+set}" = set; then :
7396   $as_echo_n "(cached) " >&6
7397 else
7398   if test "$cross_compiling" = yes; then :
7399   ac_cv_func_strcoll_works=no
7400 else
7401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h.  */
7403 $ac_includes_default
7404 int
7405 main ()
7406 {
7407 return (strcoll ("abc", "def") >= 0 ||
7408          strcoll ("ABC", "DEF") >= 0 ||
7409          strcoll ("123", "456") >= 0)
7410   ;
7411   return 0;
7412 }
7413 _ACEOF
7414 if ac_fn_c_try_run "$LINENO"; then :
7415   ac_cv_func_strcoll_works=yes
7416 else
7417   ac_cv_func_strcoll_works=no
7418 fi
7419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7420   conftest.$ac_objext conftest.beam conftest.$ac_ext
7421 fi
7422
7423 fi
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
7425 $as_echo "$ac_cv_func_strcoll_works" >&6; }
7426 if test $ac_cv_func_strcoll_works = yes; then
7427
7428 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
7429
7430 fi
7431
7432
7433 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7434 # for constant arguments.  Useless!
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7436 $as_echo_n "checking for working alloca.h... " >&6; }
7437 if test "${ac_cv_working_alloca_h+set}" = set; then :
7438   $as_echo_n "(cached) " >&6
7439 else
7440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h.  */
7442 #include <alloca.h>
7443 int
7444 main ()
7445 {
7446 char *p = (char *) alloca (2 * sizeof (int));
7447                           if (p) return 0;
7448   ;
7449   return 0;
7450 }
7451 _ACEOF
7452 if ac_fn_c_try_link "$LINENO"; then :
7453   ac_cv_working_alloca_h=yes
7454 else
7455   ac_cv_working_alloca_h=no
7456 fi
7457 rm -f core conftest.err conftest.$ac_objext \
7458     conftest$ac_exeext conftest.$ac_ext
7459 fi
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7461 $as_echo "$ac_cv_working_alloca_h" >&6; }
7462 if test $ac_cv_working_alloca_h = yes; then
7463
7464 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7465
7466 fi
7467
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7469 $as_echo_n "checking for alloca... " >&6; }
7470 if test "${ac_cv_func_alloca_works+set}" = set; then :
7471   $as_echo_n "(cached) " >&6
7472 else
7473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h.  */
7475 #ifdef __GNUC__
7476 # define alloca __builtin_alloca
7477 #else
7478 # ifdef _MSC_VER
7479 #  include <malloc.h>
7480 #  define alloca _alloca
7481 # else
7482 #  ifdef HAVE_ALLOCA_H
7483 #   include <alloca.h>
7484 #  else
7485 #   ifdef _AIX
7486  #pragma alloca
7487 #   else
7488 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7489 char *alloca ();
7490 #    endif
7491 #   endif
7492 #  endif
7493 # endif
7494 #endif
7495
7496 int
7497 main ()
7498 {
7499 char *p = (char *) alloca (1);
7500                                     if (p) return 0;
7501   ;
7502   return 0;
7503 }
7504 _ACEOF
7505 if ac_fn_c_try_link "$LINENO"; then :
7506   ac_cv_func_alloca_works=yes
7507 else
7508   ac_cv_func_alloca_works=no
7509 fi
7510 rm -f core conftest.err conftest.$ac_objext \
7511     conftest$ac_exeext conftest.$ac_ext
7512 fi
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7514 $as_echo "$ac_cv_func_alloca_works" >&6; }
7515
7516 if test $ac_cv_func_alloca_works = yes; then
7517
7518 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7519
7520 else
7521   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7522 # that cause trouble.  Some versions do not even contain alloca or
7523 # contain a buggy version.  If you still want to use their alloca,
7524 # use ar to extract alloca.o from them instead of compiling alloca.c.
7525
7526 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7527
7528 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7529
7530
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7532 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7533 if test "${ac_cv_os_cray+set}" = set; then :
7534   $as_echo_n "(cached) " >&6
7535 else
7536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537 /* end confdefs.h.  */
7538 #if defined CRAY && ! defined CRAY2
7539 webecray
7540 #else
7541 wenotbecray
7542 #endif
7543
7544 _ACEOF
7545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7546   $EGREP "webecray" >/dev/null 2>&1; then :
7547   ac_cv_os_cray=yes
7548 else
7549   ac_cv_os_cray=no
7550 fi
7551 rm -f conftest*
7552
7553 fi
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7555 $as_echo "$ac_cv_os_cray" >&6; }
7556 if test $ac_cv_os_cray = yes; then
7557   for ac_func in _getb67 GETB67 getb67; do
7558     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7559 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7560 eval as_val=\$$as_ac_var
7561    if test "x$as_val" = x""yes; then :
7562
7563 cat >>confdefs.h <<_ACEOF
7564 #define CRAY_STACKSEG_END $ac_func
7565 _ACEOF
7566
7567     break
7568 fi
7569
7570   done
7571 fi
7572
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7574 $as_echo_n "checking stack direction for C alloca... " >&6; }
7575 if test "${ac_cv_c_stack_direction+set}" = set; then :
7576   $as_echo_n "(cached) " >&6
7577 else
7578   if test "$cross_compiling" = yes; then :
7579   ac_cv_c_stack_direction=0
7580 else
7581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582 /* end confdefs.h.  */
7583 $ac_includes_default
7584 int
7585 find_stack_direction ()
7586 {
7587   static char *addr = 0;
7588   auto char dummy;
7589   if (addr == 0)
7590     {
7591       addr = &dummy;
7592       return find_stack_direction ();
7593     }
7594   else
7595     return (&dummy > addr) ? 1 : -1;
7596 }
7597
7598 int
7599 main ()
7600 {
7601   return find_stack_direction () < 0;
7602 }
7603 _ACEOF
7604 if ac_fn_c_try_run "$LINENO"; then :
7605   ac_cv_c_stack_direction=1
7606 else
7607   ac_cv_c_stack_direction=-1
7608 fi
7609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7610   conftest.$ac_objext conftest.beam conftest.$ac_ext
7611 fi
7612
7613 fi
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7615 $as_echo "$ac_cv_c_stack_direction" >&6; }
7616 cat >>confdefs.h <<_ACEOF
7617 #define STACK_DIRECTION $ac_cv_c_stack_direction
7618 _ACEOF
7619
7620
7621 fi
7622
7623 for ac_header in vfork.h
7624 do :
7625   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
7626 if test "x$ac_cv_header_vfork_h" = x""yes; then :
7627   cat >>confdefs.h <<_ACEOF
7628 #define HAVE_VFORK_H 1
7629 _ACEOF
7630
7631 fi
7632
7633 done
7634
7635 for ac_func in fork vfork
7636 do :
7637   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7638 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7639 eval as_val=\$$as_ac_var
7640    if test "x$as_val" = x""yes; then :
7641   cat >>confdefs.h <<_ACEOF
7642 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7643 _ACEOF
7644
7645 fi
7646 done
7647
7648 if test "x$ac_cv_func_fork" = xyes; then
7649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7650 $as_echo_n "checking for working fork... " >&6; }
7651 if test "${ac_cv_func_fork_works+set}" = set; then :
7652   $as_echo_n "(cached) " >&6
7653 else
7654   if test "$cross_compiling" = yes; then :
7655   ac_cv_func_fork_works=cross
7656 else
7657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658 /* end confdefs.h.  */
7659 $ac_includes_default
7660 int
7661 main ()
7662 {
7663
7664           /* By Ruediger Kuhlmann. */
7665           return fork () < 0;
7666
7667   ;
7668   return 0;
7669 }
7670 _ACEOF
7671 if ac_fn_c_try_run "$LINENO"; then :
7672   ac_cv_func_fork_works=yes
7673 else
7674   ac_cv_func_fork_works=no
7675 fi
7676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7677   conftest.$ac_objext conftest.beam conftest.$ac_ext
7678 fi
7679
7680 fi
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7682 $as_echo "$ac_cv_func_fork_works" >&6; }
7683
7684 else
7685   ac_cv_func_fork_works=$ac_cv_func_fork
7686 fi
7687 if test "x$ac_cv_func_fork_works" = xcross; then
7688   case $host in
7689     *-*-amigaos* | *-*-msdosdjgpp*)
7690       # Override, as these systems have only a dummy fork() stub
7691       ac_cv_func_fork_works=no
7692       ;;
7693     *)
7694       ac_cv_func_fork_works=yes
7695       ;;
7696   esac
7697   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7698 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7699 fi
7700 ac_cv_func_vfork_works=$ac_cv_func_vfork
7701 if test "x$ac_cv_func_vfork" = xyes; then
7702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
7703 $as_echo_n "checking for working vfork... " >&6; }
7704 if test "${ac_cv_func_vfork_works+set}" = set; then :
7705   $as_echo_n "(cached) " >&6
7706 else
7707   if test "$cross_compiling" = yes; then :
7708   ac_cv_func_vfork_works=cross
7709 else
7710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h.  */
7712 /* Thanks to Paul Eggert for this test.  */
7713 $ac_includes_default
7714 #include <sys/wait.h>
7715 #ifdef HAVE_VFORK_H
7716 # include <vfork.h>
7717 #endif
7718 /* On some sparc systems, changes by the child to local and incoming
7719    argument registers are propagated back to the parent.  The compiler
7720    is told about this with #include <vfork.h>, but some compilers
7721    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
7722    static variable whose address is put into a register that is
7723    clobbered by the vfork.  */
7724 static void
7725 #ifdef __cplusplus
7726 sparc_address_test (int arg)
7727 # else
7728 sparc_address_test (arg) int arg;
7729 #endif
7730 {
7731   static pid_t child;
7732   if (!child) {
7733     child = vfork ();
7734     if (child < 0) {
7735       perror ("vfork");
7736       _exit(2);
7737     }
7738     if (!child) {
7739       arg = getpid();
7740       write(-1, "", 0);
7741       _exit (arg);
7742     }
7743   }
7744 }
7745
7746 int
7747 main ()
7748 {
7749   pid_t parent = getpid ();
7750   pid_t child;
7751
7752   sparc_address_test (0);
7753
7754   child = vfork ();
7755
7756   if (child == 0) {
7757     /* Here is another test for sparc vfork register problems.  This
7758        test uses lots of local variables, at least as many local
7759        variables as main has allocated so far including compiler
7760        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
7761        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
7762        reuse the register of parent for one of the local variables,
7763        since it will think that parent can't possibly be used any more
7764        in this routine.  Assigning to the local variable will thus
7765        munge parent in the parent process.  */
7766     pid_t
7767       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7768       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7769     /* Convince the compiler that p..p7 are live; otherwise, it might
7770        use the same hardware register for all 8 local variables.  */
7771     if (p != p1 || p != p2 || p != p3 || p != p4
7772         || p != p5 || p != p6 || p != p7)
7773       _exit(1);
7774
7775     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7776        from child file descriptors.  If the child closes a descriptor
7777        before it execs or exits, this munges the parent's descriptor
7778        as well.  Test for this by closing stdout in the child.  */
7779     _exit(close(fileno(stdout)) != 0);
7780   } else {
7781     int status;
7782     struct stat st;
7783
7784     while (wait(&status) != child)
7785       ;
7786     return (
7787          /* Was there some problem with vforking?  */
7788          child < 0
7789
7790          /* Did the child fail?  (This shouldn't happen.)  */
7791          || status
7792
7793          /* Did the vfork/compiler bug occur?  */
7794          || parent != getpid()
7795
7796          /* Did the file descriptor bug occur?  */
7797          || fstat(fileno(stdout), &st) != 0
7798          );
7799   }
7800 }
7801 _ACEOF
7802 if ac_fn_c_try_run "$LINENO"; then :
7803   ac_cv_func_vfork_works=yes
7804 else
7805   ac_cv_func_vfork_works=no
7806 fi
7807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7808   conftest.$ac_objext conftest.beam conftest.$ac_ext
7809 fi
7810
7811 fi
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
7813 $as_echo "$ac_cv_func_vfork_works" >&6; }
7814
7815 fi;
7816 if test "x$ac_cv_func_fork_works" = xcross; then
7817   ac_cv_func_vfork_works=$ac_cv_func_vfork
7818   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7819 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7820 fi
7821
7822 if test "x$ac_cv_func_vfork_works" = xyes; then
7823
7824 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
7825
7826 else
7827
7828 $as_echo "#define vfork fork" >>confdefs.h
7829
7830 fi
7831 if test "x$ac_cv_func_fork_works" = xyes; then
7832
7833 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
7834
7835 fi
7836
7837 for ac_func in vprintf
7838 do :
7839   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
7840 if test "x$ac_cv_func_vprintf" = x""yes; then :
7841   cat >>confdefs.h <<_ACEOF
7842 #define HAVE_VPRINTF 1
7843 _ACEOF
7844
7845 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
7846 if test "x$ac_cv_func__doprnt" = x""yes; then :
7847
7848 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
7849
7850 fi
7851
7852 fi
7853 done
7854
7855
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
7857 $as_echo_n "checking whether closedir returns void... " >&6; }
7858 if test "${ac_cv_func_closedir_void+set}" = set; then :
7859   $as_echo_n "(cached) " >&6
7860 else
7861   if test "$cross_compiling" = yes; then :
7862   ac_cv_func_closedir_void=yes
7863 else
7864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h.  */
7866 $ac_includes_default
7867 #include <$ac_header_dirent>
7868 #ifndef __cplusplus
7869 int closedir ();
7870 #endif
7871
7872 int
7873 main ()
7874 {
7875 return closedir (opendir (".")) != 0;
7876   ;
7877   return 0;
7878 }
7879 _ACEOF
7880 if ac_fn_c_try_run "$LINENO"; then :
7881   ac_cv_func_closedir_void=no
7882 else
7883   ac_cv_func_closedir_void=yes
7884 fi
7885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7886   conftest.$ac_objext conftest.beam conftest.$ac_ext
7887 fi
7888
7889 fi
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
7891 $as_echo "$ac_cv_func_closedir_void" >&6; }
7892 if test $ac_cv_func_closedir_void = yes; then
7893
7894 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
7895
7896 fi
7897
7898
7899 ac_have_func=no # yes means we've found a way to get the load average.
7900
7901 # Make sure getloadavg.c is where it belongs, at configure-time.
7902 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
7903   as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
7904
7905 ac_save_LIBS=$LIBS
7906
7907 # Check for getloadavg, but be sure not to touch the cache variable.
7908 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
7909 if test "x$ac_cv_func_getloadavg" = x""yes; then :
7910   exit 0
7911 else
7912   exit 1
7913 fi
7914 ) && ac_have_func=yes
7915
7916 # On HPUX9, an unprivileged user can get load averages through this function.
7917 for ac_func in pstat_getdynamic
7918 do :
7919   ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
7920 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
7921   cat >>confdefs.h <<_ACEOF
7922 #define HAVE_PSTAT_GETDYNAMIC 1
7923 _ACEOF
7924
7925 fi
7926 done
7927
7928
7929 # Solaris has libkstat which does not require root.
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
7931 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
7932 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
7933   $as_echo_n "(cached) " >&6
7934 else
7935   ac_check_lib_save_LIBS=$LIBS
7936 LIBS="-lkstat  $LIBS"
7937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938 /* end confdefs.h.  */
7939
7940 /* Override any GCC internal prototype to avoid an error.
7941    Use char because int might match the return type of a GCC
7942    builtin and then its argument prototype would still apply.  */
7943 #ifdef __cplusplus
7944 extern "C"
7945 #endif
7946 char kstat_open ();
7947 int
7948 main ()
7949 {
7950 return kstat_open ();
7951   ;
7952   return 0;
7953 }
7954 _ACEOF
7955 if ac_fn_c_try_link "$LINENO"; then :
7956   ac_cv_lib_kstat_kstat_open=yes
7957 else
7958   ac_cv_lib_kstat_kstat_open=no
7959 fi
7960 rm -f core conftest.err conftest.$ac_objext \
7961     conftest$ac_exeext conftest.$ac_ext
7962 LIBS=$ac_check_lib_save_LIBS
7963 fi
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
7965 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
7966 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
7967   cat >>confdefs.h <<_ACEOF
7968 #define HAVE_LIBKSTAT 1
7969 _ACEOF
7970
7971   LIBS="-lkstat $LIBS"
7972
7973 fi
7974
7975 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
7976
7977 # Some systems with -lutil have (and need) -lkvm as well, some do not.
7978 # On Solaris, -lkvm requires nlist from -lelf, so check that first
7979 # to get the right answer into the cache.
7980 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
7981 if test $ac_have_func = no; then
7982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
7983 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
7984 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
7985   $as_echo_n "(cached) " >&6
7986 else
7987   ac_check_lib_save_LIBS=$LIBS
7988 LIBS="-lelf  $LIBS"
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h.  */
7991
7992 /* Override any GCC internal prototype to avoid an error.
7993    Use char because int might match the return type of a GCC
7994    builtin and then its argument prototype would still apply.  */
7995 #ifdef __cplusplus
7996 extern "C"
7997 #endif
7998 char elf_begin ();
7999 int
8000 main ()
8001 {
8002 return elf_begin ();
8003   ;
8004   return 0;
8005 }
8006 _ACEOF
8007 if ac_fn_c_try_link "$LINENO"; then :
8008   ac_cv_lib_elf_elf_begin=yes
8009 else
8010   ac_cv_lib_elf_elf_begin=no
8011 fi
8012 rm -f core conftest.err conftest.$ac_objext \
8013     conftest$ac_exeext conftest.$ac_ext
8014 LIBS=$ac_check_lib_save_LIBS
8015 fi
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
8017 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
8018 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
8019   LIBS="-lelf $LIBS"
8020 fi
8021
8022 fi
8023 if test $ac_have_func = no; then
8024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
8025 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
8026 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
8027   $as_echo_n "(cached) " >&6
8028 else
8029   ac_check_lib_save_LIBS=$LIBS
8030 LIBS="-lkvm  $LIBS"
8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h.  */
8033
8034 /* Override any GCC internal prototype to avoid an error.
8035    Use char because int might match the return type of a GCC
8036    builtin and then its argument prototype would still apply.  */
8037 #ifdef __cplusplus
8038 extern "C"
8039 #endif
8040 char kvm_open ();
8041 int
8042 main ()
8043 {
8044 return kvm_open ();
8045   ;
8046   return 0;
8047 }
8048 _ACEOF
8049 if ac_fn_c_try_link "$LINENO"; then :
8050   ac_cv_lib_kvm_kvm_open=yes
8051 else
8052   ac_cv_lib_kvm_kvm_open=no
8053 fi
8054 rm -f core conftest.err conftest.$ac_objext \
8055     conftest$ac_exeext conftest.$ac_ext
8056 LIBS=$ac_check_lib_save_LIBS
8057 fi
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
8059 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
8060 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
8061   LIBS="-lkvm $LIBS"
8062 fi
8063
8064   # Check for the 4.4BSD definition of getloadavg.
8065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
8066 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
8067 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
8068   $as_echo_n "(cached) " >&6
8069 else
8070   ac_check_lib_save_LIBS=$LIBS
8071 LIBS="-lutil  $LIBS"
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h.  */
8074
8075 /* Override any GCC internal prototype to avoid an error.
8076    Use char because int might match the return type of a GCC
8077    builtin and then its argument prototype would still apply.  */
8078 #ifdef __cplusplus
8079 extern "C"
8080 #endif
8081 char getloadavg ();
8082 int
8083 main ()
8084 {
8085 return getloadavg ();
8086   ;
8087   return 0;
8088 }
8089 _ACEOF
8090 if ac_fn_c_try_link "$LINENO"; then :
8091   ac_cv_lib_util_getloadavg=yes
8092 else
8093   ac_cv_lib_util_getloadavg=no
8094 fi
8095 rm -f core conftest.err conftest.$ac_objext \
8096     conftest$ac_exeext conftest.$ac_ext
8097 LIBS=$ac_check_lib_save_LIBS
8098 fi
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
8100 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
8101 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
8102   LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
8103 fi
8104
8105 fi
8106
8107 if test $ac_have_func = no; then
8108   # There is a commonly available library for RS/6000 AIX.
8109   # Since it is not a standard part of AIX, it might be installed locally.
8110   ac_getloadavg_LIBS=$LIBS
8111   LIBS="-L/usr/local/lib $LIBS"
8112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
8113 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
8114 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
8115   $as_echo_n "(cached) " >&6
8116 else
8117   ac_check_lib_save_LIBS=$LIBS
8118 LIBS="-lgetloadavg  $LIBS"
8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h.  */
8121
8122 /* Override any GCC internal prototype to avoid an error.
8123    Use char because int might match the return type of a GCC
8124    builtin and then its argument prototype would still apply.  */
8125 #ifdef __cplusplus
8126 extern "C"
8127 #endif
8128 char getloadavg ();
8129 int
8130 main ()
8131 {
8132 return getloadavg ();
8133   ;
8134   return 0;
8135 }
8136 _ACEOF
8137 if ac_fn_c_try_link "$LINENO"; then :
8138   ac_cv_lib_getloadavg_getloadavg=yes
8139 else
8140   ac_cv_lib_getloadavg_getloadavg=no
8141 fi
8142 rm -f core conftest.err conftest.$ac_objext \
8143     conftest$ac_exeext conftest.$ac_ext
8144 LIBS=$ac_check_lib_save_LIBS
8145 fi
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
8147 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
8148 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
8149   LIBS="-lgetloadavg $LIBS"
8150 else
8151   LIBS=$ac_getloadavg_LIBS
8152 fi
8153
8154 fi
8155
8156 # Make sure it is really in the library, if we think we found it,
8157 # otherwise set up the replacement function.
8158 for ac_func in getloadavg
8159 do :
8160   ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
8161 if test "x$ac_cv_func_getloadavg" = x""yes; then :
8162   cat >>confdefs.h <<_ACEOF
8163 #define HAVE_GETLOADAVG 1
8164 _ACEOF
8165
8166 else
8167   case " $LIBOBJS " in
8168   *" getloadavg.$ac_objext "* ) ;;
8169   *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
8170  ;;
8171 esac
8172
8173
8174 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
8175
8176 # Figure out what our getloadavg.c needs.
8177 ac_have_func=no
8178 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
8179 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
8180   ac_have_func=yes
8181
8182 $as_echo "#define DGUX 1" >>confdefs.h
8183
8184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
8185 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
8186 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
8187   $as_echo_n "(cached) " >&6
8188 else
8189   ac_check_lib_save_LIBS=$LIBS
8190 LIBS="-ldgc  $LIBS"
8191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192 /* end confdefs.h.  */
8193
8194 /* Override any GCC internal prototype to avoid an error.
8195    Use char because int might match the return type of a GCC
8196    builtin and then its argument prototype would still apply.  */
8197 #ifdef __cplusplus
8198 extern "C"
8199 #endif
8200 char dg_sys_info ();
8201 int
8202 main ()
8203 {
8204 return dg_sys_info ();
8205   ;
8206   return 0;
8207 }
8208 _ACEOF
8209 if ac_fn_c_try_link "$LINENO"; then :
8210   ac_cv_lib_dgc_dg_sys_info=yes
8211 else
8212   ac_cv_lib_dgc_dg_sys_info=no
8213 fi
8214 rm -f core conftest.err conftest.$ac_objext \
8215     conftest$ac_exeext conftest.$ac_ext
8216 LIBS=$ac_check_lib_save_LIBS
8217 fi
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
8219 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
8220 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
8221   cat >>confdefs.h <<_ACEOF
8222 #define HAVE_LIBDGC 1
8223 _ACEOF
8224
8225   LIBS="-ldgc $LIBS"
8226
8227 fi
8228
8229 fi
8230
8231
8232
8233 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
8234 if test "x$ac_cv_header_locale_h" = x""yes; then :
8235
8236 fi
8237
8238
8239 for ac_func in setlocale
8240 do :
8241   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
8242 if test "x$ac_cv_func_setlocale" = x""yes; then :
8243   cat >>confdefs.h <<_ACEOF
8244 #define HAVE_SETLOCALE 1
8245 _ACEOF
8246
8247 fi
8248 done
8249
8250
8251 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
8252 # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
8253 # Irix 4.0.5F has the header but not the library.
8254 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
8255   ac_have_func=yes
8256
8257 $as_echo "#define SVR4 1" >>confdefs.h
8258
8259 fi
8260
8261 if test $ac_have_func = no; then
8262   ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
8263 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
8264   ac_have_func=yes
8265
8266 $as_echo "#define UMAX 1" >>confdefs.h
8267
8268
8269 $as_echo "#define UMAX4_3 1" >>confdefs.h
8270
8271 fi
8272
8273
8274 fi
8275
8276 if test $ac_have_func = no; then
8277   ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
8278 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
8279   ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
8280
8281 fi
8282
8283
8284 fi
8285
8286 if test $ac_have_func = no; then
8287   for ac_header in mach/mach.h
8288 do :
8289   ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
8290 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
8291   cat >>confdefs.h <<_ACEOF
8292 #define HAVE_MACH_MACH_H 1
8293 _ACEOF
8294
8295 fi
8296
8297 done
8298
8299 fi
8300
8301 for ac_header in nlist.h
8302 do :
8303   ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
8304 if test "x$ac_cv_header_nlist_h" = x""yes; then :
8305   cat >>confdefs.h <<_ACEOF
8306 #define HAVE_NLIST_H 1
8307 _ACEOF
8308  ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
8309 "
8310 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
8311
8312 cat >>confdefs.h <<_ACEOF
8313 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
8314 _ACEOF
8315
8316
8317 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
8318
8319 fi
8320
8321
8322 fi
8323
8324 done
8325
8326 fi
8327 done
8328
8329
8330 # Some definitions of getloadavg require that the program be installed setgid.
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
8332 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
8333 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
8334   $as_echo_n "(cached) " >&6
8335 else
8336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h.  */
8338 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
8339 #ifdef LDAV_PRIVILEGED
8340 Yowza Am I SETGID yet
8341 #endif
8342 _ACEOF
8343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8344   $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
8345   ac_cv_func_getloadavg_setgid=yes
8346 else
8347   ac_cv_func_getloadavg_setgid=no
8348 fi
8349 rm -f conftest*
8350
8351 fi
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
8353 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
8354 if test $ac_cv_func_getloadavg_setgid = yes; then
8355   NEED_SETGID=true
8356
8357 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
8358
8359 else
8360   NEED_SETGID=false
8361 fi
8362
8363 if test $ac_cv_func_getloadavg_setgid = yes; then
8364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
8365 $as_echo_n "checking group of /dev/kmem... " >&6; }
8366 if test "${ac_cv_group_kmem+set}" = set; then :
8367   $as_echo_n "(cached) " >&6
8368 else
8369    # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
8370   ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
8371   # If we got an error (system does not support symlinks), try without -L.
8372   test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
8373   ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
8374     | sed -ne 's/[       ][      ]*/ /g;
8375                s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
8376                / /s/.* //;p;'`
8377
8378 fi
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
8380 $as_echo "$ac_cv_group_kmem" >&6; }
8381   KMEM_GROUP=$ac_cv_group_kmem
8382 fi
8383 if test "x$ac_save_LIBS" = x; then
8384   GETLOADAVG_LIBS=$LIBS
8385 else
8386   GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
8387 fi
8388 LIBS=$ac_save_LIBS
8389
8390
8391
8392 # AC_FUNC_GETLOADAVG is documented to set the NLIST_STRUCT value, but it
8393 # doesn't.  So, we will.
8394
8395 if test "$ac_cv_header_nlist_h" = yes; then
8396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397 /* end confdefs.h.  */
8398 #include <nlist.h>
8399 int
8400 main ()
8401 {
8402 struct nlist nl;
8403           nl.n_name = "string";
8404           return 0;
8405   ;
8406   return 0;
8407 }
8408 _ACEOF
8409 if ac_fn_c_try_compile "$LINENO"; then :
8410   make_cv_nlist_struct=yes
8411 else
8412   make_cv_nlist_struct=no
8413 fi
8414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8415   if test "$make_cv_nlist_struct" = yes; then
8416
8417 $as_echo "#define NLIST_STRUCT 1" >>confdefs.h
8418
8419   fi
8420 fi
8421
8422 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default
8423 #include <signal.h>
8424 /* NetBSD declares sys_siglist in unistd.h.  */
8425 #if HAVE_UNISTD_H
8426 # include <unistd.h>
8427 #endif
8428
8429 "
8430 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
8431   ac_have_decl=1
8432 else
8433   ac_have_decl=0
8434 fi
8435
8436 cat >>confdefs.h <<_ACEOF
8437 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
8438 _ACEOF
8439 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "$ac_includes_default
8440 #include <signal.h>
8441 /* NetBSD declares sys_siglist in unistd.h.  */
8442 #if HAVE_UNISTD_H
8443 # include <unistd.h>
8444 #endif
8445
8446 "
8447 if test "x$ac_cv_have_decl__sys_siglist" = x""yes; then :
8448   ac_have_decl=1
8449 else
8450   ac_have_decl=0
8451 fi
8452
8453 cat >>confdefs.h <<_ACEOF
8454 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
8455 _ACEOF
8456 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default
8457 #include <signal.h>
8458 /* NetBSD declares sys_siglist in unistd.h.  */
8459 #if HAVE_UNISTD_H
8460 # include <unistd.h>
8461 #endif
8462
8463 "
8464 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
8465   ac_have_decl=1
8466 else
8467   ac_have_decl=0
8468 fi
8469
8470 cat >>confdefs.h <<_ACEOF
8471 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
8472 _ACEOF
8473
8474
8475
8476 # Check out the wait reality.
8477 for ac_header in sys/wait.h
8478 do :
8479   ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "#include <sys/types.h>
8480 "
8481 if test "x$ac_cv_header_sys_wait_h" = x""yes; then :
8482   cat >>confdefs.h <<_ACEOF
8483 #define HAVE_SYS_WAIT_H 1
8484 _ACEOF
8485
8486 fi
8487
8488 done
8489
8490 for ac_func in waitpid wait3
8491 do :
8492   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8493 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8494 eval as_val=\$$as_ac_var
8495    if test "x$as_val" = x""yes; then :
8496   cat >>confdefs.h <<_ACEOF
8497 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8498 _ACEOF
8499
8500 fi
8501 done
8502
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union wait" >&5
8504 $as_echo_n "checking for union wait... " >&6; }
8505 if test "${make_cv_union_wait+set}" = set; then :
8506   $as_echo_n "(cached) " >&6
8507 else
8508       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h.  */
8510 #include <sys/types.h>
8511 #include <sys/wait.h>
8512 int
8513 main ()
8514 {
8515 union wait status; int pid; pid = wait (&status);
8516 #ifdef WEXITSTATUS
8517 /* Some POSIXoid systems have both the new-style macros and the old
8518    union wait type, and they do not work together.  If union wait
8519    conflicts with WEXITSTATUS et al, we don't want to use it at all.  */
8520         if (WEXITSTATUS (status) != 0) pid = -1;
8521 #ifdef WTERMSIG
8522         /* If we have WEXITSTATUS and WTERMSIG, just use them on ints.  */
8523         -- blow chunks here --
8524 #endif
8525 #endif
8526 #ifdef HAVE_WAITPID
8527         /* Make sure union wait works with waitpid.  */
8528         pid = waitpid (-1, &status, 0);
8529 #endif
8530
8531   ;
8532   return 0;
8533 }
8534 _ACEOF
8535 if ac_fn_c_try_link "$LINENO"; then :
8536   make_cv_union_wait=yes
8537 else
8538   make_cv_union_wait=no
8539 fi
8540 rm -f core conftest.err conftest.$ac_objext \
8541     conftest$ac_exeext conftest.$ac_ext
8542 fi
8543
8544 if test "$make_cv_union_wait" = yes; then
8545
8546 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
8547
8548 fi
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_union_wait" >&5
8550 $as_echo "$make_cv_union_wait" >&6; }
8551
8552
8553 # If we're building on Windows/DOS/OS/2, add some support for DOS drive specs.
8554 if test "$PATH_SEPARATOR" = ';'; then
8555
8556 $as_echo "#define HAVE_DOS_PATHS 1" >>confdefs.h
8557
8558 fi
8559
8560
8561 # See if the user wants to use pmake's "customs" distributed build capability
8562
8563  REMOTE=stub
8564 use_customs=false
8565
8566 # Check whether --with-customs was given.
8567 if test "${with_customs+set}" = set; then :
8568   withval=$with_customs; case $withval in
8569     n|no) : ;;
8570     *) make_cppflags="$CPPFLAGS"
8571        case $withval in
8572          y|ye|yes) : ;;
8573          *) CPPFLAGS="$CPPFLAGS -I$with_customs/include/customs"
8574             make_ldflags="$LDFLAGS -L$with_customs/lib" ;;
8575        esac
8576
8577 cf_test_netlibs=no
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for network libraries" >&5
8579 $as_echo_n "checking for network libraries... " >&6; }
8580 if test "${cf_cv_netlibs+set}" = set; then :
8581   $as_echo_n "(cached) " >&6
8582 else
8583
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working..." >&5
8585 $as_echo "working..." >&6; }
8586 cf_cv_netlibs=""
8587 cf_test_netlibs=yes
8588 for ac_func in gethostname
8589 do :
8590   ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
8591 if test "x$ac_cv_func_gethostname" = x""yes; then :
8592   cat >>confdefs.h <<_ACEOF
8593 #define HAVE_GETHOSTNAME 1
8594 _ACEOF
8595
8596 else
8597
8598
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5
8600 $as_echo_n "checking for gethostname in -lnsl... " >&6; }
8601 if test "${ac_cv_lib_nsl_gethostname+set}" = set; then :
8602   $as_echo_n "(cached) " >&6
8603 else
8604   ac_check_lib_save_LIBS=$LIBS
8605 LIBS="-lnsl $cf_cv_netlibs $LIBS"
8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607 /* end confdefs.h.  */
8608
8609 /* Override any GCC internal prototype to avoid an error.
8610    Use char because int might match the return type of a GCC
8611    builtin and then its argument prototype would still apply.  */
8612 #ifdef __cplusplus
8613 extern "C"
8614 #endif
8615 char gethostname ();
8616 int
8617 main ()
8618 {
8619 return gethostname ();
8620   ;
8621   return 0;
8622 }
8623 _ACEOF
8624 if ac_fn_c_try_link "$LINENO"; then :
8625   ac_cv_lib_nsl_gethostname=yes
8626 else
8627   ac_cv_lib_nsl_gethostname=no
8628 fi
8629 rm -f core conftest.err conftest.$ac_objext \
8630     conftest$ac_exeext conftest.$ac_ext
8631 LIBS=$ac_check_lib_save_LIBS
8632 fi
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5
8634 $as_echo "$ac_cv_lib_nsl_gethostname" >&6; }
8635 if test "x$ac_cv_lib_nsl_gethostname" = x""yes; then :
8636
8637
8638 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
8639
8640
8641 cat >>confdefs.h <<_ACEOF
8642 #define HAVE_$cf_tr_func 1
8643 _ACEOF
8644
8645         ac_cv_func_gethostname=yes
8646         cf_cv_netlibs="-lnsl $cf_cv_netlibs"
8647 else
8648
8649         ac_cv_func_gethostname=unknown
8650         unset ac_cv_func_gethostname 2>/dev/null
8651
8652
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
8654 $as_echo_n "checking for gethostname in -lsocket... " >&6; }
8655 if test "${ac_cv_lib_socket_gethostname+set}" = set; then :
8656   $as_echo_n "(cached) " >&6
8657 else
8658   ac_check_lib_save_LIBS=$LIBS
8659 LIBS="-lsocket $cf_cv_netlibs $LIBS"
8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h.  */
8662
8663 /* Override any GCC internal prototype to avoid an error.
8664    Use char because int might match the return type of a GCC
8665    builtin and then its argument prototype would still apply.  */
8666 #ifdef __cplusplus
8667 extern "C"
8668 #endif
8669 char gethostname ();
8670 int
8671 main ()
8672 {
8673 return gethostname ();
8674   ;
8675   return 0;
8676 }
8677 _ACEOF
8678 if ac_fn_c_try_link "$LINENO"; then :
8679   ac_cv_lib_socket_gethostname=yes
8680 else
8681   ac_cv_lib_socket_gethostname=no
8682 fi
8683 rm -f core conftest.err conftest.$ac_objext \
8684     conftest$ac_exeext conftest.$ac_ext
8685 LIBS=$ac_check_lib_save_LIBS
8686 fi
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
8688 $as_echo "$ac_cv_lib_socket_gethostname" >&6; }
8689 if test "x$ac_cv_lib_socket_gethostname" = x""yes; then :
8690
8691
8692 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
8693
8694
8695 cat >>confdefs.h <<_ACEOF
8696 #define HAVE_$cf_tr_func 1
8697 _ACEOF
8698
8699         ac_cv_func_gethostname=yes
8700         cf_cv_netlibs="-lsocket $cf_cv_netlibs"
8701 else
8702
8703         ac_cv_func_gethostname=unknown
8704         unset ac_cv_func_gethostname 2>/dev/null
8705
8706 fi
8707
8708
8709 fi
8710
8711
8712 fi
8713 done
8714
8715 #
8716 # FIXME:  sequent needs this library (i.e., -lsocket -linet -lnsl), but
8717 # I don't know the entrypoints - 97/7/22 TD
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5
8719 $as_echo_n "checking for main in -linet... " >&6; }
8720 if test "${ac_cv_lib_inet_main+set}" = set; then :
8721   $as_echo_n "(cached) " >&6
8722 else
8723   ac_check_lib_save_LIBS=$LIBS
8724 LIBS="-linet  $LIBS"
8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h.  */
8727
8728
8729 int
8730 main ()
8731 {
8732 return main ();
8733   ;
8734   return 0;
8735 }
8736 _ACEOF
8737 if ac_fn_c_try_link "$LINENO"; then :
8738   ac_cv_lib_inet_main=yes
8739 else
8740   ac_cv_lib_inet_main=no
8741 fi
8742 rm -f core conftest.err conftest.$ac_objext \
8743     conftest$ac_exeext conftest.$ac_ext
8744 LIBS=$ac_check_lib_save_LIBS
8745 fi
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5
8747 $as_echo "$ac_cv_lib_inet_main" >&6; }
8748 if test "x$ac_cv_lib_inet_main" = x""yes; then :
8749   cf_cv_netlibs="-linet $cf_cv_netlibs"
8750 fi
8751
8752 #
8753 if test "$ac_cv_func_lsocket" != no ; then
8754 for ac_func in socket
8755 do :
8756   ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
8757 if test "x$ac_cv_func_socket" = x""yes; then :
8758   cat >>confdefs.h <<_ACEOF
8759 #define HAVE_SOCKET 1
8760 _ACEOF
8761
8762 else
8763
8764
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
8766 $as_echo_n "checking for socket in -lsocket... " >&6; }
8767 if test "${ac_cv_lib_socket_socket+set}" = set; then :
8768   $as_echo_n "(cached) " >&6
8769 else
8770   ac_check_lib_save_LIBS=$LIBS
8771 LIBS="-lsocket $cf_cv_netlibs $LIBS"
8772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773 /* end confdefs.h.  */
8774
8775 /* Override any GCC internal prototype to avoid an error.
8776    Use char because int might match the return type of a GCC
8777    builtin and then its argument prototype would still apply.  */
8778 #ifdef __cplusplus
8779 extern "C"
8780 #endif
8781 char socket ();
8782 int
8783 main ()
8784 {
8785 return socket ();
8786   ;
8787   return 0;
8788 }
8789 _ACEOF
8790 if ac_fn_c_try_link "$LINENO"; then :
8791   ac_cv_lib_socket_socket=yes
8792 else
8793   ac_cv_lib_socket_socket=no
8794 fi
8795 rm -f core conftest.err conftest.$ac_objext \
8796     conftest$ac_exeext conftest.$ac_ext
8797 LIBS=$ac_check_lib_save_LIBS
8798 fi
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
8800 $as_echo "$ac_cv_lib_socket_socket" >&6; }
8801 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
8802
8803
8804 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
8805
8806
8807 cat >>confdefs.h <<_ACEOF
8808 #define HAVE_$cf_tr_func 1
8809 _ACEOF
8810
8811         ac_cv_func_socket=yes
8812         cf_cv_netlibs="-lsocket $cf_cv_netlibs"
8813 else
8814
8815         ac_cv_func_socket=unknown
8816         unset ac_cv_func_socket 2>/dev/null
8817
8818
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lbsd" >&5
8820 $as_echo_n "checking for socket in -lbsd... " >&6; }
8821 if test "${ac_cv_lib_bsd_socket+set}" = set; then :
8822   $as_echo_n "(cached) " >&6
8823 else
8824   ac_check_lib_save_LIBS=$LIBS
8825 LIBS="-lbsd $cf_cv_netlibs $LIBS"
8826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8827 /* end confdefs.h.  */
8828
8829 /* Override any GCC internal prototype to avoid an error.
8830    Use char because int might match the return type of a GCC
8831    builtin and then its argument prototype would still apply.  */
8832 #ifdef __cplusplus
8833 extern "C"
8834 #endif
8835 char socket ();
8836 int
8837 main ()
8838 {
8839 return socket ();
8840   ;
8841   return 0;
8842 }
8843 _ACEOF
8844 if ac_fn_c_try_link "$LINENO"; then :
8845   ac_cv_lib_bsd_socket=yes
8846 else
8847   ac_cv_lib_bsd_socket=no
8848 fi
8849 rm -f core conftest.err conftest.$ac_objext \
8850     conftest$ac_exeext conftest.$ac_ext
8851 LIBS=$ac_check_lib_save_LIBS
8852 fi
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_socket" >&5
8854 $as_echo "$ac_cv_lib_bsd_socket" >&6; }
8855 if test "x$ac_cv_lib_bsd_socket" = x""yes; then :
8856
8857
8858 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
8859
8860
8861 cat >>confdefs.h <<_ACEOF
8862 #define HAVE_$cf_tr_func 1
8863 _ACEOF
8864
8865         ac_cv_func_socket=yes
8866         cf_cv_netlibs="-lbsd $cf_cv_netlibs"
8867 else
8868
8869         ac_cv_func_socket=unknown
8870         unset ac_cv_func_socket 2>/dev/null
8871
8872 fi
8873
8874
8875 fi
8876
8877
8878 fi
8879 done
8880
8881 fi
8882 #
8883 for ac_func in gethostbyname
8884 do :
8885   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8886 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
8887   cat >>confdefs.h <<_ACEOF
8888 #define HAVE_GETHOSTBYNAME 1
8889 _ACEOF
8890
8891 else
8892
8893
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8895 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8896 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
8897   $as_echo_n "(cached) " >&6
8898 else
8899   ac_check_lib_save_LIBS=$LIBS
8900 LIBS="-lnsl $cf_cv_netlibs $LIBS"
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h.  */
8903
8904 /* Override any GCC internal prototype to avoid an error.
8905    Use char because int might match the return type of a GCC
8906    builtin and then its argument prototype would still apply.  */
8907 #ifdef __cplusplus
8908 extern "C"
8909 #endif
8910 char gethostbyname ();
8911 int
8912 main ()
8913 {
8914 return gethostbyname ();
8915   ;
8916   return 0;
8917 }
8918 _ACEOF
8919 if ac_fn_c_try_link "$LINENO"; then :
8920   ac_cv_lib_nsl_gethostbyname=yes
8921 else
8922   ac_cv_lib_nsl_gethostbyname=no
8923 fi
8924 rm -f core conftest.err conftest.$ac_objext \
8925     conftest$ac_exeext conftest.$ac_ext
8926 LIBS=$ac_check_lib_save_LIBS
8927 fi
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8929 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8930 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
8931
8932
8933 cf_tr_func=`echo gethostbyname | tr '[a-z]' '[A-Z]'`
8934
8935
8936 cat >>confdefs.h <<_ACEOF
8937 #define HAVE_$cf_tr_func 1
8938 _ACEOF
8939
8940         ac_cv_func_gethostbyname=yes
8941         cf_cv_netlibs="-lnsl $cf_cv_netlibs"
8942 else
8943
8944         ac_cv_func_gethostbyname=unknown
8945         unset ac_cv_func_gethostbyname 2>/dev/null
8946
8947 fi
8948
8949
8950 fi
8951 done
8952
8953
8954 fi
8955
8956 LIBS="$LIBS $cf_cv_netlibs"
8957 test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6
8958
8959        ac_fn_c_check_header_mongrel "$LINENO" "customs.h" "ac_cv_header_customs_h" "$ac_includes_default"
8960 if test "x$ac_cv_header_customs_h" = x""yes; then :
8961   use_customs=true
8962                          REMOTE=cstms
8963                          LIBS="$LIBS -lcustoms" LDFLAGS="$make_ldflags"
8964 else
8965   with_customs=no
8966                          CPPFLAGS="$make_cppflags" make_badcust=yes
8967 fi
8968
8969
8970        ;;
8971   esac
8972 fi
8973
8974 # Tell automake about this, so it can include the right .c files.
8975  if test "$use_customs" = true; then
8976   USE_CUSTOMS_TRUE=
8977   USE_CUSTOMS_FALSE='#'
8978 else
8979   USE_CUSTOMS_TRUE='#'
8980   USE_CUSTOMS_FALSE=
8981 fi
8982
8983
8984 # See if the user asked to handle case insensitive file systems.
8985
8986
8987 # Check whether --enable-case-insensitive-file-system was given.
8988 if test "${enable_case_insensitive_file_system+set}" = set; then :
8989   enableval=$enable_case_insensitive_file_system; case $enableval in
8990      yes) $as_echo "#define HAVE_CASE_INSENSITIVE_FS 1" >>confdefs.h
8991  ;;
8992    esac
8993 fi
8994
8995
8996 # See if we can handle the job server feature, and if the user wants it.
8997
8998 # Check whether --enable-job-server was given.
8999 if test "${enable_job_server+set}" = set; then :
9000   enableval=$enable_job_server; make_cv_job_server="$enableval" user_job_server="$enableval"
9001 else
9002   make_cv_job_server="yes"
9003 fi
9004
9005
9006 has_wait_nohang=yes
9007 case "$ac_cv_func_waitpid/$ac_cv_func_wait3" in
9008   no/no) has_wait_nohang=no ;;
9009 esac
9010
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SA_RESTART" >&5
9012 $as_echo_n "checking for SA_RESTART... " >&6; }
9013 if test "${make_cv_sa_restart+set}" = set; then :
9014   $as_echo_n "(cached) " >&6
9015 else
9016
9017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h.  */
9019 #include <signal.h>
9020 int
9021 main ()
9022 {
9023 return SA_RESTART;
9024   ;
9025   return 0;
9026 }
9027 _ACEOF
9028 if ac_fn_c_try_compile "$LINENO"; then :
9029   make_cv_sa_restart=yes
9030 else
9031   make_cv_sa_restart=no
9032 fi
9033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9034 fi
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sa_restart" >&5
9036 $as_echo "$make_cv_sa_restart" >&6; }
9037
9038 if test "$make_cv_sa_restart" != no; then
9039
9040 $as_echo "#define HAVE_SA_RESTART 1" >>confdefs.h
9041
9042 fi
9043
9044 # enable make_cv_sa_restart for OS/2 so that the jobserver will be enabled,
9045 # but do it after HAVE_SA_RESTART has been defined.
9046 case "$host_os" in
9047   os2*) make_cv_sa_restart=yes ;;
9048 esac
9049
9050 case "$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_nohang/$make_cv_job_server" in
9051   yes/yes/yes/yes/yes)
9052
9053 $as_echo "#define MAKE_JOBSERVER 1" >>confdefs.h
9054 ;;
9055 esac
9056
9057 # if we have both lstat() and readlink() then we can support symlink
9058 # timechecks.
9059 case "$ac_cv_func_lstat/$ac_cv_func_readlink" in
9060   yes/yes)
9061
9062 $as_echo "#define MAKE_SYMLINKS 1" >>confdefs.h
9063 ;;
9064 esac
9065
9066 # Find the SCCS commands, so we can include them in our default rules.
9067
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of SCCS get command" >&5
9069 $as_echo_n "checking for location of SCCS get command... " >&6; }
9070 if test "${make_cv_path_sccs_get+set}" = set; then :
9071   $as_echo_n "(cached) " >&6
9072 else
9073
9074 if test -f /usr/sccs/get; then
9075   make_cv_path_sccs_get=/usr/sccs/get
9076 else
9077   make_cv_path_sccs_get=get
9078 fi
9079 fi
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_path_sccs_get" >&5
9081 $as_echo "$make_cv_path_sccs_get" >&6; }
9082
9083 cat >>confdefs.h <<_ACEOF
9084 #define SCCS_GET "$make_cv_path_sccs_get"
9085 _ACEOF
9086
9087
9088 ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
9089 if ( /usr/sccs/admin -n s.conftest || admin -n s.conftest ) >/dev/null 2>&1 &&
9090    test -f s.conftest; then
9091   # We successfully created an SCCS file.
9092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SCCS get command understands -G" >&5
9093 $as_echo_n "checking if SCCS get command understands -G... " >&6; }
9094 if test "${make_cv_sys_get_minus_G+set}" = set; then :
9095   $as_echo_n "(cached) " >&6
9096 else
9097
9098     if $make_cv_path_sccs_get -Gconftoast s.conftest >/dev/null 2>&1 &&
9099        test -f conftoast; then
9100        make_cv_sys_get_minus_G=yes
9101     else
9102        make_cv_sys_get_minus_G=no
9103     fi
9104 fi
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_get_minus_G" >&5
9106 $as_echo "$make_cv_sys_get_minus_G" >&6; }
9107   case "$make_cv_sys_get_minus_G" in
9108     yes)
9109 $as_echo "#define SCCS_GET_MINUS_G 1" >>confdefs.h
9110 ;;
9111   esac
9112 fi
9113 rm -f s.conftest conftoast
9114
9115 # Check the system to see if it provides GNU glob.  If not, use our
9116 # local version.
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system libc has GNU glob" >&5
9118 $as_echo_n "checking if system libc has GNU glob... " >&6; }
9119 if test "${make_cv_sys_gnu_glob+set}" = set; then :
9120   $as_echo_n "(cached) " >&6
9121 else
9122
9123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h.  */
9125
9126 #include <features.h>
9127 #include <glob.h>
9128 #include <fnmatch.h>
9129
9130 #define GLOB_INTERFACE_VERSION 1
9131 #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1
9132 # include <gnu-versions.h>
9133 # if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION
9134    gnu glob
9135 # endif
9136 #endif
9137
9138 _ACEOF
9139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9140   $EGREP "gnu glob" >/dev/null 2>&1; then :
9141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9142 $as_echo "yes" >&6; }
9143 make_cv_sys_gnu_glob=yes
9144 else
9145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; using local copy" >&5
9146 $as_echo "no; using local copy" >&6; }
9147 make_cv_sys_gnu_glob=no
9148 fi
9149 rm -f conftest*
9150
9151 fi
9152
9153 if test "$make_cv_sys_gnu_glob" = no; then
9154   GLOBINC='-I$(srcdir)/glob'
9155   GLOBLIB=glob/libglob.a
9156 fi
9157
9158
9159
9160 # Tell automake about this, so it can build the right .c files.
9161  if test "$make_cv_sys_gnu_glob" = no; then
9162   USE_LOCAL_GLOB_TRUE=
9163   USE_LOCAL_GLOB_FALSE='#'
9164 else
9165   USE_LOCAL_GLOB_TRUE='#'
9166   USE_LOCAL_GLOB_FALSE=
9167 fi
9168
9169
9170 # Let the makefile know what our build host is
9171
9172
9173 cat >>confdefs.h <<_ACEOF
9174 #define MAKE_HOST "$host"
9175 _ACEOF
9176
9177 MAKE_HOST="$host"
9178
9179
9180 w32_target_env=no
9181  if false; then
9182   WINDOWSENV_TRUE=
9183   WINDOWSENV_FALSE='#'
9184 else
9185   WINDOWSENV_TRUE='#'
9186   WINDOWSENV_FALSE=
9187 fi
9188
9189
9190 case "$host" in
9191   *-*-mingw32)
9192      if true; then
9193   WINDOWSENV_TRUE=
9194   WINDOWSENV_FALSE='#'
9195 else
9196   WINDOWSENV_TRUE='#'
9197   WINDOWSENV_FALSE=
9198 fi
9199
9200     w32_target_env=yes
9201
9202 $as_echo "#define WINDOWS32 1" >>confdefs.h
9203
9204
9205 $as_echo "#define HAVE_DOS_PATHS 1" >>confdefs.h
9206
9207     ;;
9208 esac
9209
9210
9211 cat >>confdefs.h <<_ACEOF
9212 #define PATH_SEPARATOR_CHAR '$PATH_SEPARATOR'
9213 _ACEOF
9214
9215
9216 # Include the Maintainer's Makefile section, if it's here.
9217
9218 MAINT_MAKEFILE=/dev/null
9219 if test -r "$srcdir/maintMakefile"; then
9220   MAINT_MAKEFILE="$srcdir/maintMakefile"
9221 fi
9222
9223
9224 # Allow building with dmalloc
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
9226 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
9227
9228 # Check whether --with-dmalloc was given.
9229 if test "${with_dmalloc+set}" = set; then :
9230   withval=$with_dmalloc; if test "$withval" = yes; then
9231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9232 $as_echo "yes" >&6; }
9233
9234 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
9235
9236   LIBS="$LIBS -ldmalloc"
9237   LDFLAGS="$LDFLAGS -g"
9238 else
9239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240 $as_echo "no" >&6; }
9241 fi
9242 else
9243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244 $as_echo "no" >&6; }
9245 fi
9246
9247
9248
9249 # Forcibly disable SET_MAKE.  If it's set it breaks things like the test
9250 # scripts, etc.
9251 SET_MAKE=
9252
9253 # Sanity check and inform the user of what we found
9254
9255 case "$make_badcust" in
9256   yes) echo
9257        echo "WARNING: --with-customs specified but no customs.h could be found;"
9258        echo "         disabling Customs support."
9259        echo ;;
9260 esac
9261
9262 case "$with_customs" in
9263   ""|n|no|y|ye|yes) ;;
9264   *) if test -f "$with_customs/lib/libcustoms.a"; then
9265        :
9266      else
9267        echo
9268        echo "WARNING: '$with_customs/lib' does not appear to contain the"
9269        echo "         Customs library.  You must build and install Customs"
9270        echo "         before compiling GNU make."
9271        echo
9272      fi ;;
9273 esac
9274
9275 case "$has_wait_nohang" in
9276   no) echo
9277       echo "WARNING: Your system has neither waitpid() nor wait3()."
9278       echo "         Without one of these, signal handling is unreliable."
9279       echo "         You should be aware that running GNU make with -j"
9280       echo "         could result in erratic behavior."
9281       echo ;;
9282 esac
9283
9284 case "$make_cv_job_server/$user_job_server" in
9285   no/yes) echo
9286           echo "WARNING: Make job server requires a POSIX-ish system that"
9287           echo "         supports the pipe(), sigaction(), and either"
9288           echo "         waitpid() or wait3() functions.  Your system doesn't"
9289           echo "         appear to provide one or more of those."
9290           echo "         Disabling job server support."
9291           echo ;;
9292 esac
9293
9294
9295 # Specify what files are to be created.
9296 ac_config_files="$ac_config_files Makefile glob/Makefile po/Makefile.in config/Makefile doc/Makefile w32/Makefile"
9297
9298
9299 # OK, do it!
9300
9301 cat >confcache <<\_ACEOF
9302 # This file is a shell script that caches the results of configure
9303 # tests run on this system so they can be shared between configure
9304 # scripts and configure runs, see configure's option --config-cache.
9305 # It is not useful on other systems.  If it contains results you don't
9306 # want to keep, you may remove or edit it.
9307 #
9308 # config.status only pays attention to the cache file if you give it
9309 # the --recheck option to rerun configure.
9310 #
9311 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9312 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9313 # following values.
9314
9315 _ACEOF
9316
9317 # The following way of writing the cache mishandles newlines in values,
9318 # but we know of no workaround that is simple, portable, and efficient.
9319 # So, we kill variables containing newlines.
9320 # Ultrix sh set writes to stderr and can't be redirected directly,
9321 # and sets the high bit in the cache file unless we assign to the vars.
9322 (
9323   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9324     eval ac_val=\$$ac_var
9325     case $ac_val in #(
9326     *${as_nl}*)
9327       case $ac_var in #(
9328       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9329 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9330       esac
9331       case $ac_var in #(
9332       _ | IFS | as_nl) ;; #(
9333       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9334       *) { eval $ac_var=; unset $ac_var;} ;;
9335       esac ;;
9336     esac
9337   done
9338
9339   (set) 2>&1 |
9340     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9341     *${as_nl}ac_space=\ *)
9342       # `set' does not quote correctly, so add quotes: double-quote
9343       # substitution turns \\\\ into \\, and sed turns \\ into \.
9344       sed -n \
9345         "s/'/'\\\\''/g;
9346           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9347       ;; #(
9348     *)
9349       # `set' quotes correctly as required by POSIX, so do not add quotes.
9350       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9351       ;;
9352     esac |
9353     sort
9354 ) |
9355   sed '
9356      /^ac_cv_env_/b end
9357      t clear
9358      :clear
9359      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9360      t end
9361      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9362      :end' >>confcache
9363 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9364   if test -w "$cache_file"; then
9365     test "x$cache_file" != "x/dev/null" &&
9366       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9367 $as_echo "$as_me: updating cache $cache_file" >&6;}
9368     cat confcache >$cache_file
9369   else
9370     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9371 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9372   fi
9373 fi
9374 rm -f confcache
9375
9376 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9377 # Let make expand exec_prefix.
9378 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9379
9380 DEFS=-DHAVE_CONFIG_H
9381
9382 ac_libobjs=
9383 ac_ltlibobjs=
9384 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9385   # 1. Remove the extension, and $U if already installed.
9386   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9387   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9388   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9389   #    will be set to the directory where LIBOBJS objects are built.
9390   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9391   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9392 done
9393 LIBOBJS=$ac_libobjs
9394
9395 LTLIBOBJS=$ac_ltlibobjs
9396
9397
9398  if test -n "$EXEEXT"; then
9399   am__EXEEXT_TRUE=
9400   am__EXEEXT_FALSE='#'
9401 else
9402   am__EXEEXT_TRUE='#'
9403   am__EXEEXT_FALSE=
9404 fi
9405
9406 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9407   as_fn_error "conditional \"AMDEP\" was never defined.
9408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9409 fi
9410 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9411   as_fn_error "conditional \"am__fastdepCC\" was never defined.
9412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9413 fi
9414 if test -z "${USE_CUSTOMS_TRUE}" && test -z "${USE_CUSTOMS_FALSE}"; then
9415   as_fn_error "conditional \"USE_CUSTOMS\" was never defined.
9416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9417 fi
9418 if test -z "${USE_LOCAL_GLOB_TRUE}" && test -z "${USE_LOCAL_GLOB_FALSE}"; then
9419   as_fn_error "conditional \"USE_LOCAL_GLOB\" was never defined.
9420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9421 fi
9422 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
9423   as_fn_error "conditional \"WINDOWSENV\" was never defined.
9424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9425 fi
9426 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
9427   as_fn_error "conditional \"WINDOWSENV\" was never defined.
9428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9429 fi
9430
9431 : ${CONFIG_STATUS=./config.status}
9432 ac_write_fail=0
9433 ac_clean_files_save=$ac_clean_files
9434 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9436 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9437 as_write_fail=0
9438 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9439 #! $SHELL
9440 # Generated by $as_me.
9441 # Run this file to recreate the current configuration.
9442 # Compiler output produced by configure, useful for debugging
9443 # configure, is in config.log if it exists.
9444
9445 debug=false
9446 ac_cs_recheck=false
9447 ac_cs_silent=false
9448
9449 SHELL=\${CONFIG_SHELL-$SHELL}
9450 export SHELL
9451 _ASEOF
9452 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9453 ## -------------------- ##
9454 ## M4sh Initialization. ##
9455 ## -------------------- ##
9456
9457 # Be more Bourne compatible
9458 DUALCASE=1; export DUALCASE # for MKS sh
9459 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9460   emulate sh
9461   NULLCMD=:
9462   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9463   # is contrary to our usage.  Disable this feature.
9464   alias -g '${1+"$@"}'='"$@"'
9465   setopt NO_GLOB_SUBST
9466 else
9467   case `(set -o) 2>/dev/null` in #(
9468   *posix*) :
9469     set -o posix ;; #(
9470   *) :
9471      ;;
9472 esac
9473 fi
9474
9475
9476 as_nl='
9477 '
9478 export as_nl
9479 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9480 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9481 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9482 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9483 # Prefer a ksh shell builtin over an external printf program on Solaris,
9484 # but without wasting forks for bash or zsh.
9485 if test -z "$BASH_VERSION$ZSH_VERSION" \
9486     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9487   as_echo='print -r --'
9488   as_echo_n='print -rn --'
9489 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9490   as_echo='printf %s\n'
9491   as_echo_n='printf %s'
9492 else
9493   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9494     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9495     as_echo_n='/usr/ucb/echo -n'
9496   else
9497     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9498     as_echo_n_body='eval
9499       arg=$1;
9500       case $arg in #(
9501       *"$as_nl"*)
9502         expr "X$arg" : "X\\(.*\\)$as_nl";
9503         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9504       esac;
9505       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9506     '
9507     export as_echo_n_body
9508     as_echo_n='sh -c $as_echo_n_body as_echo'
9509   fi
9510   export as_echo_body
9511   as_echo='sh -c $as_echo_body as_echo'
9512 fi
9513
9514 # The user is always right.
9515 if test "${PATH_SEPARATOR+set}" != set; then
9516   PATH_SEPARATOR=:
9517   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9518     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9519       PATH_SEPARATOR=';'
9520   }
9521 fi
9522
9523
9524 # IFS
9525 # We need space, tab and new line, in precisely that order.  Quoting is
9526 # there to prevent editors from complaining about space-tab.
9527 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9528 # splitting by setting IFS to empty value.)
9529 IFS=" ""        $as_nl"
9530
9531 # Find who we are.  Look in the path if we contain no directory separator.
9532 case $0 in #((
9533   *[\\/]* ) as_myself=$0 ;;
9534   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9535 for as_dir in $PATH
9536 do
9537   IFS=$as_save_IFS
9538   test -z "$as_dir" && as_dir=.
9539     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9540   done
9541 IFS=$as_save_IFS
9542
9543      ;;
9544 esac
9545 # We did not find ourselves, most probably we were run as `sh COMMAND'
9546 # in which case we are not to be found in the path.
9547 if test "x$as_myself" = x; then
9548   as_myself=$0
9549 fi
9550 if test ! -f "$as_myself"; then
9551   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9552   exit 1
9553 fi
9554
9555 # Unset variables that we do not need and which cause bugs (e.g. in
9556 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
9557 # suppresses any "Segmentation fault" message there.  '((' could
9558 # trigger a bug in pdksh 5.2.14.
9559 for as_var in BASH_ENV ENV MAIL MAILPATH
9560 do eval test x\${$as_var+set} = xset \
9561   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9562 done
9563 PS1='$ '
9564 PS2='> '
9565 PS4='+ '
9566
9567 # NLS nuisances.
9568 LC_ALL=C
9569 export LC_ALL
9570 LANGUAGE=C
9571 export LANGUAGE
9572
9573 # CDPATH.
9574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9575
9576
9577 # as_fn_error ERROR [LINENO LOG_FD]
9578 # ---------------------------------
9579 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9580 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9581 # script with status $?, using 1 if that was 0.
9582 as_fn_error ()
9583 {
9584   as_status=$?; test $as_status -eq 0 && as_status=1
9585   if test "$3"; then
9586     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9587     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9588   fi
9589   $as_echo "$as_me: error: $1" >&2
9590   as_fn_exit $as_status
9591 } # as_fn_error
9592
9593
9594 # as_fn_set_status STATUS
9595 # -----------------------
9596 # Set $? to STATUS, without forking.
9597 as_fn_set_status ()
9598 {
9599   return $1
9600 } # as_fn_set_status
9601
9602 # as_fn_exit STATUS
9603 # -----------------
9604 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9605 as_fn_exit ()
9606 {
9607   set +e
9608   as_fn_set_status $1
9609   exit $1
9610 } # as_fn_exit
9611
9612 # as_fn_unset VAR
9613 # ---------------
9614 # Portably unset VAR.
9615 as_fn_unset ()
9616 {
9617   { eval $1=; unset $1;}
9618 }
9619 as_unset=as_fn_unset
9620 # as_fn_append VAR VALUE
9621 # ----------------------
9622 # Append the text in VALUE to the end of the definition contained in VAR. Take
9623 # advantage of any shell optimizations that allow amortized linear growth over
9624 # repeated appends, instead of the typical quadratic growth present in naive
9625 # implementations.
9626 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9627   eval 'as_fn_append ()
9628   {
9629     eval $1+=\$2
9630   }'
9631 else
9632   as_fn_append ()
9633   {
9634     eval $1=\$$1\$2
9635   }
9636 fi # as_fn_append
9637
9638 # as_fn_arith ARG...
9639 # ------------------
9640 # Perform arithmetic evaluation on the ARGs, and store the result in the
9641 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9642 # must be portable across $(()) and expr.
9643 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9644   eval 'as_fn_arith ()
9645   {
9646     as_val=$(( $* ))
9647   }'
9648 else
9649   as_fn_arith ()
9650   {
9651     as_val=`expr "$@" || test $? -eq 1`
9652   }
9653 fi # as_fn_arith
9654
9655
9656 if expr a : '\(a\)' >/dev/null 2>&1 &&
9657    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9658   as_expr=expr
9659 else
9660   as_expr=false
9661 fi
9662
9663 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9664   as_basename=basename
9665 else
9666   as_basename=false
9667 fi
9668
9669 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9670   as_dirname=dirname
9671 else
9672   as_dirname=false
9673 fi
9674
9675 as_me=`$as_basename -- "$0" ||
9676 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9677          X"$0" : 'X\(//\)$' \| \
9678          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9679 $as_echo X/"$0" |
9680     sed '/^.*\/\([^/][^/]*\)\/*$/{
9681             s//\1/
9682             q
9683           }
9684           /^X\/\(\/\/\)$/{
9685             s//\1/
9686             q
9687           }
9688           /^X\/\(\/\).*/{
9689             s//\1/
9690             q
9691           }
9692           s/.*/./; q'`
9693
9694 # Avoid depending upon Character Ranges.
9695 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9696 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9697 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9698 as_cr_digits='0123456789'
9699 as_cr_alnum=$as_cr_Letters$as_cr_digits
9700
9701 ECHO_C= ECHO_N= ECHO_T=
9702 case `echo -n x` in #(((((
9703 -n*)
9704   case `echo 'xy\c'` in
9705   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
9706   xy)  ECHO_C='\c';;
9707   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
9708        ECHO_T=' ';;
9709   esac;;
9710 *)
9711   ECHO_N='-n';;
9712 esac
9713
9714 rm -f conf$$ conf$$.exe conf$$.file
9715 if test -d conf$$.dir; then
9716   rm -f conf$$.dir/conf$$.file
9717 else
9718   rm -f conf$$.dir
9719   mkdir conf$$.dir 2>/dev/null
9720 fi
9721 if (echo >conf$$.file) 2>/dev/null; then
9722   if ln -s conf$$.file conf$$ 2>/dev/null; then
9723     as_ln_s='ln -s'
9724     # ... but there are two gotchas:
9725     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9726     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9727     # In both cases, we have to default to `cp -p'.
9728     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9729       as_ln_s='cp -p'
9730   elif ln conf$$.file conf$$ 2>/dev/null; then
9731     as_ln_s=ln
9732   else
9733     as_ln_s='cp -p'
9734   fi
9735 else
9736   as_ln_s='cp -p'
9737 fi
9738 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9739 rmdir conf$$.dir 2>/dev/null
9740
9741
9742 # as_fn_mkdir_p
9743 # -------------
9744 # Create "$as_dir" as a directory, including parents if necessary.
9745 as_fn_mkdir_p ()
9746 {
9747
9748   case $as_dir in #(
9749   -*) as_dir=./$as_dir;;
9750   esac
9751   test -d "$as_dir" || eval $as_mkdir_p || {
9752     as_dirs=
9753     while :; do
9754       case $as_dir in #(
9755       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9756       *) as_qdir=$as_dir;;
9757       esac
9758       as_dirs="'$as_qdir' $as_dirs"
9759       as_dir=`$as_dirname -- "$as_dir" ||
9760 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9761          X"$as_dir" : 'X\(//\)[^/]' \| \
9762          X"$as_dir" : 'X\(//\)$' \| \
9763          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9764 $as_echo X"$as_dir" |
9765     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9766             s//\1/
9767             q
9768           }
9769           /^X\(\/\/\)[^/].*/{
9770             s//\1/
9771             q
9772           }
9773           /^X\(\/\/\)$/{
9774             s//\1/
9775             q
9776           }
9777           /^X\(\/\).*/{
9778             s//\1/
9779             q
9780           }
9781           s/.*/./; q'`
9782       test -d "$as_dir" && break
9783     done
9784     test -z "$as_dirs" || eval "mkdir $as_dirs"
9785   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
9786
9787
9788 } # as_fn_mkdir_p
9789 if mkdir -p . 2>/dev/null; then
9790   as_mkdir_p='mkdir -p "$as_dir"'
9791 else
9792   test -d ./-p && rmdir ./-p
9793   as_mkdir_p=false
9794 fi
9795
9796 if test -x / >/dev/null 2>&1; then
9797   as_test_x='test -x'
9798 else
9799   if ls -dL / >/dev/null 2>&1; then
9800     as_ls_L_option=L
9801   else
9802     as_ls_L_option=
9803   fi
9804   as_test_x='
9805     eval sh -c '\''
9806       if test -d "$1"; then
9807         test -d "$1/.";
9808       else
9809         case $1 in #(
9810         -*)set "./$1";;
9811         esac;
9812         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9813         ???[sx]*):;;*)false;;esac;fi
9814     '\'' sh
9815   '
9816 fi
9817 as_executable_p=$as_test_x
9818
9819 # Sed expression to map a string onto a valid CPP name.
9820 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9821
9822 # Sed expression to map a string onto a valid variable name.
9823 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9824
9825
9826 exec 6>&1
9827 ## ----------------------------------- ##
9828 ## Main body of $CONFIG_STATUS script. ##
9829 ## ----------------------------------- ##
9830 _ASEOF
9831 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9832
9833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9834 # Save the log message, to keep $0 and so on meaningful, and to
9835 # report actual input values of CONFIG_FILES etc. instead of their
9836 # values after options handling.
9837 ac_log="
9838 This file was extended by GNU make $as_me 3.82, which was
9839 generated by GNU Autoconf 2.65.  Invocation command line was
9840
9841   CONFIG_FILES    = $CONFIG_FILES
9842   CONFIG_HEADERS  = $CONFIG_HEADERS
9843   CONFIG_LINKS    = $CONFIG_LINKS
9844   CONFIG_COMMANDS = $CONFIG_COMMANDS
9845   $ $0 $@
9846
9847 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9848 "
9849
9850 _ACEOF
9851
9852 case $ac_config_files in *"
9853 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9854 esac
9855
9856 case $ac_config_headers in *"
9857 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9858 esac
9859
9860
9861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9862 # Files that config.status was made for.
9863 config_files="$ac_config_files"
9864 config_headers="$ac_config_headers"
9865 config_commands="$ac_config_commands"
9866
9867 _ACEOF
9868
9869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9870 ac_cs_usage="\
9871 \`$as_me' instantiates files and other configuration actions
9872 from templates according to the current configuration.  Unless the files
9873 and actions are specified as TAGs, all are instantiated by default.
9874
9875 Usage: $0 [OPTION]... [TAG]...
9876
9877   -h, --help       print this help, then exit
9878   -V, --version    print version number and configuration settings, then exit
9879       --config     print configuration, then exit
9880   -q, --quiet, --silent
9881                    do not print progress messages
9882   -d, --debug      don't remove temporary files
9883       --recheck    update $as_me by reconfiguring in the same conditions
9884       --file=FILE[:TEMPLATE]
9885                    instantiate the configuration file FILE
9886       --header=FILE[:TEMPLATE]
9887                    instantiate the configuration header FILE
9888
9889 Configuration files:
9890 $config_files
9891
9892 Configuration headers:
9893 $config_headers
9894
9895 Configuration commands:
9896 $config_commands
9897
9898 Report bugs to <bug-make@gnu.org>.
9899 GNU make home page: <http://www.gnu.org/software/make/>.
9900 General help using GNU software: <http://www.gnu.org/gethelp/>."
9901
9902 _ACEOF
9903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9904 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9905 ac_cs_version="\\
9906 GNU make config.status 3.82
9907 configured by $0, generated by GNU Autoconf 2.65,
9908   with options \\"\$ac_cs_config\\"
9909
9910 Copyright (C) 2009 Free Software Foundation, Inc.
9911 This config.status script is free software; the Free Software Foundation
9912 gives unlimited permission to copy, distribute and modify it."
9913
9914 ac_pwd='$ac_pwd'
9915 srcdir='$srcdir'
9916 INSTALL='$INSTALL'
9917 MKDIR_P='$MKDIR_P'
9918 AWK='$AWK'
9919 test -n "\$AWK" || AWK=awk
9920 _ACEOF
9921
9922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9923 # The default lists apply if the user does not specify any file.
9924 ac_need_defaults=:
9925 while test $# != 0
9926 do
9927   case $1 in
9928   --*=*)
9929     ac_option=`expr "X$1" : 'X\([^=]*\)='`
9930     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9931     ac_shift=:
9932     ;;
9933   *)
9934     ac_option=$1
9935     ac_optarg=$2
9936     ac_shift=shift
9937     ;;
9938   esac
9939
9940   case $ac_option in
9941   # Handling of the options.
9942   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9943     ac_cs_recheck=: ;;
9944   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9945     $as_echo "$ac_cs_version"; exit ;;
9946   --config | --confi | --conf | --con | --co | --c )
9947     $as_echo "$ac_cs_config"; exit ;;
9948   --debug | --debu | --deb | --de | --d | -d )
9949     debug=: ;;
9950   --file | --fil | --fi | --f )
9951     $ac_shift
9952     case $ac_optarg in
9953     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9954     esac
9955     as_fn_append CONFIG_FILES " '$ac_optarg'"
9956     ac_need_defaults=false;;
9957   --header | --heade | --head | --hea )
9958     $ac_shift
9959     case $ac_optarg in
9960     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9961     esac
9962     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9963     ac_need_defaults=false;;
9964   --he | --h)
9965     # Conflict between --help and --header
9966     as_fn_error "ambiguous option: \`$1'
9967 Try \`$0 --help' for more information.";;
9968   --help | --hel | -h )
9969     $as_echo "$ac_cs_usage"; exit ;;
9970   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9971   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9972     ac_cs_silent=: ;;
9973
9974   # This is an error.
9975   -*) as_fn_error "unrecognized option: \`$1'
9976 Try \`$0 --help' for more information." ;;
9977
9978   *) as_fn_append ac_config_targets " $1"
9979      ac_need_defaults=false ;;
9980
9981   esac
9982   shift
9983 done
9984
9985 ac_configure_extra_args=
9986
9987 if $ac_cs_silent; then
9988   exec 6>/dev/null
9989   ac_configure_extra_args="$ac_configure_extra_args --silent"
9990 fi
9991
9992 _ACEOF
9993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9994 if \$ac_cs_recheck; then
9995   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9996   shift
9997   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9998   CONFIG_SHELL='$SHELL'
9999   export CONFIG_SHELL
10000   exec "\$@"
10001 fi
10002
10003 _ACEOF
10004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10005 exec 5>>config.log
10006 {
10007   echo
10008   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10009 ## Running $as_me. ##
10010 _ASBOX
10011   $as_echo "$ac_log"
10012 } >&5
10013
10014 _ACEOF
10015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10016 #
10017 # INIT-COMMANDS
10018 #
10019 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10020 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
10021     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
10022     # from automake.
10023     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10024     # Capture the value of LINGUAS because we need it to compute CATALOGS.
10025     LINGUAS="${LINGUAS-%UNSET%}"
10026
10027
10028 _ACEOF
10029
10030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10031
10032 # Handling of arguments.
10033 for ac_config_target in $ac_config_targets
10034 do
10035   case $ac_config_target in
10036     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10037     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10038     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10039     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10040     "glob/Makefile") CONFIG_FILES="$CONFIG_FILES glob/Makefile" ;;
10041     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10042     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
10043     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10044     "w32/Makefile") CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;
10045
10046   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10047   esac
10048 done
10049
10050
10051 # If the user did not use the arguments to specify the items to instantiate,
10052 # then the envvar interface is used.  Set only those that are not.
10053 # We use the long form for the default assignment because of an extremely
10054 # bizarre bug on SunOS 4.1.3.
10055 if $ac_need_defaults; then
10056   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10057   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10058   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10059 fi
10060
10061 # Have a temporary directory for convenience.  Make it in the build tree
10062 # simply because there is no reason against having it here, and in addition,
10063 # creating and moving files from /tmp can sometimes cause problems.
10064 # Hook for its removal unless debugging.
10065 # Note that there is a small window in which the directory will not be cleaned:
10066 # after its creation but before its name has been assigned to `$tmp'.
10067 $debug ||
10068 {
10069   tmp=
10070   trap 'exit_status=$?
10071   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10072 ' 0
10073   trap 'as_fn_exit 1' 1 2 13 15
10074 }
10075 # Create a (secure) tmp directory for tmp files.
10076
10077 {
10078   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10079   test -n "$tmp" && test -d "$tmp"
10080 }  ||
10081 {
10082   tmp=./conf$$-$RANDOM
10083   (umask 077 && mkdir "$tmp")
10084 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
10085
10086 # Set up the scripts for CONFIG_FILES section.
10087 # No need to generate them if there are no CONFIG_FILES.
10088 # This happens for instance with `./config.status config.h'.
10089 if test -n "$CONFIG_FILES"; then
10090
10091 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
10092   ac_cs_awk_getline=:
10093   ac_cs_awk_pipe_init=
10094   ac_cs_awk_read_file='
10095       while ((getline aline < (F[key])) > 0)
10096         print(aline)
10097       close(F[key])'
10098   ac_cs_awk_pipe_fini=
10099 else
10100   ac_cs_awk_getline=false
10101   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
10102   ac_cs_awk_read_file='
10103       print "|#_!!_#|"
10104       print "cat " F[key] " &&"
10105       '$ac_cs_awk_pipe_init
10106   # The final `:' finishes the AND list.
10107   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
10108 fi
10109 ac_cr=`echo X | tr X '\015'`
10110 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10111 # But we know of no other shell where ac_cr would be empty at this
10112 # point, so we can use a bashism as a fallback.
10113 if test "x$ac_cr" = x; then
10114   eval ac_cr=\$\'\\r\'
10115 fi
10116 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10117 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10118   ac_cs_awk_cr='\r'
10119 else
10120   ac_cs_awk_cr=$ac_cr
10121 fi
10122
10123 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10124 _ACEOF
10125
10126 # Create commands to substitute file output variables.
10127 {
10128   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
10129   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
10130   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
10131   echo "_ACAWK" &&
10132   echo "_ACEOF"
10133 } >conf$$files.sh &&
10134 . ./conf$$files.sh ||
10135   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10136 rm -f conf$$files.sh
10137
10138 {
10139   echo "cat >conf$$subs.awk <<_ACEOF" &&
10140   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10141   echo "_ACEOF"
10142 } >conf$$subs.sh ||
10143   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10144 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10145 ac_delim='%!_!# '
10146 for ac_last_try in false false false false false :; do
10147   . ./conf$$subs.sh ||
10148     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10149
10150   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10151   if test $ac_delim_n = $ac_delim_num; then
10152     break
10153   elif $ac_last_try; then
10154     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10155   else
10156     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10157   fi
10158 done
10159 rm -f conf$$subs.sh
10160
10161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10162 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10163 _ACEOF
10164 sed -n '
10165 h
10166 s/^/S["/; s/!.*/"]=/
10167 p
10168 g
10169 s/^[^!]*!//
10170 :repl
10171 t repl
10172 s/'"$ac_delim"'$//
10173 t delim
10174 :nl
10175 h
10176 s/\(.\{148\}\)..*/\1/
10177 t more1
10178 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10179 p
10180 n
10181 b repl
10182 :more1
10183 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10184 p
10185 g
10186 s/.\{148\}//
10187 t nl
10188 :delim
10189 h
10190 s/\(.\{148\}\)..*/\1/
10191 t more2
10192 s/["\\]/\\&/g; s/^/"/; s/$/"/
10193 p
10194 b
10195 :more2
10196 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10197 p
10198 g
10199 s/.\{148\}//
10200 t delim
10201 ' <conf$$subs.awk | sed '
10202 /^[^""]/{
10203   N
10204   s/\n//
10205 }
10206 ' >>$CONFIG_STATUS || ac_write_fail=1
10207 rm -f conf$$subs.awk
10208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10209 _ACAWK
10210 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10211   for (key in S) S_is_set[key] = 1
10212   FS = "\a"
10213   \$ac_cs_awk_pipe_init
10214 }
10215 {
10216   line = $ 0
10217   nfields = split(line, field, "@")
10218   substed = 0
10219   len = length(field[1])
10220   for (i = 2; i < nfields; i++) {
10221     key = field[i]
10222     keylen = length(key)
10223     if (S_is_set[key]) {
10224       value = S[key]
10225       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10226       len += length(value) + length(field[++i])
10227       substed = 1
10228     } else
10229       len += 1 + keylen
10230   }
10231   if (nfields == 3 && !substed) {
10232     key = field[2]
10233     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
10234       \$ac_cs_awk_read_file
10235       next
10236     }
10237   }
10238   print line
10239 }
10240 \$ac_cs_awk_pipe_fini
10241 _ACAWK
10242 _ACEOF
10243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10244 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10245   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10246 else
10247   cat
10248 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10249   || as_fn_error "could not setup config files machinery" "$LINENO" 5
10250 _ACEOF
10251
10252 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10253 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10254 # trailing colons and then remove the whole line if VPATH becomes empty
10255 # (actually we leave an empty line to preserve line numbers).
10256 if test "x$srcdir" = x.; then
10257   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10258 s/:*\$(srcdir):*/:/
10259 s/:*\${srcdir}:*/:/
10260 s/:*@srcdir@:*/:/
10261 s/^\([^=]*=[     ]*\):*/\1/
10262 s/:*$//
10263 s/^[^=]*=[       ]*$//
10264 }'
10265 fi
10266
10267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10268 fi # test -n "$CONFIG_FILES"
10269
10270 # Set up the scripts for CONFIG_HEADERS section.
10271 # No need to generate them if there are no CONFIG_HEADERS.
10272 # This happens for instance with `./config.status Makefile'.
10273 if test -n "$CONFIG_HEADERS"; then
10274 cat >"$tmp/defines.awk" <<\_ACAWK ||
10275 BEGIN {
10276 _ACEOF
10277
10278 # Transform confdefs.h into an awk script `defines.awk', embedded as
10279 # here-document in config.status, that substitutes the proper values into
10280 # config.h.in to produce config.h.
10281
10282 # Create a delimiter string that does not exist in confdefs.h, to ease
10283 # handling of long lines.
10284 ac_delim='%!_!# '
10285 for ac_last_try in false false :; do
10286   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10287   if test -z "$ac_t"; then
10288     break
10289   elif $ac_last_try; then
10290     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10291   else
10292     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10293   fi
10294 done
10295
10296 # For the awk script, D is an array of macro values keyed by name,
10297 # likewise P contains macro parameters if any.  Preserve backslash
10298 # newline sequences.
10299
10300 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10301 sed -n '
10302 s/.\{148\}/&'"$ac_delim"'/g
10303 t rset
10304 :rset
10305 s/^[     ]*#[    ]*define[       ][      ]*/ /
10306 t def
10307 d
10308 :def
10309 s/\\$//
10310 t bsnl
10311 s/["\\]/\\&/g
10312 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10313 D["\1"]=" \3"/p
10314 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
10315 d
10316 :bsnl
10317 s/["\\]/\\&/g
10318 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10319 D["\1"]=" \3\\\\\\n"\\/p
10320 t cont
10321 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10322 t cont
10323 d
10324 :cont
10325 n
10326 s/.\{148\}/&'"$ac_delim"'/g
10327 t clear
10328 :clear
10329 s/\\$//
10330 t bsnlc
10331 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10332 d
10333 :bsnlc
10334 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10335 b cont
10336 ' <confdefs.h | sed '
10337 s/'"$ac_delim"'/"\\\
10338 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10339
10340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10341   for (key in D) D_is_set[key] = 1
10342   FS = "\a"
10343 }
10344 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10345   line = \$ 0
10346   split(line, arg, " ")
10347   if (arg[1] == "#") {
10348     defundef = arg[2]
10349     mac1 = arg[3]
10350   } else {
10351     defundef = substr(arg[1], 2)
10352     mac1 = arg[2]
10353   }
10354   split(mac1, mac2, "(") #)
10355   macro = mac2[1]
10356   prefix = substr(line, 1, index(line, defundef) - 1)
10357   if (D_is_set[macro]) {
10358     # Preserve the white space surrounding the "#".
10359     print prefix "define", macro P[macro] D[macro]
10360     next
10361   } else {
10362     # Replace #undef with comments.  This is necessary, for example,
10363     # in the case of _POSIX_SOURCE, which is predefined and required
10364     # on some systems where configure will not decide to define it.
10365     if (defundef == "undef") {
10366       print "/*", prefix defundef, macro, "*/"
10367       next
10368     }
10369   }
10370 }
10371 { print }
10372 _ACAWK
10373 _ACEOF
10374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10375   as_fn_error "could not setup config headers machinery" "$LINENO" 5
10376 fi # test -n "$CONFIG_HEADERS"
10377
10378
10379 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10380 shift
10381 for ac_tag
10382 do
10383   case $ac_tag in
10384   :[FHLC]) ac_mode=$ac_tag; continue;;
10385   esac
10386   case $ac_mode$ac_tag in
10387   :[FHL]*:*);;
10388   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10389   :[FH]-) ac_tag=-:-;;
10390   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10391   esac
10392   ac_save_IFS=$IFS
10393   IFS=:
10394   set x $ac_tag
10395   IFS=$ac_save_IFS
10396   shift
10397   ac_file=$1
10398   shift
10399
10400   case $ac_mode in
10401   :L) ac_source=$1;;
10402   :[FH])
10403     ac_file_inputs=
10404     for ac_f
10405     do
10406       case $ac_f in
10407       -) ac_f="$tmp/stdin";;
10408       *) # Look for the file first in the build tree, then in the source tree
10409          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10410          # because $ac_f cannot contain `:'.
10411          test -f "$ac_f" ||
10412            case $ac_f in
10413            [\\/$]*) false;;
10414            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10415            esac ||
10416            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10417       esac
10418       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10419       as_fn_append ac_file_inputs " '$ac_f'"
10420     done
10421
10422     # Let's still pretend it is `configure' which instantiates (i.e., don't
10423     # use $as_me), people would be surprised to read:
10424     #    /* config.h.  Generated by config.status.  */
10425     configure_input='Generated from '`
10426           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10427         `' by configure.'
10428     if test x"$ac_file" != x-; then
10429       configure_input="$ac_file.  $configure_input"
10430       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10431 $as_echo "$as_me: creating $ac_file" >&6;}
10432     fi
10433     # Neutralize special characters interpreted by sed in replacement strings.
10434     case $configure_input in #(
10435     *\&* | *\|* | *\\* )
10436        ac_sed_conf_input=`$as_echo "$configure_input" |
10437        sed 's/[\\\\&|]/\\\\&/g'`;; #(
10438     *) ac_sed_conf_input=$configure_input;;
10439     esac
10440
10441     case $ac_tag in
10442     *:-:* | *:-) cat >"$tmp/stdin" \
10443       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10444     esac
10445     ;;
10446   esac
10447
10448   ac_dir=`$as_dirname -- "$ac_file" ||
10449 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10450          X"$ac_file" : 'X\(//\)[^/]' \| \
10451          X"$ac_file" : 'X\(//\)$' \| \
10452          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10453 $as_echo X"$ac_file" |
10454     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10455             s//\1/
10456             q
10457           }
10458           /^X\(\/\/\)[^/].*/{
10459             s//\1/
10460             q
10461           }
10462           /^X\(\/\/\)$/{
10463             s//\1/
10464             q
10465           }
10466           /^X\(\/\).*/{
10467             s//\1/
10468             q
10469           }
10470           s/.*/./; q'`
10471   as_dir="$ac_dir"; as_fn_mkdir_p
10472   ac_builddir=.
10473
10474 case "$ac_dir" in
10475 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10476 *)
10477   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10478   # A ".." for each directory in $ac_dir_suffix.
10479   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10480   case $ac_top_builddir_sub in
10481   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10482   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10483   esac ;;
10484 esac
10485 ac_abs_top_builddir=$ac_pwd
10486 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10487 # for backward compatibility:
10488 ac_top_builddir=$ac_top_build_prefix
10489
10490 case $srcdir in
10491   .)  # We are building in place.
10492     ac_srcdir=.
10493     ac_top_srcdir=$ac_top_builddir_sub
10494     ac_abs_top_srcdir=$ac_pwd ;;
10495   [\\/]* | ?:[\\/]* )  # Absolute name.
10496     ac_srcdir=$srcdir$ac_dir_suffix;
10497     ac_top_srcdir=$srcdir
10498     ac_abs_top_srcdir=$srcdir ;;
10499   *) # Relative name.
10500     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10501     ac_top_srcdir=$ac_top_build_prefix$srcdir
10502     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10503 esac
10504 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10505
10506
10507   case $ac_mode in
10508   :F)
10509   #
10510   # CONFIG_FILE
10511   #
10512
10513   case $INSTALL in
10514   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10515   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10516   esac
10517   ac_MKDIR_P=$MKDIR_P
10518   case $MKDIR_P in
10519   [\\/$]* | ?:[\\/]* ) ;;
10520   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10521   esac
10522 _ACEOF
10523
10524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10525 # If the template does not know about datarootdir, expand it.
10526 # FIXME: This hack should be removed a few years after 2.60.
10527 ac_datarootdir_hack=; ac_datarootdir_seen=
10528 ac_sed_dataroot='
10529 /datarootdir/ {
10530   p
10531   q
10532 }
10533 /@datadir@/p
10534 /@docdir@/p
10535 /@infodir@/p
10536 /@localedir@/p
10537 /@mandir@/p'
10538 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10539 *datarootdir*) ac_datarootdir_seen=yes;;
10540 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10541   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10542 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10543 _ACEOF
10544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10545   ac_datarootdir_hack='
10546   s&@datadir@&$datadir&g
10547   s&@docdir@&$docdir&g
10548   s&@infodir@&$infodir&g
10549   s&@localedir@&$localedir&g
10550   s&@mandir@&$mandir&g
10551   s&\\\${datarootdir}&$datarootdir&g' ;;
10552 esac
10553 _ACEOF
10554
10555 # Neutralize VPATH when `$srcdir' = `.'.
10556 # Shell code in configure.ac might set extrasub.
10557 # FIXME: do we really want to maintain this feature?
10558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10559 ac_sed_extra="$ac_vpsub
10560 $extrasub
10561 _ACEOF
10562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10563 :t
10564 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10565 s|@configure_input@|$ac_sed_conf_input|;t t
10566 s&@top_builddir@&$ac_top_builddir_sub&;t t
10567 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10568 s&@srcdir@&$ac_srcdir&;t t
10569 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10570 s&@top_srcdir@&$ac_top_srcdir&;t t
10571 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10572 s&@builddir@&$ac_builddir&;t t
10573 s&@abs_builddir@&$ac_abs_builddir&;t t
10574 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10575 s&@INSTALL@&$ac_INSTALL&;t t
10576 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10577 $ac_datarootdir_hack
10578 "
10579 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
10580 if $ac_cs_awk_getline; then
10581   $AWK -f "$tmp/subs.awk"
10582 else
10583   $AWK -f "$tmp/subs.awk" | $SHELL
10584 fi >$tmp/out \
10585   || as_fn_error "could not create $ac_file" "$LINENO" 5
10586
10587 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10588   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10589   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10590   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10591 which seems to be undefined.  Please make sure it is defined." >&5
10592 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10593 which seems to be undefined.  Please make sure it is defined." >&2;}
10594
10595   rm -f "$tmp/stdin"
10596   case $ac_file in
10597   -) cat "$tmp/out" && rm -f "$tmp/out";;
10598   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10599   esac \
10600   || as_fn_error "could not create $ac_file" "$LINENO" 5
10601  ;;
10602   :H)
10603   #
10604   # CONFIG_HEADER
10605   #
10606   if test x"$ac_file" != x-; then
10607     {
10608       $as_echo "/* $configure_input  */" \
10609       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10610     } >"$tmp/config.h" \
10611       || as_fn_error "could not create $ac_file" "$LINENO" 5
10612     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10613       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10614 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10615     else
10616       rm -f "$ac_file"
10617       mv "$tmp/config.h" "$ac_file" \
10618         || as_fn_error "could not create $ac_file" "$LINENO" 5
10619     fi
10620   else
10621     $as_echo "/* $configure_input  */" \
10622       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10623       || as_fn_error "could not create -" "$LINENO" 5
10624   fi
10625 # Compute "$ac_file"'s index in $config_headers.
10626 _am_arg="$ac_file"
10627 _am_stamp_count=1
10628 for _am_header in $config_headers :; do
10629   case $_am_header in
10630     $_am_arg | $_am_arg:* )
10631       break ;;
10632     * )
10633       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10634   esac
10635 done
10636 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10637 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10638          X"$_am_arg" : 'X\(//\)[^/]' \| \
10639          X"$_am_arg" : 'X\(//\)$' \| \
10640          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10641 $as_echo X"$_am_arg" |
10642     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10643             s//\1/
10644             q
10645           }
10646           /^X\(\/\/\)[^/].*/{
10647             s//\1/
10648             q
10649           }
10650           /^X\(\/\/\)$/{
10651             s//\1/
10652             q
10653           }
10654           /^X\(\/\).*/{
10655             s//\1/
10656             q
10657           }
10658           s/.*/./; q'`/stamp-h$_am_stamp_count
10659  ;;
10660
10661   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10662 $as_echo "$as_me: executing $ac_file commands" >&6;}
10663  ;;
10664   esac
10665
10666
10667   case $ac_file$ac_mode in
10668     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10669   # Autoconf 2.62 quotes --file arguments for eval, but not when files
10670   # are listed without --file.  Let's play safe and only enable the eval
10671   # if we detect the quoting.
10672   case $CONFIG_FILES in
10673   *\'*) eval set x "$CONFIG_FILES" ;;
10674   *)   set x $CONFIG_FILES ;;
10675   esac
10676   shift
10677   for mf
10678   do
10679     # Strip MF so we end up with the name of the file.
10680     mf=`echo "$mf" | sed -e 's/:.*$//'`
10681     # Check whether this is an Automake generated Makefile or not.
10682     # We used to match only the files named `Makefile.in', but
10683     # some people rename them; so instead we look at the file content.
10684     # Grep'ing the first line is not enough: some people post-process
10685     # each Makefile.in and add a new line on top of each file to say so.
10686     # Grep'ing the whole file is not good either: AIX grep has a line
10687     # limit of 2048, but all sed's we know have understand at least 4000.
10688     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10689       dirpart=`$as_dirname -- "$mf" ||
10690 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10691          X"$mf" : 'X\(//\)[^/]' \| \
10692          X"$mf" : 'X\(//\)$' \| \
10693          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10694 $as_echo X"$mf" |
10695     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10696             s//\1/
10697             q
10698           }
10699           /^X\(\/\/\)[^/].*/{
10700             s//\1/
10701             q
10702           }
10703           /^X\(\/\/\)$/{
10704             s//\1/
10705             q
10706           }
10707           /^X\(\/\).*/{
10708             s//\1/
10709             q
10710           }
10711           s/.*/./; q'`
10712     else
10713       continue
10714     fi
10715     # Extract the definition of DEPDIR, am__include, and am__quote
10716     # from the Makefile without running `make'.
10717     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10718     test -z "$DEPDIR" && continue
10719     am__include=`sed -n 's/^am__include = //p' < "$mf"`
10720     test -z "am__include" && continue
10721     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10722     # When using ansi2knr, U may be empty or an underscore; expand it
10723     U=`sed -n 's/^U = //p' < "$mf"`
10724     # Find all dependency output files, they are included files with
10725     # $(DEPDIR) in their names.  We invoke sed twice because it is the
10726     # simplest approach to changing $(DEPDIR) to its actual value in the
10727     # expansion.
10728     for file in `sed -n "
10729       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10730          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10731       # Make sure the directory exists.
10732       test -f "$dirpart/$file" && continue
10733       fdir=`$as_dirname -- "$file" ||
10734 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10735          X"$file" : 'X\(//\)[^/]' \| \
10736          X"$file" : 'X\(//\)$' \| \
10737          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10738 $as_echo X"$file" |
10739     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10740             s//\1/
10741             q
10742           }
10743           /^X\(\/\/\)[^/].*/{
10744             s//\1/
10745             q
10746           }
10747           /^X\(\/\/\)$/{
10748             s//\1/
10749             q
10750           }
10751           /^X\(\/\).*/{
10752             s//\1/
10753             q
10754           }
10755           s/.*/./; q'`
10756       as_dir=$dirpart/$fdir; as_fn_mkdir_p
10757       # echo "creating $dirpart/$file"
10758       echo '# dummy' > "$dirpart/$file"
10759     done
10760   done
10761 }
10762  ;;
10763     "default-1":C)
10764     for ac_file in $CONFIG_FILES; do
10765       # Support "outfile[:infile[:infile...]]"
10766       case "$ac_file" in
10767         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10768       esac
10769       # PO directories have a Makefile.in generated from Makefile.in.in.
10770       case "$ac_file" in */Makefile.in)
10771         # Adjust a relative srcdir.
10772         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10773         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10774         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10775         # In autoconf-2.13 it is called $ac_given_srcdir.
10776         # In autoconf-2.50 it is called $srcdir.
10777         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10778         case "$ac_given_srcdir" in
10779           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10780           /*) top_srcdir="$ac_given_srcdir" ;;
10781           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
10782         esac
10783         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10784           rm -f "$ac_dir/POTFILES"
10785           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10786           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10787           POMAKEFILEDEPS="POTFILES.in"
10788           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10789           # on $ac_dir but don't depend on user-specified configuration
10790           # parameters.
10791           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10792             # The LINGUAS file contains the set of available languages.
10793             if test -n "$OBSOLETE_ALL_LINGUAS"; then
10794               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10795             fi
10796             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10797             # Hide the ALL_LINGUAS assigment from automake.
10798             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10799             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10800           else
10801             # The set of available languages was given in configure.in.
10802             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10803           fi
10804           # Compute POFILES
10805           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10806           # Compute UPDATEPOFILES
10807           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10808           # Compute DUMMYPOFILES
10809           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10810           # Compute GMOFILES
10811           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10812           case "$ac_given_srcdir" in
10813             .) srcdirpre= ;;
10814             *) srcdirpre='$(srcdir)/' ;;
10815           esac
10816           POFILES=
10817           UPDATEPOFILES=
10818           DUMMYPOFILES=
10819           GMOFILES=
10820           for lang in $ALL_LINGUAS; do
10821             POFILES="$POFILES $srcdirpre$lang.po"
10822             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10823             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10824             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10825           done
10826           # CATALOGS depends on both $ac_dir and the user's LINGUAS
10827           # environment variable.
10828           INST_LINGUAS=
10829           if test -n "$ALL_LINGUAS"; then
10830             for presentlang in $ALL_LINGUAS; do
10831               useit=no
10832               if test "%UNSET%" != "$LINGUAS"; then
10833                 desiredlanguages="$LINGUAS"
10834               else
10835                 desiredlanguages="$ALL_LINGUAS"
10836               fi
10837               for desiredlang in $desiredlanguages; do
10838                 # Use the presentlang catalog if desiredlang is
10839                 #   a. equal to presentlang, or
10840                 #   b. a variant of presentlang (because in this case,
10841                 #      presentlang can be used as a fallback for messages
10842                 #      which are not translated in the desiredlang catalog).
10843                 case "$desiredlang" in
10844                   "$presentlang"*) useit=yes;;
10845                 esac
10846               done
10847               if test $useit = yes; then
10848                 INST_LINGUAS="$INST_LINGUAS $presentlang"
10849               fi
10850             done
10851           fi
10852           CATALOGS=
10853           if test -n "$INST_LINGUAS"; then
10854             for lang in $INST_LINGUAS; do
10855               CATALOGS="$CATALOGS $lang.gmo"
10856             done
10857           fi
10858           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10859           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10860           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10861             if test -f "$f"; then
10862               case "$f" in
10863                 *.orig | *.bak | *~) ;;
10864                 *) cat "$f" >> "$ac_dir/Makefile" ;;
10865               esac
10866             fi
10867           done
10868         fi
10869         ;;
10870       esac
10871     done ;;
10872
10873   esac
10874 done # for ac_tag
10875
10876
10877 as_fn_exit 0
10878 _ACEOF
10879 ac_clean_files=$ac_clean_files_save
10880
10881 test $ac_write_fail = 0 ||
10882   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10883
10884
10885 # configure is writing to config.log, and then calls config.status.
10886 # config.status does its own redirection, appending to config.log.
10887 # Unfortunately, on DOS this fails, as config.log is still kept open
10888 # by configure, so config.status won't be able to write to it; its
10889 # output is simply discarded.  So we exec the FD to /dev/null,
10890 # effectively closing config.log, so it can be properly (re)opened and
10891 # appended to by config.status.  When coming back to configure, we
10892 # need to make the FD available again.
10893 if test "$no_create" != yes; then
10894   ac_cs_success=:
10895   ac_config_status_args=
10896   test "$silent" = yes &&
10897     ac_config_status_args="$ac_config_status_args --quiet"
10898   exec 5>/dev/null
10899   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10900   exec 5>>config.log
10901   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10902   # would make configure fail if this is the last instruction.
10903   $ac_cs_success || as_fn_exit $?
10904 fi
10905 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10906   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10907 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10908 fi
10909
10910
10911 # We only generate the build.sh if we have a build.sh.in; we won't have
10912 # one before we've created a distribution.
10913 if test -f "$srcdir/build.sh.in"; then
10914   ./config.status --file build.sh
10915   chmod +x build.sh
10916 fi
10917