]> git.deb.at Git - pkg/abook.git/blob - configure
390c72f3b0757159a9b05ecf8e97b9b3fb4cb481
[pkg/abook.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176   if (eval "$as_required") 2>/dev/null; then :
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188   IFS=$as_save_IFS
189   test -z "$as_dir" && as_dir=.
190   as_found=:
191   case $as_dir in #(
192          /*)
193            for as_base in sh bash ksh sh5; do
194              # Try only shells that exist, to save several forks.
195              as_shell=$as_dir/$as_base
196              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198   CONFIG_SHELL=$as_shell as_have_required=yes
199                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   break 2
201 fi
202 fi
203            done;;
204        esac
205   as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209   CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214       if test "x$CONFIG_SHELL" != x; then :
215   # We cannot yet assume a decent shell, so we have to provide a
216         # neutralization value for shells without unset; and this also
217         # works around shells that cannot unset nonexistent variables.
218         # Preserve -v and -x to the replacement shell.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         case $- in # ((((
224           *v*x* | *x*v* ) as_opts=-vx ;;
225           *v* ) as_opts=-v ;;
226           *x* ) as_opts=-x ;;
227           * ) as_opts= ;;
228         esac
229         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230 fi
231
232     if test x$as_have_required = xno; then :
233   $as_echo "$0: This script requires a shell more modern than all"
234   $as_echo "$0: the shells that I found on your system."
235   if test x${ZSH_VERSION+set} = xset ; then
236     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238   else
239     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243   fi
244   exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262   { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271   return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279   set +e
280   as_fn_set_status $1
281   exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290   case $as_dir in #(
291   -*) as_dir=./$as_dir;;
292   esac
293   test -d "$as_dir" || eval $as_mkdir_p || {
294     as_dirs=
295     while :; do
296       case $as_dir in #(
297       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298       *) as_qdir=$as_dir;;
299       esac
300       as_dirs="'$as_qdir' $as_dirs"
301       as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303          X"$as_dir" : 'X\(//\)[^/]' \| \
304          X"$as_dir" : 'X\(//\)$' \| \
305          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)[^/].*/{
312             s//\1/
313             q
314           }
315           /^X\(\/\/\)$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\).*/{
320             s//\1/
321             q
322           }
323           s/.*/./; q'`
324       test -d "$as_dir" && break
325     done
326     test -z "$as_dirs" || eval "mkdir $as_dirs"
327   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338   eval 'as_fn_append ()
339   {
340     eval $1+=\$2
341   }'
342 else
343   as_fn_append ()
344   {
345     eval $1=\$$1\$2
346   }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355   eval 'as_fn_arith ()
356   {
357     as_val=$(( $* ))
358   }'
359 else
360   as_fn_arith ()
361   {
362     as_val=`expr "$@" || test $? -eq 1`
363   }
364 fi # as_fn_arith
365
366
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
373 {
374   as_status=$1; test $as_status -eq 0 && as_status=1
375   if test "$4"; then
376     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378   fi
379   $as_echo "$as_me: error: $2" >&2
380   as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384    test "X`expr 00001 : '.*\(...\)'`" = X001; then
385   as_expr=expr
386 else
387   as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391   as_basename=basename
392 else
393   as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397   as_dirname=dirname
398 else
399   as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404          X"$0" : 'X\(//\)$' \| \
405          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407     sed '/^.*\/\([^/][^/]*\)\/*$/{
408             s//\1/
409             q
410           }
411           /^X\/\(\/\/\)$/{
412             s//\1/
413             q
414           }
415           /^X\/\(\/\).*/{
416             s//\1/
417             q
418           }
419           s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429   as_lineno_1=$LINENO as_lineno_1a=$LINENO
430   as_lineno_2=$LINENO as_lineno_2a=$LINENO
431   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452   # Don't try to exec as it changes $[0], causing all sort of problems
453   # (the dirname of $[0] is not the place where we might find the
454   # original and so on.  Autoconf is especially sensitive to this).
455   . "./$as_me.lineno"
456   # Exit status is that of the last command.
457   exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463   case `echo 'xy\c'` in
464   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
465   xy)  ECHO_C='\c';;
466   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
467        ECHO_T=' ';;
468   esac;;
469 *)
470   ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475   rm -f conf$$.dir/conf$$.file
476 else
477   rm -f conf$$.dir
478   mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481   if ln -s conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s='ln -s'
483     # ... but there are two gotchas:
484     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486     # In both cases, we have to default to `cp -p'.
487     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488       as_ln_s='cp -p'
489   elif ln conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s=ln
491   else
492     as_ln_s='cp -p'
493   fi
494 else
495   as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501   as_mkdir_p='mkdir -p "$as_dir"'
502 else
503   test -d ./-p && rmdir ./-p
504   as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508   as_test_x='test -x'
509 else
510   if ls -dL / >/dev/null 2>&1; then
511     as_ls_L_option=L
512   else
513     as_ls_L_option=
514   fi
515   as_test_x='
516     eval sh -c '\''
517       if test -d "$1"; then
518         test -d "$1/.";
519       else
520         case $1 in #(
521         -*)set "./$1";;
522         esac;
523         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524         ???[sx]*):;;*)false;;esac;fi
525     '\'' sh
526   '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
539
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545 #
546 # Initializations.
547 #
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
556
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563 PACKAGE_URL=
564
565 ac_unique_file="abook.c"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 #  include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 #  include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
601
602 gt_needs=
603 ac_header_list=
604 gl_use_threads_default=
605 ac_subst_vars='am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 LIBOBJS
609 ENABLE_VFORMAT_SUPPORT_FALSE
610 ENABLE_VFORMAT_SUPPORT_TRUE
611 ANSI2KNR
612 U
613 USE_INCLUDED_INTL_H_FALSE
614 USE_INCLUDED_INTL_H_TRUE
615 POSUB
616 LTLIBINTL
617 LIBINTL
618 INTLLIBS
619 INTL_LIBTOOL_SUFFIX_PREFIX
620 INTLOBJS
621 GENCAT
622 INSTOBJEXT
623 DATADIRNAME
624 CATOBJEXT
625 USE_INCLUDED_LIBINTL
626 BUILD_INCLUDED_LIBINTL
627 LTLIBC
628 WINDRES
629 WOE32
630 WOE32DLL
631 HAVE_WPRINTF
632 HAVE_NEWLOCALE
633 HAVE_SNPRINTF
634 HAVE_ASPRINTF
635 HAVE_POSIX_PRINTF
636 INTL_DEFAULT_VERBOSITY
637 INTL_MACOSX_LIBS
638 GLIBC21
639 INTLBISON
640 LTLIBICONV
641 LIBICONV
642 LTLIBMULTITHREAD
643 LIBMULTITHREAD
644 LTLIBTHREAD
645 LIBTHREAD
646 LIBPTH_PREFIX
647 LTLIBPTH
648 LIBPTH
649 PRI_MACROS_BROKEN
650 ALLOCA
651 HAVE_VISIBILITY
652 CFLAG_VISIBILITY
653 RANLIB
654 GLIBC2
655 host_os
656 host_vendor
657 host_cpu
658 host
659 build_os
660 build_vendor
661 build_cpu
662 build
663 XGETTEXT_EXTRA_OPTIONS
664 MSGMERGE
665 XGETTEXT_015
666 XGETTEXT
667 GMSGFMT_015
668 MSGFMT_015
669 GMSGFMT
670 MSGFMT
671 GETTEXT_MACRO_VERSION
672 USE_NLS
673 EGREP
674 GREP
675 CPP
676 am__fastdepCC_FALSE
677 am__fastdepCC_TRUE
678 CCDEPMODE
679 am__nodep
680 AMDEPBACKSLASH
681 AMDEP_FALSE
682 AMDEP_TRUE
683 am__quote
684 am__include
685 DEPDIR
686 OBJEXT
687 EXEEXT
688 ac_ct_CC
689 CPPFLAGS
690 LDFLAGS
691 CFLAGS
692 CC
693 am__untar
694 am__tar
695 AMTAR
696 am__leading_dot
697 SET_MAKE
698 AWK
699 mkdir_p
700 MKDIR_P
701 INSTALL_STRIP_PROGRAM
702 STRIP
703 install_sh
704 MAKEINFO
705 AUTOHEADER
706 AUTOMAKE
707 AUTOCONF
708 ACLOCAL
709 VERSION
710 PACKAGE
711 CYGPATH_W
712 am__isrc
713 INSTALL_DATA
714 INSTALL_SCRIPT
715 INSTALL_PROGRAM
716 target_alias
717 host_alias
718 build_alias
719 LIBS
720 ECHO_T
721 ECHO_N
722 ECHO_C
723 DEFS
724 mandir
725 localedir
726 libdir
727 psdir
728 pdfdir
729 dvidir
730 htmldir
731 infodir
732 docdir
733 oldincludedir
734 includedir
735 localstatedir
736 sharedstatedir
737 sysconfdir
738 datadir
739 datarootdir
740 libexecdir
741 sbindir
742 bindir
743 program_transform_name
744 prefix
745 exec_prefix
746 PACKAGE_URL
747 PACKAGE_BUGREPORT
748 PACKAGE_STRING
749 PACKAGE_VERSION
750 PACKAGE_TARNAME
751 PACKAGE_NAME
752 PATH_SEPARATOR
753 SHELL'
754 ac_subst_files=''
755 ac_user_opts='
756 enable_option_checking
757 enable_dependency_tracking
758 enable_nls
759 enable_threads
760 with_gnu_ld
761 enable_rpath
762 with_libpth_prefix
763 with_libiconv_prefix
764 with_included_gettext
765 with_libintl_prefix
766 with_localedir
767 with_curses
768 with_readline
769 enable_vformat
770 enable_debug
771 '
772       ac_precious_vars='build_alias
773 host_alias
774 target_alias
775 CC
776 CFLAGS
777 LDFLAGS
778 LIBS
779 CPPFLAGS
780 CPP'
781
782
783 # Initialize some variables set by options.
784 ac_init_help=
785 ac_init_version=false
786 ac_unrecognized_opts=
787 ac_unrecognized_sep=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
804
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
830
831 ac_prev=
832 ac_dashdash=
833 for ac_option
834 do
835   # If the previous option needs an argument, assign it.
836   if test -n "$ac_prev"; then
837     eval $ac_prev=\$ac_option
838     ac_prev=
839     continue
840   fi
841
842   case $ac_option in
843   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844   *=)   ac_optarg= ;;
845   *)    ac_optarg=yes ;;
846   esac
847
848   # Accept the important Cygnus configure options, so we can diagnose typos.
849
850   case $ac_dashdash$ac_option in
851   --)
852     ac_dashdash=yes ;;
853
854   -bindir | --bindir | --bindi | --bind | --bin | --bi)
855     ac_prev=bindir ;;
856   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
857     bindir=$ac_optarg ;;
858
859   -build | --build | --buil | --bui | --bu)
860     ac_prev=build_alias ;;
861   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862     build_alias=$ac_optarg ;;
863
864   -cache-file | --cache-file | --cache-fil | --cache-fi \
865   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866     ac_prev=cache_file ;;
867   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869     cache_file=$ac_optarg ;;
870
871   --config-cache | -C)
872     cache_file=config.cache ;;
873
874   -datadir | --datadir | --datadi | --datad)
875     ac_prev=datadir ;;
876   -datadir=* | --datadir=* | --datadi=* | --datad=*)
877     datadir=$ac_optarg ;;
878
879   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880   | --dataroo | --dataro | --datar)
881     ac_prev=datarootdir ;;
882   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884     datarootdir=$ac_optarg ;;
885
886   -disable-* | --disable-*)
887     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888     # Reject names that are not valid shell variable names.
889     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890       as_fn_error $? "invalid feature name: $ac_useropt"
891     ac_useropt_orig=$ac_useropt
892     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893     case $ac_user_opts in
894       *"
895 "enable_$ac_useropt"
896 "*) ;;
897       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898          ac_unrecognized_sep=', ';;
899     esac
900     eval enable_$ac_useropt=no ;;
901
902   -docdir | --docdir | --docdi | --doc | --do)
903     ac_prev=docdir ;;
904   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905     docdir=$ac_optarg ;;
906
907   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908     ac_prev=dvidir ;;
909   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910     dvidir=$ac_optarg ;;
911
912   -enable-* | --enable-*)
913     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914     # Reject names that are not valid shell variable names.
915     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916       as_fn_error $? "invalid feature name: $ac_useropt"
917     ac_useropt_orig=$ac_useropt
918     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919     case $ac_user_opts in
920       *"
921 "enable_$ac_useropt"
922 "*) ;;
923       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924          ac_unrecognized_sep=', ';;
925     esac
926     eval enable_$ac_useropt=\$ac_optarg ;;
927
928   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930   | --exec | --exe | --ex)
931     ac_prev=exec_prefix ;;
932   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934   | --exec=* | --exe=* | --ex=*)
935     exec_prefix=$ac_optarg ;;
936
937   -gas | --gas | --ga | --g)
938     # Obsolete; use --with-gas.
939     with_gas=yes ;;
940
941   -help | --help | --hel | --he | -h)
942     ac_init_help=long ;;
943   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944     ac_init_help=recursive ;;
945   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946     ac_init_help=short ;;
947
948   -host | --host | --hos | --ho)
949     ac_prev=host_alias ;;
950   -host=* | --host=* | --hos=* | --ho=*)
951     host_alias=$ac_optarg ;;
952
953   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954     ac_prev=htmldir ;;
955   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956   | --ht=*)
957     htmldir=$ac_optarg ;;
958
959   -includedir | --includedir | --includedi | --included | --include \
960   | --includ | --inclu | --incl | --inc)
961     ac_prev=includedir ;;
962   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963   | --includ=* | --inclu=* | --incl=* | --inc=*)
964     includedir=$ac_optarg ;;
965
966   -infodir | --infodir | --infodi | --infod | --info | --inf)
967     ac_prev=infodir ;;
968   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969     infodir=$ac_optarg ;;
970
971   -libdir | --libdir | --libdi | --libd)
972     ac_prev=libdir ;;
973   -libdir=* | --libdir=* | --libdi=* | --libd=*)
974     libdir=$ac_optarg ;;
975
976   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977   | --libexe | --libex | --libe)
978     ac_prev=libexecdir ;;
979   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980   | --libexe=* | --libex=* | --libe=*)
981     libexecdir=$ac_optarg ;;
982
983   -localedir | --localedir | --localedi | --localed | --locale)
984     ac_prev=localedir ;;
985   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986     localedir=$ac_optarg ;;
987
988   -localstatedir | --localstatedir | --localstatedi | --localstated \
989   | --localstate | --localstat | --localsta | --localst | --locals)
990     ac_prev=localstatedir ;;
991   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993     localstatedir=$ac_optarg ;;
994
995   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996     ac_prev=mandir ;;
997   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998     mandir=$ac_optarg ;;
999
1000   -nfp | --nfp | --nf)
1001     # Obsolete; use --without-fp.
1002     with_fp=no ;;
1003
1004   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005   | --no-cr | --no-c | -n)
1006     no_create=yes ;;
1007
1008   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010     no_recursion=yes ;;
1011
1012   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014   | --oldin | --oldi | --old | --ol | --o)
1015     ac_prev=oldincludedir ;;
1016   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019     oldincludedir=$ac_optarg ;;
1020
1021   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022     ac_prev=prefix ;;
1023   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024     prefix=$ac_optarg ;;
1025
1026   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027   | --program-pre | --program-pr | --program-p)
1028     ac_prev=program_prefix ;;
1029   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031     program_prefix=$ac_optarg ;;
1032
1033   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034   | --program-suf | --program-su | --program-s)
1035     ac_prev=program_suffix ;;
1036   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038     program_suffix=$ac_optarg ;;
1039
1040   -program-transform-name | --program-transform-name \
1041   | --program-transform-nam | --program-transform-na \
1042   | --program-transform-n | --program-transform- \
1043   | --program-transform | --program-transfor \
1044   | --program-transfo | --program-transf \
1045   | --program-trans | --program-tran \
1046   | --progr-tra | --program-tr | --program-t)
1047     ac_prev=program_transform_name ;;
1048   -program-transform-name=* | --program-transform-name=* \
1049   | --program-transform-nam=* | --program-transform-na=* \
1050   | --program-transform-n=* | --program-transform-=* \
1051   | --program-transform=* | --program-transfor=* \
1052   | --program-transfo=* | --program-transf=* \
1053   | --program-trans=* | --program-tran=* \
1054   | --progr-tra=* | --program-tr=* | --program-t=*)
1055     program_transform_name=$ac_optarg ;;
1056
1057   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058     ac_prev=pdfdir ;;
1059   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060     pdfdir=$ac_optarg ;;
1061
1062   -psdir | --psdir | --psdi | --psd | --ps)
1063     ac_prev=psdir ;;
1064   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065     psdir=$ac_optarg ;;
1066
1067   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068   | -silent | --silent | --silen | --sile | --sil)
1069     silent=yes ;;
1070
1071   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072     ac_prev=sbindir ;;
1073   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074   | --sbi=* | --sb=*)
1075     sbindir=$ac_optarg ;;
1076
1077   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079   | --sharedst | --shareds | --shared | --share | --shar \
1080   | --sha | --sh)
1081     ac_prev=sharedstatedir ;;
1082   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085   | --sha=* | --sh=*)
1086     sharedstatedir=$ac_optarg ;;
1087
1088   -site | --site | --sit)
1089     ac_prev=site ;;
1090   -site=* | --site=* | --sit=*)
1091     site=$ac_optarg ;;
1092
1093   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094     ac_prev=srcdir ;;
1095   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096     srcdir=$ac_optarg ;;
1097
1098   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099   | --syscon | --sysco | --sysc | --sys | --sy)
1100     ac_prev=sysconfdir ;;
1101   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103     sysconfdir=$ac_optarg ;;
1104
1105   -target | --target | --targe | --targ | --tar | --ta | --t)
1106     ac_prev=target_alias ;;
1107   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108     target_alias=$ac_optarg ;;
1109
1110   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111     verbose=yes ;;
1112
1113   -version | --version | --versio | --versi | --vers | -V)
1114     ac_init_version=: ;;
1115
1116   -with-* | --with-*)
1117     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118     # Reject names that are not valid shell variable names.
1119     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120       as_fn_error $? "invalid package name: $ac_useropt"
1121     ac_useropt_orig=$ac_useropt
1122     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123     case $ac_user_opts in
1124       *"
1125 "with_$ac_useropt"
1126 "*) ;;
1127       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128          ac_unrecognized_sep=', ';;
1129     esac
1130     eval with_$ac_useropt=\$ac_optarg ;;
1131
1132   -without-* | --without-*)
1133     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134     # Reject names that are not valid shell variable names.
1135     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136       as_fn_error $? "invalid package name: $ac_useropt"
1137     ac_useropt_orig=$ac_useropt
1138     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139     case $ac_user_opts in
1140       *"
1141 "with_$ac_useropt"
1142 "*) ;;
1143       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144          ac_unrecognized_sep=', ';;
1145     esac
1146     eval with_$ac_useropt=no ;;
1147
1148   --x)
1149     # Obsolete; use --with-x.
1150     with_x=yes ;;
1151
1152   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153   | --x-incl | --x-inc | --x-in | --x-i)
1154     ac_prev=x_includes ;;
1155   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157     x_includes=$ac_optarg ;;
1158
1159   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161     ac_prev=x_libraries ;;
1162   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164     x_libraries=$ac_optarg ;;
1165
1166   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167 Try \`$0 --help' for more information"
1168     ;;
1169
1170   *=*)
1171     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172     # Reject names that are not valid shell variable names.
1173     case $ac_envvar in #(
1174       '' | [0-9]* | *[!_$as_cr_alnum]* )
1175       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176     esac
1177     eval $ac_envvar=\$ac_optarg
1178     export $ac_envvar ;;
1179
1180   *)
1181     # FIXME: should be removed in autoconf 3.0.
1182     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186     ;;
1187
1188   esac
1189 done
1190
1191 if test -n "$ac_prev"; then
1192   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193   as_fn_error $? "missing argument to $ac_option"
1194 fi
1195
1196 if test -n "$ac_unrecognized_opts"; then
1197   case $enable_option_checking in
1198     no) ;;
1199     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201   esac
1202 fi
1203
1204 # Check all directory arguments for consistency.
1205 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206                 datadir sysconfdir sharedstatedir localstatedir includedir \
1207                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208                 libdir localedir mandir
1209 do
1210   eval ac_val=\$$ac_var
1211   # Remove trailing slashes.
1212   case $ac_val in
1213     */ )
1214       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215       eval $ac_var=\$ac_val;;
1216   esac
1217   # Be sure to have absolute directory names.
1218   case $ac_val in
1219     [\\/$]* | ?:[\\/]* )  continue;;
1220     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221   esac
1222   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1223 done
1224
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1228 build=$build_alias
1229 host=$host_alias
1230 target=$target_alias
1231
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234   if test "x$build_alias" = x; then
1235     cross_compiling=maybe
1236     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1237     If a cross compiler is detected then cross compile mode will be used" >&2
1238   elif test "x$build_alias" != "x$host_alias"; then
1239     cross_compiling=yes
1240   fi
1241 fi
1242
1243 ac_tool_prefix=
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246 test "$silent" = yes && exec 6>/dev/null
1247
1248
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252   as_fn_error $? "working directory cannot be determined"
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254   as_fn_error $? "pwd does not report name of working directory"
1255
1256
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259   ac_srcdir_defaulted=yes
1260   # Try the directory containing this script, then the parent directory.
1261   ac_confdir=`$as_dirname -- "$as_myself" ||
1262 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263          X"$as_myself" : 'X\(//\)[^/]' \| \
1264          X"$as_myself" : 'X\(//\)$' \| \
1265          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266 $as_echo X"$as_myself" |
1267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\/\)[^/].*/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\/\)$/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\).*/{
1280             s//\1/
1281             q
1282           }
1283           s/.*/./; q'`
1284   srcdir=$ac_confdir
1285   if test ! -r "$srcdir/$ac_unique_file"; then
1286     srcdir=..
1287   fi
1288 else
1289   ac_srcdir_defaulted=no
1290 fi
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1294 fi
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 ac_abs_confdir=`(
1297         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1298         pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301   srcdir=.
1302 fi
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311   eval ac_env_${ac_var}_value=\$${ac_var}
1312   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1315
1316 #
1317 # Report the --help message.
1318 #
1319 if test "$ac_init_help" = "long"; then
1320   # Omit some internal or obsolete options to make the list less imposing.
1321   # This message is too long to be a string in the A/UX 3.1 sh.
1322   cat <<_ACEOF
1323 \`configure' configures this package to adapt to many kinds of systems.
1324
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1326
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE.  See below for descriptions of some of the useful variables.
1329
1330 Defaults for the options are specified in brackets.
1331
1332 Configuration:
1333   -h, --help              display this help and exit
1334       --help=short        display options specific to this package
1335       --help=recursive    display the short help of all the included packages
1336   -V, --version           display version information and exit
1337   -q, --quiet, --silent   do not print \`checking ...' messages
1338       --cache-file=FILE   cache test results in FILE [disabled]
1339   -C, --config-cache      alias for \`--cache-file=config.cache'
1340   -n, --no-create         do not create output files
1341       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1342
1343 Installation directories:
1344   --prefix=PREFIX         install architecture-independent files in PREFIX
1345                           [$ac_default_prefix]
1346   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1347                           [PREFIX]
1348
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1353
1354 For better control, use the options below.
1355
1356 Fine tuning of the installation directories:
1357   --bindir=DIR            user executables [EPREFIX/bin]
1358   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1359   --libexecdir=DIR        program executables [EPREFIX/libexec]
1360   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1361   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1362   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1363   --libdir=DIR            object code libraries [EPREFIX/lib]
1364   --includedir=DIR        C header files [PREFIX/include]
1365   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1366   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1367   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1368   --infodir=DIR           info documentation [DATAROOTDIR/info]
1369   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1370   --mandir=DIR            man documentation [DATAROOTDIR/man]
1371   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1372   --htmldir=DIR           html documentation [DOCDIR]
1373   --dvidir=DIR            dvi documentation [DOCDIR]
1374   --pdfdir=DIR            pdf documentation [DOCDIR]
1375   --psdir=DIR             ps documentation [DOCDIR]
1376 _ACEOF
1377
1378   cat <<\_ACEOF
1379
1380 Program names:
1381   --program-prefix=PREFIX            prepend PREFIX to installed program names
1382   --program-suffix=SUFFIX            append SUFFIX to installed program names
1383   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1384
1385 System types:
1386   --build=BUILD     configure for building on BUILD [guessed]
1387   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1388 _ACEOF
1389 fi
1390
1391 if test -n "$ac_init_help"; then
1392
1393   cat <<\_ACEOF
1394
1395 Optional Features:
1396   --disable-option-checking  ignore unrecognized --enable/--with options
1397   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1398   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1399   --disable-dependency-tracking  speeds up one-time build
1400   --enable-dependency-tracking   do not reject slow dependency extractors
1401   --disable-nls           do not use Native Language Support
1402   --enable-threads={posix|solaris|pth|win32}
1403                           specify multithreading API
1404   --disable-threads       build without multithread safety
1405   --disable-rpath         do not hardcode runtime library paths
1406   --enable-vformat          Use libvformat is available
1407   --enable-debug          Enable debugging support
1408
1409 Optional Packages:
1410   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1411   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1412   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1413   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1414   --without-libpth-prefix     don't search for libpth in includedir and libdir
1415   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1416   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1417   --with-included-gettext use the GNU gettext library included here
1418   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1419   --without-libintl-prefix     don't search for libintl in includedir and libdir
1420   --with-localedir=PATH      Where the locale files are installed
1421   --with-curses=DIR       Where ncurses is installed
1422   --with-readline=DIR     Where readline is installed
1423
1424 Some influential environment variables:
1425   CC          C compiler command
1426   CFLAGS      C compiler flags
1427   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1428               nonstandard directory <lib dir>
1429   LIBS        libraries to pass to the linker, e.g. -l<library>
1430   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1431               you have headers in a nonstandard directory <include dir>
1432   CPP         C preprocessor
1433
1434 Use these variables to override the choices made by `configure' or to help
1435 it to find libraries and programs with nonstandard names/locations.
1436
1437 Report bugs to the package provider.
1438 _ACEOF
1439 ac_status=$?
1440 fi
1441
1442 if test "$ac_init_help" = "recursive"; then
1443   # If there are subdirs, report their specific --help.
1444   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1445     test -d "$ac_dir" ||
1446       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1447       continue
1448     ac_builddir=.
1449
1450 case "$ac_dir" in
1451 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 *)
1453   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1454   # A ".." for each directory in $ac_dir_suffix.
1455   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1456   case $ac_top_builddir_sub in
1457   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459   esac ;;
1460 esac
1461 ac_abs_top_builddir=$ac_pwd
1462 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1463 # for backward compatibility:
1464 ac_top_builddir=$ac_top_build_prefix
1465
1466 case $srcdir in
1467   .)  # We are building in place.
1468     ac_srcdir=.
1469     ac_top_srcdir=$ac_top_builddir_sub
1470     ac_abs_top_srcdir=$ac_pwd ;;
1471   [\\/]* | ?:[\\/]* )  # Absolute name.
1472     ac_srcdir=$srcdir$ac_dir_suffix;
1473     ac_top_srcdir=$srcdir
1474     ac_abs_top_srcdir=$srcdir ;;
1475   *) # Relative name.
1476     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1477     ac_top_srcdir=$ac_top_build_prefix$srcdir
1478     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1479 esac
1480 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1481
1482     cd "$ac_dir" || { ac_status=$?; continue; }
1483     # Check for guested configure.
1484     if test -f "$ac_srcdir/configure.gnu"; then
1485       echo &&
1486       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1487     elif test -f "$ac_srcdir/configure"; then
1488       echo &&
1489       $SHELL "$ac_srcdir/configure" --help=recursive
1490     else
1491       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1492     fi || ac_status=$?
1493     cd "$ac_pwd" || { ac_status=$?; break; }
1494   done
1495 fi
1496
1497 test -n "$ac_init_help" && exit $ac_status
1498 if $ac_init_version; then
1499   cat <<\_ACEOF
1500 configure
1501 generated by GNU Autoconf 2.68
1502
1503 Copyright (C) 2010 Free Software Foundation, Inc.
1504 This configure script is free software; the Free Software Foundation
1505 gives unlimited permission to copy, distribute and modify it.
1506 _ACEOF
1507   exit
1508 fi
1509
1510 ## ------------------------ ##
1511 ## Autoconf initialization. ##
1512 ## ------------------------ ##
1513
1514 # ac_fn_c_try_compile LINENO
1515 # --------------------------
1516 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1517 ac_fn_c_try_compile ()
1518 {
1519   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1520   rm -f conftest.$ac_objext
1521   if { { ac_try="$ac_compile"
1522 case "(($ac_try" in
1523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524   *) ac_try_echo=$ac_try;;
1525 esac
1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527 $as_echo "$ac_try_echo"; } >&5
1528   (eval "$ac_compile") 2>conftest.err
1529   ac_status=$?
1530   if test -s conftest.err; then
1531     grep -v '^ *+' conftest.err >conftest.er1
1532     cat conftest.er1 >&5
1533     mv -f conftest.er1 conftest.err
1534   fi
1535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536   test $ac_status = 0; } && {
1537          test -z "$ac_c_werror_flag" ||
1538          test ! -s conftest.err
1539        } && test -s conftest.$ac_objext; then :
1540   ac_retval=0
1541 else
1542   $as_echo "$as_me: failed program was:" >&5
1543 sed 's/^/| /' conftest.$ac_ext >&5
1544
1545         ac_retval=1
1546 fi
1547   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548   as_fn_set_status $ac_retval
1549
1550 } # ac_fn_c_try_compile
1551
1552 # ac_fn_c_try_cpp LINENO
1553 # ----------------------
1554 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_cpp ()
1556 {
1557   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558   if { { ac_try="$ac_cpp conftest.$ac_ext"
1559 case "(($ac_try" in
1560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561   *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1566   ac_status=$?
1567   if test -s conftest.err; then
1568     grep -v '^ *+' conftest.err >conftest.er1
1569     cat conftest.er1 >&5
1570     mv -f conftest.er1 conftest.err
1571   fi
1572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573   test $ac_status = 0; } > conftest.i && {
1574          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1575          test ! -s conftest.err
1576        }; then :
1577   ac_retval=0
1578 else
1579   $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1581
1582     ac_retval=1
1583 fi
1584   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585   as_fn_set_status $ac_retval
1586
1587 } # ac_fn_c_try_cpp
1588
1589 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1590 # -------------------------------------------------------
1591 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1592 # the include files in INCLUDES and setting the cache variable VAR
1593 # accordingly.
1594 ac_fn_c_check_header_mongrel ()
1595 {
1596   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597   if eval \${$3+:} false; then :
1598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1599 $as_echo_n "checking for $2... " >&6; }
1600 if eval \${$3+:} false; then :
1601   $as_echo_n "(cached) " >&6
1602 fi
1603 eval ac_res=\$$3
1604                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1605 $as_echo "$ac_res" >&6; }
1606 else
1607   # Is the header compilable?
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1609 $as_echo_n "checking $2 usability... " >&6; }
1610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h.  */
1612 $4
1613 #include <$2>
1614 _ACEOF
1615 if ac_fn_c_try_compile "$LINENO"; then :
1616   ac_header_compiler=yes
1617 else
1618   ac_header_compiler=no
1619 fi
1620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1622 $as_echo "$ac_header_compiler" >&6; }
1623
1624 # Is the header present?
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1626 $as_echo_n "checking $2 presence... " >&6; }
1627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628 /* end confdefs.h.  */
1629 #include <$2>
1630 _ACEOF
1631 if ac_fn_c_try_cpp "$LINENO"; then :
1632   ac_header_preproc=yes
1633 else
1634   ac_header_preproc=no
1635 fi
1636 rm -f conftest.err conftest.i conftest.$ac_ext
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1638 $as_echo "$ac_header_preproc" >&6; }
1639
1640 # So?  What about this header?
1641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1642   yes:no: )
1643     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1644 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1645     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1646 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1647     ;;
1648   no:yes:* )
1649     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1650 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1651     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1652 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1653     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1654 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1655     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1656 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1657     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1658 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1659     ;;
1660 esac
1661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if eval \${$3+:} false; then :
1664   $as_echo_n "(cached) " >&6
1665 else
1666   eval "$3=\$ac_header_compiler"
1667 fi
1668 eval ac_res=\$$3
1669                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670 $as_echo "$ac_res" >&6; }
1671 fi
1672   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673
1674 } # ac_fn_c_check_header_mongrel
1675
1676 # ac_fn_c_try_run LINENO
1677 # ----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1679 # that executables *can* be run.
1680 ac_fn_c_try_run ()
1681 {
1682   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683   if { { ac_try="$ac_link"
1684 case "(($ac_try" in
1685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686   *) ac_try_echo=$ac_try;;
1687 esac
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690   (eval "$ac_link") 2>&5
1691   ac_status=$?
1692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1694   { { case "(($ac_try" in
1695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696   *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700   (eval "$ac_try") 2>&5
1701   ac_status=$?
1702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703   test $ac_status = 0; }; }; then :
1704   ac_retval=0
1705 else
1706   $as_echo "$as_me: program exited with status $ac_status" >&5
1707        $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710        ac_retval=$ac_status
1711 fi
1712   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714   as_fn_set_status $ac_retval
1715
1716 } # ac_fn_c_try_run
1717
1718 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1719 # -------------------------------------------------------
1720 # Tests whether HEADER exists and can be compiled using the include files in
1721 # INCLUDES, setting the cache variable VAR accordingly.
1722 ac_fn_c_check_header_compile ()
1723 {
1724   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 $as_echo_n "checking for $2... " >&6; }
1727 if eval \${$3+:} false; then :
1728   $as_echo_n "(cached) " >&6
1729 else
1730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h.  */
1732 $4
1733 #include <$2>
1734 _ACEOF
1735 if ac_fn_c_try_compile "$LINENO"; then :
1736   eval "$3=yes"
1737 else
1738   eval "$3=no"
1739 fi
1740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1741 fi
1742 eval ac_res=\$$3
1743                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744 $as_echo "$ac_res" >&6; }
1745   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746
1747 } # ac_fn_c_check_header_compile
1748
1749 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1750 # -------------------------------------------
1751 # Tests whether TYPE exists after having included INCLUDES, setting cache
1752 # variable VAR accordingly.
1753 ac_fn_c_check_type ()
1754 {
1755   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759   $as_echo_n "(cached) " >&6
1760 else
1761   eval "$3=no"
1762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h.  */
1764 $4
1765 int
1766 main ()
1767 {
1768 if (sizeof ($2))
1769          return 0;
1770   ;
1771   return 0;
1772 }
1773 _ACEOF
1774 if ac_fn_c_try_compile "$LINENO"; then :
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
1789 else
1790   eval "$3=yes"
1791 fi
1792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793 fi
1794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 fi
1796 eval ac_res=\$$3
1797                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800
1801 } # ac_fn_c_check_type
1802
1803 # ac_fn_c_try_link LINENO
1804 # -----------------------
1805 # Try to link conftest.$ac_ext, and return whether this succeeded.
1806 ac_fn_c_try_link ()
1807 {
1808   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809   rm -f conftest.$ac_objext conftest$ac_exeext
1810   if { { ac_try="$ac_link"
1811 case "(($ac_try" in
1812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813   *) ac_try_echo=$ac_try;;
1814 esac
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817   (eval "$ac_link") 2>conftest.err
1818   ac_status=$?
1819   if test -s conftest.err; then
1820     grep -v '^ *+' conftest.err >conftest.er1
1821     cat conftest.er1 >&5
1822     mv -f conftest.er1 conftest.err
1823   fi
1824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825   test $ac_status = 0; } && {
1826          test -z "$ac_c_werror_flag" ||
1827          test ! -s conftest.err
1828        } && test -s conftest$ac_exeext && {
1829          test "$cross_compiling" = yes ||
1830          $as_test_x conftest$ac_exeext
1831        }; then :
1832   ac_retval=0
1833 else
1834   $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1836
1837         ac_retval=1
1838 fi
1839   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1840   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1841   # interfere with the next link command; also delete a directory that is
1842   # left behind by Apple's compiler.  We do this before executing the actions.
1843   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1844   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845   as_fn_set_status $ac_retval
1846
1847 } # ac_fn_c_try_link
1848
1849 # ac_fn_c_check_func LINENO FUNC VAR
1850 # ----------------------------------
1851 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1852 ac_fn_c_check_func ()
1853 {
1854   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856 $as_echo_n "checking for $2... " >&6; }
1857 if eval \${$3+:} false; then :
1858   $as_echo_n "(cached) " >&6
1859 else
1860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h.  */
1862 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1864 #define $2 innocuous_$2
1865
1866 /* System header to define __stub macros and hopefully few prototypes,
1867     which can conflict with char $2 (); below.
1868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1869     <limits.h> exists even on freestanding compilers.  */
1870
1871 #ifdef __STDC__
1872 # include <limits.h>
1873 #else
1874 # include <assert.h>
1875 #endif
1876
1877 #undef $2
1878
1879 /* Override any GCC internal prototype to avoid an error.
1880    Use char because int might match the return type of a GCC
1881    builtin and then its argument prototype would still apply.  */
1882 #ifdef __cplusplus
1883 extern "C"
1884 #endif
1885 char $2 ();
1886 /* The GNU C library defines this for functions which it implements
1887     to always fail with ENOSYS.  Some functions are actually named
1888     something starting with __ and the normal name is an alias.  */
1889 #if defined __stub_$2 || defined __stub___$2
1890 choke me
1891 #endif
1892
1893 int
1894 main ()
1895 {
1896 return $2 ();
1897   ;
1898   return 0;
1899 }
1900 _ACEOF
1901 if ac_fn_c_try_link "$LINENO"; then :
1902   eval "$3=yes"
1903 else
1904   eval "$3=no"
1905 fi
1906 rm -f core conftest.err conftest.$ac_objext \
1907     conftest$ac_exeext conftest.$ac_ext
1908 fi
1909 eval ac_res=\$$3
1910                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913
1914 } # ac_fn_c_check_func
1915
1916 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1917 # --------------------------------------------
1918 # Tries to find the compile-time value of EXPR in a program that includes
1919 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1920 # computed
1921 ac_fn_c_compute_int ()
1922 {
1923   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924   if test "$cross_compiling" = yes; then
1925     # Depending upon the size, compute the lo and hi bounds.
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h.  */
1928 $4
1929 int
1930 main ()
1931 {
1932 static int test_array [1 - 2 * !(($2) >= 0)];
1933 test_array [0] = 0
1934
1935   ;
1936   return 0;
1937 }
1938 _ACEOF
1939 if ac_fn_c_try_compile "$LINENO"; then :
1940   ac_lo=0 ac_mid=0
1941   while :; do
1942     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h.  */
1944 $4
1945 int
1946 main ()
1947 {
1948 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1949 test_array [0] = 0
1950
1951   ;
1952   return 0;
1953 }
1954 _ACEOF
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956   ac_hi=$ac_mid; break
1957 else
1958   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1959                         if test $ac_lo -le $ac_mid; then
1960                           ac_lo= ac_hi=
1961                           break
1962                         fi
1963                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1964 fi
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966   done
1967 else
1968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h.  */
1970 $4
1971 int
1972 main ()
1973 {
1974 static int test_array [1 - 2 * !(($2) < 0)];
1975 test_array [0] = 0
1976
1977   ;
1978   return 0;
1979 }
1980 _ACEOF
1981 if ac_fn_c_try_compile "$LINENO"; then :
1982   ac_hi=-1 ac_mid=-1
1983   while :; do
1984     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h.  */
1986 $4
1987 int
1988 main ()
1989 {
1990 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1991 test_array [0] = 0
1992
1993   ;
1994   return 0;
1995 }
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998   ac_lo=$ac_mid; break
1999 else
2000   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2001                         if test $ac_mid -le $ac_hi; then
2002                           ac_lo= ac_hi=
2003                           break
2004                         fi
2005                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008   done
2009 else
2010   ac_lo= ac_hi=
2011 fi
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013 fi
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 # Binary search between lo and hi bounds.
2016 while test "x$ac_lo" != "x$ac_hi"; do
2017   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h.  */
2020 $4
2021 int
2022 main ()
2023 {
2024 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2025 test_array [0] = 0
2026
2027   ;
2028   return 0;
2029 }
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032   ac_hi=$ac_mid
2033 else
2034   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2035 fi
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 done
2038 case $ac_lo in #((
2039 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2040 '') ac_retval=1 ;;
2041 esac
2042   else
2043     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h.  */
2045 $4
2046 static long int longval () { return $2; }
2047 static unsigned long int ulongval () { return $2; }
2048 #include <stdio.h>
2049 #include <stdlib.h>
2050 int
2051 main ()
2052 {
2053
2054   FILE *f = fopen ("conftest.val", "w");
2055   if (! f)
2056     return 1;
2057   if (($2) < 0)
2058     {
2059       long int i = longval ();
2060       if (i != ($2))
2061         return 1;
2062       fprintf (f, "%ld", i);
2063     }
2064   else
2065     {
2066       unsigned long int i = ulongval ();
2067       if (i != ($2))
2068         return 1;
2069       fprintf (f, "%lu", i);
2070     }
2071   /* Do not output a trailing newline, as this causes \r\n confusion
2072      on some platforms.  */
2073   return ferror (f) || fclose (f) != 0;
2074
2075   ;
2076   return 0;
2077 }
2078 _ACEOF
2079 if ac_fn_c_try_run "$LINENO"; then :
2080   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2081 else
2082   ac_retval=1
2083 fi
2084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2085   conftest.$ac_objext conftest.beam conftest.$ac_ext
2086 rm -f conftest.val
2087
2088   fi
2089   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090   as_fn_set_status $ac_retval
2091
2092 } # ac_fn_c_compute_int
2093
2094 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2095 # ---------------------------------------------
2096 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2097 # accordingly.
2098 ac_fn_c_check_decl ()
2099 {
2100   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101   as_decl_name=`echo $2|sed 's/ *(.*//'`
2102   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2104 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2105 if eval \${$3+:} false; then :
2106   $as_echo_n "(cached) " >&6
2107 else
2108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h.  */
2110 $4
2111 int
2112 main ()
2113 {
2114 #ifndef $as_decl_name
2115 #ifdef __cplusplus
2116   (void) $as_decl_use;
2117 #else
2118   (void) $as_decl_name;
2119 #endif
2120 #endif
2121
2122   ;
2123   return 0;
2124 }
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127   eval "$3=yes"
2128 else
2129   eval "$3=no"
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 fi
2133 eval ac_res=\$$3
2134                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2136   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137
2138 } # ac_fn_c_check_decl
2139 cat >config.log <<_ACEOF
2140 This file contains any messages produced by compilers while
2141 running configure, to aid debugging if configure makes a mistake.
2142
2143 It was created by $as_me, which was
2144 generated by GNU Autoconf 2.68.  Invocation command line was
2145
2146   $ $0 $@
2147
2148 _ACEOF
2149 exec 5>>config.log
2150 {
2151 cat <<_ASUNAME
2152 ## --------- ##
2153 ## Platform. ##
2154 ## --------- ##
2155
2156 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2157 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2158 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2159 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2160 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2161
2162 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2163 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2164
2165 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2166 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2167 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2168 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2169 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2170 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2171 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2172
2173 _ASUNAME
2174
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2177 do
2178   IFS=$as_save_IFS
2179   test -z "$as_dir" && as_dir=.
2180     $as_echo "PATH: $as_dir"
2181   done
2182 IFS=$as_save_IFS
2183
2184 } >&5
2185
2186 cat >&5 <<_ACEOF
2187
2188
2189 ## ----------- ##
2190 ## Core tests. ##
2191 ## ----------- ##
2192
2193 _ACEOF
2194
2195
2196 # Keep a trace of the command line.
2197 # Strip out --no-create and --no-recursion so they do not pile up.
2198 # Strip out --silent because we don't want to record it for future runs.
2199 # Also quote any args containing shell meta-characters.
2200 # Make two passes to allow for proper duplicate-argument suppression.
2201 ac_configure_args=
2202 ac_configure_args0=
2203 ac_configure_args1=
2204 ac_must_keep_next=false
2205 for ac_pass in 1 2
2206 do
2207   for ac_arg
2208   do
2209     case $ac_arg in
2210     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2211     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2212     | -silent | --silent | --silen | --sile | --sil)
2213       continue ;;
2214     *\'*)
2215       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2216     esac
2217     case $ac_pass in
2218     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2219     2)
2220       as_fn_append ac_configure_args1 " '$ac_arg'"
2221       if test $ac_must_keep_next = true; then
2222         ac_must_keep_next=false # Got value, back to normal.
2223       else
2224         case $ac_arg in
2225           *=* | --config-cache | -C | -disable-* | --disable-* \
2226           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2227           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2228           | -with-* | --with-* | -without-* | --without-* | --x)
2229             case "$ac_configure_args0 " in
2230               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2231             esac
2232             ;;
2233           -* ) ac_must_keep_next=true ;;
2234         esac
2235       fi
2236       as_fn_append ac_configure_args " '$ac_arg'"
2237       ;;
2238     esac
2239   done
2240 done
2241 { ac_configure_args0=; unset ac_configure_args0;}
2242 { ac_configure_args1=; unset ac_configure_args1;}
2243
2244 # When interrupted or exit'd, cleanup temporary files, and complete
2245 # config.log.  We remove comments because anyway the quotes in there
2246 # would cause problems or look ugly.
2247 # WARNING: Use '\'' to represent an apostrophe within the trap.
2248 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2249 trap 'exit_status=$?
2250   # Save into config.log some information that might help in debugging.
2251   {
2252     echo
2253
2254     $as_echo "## ---------------- ##
2255 ## Cache variables. ##
2256 ## ---------------- ##"
2257     echo
2258     # The following way of writing the cache mishandles newlines in values,
2259 (
2260   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2261     eval ac_val=\$$ac_var
2262     case $ac_val in #(
2263     *${as_nl}*)
2264       case $ac_var in #(
2265       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2266 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2267       esac
2268       case $ac_var in #(
2269       _ | IFS | as_nl) ;; #(
2270       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2271       *) { eval $ac_var=; unset $ac_var;} ;;
2272       esac ;;
2273     esac
2274   done
2275   (set) 2>&1 |
2276     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2277     *${as_nl}ac_space=\ *)
2278       sed -n \
2279         "s/'\''/'\''\\\\'\'''\''/g;
2280           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2281       ;; #(
2282     *)
2283       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2284       ;;
2285     esac |
2286     sort
2287 )
2288     echo
2289
2290     $as_echo "## ----------------- ##
2291 ## Output variables. ##
2292 ## ----------------- ##"
2293     echo
2294     for ac_var in $ac_subst_vars
2295     do
2296       eval ac_val=\$$ac_var
2297       case $ac_val in
2298       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2299       esac
2300       $as_echo "$ac_var='\''$ac_val'\''"
2301     done | sort
2302     echo
2303
2304     if test -n "$ac_subst_files"; then
2305       $as_echo "## ------------------- ##
2306 ## File substitutions. ##
2307 ## ------------------- ##"
2308       echo
2309       for ac_var in $ac_subst_files
2310       do
2311         eval ac_val=\$$ac_var
2312         case $ac_val in
2313         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2314         esac
2315         $as_echo "$ac_var='\''$ac_val'\''"
2316       done | sort
2317       echo
2318     fi
2319
2320     if test -s confdefs.h; then
2321       $as_echo "## ----------- ##
2322 ## confdefs.h. ##
2323 ## ----------- ##"
2324       echo
2325       cat confdefs.h
2326       echo
2327     fi
2328     test "$ac_signal" != 0 &&
2329       $as_echo "$as_me: caught signal $ac_signal"
2330     $as_echo "$as_me: exit $exit_status"
2331   } >&5
2332   rm -f core *.core core.conftest.* &&
2333     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2334     exit $exit_status
2335 ' 0
2336 for ac_signal in 1 2 13 15; do
2337   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2338 done
2339 ac_signal=0
2340
2341 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2342 rm -f -r conftest* confdefs.h
2343
2344 $as_echo "/* confdefs.h */" > confdefs.h
2345
2346 # Predefined preprocessor variables.
2347
2348 cat >>confdefs.h <<_ACEOF
2349 #define PACKAGE_NAME "$PACKAGE_NAME"
2350 _ACEOF
2351
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2354 _ACEOF
2355
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2358 _ACEOF
2359
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_STRING "$PACKAGE_STRING"
2362 _ACEOF
2363
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2366 _ACEOF
2367
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE_URL "$PACKAGE_URL"
2370 _ACEOF
2371
2372
2373 # Let the site file select an alternate cache file if it wants to.
2374 # Prefer an explicitly selected file to automatically selected ones.
2375 ac_site_file1=NONE
2376 ac_site_file2=NONE
2377 if test -n "$CONFIG_SITE"; then
2378   # We do not want a PATH search for config.site.
2379   case $CONFIG_SITE in #((
2380     -*)  ac_site_file1=./$CONFIG_SITE;;
2381     */*) ac_site_file1=$CONFIG_SITE;;
2382     *)   ac_site_file1=./$CONFIG_SITE;;
2383   esac
2384 elif test "x$prefix" != xNONE; then
2385   ac_site_file1=$prefix/share/config.site
2386   ac_site_file2=$prefix/etc/config.site
2387 else
2388   ac_site_file1=$ac_default_prefix/share/config.site
2389   ac_site_file2=$ac_default_prefix/etc/config.site
2390 fi
2391 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2392 do
2393   test "x$ac_site_file" = xNONE && continue
2394   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2395     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2396 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2397     sed 's/^/| /' "$ac_site_file" >&5
2398     . "$ac_site_file" \
2399       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2401 as_fn_error $? "failed to load site script $ac_site_file
2402 See \`config.log' for more details" "$LINENO" 5; }
2403   fi
2404 done
2405
2406 if test -r "$cache_file"; then
2407   # Some versions of bash will fail to source /dev/null (special files
2408   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2409   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2410     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2411 $as_echo "$as_me: loading cache $cache_file" >&6;}
2412     case $cache_file in
2413       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2414       *)                      . "./$cache_file";;
2415     esac
2416   fi
2417 else
2418   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2419 $as_echo "$as_me: creating cache $cache_file" >&6;}
2420   >$cache_file
2421 fi
2422
2423 gt_needs="$gt_needs "
2424 as_fn_append ac_header_list " stdlib.h"
2425 as_fn_append ac_header_list " unistd.h"
2426 as_fn_append ac_header_list " sys/param.h"
2427 # Check that the precious variables saved in the cache have kept the same
2428 # value.
2429 ac_cache_corrupted=false
2430 for ac_var in $ac_precious_vars; do
2431   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2432   eval ac_new_set=\$ac_env_${ac_var}_set
2433   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2434   eval ac_new_val=\$ac_env_${ac_var}_value
2435   case $ac_old_set,$ac_new_set in
2436     set,)
2437       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2438 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2439       ac_cache_corrupted=: ;;
2440     ,set)
2441       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2442 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2443       ac_cache_corrupted=: ;;
2444     ,);;
2445     *)
2446       if test "x$ac_old_val" != "x$ac_new_val"; then
2447         # differences in whitespace do not lead to failure.
2448         ac_old_val_w=`echo x $ac_old_val`
2449         ac_new_val_w=`echo x $ac_new_val`
2450         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2451           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2452 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2453           ac_cache_corrupted=:
2454         else
2455           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2456 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2457           eval $ac_var=\$ac_old_val
2458         fi
2459         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2460 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2461         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2462 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2463       fi;;
2464   esac
2465   # Pass precious variables to config.status.
2466   if test "$ac_new_set" = set; then
2467     case $ac_new_val in
2468     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2469     *) ac_arg=$ac_var=$ac_new_val ;;
2470     esac
2471     case " $ac_configure_args " in
2472       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2473       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2474     esac
2475   fi
2476 done
2477 if $ac_cache_corrupted; then
2478   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2480   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2481 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2482   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2483 fi
2484 ## -------------------- ##
2485 ## Main body of script. ##
2486 ## -------------------- ##
2487
2488 ac_ext=c
2489 ac_cpp='$CPP $CPPFLAGS'
2490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2493
2494
2495 am__api_version='1.11'
2496
2497 ac_aux_dir=
2498 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2499   if test -f "$ac_dir/install-sh"; then
2500     ac_aux_dir=$ac_dir
2501     ac_install_sh="$ac_aux_dir/install-sh -c"
2502     break
2503   elif test -f "$ac_dir/install.sh"; then
2504     ac_aux_dir=$ac_dir
2505     ac_install_sh="$ac_aux_dir/install.sh -c"
2506     break
2507   elif test -f "$ac_dir/shtool"; then
2508     ac_aux_dir=$ac_dir
2509     ac_install_sh="$ac_aux_dir/shtool install -c"
2510     break
2511   fi
2512 done
2513 if test -z "$ac_aux_dir"; then
2514   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2515 fi
2516
2517 # These three variables are undocumented and unsupported,
2518 # and are intended to be withdrawn in a future Autoconf release.
2519 # They can cause serious problems if a builder's source tree is in a directory
2520 # whose full name contains unusual characters.
2521 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2522 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2523 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2524
2525
2526 # Find a good install program.  We prefer a C program (faster),
2527 # so one script is as good as another.  But avoid the broken or
2528 # incompatible versions:
2529 # SysV /etc/install, /usr/sbin/install
2530 # SunOS /usr/etc/install
2531 # IRIX /sbin/install
2532 # AIX /bin/install
2533 # AmigaOS /C/install, which installs bootblocks on floppy discs
2534 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2535 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2536 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2537 # OS/2's system install, which has a completely different semantic
2538 # ./install, which can be erroneously created by make from ./install.sh.
2539 # Reject install programs that cannot install multiple files.
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2541 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2542 if test -z "$INSTALL"; then
2543 if ${ac_cv_path_install+:} false; then :
2544   $as_echo_n "(cached) " >&6
2545 else
2546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2548 do
2549   IFS=$as_save_IFS
2550   test -z "$as_dir" && as_dir=.
2551     # Account for people who put trailing slashes in PATH elements.
2552 case $as_dir/ in #((
2553   ./ | .// | /[cC]/* | \
2554   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2555   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2556   /usr/ucb/* ) ;;
2557   *)
2558     # OSF1 and SCO ODT 3.0 have their own names for install.
2559     # Don't use installbsd from OSF since it installs stuff as root
2560     # by default.
2561     for ac_prog in ginstall scoinst install; do
2562       for ac_exec_ext in '' $ac_executable_extensions; do
2563         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2564           if test $ac_prog = install &&
2565             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2566             # AIX install.  It has an incompatible calling convention.
2567             :
2568           elif test $ac_prog = install &&
2569             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2570             # program-specific install script used by HP pwplus--don't use.
2571             :
2572           else
2573             rm -rf conftest.one conftest.two conftest.dir
2574             echo one > conftest.one
2575             echo two > conftest.two
2576             mkdir conftest.dir
2577             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2578               test -s conftest.one && test -s conftest.two &&
2579               test -s conftest.dir/conftest.one &&
2580               test -s conftest.dir/conftest.two
2581             then
2582               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2583               break 3
2584             fi
2585           fi
2586         fi
2587       done
2588     done
2589     ;;
2590 esac
2591
2592   done
2593 IFS=$as_save_IFS
2594
2595 rm -rf conftest.one conftest.two conftest.dir
2596
2597 fi
2598   if test "${ac_cv_path_install+set}" = set; then
2599     INSTALL=$ac_cv_path_install
2600   else
2601     # As a last resort, use the slow shell script.  Don't cache a
2602     # value for INSTALL within a source directory, because that will
2603     # break other packages using the cache if that directory is
2604     # removed, or if the value is a relative name.
2605     INSTALL=$ac_install_sh
2606   fi
2607 fi
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2609 $as_echo "$INSTALL" >&6; }
2610
2611 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2612 # It thinks the first close brace ends the variable substitution.
2613 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2614
2615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2616
2617 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2618
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2620 $as_echo_n "checking whether build environment is sane... " >&6; }
2621 # Just in case
2622 sleep 1
2623 echo timestamp > conftest.file
2624 # Reject unsafe characters in $srcdir or the absolute working directory
2625 # name.  Accept space and tab only in the latter.
2626 am_lf='
2627 '
2628 case `pwd` in
2629   *[\\\"\#\$\&\'\`$am_lf]*)
2630     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2631 esac
2632 case $srcdir in
2633   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2634     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2635 esac
2636
2637 # Do `set' in a subshell so we don't clobber the current shell's
2638 # arguments.  Must try -L first in case configure is actually a
2639 # symlink; some systems play weird games with the mod time of symlinks
2640 # (eg FreeBSD returns the mod time of the symlink's containing
2641 # directory).
2642 if (
2643    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2644    if test "$*" = "X"; then
2645       # -L didn't work.
2646       set X `ls -t "$srcdir/configure" conftest.file`
2647    fi
2648    rm -f conftest.file
2649    if test "$*" != "X $srcdir/configure conftest.file" \
2650       && test "$*" != "X conftest.file $srcdir/configure"; then
2651
2652       # If neither matched, then we have a broken ls.  This can happen
2653       # if, for instance, CONFIG_SHELL is bash and it inherits a
2654       # broken ls alias from the environment.  This has actually
2655       # happened.  Such a system could not be considered "sane".
2656       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2657 alias in your environment" "$LINENO" 5
2658    fi
2659
2660    test "$2" = conftest.file
2661    )
2662 then
2663    # Ok.
2664    :
2665 else
2666    as_fn_error $? "newly created file is older than distributed files!
2667 Check your system clock" "$LINENO" 5
2668 fi
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2670 $as_echo "yes" >&6; }
2671 test "$program_prefix" != NONE &&
2672   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2673 # Use a double $ so make ignores it.
2674 test "$program_suffix" != NONE &&
2675   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2676 # Double any \ or $.
2677 # By default was `s,x,x', remove it if useless.
2678 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2679 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2680
2681 # expand $ac_aux_dir to an absolute path
2682 am_aux_dir=`cd $ac_aux_dir && pwd`
2683
2684 if test x"${MISSING+set}" != xset; then
2685   case $am_aux_dir in
2686   *\ * | *\     *)
2687     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2688   *)
2689     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2690   esac
2691 fi
2692 # Use eval to expand $SHELL
2693 if eval "$MISSING --run true"; then
2694   am_missing_run="$MISSING --run "
2695 else
2696   am_missing_run=
2697   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2698 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2699 fi
2700
2701 if test x"${install_sh}" != xset; then
2702   case $am_aux_dir in
2703   *\ * | *\     *)
2704     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2705   *)
2706     install_sh="\${SHELL} $am_aux_dir/install-sh"
2707   esac
2708 fi
2709
2710 # Installed binaries are usually stripped using `strip' when the user
2711 # run `make install-strip'.  However `strip' might not be the right
2712 # tool to use in cross-compilation environments, therefore Automake
2713 # will honor the `STRIP' environment variable to overrule this program.
2714 if test "$cross_compiling" != no; then
2715   if test -n "$ac_tool_prefix"; then
2716   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2717 set dummy ${ac_tool_prefix}strip; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_STRIP+:} false; then :
2721   $as_echo_n "(cached) " >&6
2722 else
2723   if test -n "$STRIP"; then
2724   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729   IFS=$as_save_IFS
2730   test -z "$as_dir" && as_dir=.
2731     for ac_exec_ext in '' $ac_executable_extensions; do
2732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735     break 2
2736   fi
2737 done
2738   done
2739 IFS=$as_save_IFS
2740
2741 fi
2742 fi
2743 STRIP=$ac_cv_prog_STRIP
2744 if test -n "$STRIP"; then
2745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2746 $as_echo "$STRIP" >&6; }
2747 else
2748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2750 fi
2751
2752
2753 fi
2754 if test -z "$ac_cv_prog_STRIP"; then
2755   ac_ct_STRIP=$STRIP
2756   # Extract the first word of "strip", so it can be a program name with args.
2757 set dummy strip; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2761   $as_echo_n "(cached) " >&6
2762 else
2763   if test -n "$ac_ct_STRIP"; then
2764   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2765 else
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 for as_dir in $PATH
2768 do
2769   IFS=$as_save_IFS
2770   test -z "$as_dir" && as_dir=.
2771     for ac_exec_ext in '' $ac_executable_extensions; do
2772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773     ac_cv_prog_ac_ct_STRIP="strip"
2774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775     break 2
2776   fi
2777 done
2778   done
2779 IFS=$as_save_IFS
2780
2781 fi
2782 fi
2783 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2784 if test -n "$ac_ct_STRIP"; then
2785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2786 $as_echo "$ac_ct_STRIP" >&6; }
2787 else
2788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2790 fi
2791
2792   if test "x$ac_ct_STRIP" = x; then
2793     STRIP=":"
2794   else
2795     case $cross_compiling:$ac_tool_warned in
2796 yes:)
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2799 ac_tool_warned=yes ;;
2800 esac
2801     STRIP=$ac_ct_STRIP
2802   fi
2803 else
2804   STRIP="$ac_cv_prog_STRIP"
2805 fi
2806
2807 fi
2808 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2809
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2811 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2812 if test -z "$MKDIR_P"; then
2813   if ${ac_cv_path_mkdir+:} false; then :
2814   $as_echo_n "(cached) " >&6
2815 else
2816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2818 do
2819   IFS=$as_save_IFS
2820   test -z "$as_dir" && as_dir=.
2821     for ac_prog in mkdir gmkdir; do
2822          for ac_exec_ext in '' $ac_executable_extensions; do
2823            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2824            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2825              'mkdir (GNU coreutils) '* | \
2826              'mkdir (coreutils) '* | \
2827              'mkdir (fileutils) '4.1*)
2828                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2829                break 3;;
2830            esac
2831          done
2832        done
2833   done
2834 IFS=$as_save_IFS
2835
2836 fi
2837
2838   test -d ./--version && rmdir ./--version
2839   if test "${ac_cv_path_mkdir+set}" = set; then
2840     MKDIR_P="$ac_cv_path_mkdir -p"
2841   else
2842     # As a last resort, use the slow shell script.  Don't cache a
2843     # value for MKDIR_P within a source directory, because that will
2844     # break other packages using the cache if that directory is
2845     # removed, or if the value is a relative name.
2846     MKDIR_P="$ac_install_sh -d"
2847   fi
2848 fi
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2850 $as_echo "$MKDIR_P" >&6; }
2851
2852 mkdir_p="$MKDIR_P"
2853 case $mkdir_p in
2854   [\\/$]* | ?:[\\/]*) ;;
2855   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2856 esac
2857
2858 for ac_prog in gawk mawk nawk awk
2859 do
2860   # Extract the first word of "$ac_prog", so it can be a program name with args.
2861 set dummy $ac_prog; ac_word=$2
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2863 $as_echo_n "checking for $ac_word... " >&6; }
2864 if ${ac_cv_prog_AWK+:} false; then :
2865   $as_echo_n "(cached) " >&6
2866 else
2867   if test -n "$AWK"; then
2868   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2872 do
2873   IFS=$as_save_IFS
2874   test -z "$as_dir" && as_dir=.
2875     for ac_exec_ext in '' $ac_executable_extensions; do
2876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2877     ac_cv_prog_AWK="$ac_prog"
2878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879     break 2
2880   fi
2881 done
2882   done
2883 IFS=$as_save_IFS
2884
2885 fi
2886 fi
2887 AWK=$ac_cv_prog_AWK
2888 if test -n "$AWK"; then
2889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2890 $as_echo "$AWK" >&6; }
2891 else
2892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893 $as_echo "no" >&6; }
2894 fi
2895
2896
2897   test -n "$AWK" && break
2898 done
2899
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2901 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2902 set x ${MAKE-make}
2903 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2904 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2905   $as_echo_n "(cached) " >&6
2906 else
2907   cat >conftest.make <<\_ACEOF
2908 SHELL = /bin/sh
2909 all:
2910         @echo '@@@%%%=$(MAKE)=@@@%%%'
2911 _ACEOF
2912 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2913 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2914   *@@@%%%=?*=@@@%%%*)
2915     eval ac_cv_prog_make_${ac_make}_set=yes;;
2916   *)
2917     eval ac_cv_prog_make_${ac_make}_set=no;;
2918 esac
2919 rm -f conftest.make
2920 fi
2921 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2923 $as_echo "yes" >&6; }
2924   SET_MAKE=
2925 else
2926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2928   SET_MAKE="MAKE=${MAKE-make}"
2929 fi
2930
2931 rm -rf .tst 2>/dev/null
2932 mkdir .tst 2>/dev/null
2933 if test -d .tst; then
2934   am__leading_dot=.
2935 else
2936   am__leading_dot=_
2937 fi
2938 rmdir .tst 2>/dev/null
2939
2940 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2941   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2942   # is not polluted with repeated "-I."
2943   am__isrc=' -I$(srcdir)'
2944   # test to see if srcdir already configured
2945   if test -f $srcdir/config.status; then
2946     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2947   fi
2948 fi
2949
2950 # test whether we have cygpath
2951 if test -z "$CYGPATH_W"; then
2952   if (cygpath --version) >/dev/null 2>/dev/null; then
2953     CYGPATH_W='cygpath -w'
2954   else
2955     CYGPATH_W=echo
2956   fi
2957 fi
2958
2959
2960 # Define the identity of the package.
2961  PACKAGE=abook
2962  VERSION=0.6.0pre2
2963
2964
2965 cat >>confdefs.h <<_ACEOF
2966 #define PACKAGE "$PACKAGE"
2967 _ACEOF
2968
2969
2970 cat >>confdefs.h <<_ACEOF
2971 #define VERSION "$VERSION"
2972 _ACEOF
2973
2974 # Some tools Automake needs.
2975
2976 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2977
2978
2979 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2980
2981
2982 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2983
2984
2985 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2986
2987
2988 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2989
2990 # We need awk for the "check" target.  The system "awk" is bad on
2991 # some platforms.
2992 # Always define AMTAR for backward compatibility.  Yes, it's still used
2993 # in the wild :-(  We should find a proper way to deprecate it ...
2994 AMTAR='$${TAR-tar}'
2995
2996 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2997
2998
2999
3000
3001
3002 ac_config_headers="$ac_config_headers config.h"
3003
3004
3005
3006 DEPDIR="${am__leading_dot}deps"
3007
3008 ac_config_commands="$ac_config_commands depfiles"
3009
3010
3011 am_make=${MAKE-make}
3012 cat > confinc << 'END'
3013 am__doit:
3014         @echo this is the am__doit target
3015 .PHONY: am__doit
3016 END
3017 # If we don't find an include directive, just comment out the code.
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3019 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3020 am__include="#"
3021 am__quote=
3022 _am_result=none
3023 # First try GNU make style include.
3024 echo "include confinc" > confmf
3025 # Ignore all kinds of additional output from `make'.
3026 case `$am_make -s -f confmf 2> /dev/null` in #(
3027 *the\ am__doit\ target*)
3028   am__include=include
3029   am__quote=
3030   _am_result=GNU
3031   ;;
3032 esac
3033 # Now try BSD make style include.
3034 if test "$am__include" = "#"; then
3035    echo '.include "confinc"' > confmf
3036    case `$am_make -s -f confmf 2> /dev/null` in #(
3037    *the\ am__doit\ target*)
3038      am__include=.include
3039      am__quote="\""
3040      _am_result=BSD
3041      ;;
3042    esac
3043 fi
3044
3045
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3047 $as_echo "$_am_result" >&6; }
3048 rm -f confinc confmf
3049
3050 # Check whether --enable-dependency-tracking was given.
3051 if test "${enable_dependency_tracking+set}" = set; then :
3052   enableval=$enable_dependency_tracking;
3053 fi
3054
3055 if test "x$enable_dependency_tracking" != xno; then
3056   am_depcomp="$ac_aux_dir/depcomp"
3057   AMDEPBACKSLASH='\'
3058   am__nodep='_no'
3059 fi
3060  if test "x$enable_dependency_tracking" != xno; then
3061   AMDEP_TRUE=
3062   AMDEP_FALSE='#'
3063 else
3064   AMDEP_TRUE='#'
3065   AMDEP_FALSE=
3066 fi
3067
3068
3069 ac_ext=c
3070 ac_cpp='$CPP $CPPFLAGS'
3071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3074 if test -n "$ac_tool_prefix"; then
3075   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3076 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_CC+:} false; then :
3080   $as_echo_n "(cached) " >&6
3081 else
3082   if test -n "$CC"; then
3083   ac_cv_prog_CC="$CC" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088   IFS=$as_save_IFS
3089   test -z "$as_dir" && as_dir=.
3090     for ac_exec_ext in '' $ac_executable_extensions; do
3091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094     break 2
3095   fi
3096 done
3097   done
3098 IFS=$as_save_IFS
3099
3100 fi
3101 fi
3102 CC=$ac_cv_prog_CC
3103 if test -n "$CC"; then
3104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105 $as_echo "$CC" >&6; }
3106 else
3107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111
3112 fi
3113 if test -z "$ac_cv_prog_CC"; then
3114   ac_ct_CC=$CC
3115   # Extract the first word of "gcc", so it can be a program name with args.
3116 set dummy gcc; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3120   $as_echo_n "(cached) " >&6
3121 else
3122   if test -n "$ac_ct_CC"; then
3123   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3124 else
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3127 do
3128   IFS=$as_save_IFS
3129   test -z "$as_dir" && as_dir=.
3130     for ac_exec_ext in '' $ac_executable_extensions; do
3131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3132     ac_cv_prog_ac_ct_CC="gcc"
3133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134     break 2
3135   fi
3136 done
3137   done
3138 IFS=$as_save_IFS
3139
3140 fi
3141 fi
3142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3143 if test -n "$ac_ct_CC"; then
3144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3145 $as_echo "$ac_ct_CC" >&6; }
3146 else
3147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3149 fi
3150
3151   if test "x$ac_ct_CC" = x; then
3152     CC=""
3153   else
3154     case $cross_compiling:$ac_tool_warned in
3155 yes:)
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3158 ac_tool_warned=yes ;;
3159 esac
3160     CC=$ac_ct_CC
3161   fi
3162 else
3163   CC="$ac_cv_prog_CC"
3164 fi
3165
3166 if test -z "$CC"; then
3167           if test -n "$ac_tool_prefix"; then
3168     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3169 set dummy ${ac_tool_prefix}cc; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if ${ac_cv_prog_CC+:} false; then :
3173   $as_echo_n "(cached) " >&6
3174 else
3175   if test -n "$CC"; then
3176   ac_cv_prog_CC="$CC" # Let the user override the test.
3177 else
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 for as_dir in $PATH
3180 do
3181   IFS=$as_save_IFS
3182   test -z "$as_dir" && as_dir=.
3183     for ac_exec_ext in '' $ac_executable_extensions; do
3184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185     ac_cv_prog_CC="${ac_tool_prefix}cc"
3186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187     break 2
3188   fi
3189 done
3190   done
3191 IFS=$as_save_IFS
3192
3193 fi
3194 fi
3195 CC=$ac_cv_prog_CC
3196 if test -n "$CC"; then
3197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3198 $as_echo "$CC" >&6; }
3199 else
3200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3202 fi
3203
3204
3205   fi
3206 fi
3207 if test -z "$CC"; then
3208   # Extract the first word of "cc", so it can be a program name with args.
3209 set dummy cc; ac_word=$2
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if ${ac_cv_prog_CC+:} false; then :
3213   $as_echo_n "(cached) " >&6
3214 else
3215   if test -n "$CC"; then
3216   ac_cv_prog_CC="$CC" # Let the user override the test.
3217 else
3218   ac_prog_rejected=no
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3221 do
3222   IFS=$as_save_IFS
3223   test -z "$as_dir" && as_dir=.
3224     for ac_exec_ext in '' $ac_executable_extensions; do
3225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3226     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3227        ac_prog_rejected=yes
3228        continue
3229      fi
3230     ac_cv_prog_CC="cc"
3231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232     break 2
3233   fi
3234 done
3235   done
3236 IFS=$as_save_IFS
3237
3238 if test $ac_prog_rejected = yes; then
3239   # We found a bogon in the path, so make sure we never use it.
3240   set dummy $ac_cv_prog_CC
3241   shift
3242   if test $# != 0; then
3243     # We chose a different compiler from the bogus one.
3244     # However, it has the same basename, so the bogon will be chosen
3245     # first if we set CC to just the basename; use the full file name.
3246     shift
3247     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3248   fi
3249 fi
3250 fi
3251 fi
3252 CC=$ac_cv_prog_CC
3253 if test -n "$CC"; then
3254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3255 $as_echo "$CC" >&6; }
3256 else
3257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3259 fi
3260
3261
3262 fi
3263 if test -z "$CC"; then
3264   if test -n "$ac_tool_prefix"; then
3265   for ac_prog in cl.exe
3266   do
3267     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270 $as_echo_n "checking for $ac_word... " >&6; }
3271 if ${ac_cv_prog_CC+:} false; then :
3272   $as_echo_n "(cached) " >&6
3273 else
3274   if test -n "$CC"; then
3275   ac_cv_prog_CC="$CC" # Let the user override the test.
3276 else
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 for as_dir in $PATH
3279 do
3280   IFS=$as_save_IFS
3281   test -z "$as_dir" && as_dir=.
3282     for ac_exec_ext in '' $ac_executable_extensions; do
3283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3284     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286     break 2
3287   fi
3288 done
3289   done
3290 IFS=$as_save_IFS
3291
3292 fi
3293 fi
3294 CC=$ac_cv_prog_CC
3295 if test -n "$CC"; then
3296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3297 $as_echo "$CC" >&6; }
3298 else
3299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3301 fi
3302
3303
3304     test -n "$CC" && break
3305   done
3306 fi
3307 if test -z "$CC"; then
3308   ac_ct_CC=$CC
3309   for ac_prog in cl.exe
3310 do
3311   # Extract the first word of "$ac_prog", so it can be a program name with args.
3312 set dummy $ac_prog; ac_word=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3316   $as_echo_n "(cached) " >&6
3317 else
3318   if test -n "$ac_ct_CC"; then
3319   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324   IFS=$as_save_IFS
3325   test -z "$as_dir" && as_dir=.
3326     for ac_exec_ext in '' $ac_executable_extensions; do
3327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3328     ac_cv_prog_ac_ct_CC="$ac_prog"
3329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330     break 2
3331   fi
3332 done
3333   done
3334 IFS=$as_save_IFS
3335
3336 fi
3337 fi
3338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3339 if test -n "$ac_ct_CC"; then
3340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3341 $as_echo "$ac_ct_CC" >&6; }
3342 else
3343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3345 fi
3346
3347
3348   test -n "$ac_ct_CC" && break
3349 done
3350
3351   if test "x$ac_ct_CC" = x; then
3352     CC=""
3353   else
3354     case $cross_compiling:$ac_tool_warned in
3355 yes:)
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3358 ac_tool_warned=yes ;;
3359 esac
3360     CC=$ac_ct_CC
3361   fi
3362 fi
3363
3364 fi
3365
3366
3367 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 as_fn_error $? "no acceptable C compiler found in \$PATH
3370 See \`config.log' for more details" "$LINENO" 5; }
3371
3372 # Provide some information about the compiler.
3373 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3374 set X $ac_compile
3375 ac_compiler=$2
3376 for ac_option in --version -v -V -qversion; do
3377   { { ac_try="$ac_compiler $ac_option >&5"
3378 case "(($ac_try" in
3379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380   *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383 $as_echo "$ac_try_echo"; } >&5
3384   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3385   ac_status=$?
3386   if test -s conftest.err; then
3387     sed '10a\
3388 ... rest of stderr output deleted ...
3389          10q' conftest.err >conftest.er1
3390     cat conftest.er1 >&5
3391   fi
3392   rm -f conftest.er1 conftest.err
3393   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394   test $ac_status = 0; }
3395 done
3396
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h.  */
3399
3400 int
3401 main ()
3402 {
3403
3404   ;
3405   return 0;
3406 }
3407 _ACEOF
3408 ac_clean_files_save=$ac_clean_files
3409 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3410 # Try to create an executable without -o first, disregard a.out.
3411 # It will help us diagnose broken compilers, and finding out an intuition
3412 # of exeext.
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3414 $as_echo_n "checking whether the C compiler works... " >&6; }
3415 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3416
3417 # The possible output files:
3418 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3419
3420 ac_rmfiles=
3421 for ac_file in $ac_files
3422 do
3423   case $ac_file in
3424     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3425     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3426   esac
3427 done
3428 rm -f $ac_rmfiles
3429
3430 if { { ac_try="$ac_link_default"
3431 case "(($ac_try" in
3432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433   *) ac_try_echo=$ac_try;;
3434 esac
3435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436 $as_echo "$ac_try_echo"; } >&5
3437   (eval "$ac_link_default") 2>&5
3438   ac_status=$?
3439   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440   test $ac_status = 0; }; then :
3441   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3442 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3443 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3444 # so that the user can short-circuit this test for compilers unknown to
3445 # Autoconf.
3446 for ac_file in $ac_files ''
3447 do
3448   test -f "$ac_file" || continue
3449   case $ac_file in
3450     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3451         ;;
3452     [ab].out )
3453         # We found the default executable, but exeext='' is most
3454         # certainly right.
3455         break;;
3456     *.* )
3457         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3458         then :; else
3459            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3460         fi
3461         # We set ac_cv_exeext here because the later test for it is not
3462         # safe: cross compilers may not add the suffix if given an `-o'
3463         # argument, so we may need to know it at that point already.
3464         # Even if this section looks crufty: it has the advantage of
3465         # actually working.
3466         break;;
3467     * )
3468         break;;
3469   esac
3470 done
3471 test "$ac_cv_exeext" = no && ac_cv_exeext=
3472
3473 else
3474   ac_file=''
3475 fi
3476 if test -z "$ac_file"; then :
3477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3479 $as_echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3481
3482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error 77 "C compiler cannot create executables
3485 See \`config.log' for more details" "$LINENO" 5; }
3486 else
3487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3488 $as_echo "yes" >&6; }
3489 fi
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3491 $as_echo_n "checking for C compiler default output file name... " >&6; }
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3493 $as_echo "$ac_file" >&6; }
3494 ac_exeext=$ac_cv_exeext
3495
3496 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3497 ac_clean_files=$ac_clean_files_save
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3499 $as_echo_n "checking for suffix of executables... " >&6; }
3500 if { { ac_try="$ac_link"
3501 case "(($ac_try" in
3502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503   *) ac_try_echo=$ac_try;;
3504 esac
3505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506 $as_echo "$ac_try_echo"; } >&5
3507   (eval "$ac_link") 2>&5
3508   ac_status=$?
3509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510   test $ac_status = 0; }; then :
3511   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3512 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3513 # work properly (i.e., refer to `conftest.exe'), while it won't with
3514 # `rm'.
3515 for ac_file in conftest.exe conftest conftest.*; do
3516   test -f "$ac_file" || continue
3517   case $ac_file in
3518     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3519     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3520           break;;
3521     * ) break;;
3522   esac
3523 done
3524 else
3525   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3528 See \`config.log' for more details" "$LINENO" 5; }
3529 fi
3530 rm -f conftest conftest$ac_cv_exeext
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3532 $as_echo "$ac_cv_exeext" >&6; }
3533
3534 rm -f conftest.$ac_ext
3535 EXEEXT=$ac_cv_exeext
3536 ac_exeext=$EXEEXT
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h.  */
3539 #include <stdio.h>
3540 int
3541 main ()
3542 {
3543 FILE *f = fopen ("conftest.out", "w");
3544  return ferror (f) || fclose (f) != 0;
3545
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 ac_clean_files="$ac_clean_files conftest.out"
3551 # Check that the compiler produces executables we can run.  If not, either
3552 # the compiler is broken, or we cross compile.
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3554 $as_echo_n "checking whether we are cross compiling... " >&6; }
3555 if test "$cross_compiling" != yes; then
3556   { { ac_try="$ac_link"
3557 case "(($ac_try" in
3558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559   *) ac_try_echo=$ac_try;;
3560 esac
3561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562 $as_echo "$ac_try_echo"; } >&5
3563   (eval "$ac_link") 2>&5
3564   ac_status=$?
3565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566   test $ac_status = 0; }
3567   if { ac_try='./conftest$ac_cv_exeext'
3568   { { case "(($ac_try" in
3569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570   *) ac_try_echo=$ac_try;;
3571 esac
3572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573 $as_echo "$ac_try_echo"; } >&5
3574   (eval "$ac_try") 2>&5
3575   ac_status=$?
3576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577   test $ac_status = 0; }; }; then
3578     cross_compiling=no
3579   else
3580     if test "$cross_compiling" = maybe; then
3581         cross_compiling=yes
3582     else
3583         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585 as_fn_error $? "cannot run C compiled programs.
3586 If you meant to cross compile, use \`--host'.
3587 See \`config.log' for more details" "$LINENO" 5; }
3588     fi
3589   fi
3590 fi
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3592 $as_echo "$cross_compiling" >&6; }
3593
3594 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3595 ac_clean_files=$ac_clean_files_save
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3597 $as_echo_n "checking for suffix of object files... " >&6; }
3598 if ${ac_cv_objext+:} false; then :
3599   $as_echo_n "(cached) " >&6
3600 else
3601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h.  */
3603
3604 int
3605 main ()
3606 {
3607
3608   ;
3609   return 0;
3610 }
3611 _ACEOF
3612 rm -f conftest.o conftest.obj
3613 if { { ac_try="$ac_compile"
3614 case "(($ac_try" in
3615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616   *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620   (eval "$ac_compile") 2>&5
3621   ac_status=$?
3622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623   test $ac_status = 0; }; then :
3624   for ac_file in conftest.o conftest.obj conftest.*; do
3625   test -f "$ac_file" || continue;
3626   case $ac_file in
3627     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3628     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3629        break;;
3630   esac
3631 done
3632 else
3633   $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3635
3636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error $? "cannot compute suffix of object files: cannot compile
3639 See \`config.log' for more details" "$LINENO" 5; }
3640 fi
3641 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3642 fi
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3644 $as_echo "$ac_cv_objext" >&6; }
3645 OBJEXT=$ac_cv_objext
3646 ac_objext=$OBJEXT
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3648 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3649 if ${ac_cv_c_compiler_gnu+:} false; then :
3650   $as_echo_n "(cached) " >&6
3651 else
3652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h.  */
3654
3655 int
3656 main ()
3657 {
3658 #ifndef __GNUC__
3659        choke me
3660 #endif
3661
3662   ;
3663   return 0;
3664 }
3665 _ACEOF
3666 if ac_fn_c_try_compile "$LINENO"; then :
3667   ac_compiler_gnu=yes
3668 else
3669   ac_compiler_gnu=no
3670 fi
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3673
3674 fi
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3676 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3677 if test $ac_compiler_gnu = yes; then
3678   GCC=yes
3679 else
3680   GCC=
3681 fi
3682 ac_test_CFLAGS=${CFLAGS+set}
3683 ac_save_CFLAGS=$CFLAGS
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3685 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3686 if ${ac_cv_prog_cc_g+:} false; then :
3687   $as_echo_n "(cached) " >&6
3688 else
3689   ac_save_c_werror_flag=$ac_c_werror_flag
3690    ac_c_werror_flag=yes
3691    ac_cv_prog_cc_g=no
3692    CFLAGS="-g"
3693    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h.  */
3695
3696 int
3697 main ()
3698 {
3699
3700   ;
3701   return 0;
3702 }
3703 _ACEOF
3704 if ac_fn_c_try_compile "$LINENO"; then :
3705   ac_cv_prog_cc_g=yes
3706 else
3707   CFLAGS=""
3708       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h.  */
3710
3711 int
3712 main ()
3713 {
3714
3715   ;
3716   return 0;
3717 }
3718 _ACEOF
3719 if ac_fn_c_try_compile "$LINENO"; then :
3720
3721 else
3722   ac_c_werror_flag=$ac_save_c_werror_flag
3723          CFLAGS="-g"
3724          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h.  */
3726
3727 int
3728 main ()
3729 {
3730
3731   ;
3732   return 0;
3733 }
3734 _ACEOF
3735 if ac_fn_c_try_compile "$LINENO"; then :
3736   ac_cv_prog_cc_g=yes
3737 fi
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 fi
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741 fi
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743    ac_c_werror_flag=$ac_save_c_werror_flag
3744 fi
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3746 $as_echo "$ac_cv_prog_cc_g" >&6; }
3747 if test "$ac_test_CFLAGS" = set; then
3748   CFLAGS=$ac_save_CFLAGS
3749 elif test $ac_cv_prog_cc_g = yes; then
3750   if test "$GCC" = yes; then
3751     CFLAGS="-g -O2"
3752   else
3753     CFLAGS="-g"
3754   fi
3755 else
3756   if test "$GCC" = yes; then
3757     CFLAGS="-O2"
3758   else
3759     CFLAGS=
3760   fi
3761 fi
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3763 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3764 if ${ac_cv_prog_cc_c89+:} false; then :
3765   $as_echo_n "(cached) " >&6
3766 else
3767   ac_cv_prog_cc_c89=no
3768 ac_save_CC=$CC
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h.  */
3771 #include <stdarg.h>
3772 #include <stdio.h>
3773 #include <sys/types.h>
3774 #include <sys/stat.h>
3775 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3776 struct buf { int x; };
3777 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3778 static char *e (p, i)
3779      char **p;
3780      int i;
3781 {
3782   return p[i];
3783 }
3784 static char *f (char * (*g) (char **, int), char **p, ...)
3785 {
3786   char *s;
3787   va_list v;
3788   va_start (v,p);
3789   s = g (p, va_arg (v,int));
3790   va_end (v);
3791   return s;
3792 }
3793
3794 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3795    function prototypes and stuff, but not '\xHH' hex character constants.
3796    These don't provoke an error unfortunately, instead are silently treated
3797    as 'x'.  The following induces an error, until -std is added to get
3798    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3799    array size at least.  It's necessary to write '\x00'==0 to get something
3800    that's true only with -std.  */
3801 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3802
3803 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3804    inside strings and character constants.  */
3805 #define FOO(x) 'x'
3806 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3807
3808 int test (int i, double x);
3809 struct s1 {int (*f) (int a);};
3810 struct s2 {int (*f) (double a);};
3811 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3812 int argc;
3813 char **argv;
3814 int
3815 main ()
3816 {
3817 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3818   ;
3819   return 0;
3820 }
3821 _ACEOF
3822 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3823         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3824 do
3825   CC="$ac_save_CC $ac_arg"
3826   if ac_fn_c_try_compile "$LINENO"; then :
3827   ac_cv_prog_cc_c89=$ac_arg
3828 fi
3829 rm -f core conftest.err conftest.$ac_objext
3830   test "x$ac_cv_prog_cc_c89" != "xno" && break
3831 done
3832 rm -f conftest.$ac_ext
3833 CC=$ac_save_CC
3834
3835 fi
3836 # AC_CACHE_VAL
3837 case "x$ac_cv_prog_cc_c89" in
3838   x)
3839     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3840 $as_echo "none needed" >&6; } ;;
3841   xno)
3842     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3843 $as_echo "unsupported" >&6; } ;;
3844   *)
3845     CC="$CC $ac_cv_prog_cc_c89"
3846     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3847 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3848 esac
3849 if test "x$ac_cv_prog_cc_c89" != xno; then :
3850
3851 fi
3852
3853 ac_ext=c
3854 ac_cpp='$CPP $CPPFLAGS'
3855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858
3859 depcc="$CC"   am_compiler_list=
3860
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3862 $as_echo_n "checking dependency style of $depcc... " >&6; }
3863 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3864   $as_echo_n "(cached) " >&6
3865 else
3866   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3867   # We make a subdir and do the tests there.  Otherwise we can end up
3868   # making bogus files that we don't know about and never remove.  For
3869   # instance it was reported that on HP-UX the gcc test will end up
3870   # making a dummy file named `D' -- because `-MD' means `put the output
3871   # in D'.
3872   rm -rf conftest.dir
3873   mkdir conftest.dir
3874   # Copy depcomp to subdir because otherwise we won't find it if we're
3875   # using a relative directory.
3876   cp "$am_depcomp" conftest.dir
3877   cd conftest.dir
3878   # We will build objects and dependencies in a subdirectory because
3879   # it helps to detect inapplicable dependency modes.  For instance
3880   # both Tru64's cc and ICC support -MD to output dependencies as a
3881   # side effect of compilation, but ICC will put the dependencies in
3882   # the current directory while Tru64 will put them in the object
3883   # directory.
3884   mkdir sub
3885
3886   am_cv_CC_dependencies_compiler_type=none
3887   if test "$am_compiler_list" = ""; then
3888      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3889   fi
3890   am__universal=false
3891   case " $depcc " in #(
3892      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3893      esac
3894
3895   for depmode in $am_compiler_list; do
3896     # Setup a source with many dependencies, because some compilers
3897     # like to wrap large dependency lists on column 80 (with \), and
3898     # we should not choose a depcomp mode which is confused by this.
3899     #
3900     # We need to recreate these files for each test, as the compiler may
3901     # overwrite some of them when testing with obscure command lines.
3902     # This happens at least with the AIX C compiler.
3903     : > sub/conftest.c
3904     for i in 1 2 3 4 5 6; do
3905       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3906       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3907       # Solaris 8's {/usr,}/bin/sh.
3908       touch sub/conftst$i.h
3909     done
3910     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3911
3912     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3913     # mode.  It turns out that the SunPro C++ compiler does not properly
3914     # handle `-M -o', and we need to detect this.  Also, some Intel
3915     # versions had trouble with output in subdirs
3916     am__obj=sub/conftest.${OBJEXT-o}
3917     am__minus_obj="-o $am__obj"
3918     case $depmode in
3919     gcc)
3920       # This depmode causes a compiler race in universal mode.
3921       test "$am__universal" = false || continue
3922       ;;
3923     nosideeffect)
3924       # after this tag, mechanisms are not by side-effect, so they'll
3925       # only be used when explicitly requested
3926       if test "x$enable_dependency_tracking" = xyes; then
3927         continue
3928       else
3929         break
3930       fi
3931       ;;
3932     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3933       # This compiler won't grok `-c -o', but also, the minuso test has
3934       # not run yet.  These depmodes are late enough in the game, and
3935       # so weak that their functioning should not be impacted.
3936       am__obj=conftest.${OBJEXT-o}
3937       am__minus_obj=
3938       ;;
3939     none) break ;;
3940     esac
3941     if depmode=$depmode \
3942        source=sub/conftest.c object=$am__obj \
3943        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3944        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3945          >/dev/null 2>conftest.err &&
3946        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3947        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3948        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3949        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3950       # icc doesn't choke on unknown options, it will just issue warnings
3951       # or remarks (even with -Werror).  So we grep stderr for any message
3952       # that says an option was ignored or not supported.
3953       # When given -MP, icc 7.0 and 7.1 complain thusly:
3954       #   icc: Command line warning: ignoring option '-M'; no argument required
3955       # The diagnosis changed in icc 8.0:
3956       #   icc: Command line remark: option '-MP' not supported
3957       if (grep 'ignoring option' conftest.err ||
3958           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3959         am_cv_CC_dependencies_compiler_type=$depmode
3960         break
3961       fi
3962     fi
3963   done
3964
3965   cd ..
3966   rm -rf conftest.dir
3967 else
3968   am_cv_CC_dependencies_compiler_type=none
3969 fi
3970
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3973 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3974 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3975
3976  if
3977   test "x$enable_dependency_tracking" != xno \
3978   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3979   am__fastdepCC_TRUE=
3980   am__fastdepCC_FALSE='#'
3981 else
3982   am__fastdepCC_TRUE='#'
3983   am__fastdepCC_FALSE=
3984 fi
3985
3986
3987
3988 ac_ext=c
3989 ac_cpp='$CPP $CPPFLAGS'
3990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3994 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3995 # On Suns, sometimes $CPP names a directory.
3996 if test -n "$CPP" && test -d "$CPP"; then
3997   CPP=
3998 fi
3999 if test -z "$CPP"; then
4000   if ${ac_cv_prog_CPP+:} false; then :
4001   $as_echo_n "(cached) " >&6
4002 else
4003       # Double quotes because CPP needs to be expanded
4004     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4005     do
4006       ac_preproc_ok=false
4007 for ac_c_preproc_warn_flag in '' yes
4008 do
4009   # Use a header file that comes with gcc, so configuring glibc
4010   # with a fresh cross-compiler works.
4011   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4012   # <limits.h> exists even on freestanding compilers.
4013   # On the NeXT, cc -E runs the code through the compiler's parser,
4014   # not just through cpp. "Syntax error" is here to catch this case.
4015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h.  */
4017 #ifdef __STDC__
4018 # include <limits.h>
4019 #else
4020 # include <assert.h>
4021 #endif
4022                      Syntax error
4023 _ACEOF
4024 if ac_fn_c_try_cpp "$LINENO"; then :
4025
4026 else
4027   # Broken: fails on valid input.
4028 continue
4029 fi
4030 rm -f conftest.err conftest.i conftest.$ac_ext
4031
4032   # OK, works on sane cases.  Now check whether nonexistent headers
4033   # can be detected and how.
4034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h.  */
4036 #include <ac_nonexistent.h>
4037 _ACEOF
4038 if ac_fn_c_try_cpp "$LINENO"; then :
4039   # Broken: success on invalid input.
4040 continue
4041 else
4042   # Passes both tests.
4043 ac_preproc_ok=:
4044 break
4045 fi
4046 rm -f conftest.err conftest.i conftest.$ac_ext
4047
4048 done
4049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4050 rm -f conftest.i conftest.err conftest.$ac_ext
4051 if $ac_preproc_ok; then :
4052   break
4053 fi
4054
4055     done
4056     ac_cv_prog_CPP=$CPP
4057
4058 fi
4059   CPP=$ac_cv_prog_CPP
4060 else
4061   ac_cv_prog_CPP=$CPP
4062 fi
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4064 $as_echo "$CPP" >&6; }
4065 ac_preproc_ok=false
4066 for ac_c_preproc_warn_flag in '' yes
4067 do
4068   # Use a header file that comes with gcc, so configuring glibc
4069   # with a fresh cross-compiler works.
4070   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4071   # <limits.h> exists even on freestanding compilers.
4072   # On the NeXT, cc -E runs the code through the compiler's parser,
4073   # not just through cpp. "Syntax error" is here to catch this case.
4074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h.  */
4076 #ifdef __STDC__
4077 # include <limits.h>
4078 #else
4079 # include <assert.h>
4080 #endif
4081                      Syntax error
4082 _ACEOF
4083 if ac_fn_c_try_cpp "$LINENO"; then :
4084
4085 else
4086   # Broken: fails on valid input.
4087 continue
4088 fi
4089 rm -f conftest.err conftest.i conftest.$ac_ext
4090
4091   # OK, works on sane cases.  Now check whether nonexistent headers
4092   # can be detected and how.
4093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h.  */
4095 #include <ac_nonexistent.h>
4096 _ACEOF
4097 if ac_fn_c_try_cpp "$LINENO"; then :
4098   # Broken: success on invalid input.
4099 continue
4100 else
4101   # Passes both tests.
4102 ac_preproc_ok=:
4103 break
4104 fi
4105 rm -f conftest.err conftest.i conftest.$ac_ext
4106
4107 done
4108 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4109 rm -f conftest.i conftest.err conftest.$ac_ext
4110 if $ac_preproc_ok; then :
4111
4112 else
4113   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4115 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4116 See \`config.log' for more details" "$LINENO" 5; }
4117 fi
4118
4119 ac_ext=c
4120 ac_cpp='$CPP $CPPFLAGS'
4121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4124
4125
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4127 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4128 if ${ac_cv_path_GREP+:} false; then :
4129   $as_echo_n "(cached) " >&6
4130 else
4131   if test -z "$GREP"; then
4132   ac_path_GREP_found=false
4133   # Loop through the user's path and test for each of PROGNAME-LIST
4134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4136 do
4137   IFS=$as_save_IFS
4138   test -z "$as_dir" && as_dir=.
4139     for ac_prog in grep ggrep; do
4140     for ac_exec_ext in '' $ac_executable_extensions; do
4141       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4142       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4143 # Check for GNU ac_path_GREP and select it if it is found.
4144   # Check for GNU $ac_path_GREP
4145 case `"$ac_path_GREP" --version 2>&1` in
4146 *GNU*)
4147   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4148 *)
4149   ac_count=0
4150   $as_echo_n 0123456789 >"conftest.in"
4151   while :
4152   do
4153     cat "conftest.in" "conftest.in" >"conftest.tmp"
4154     mv "conftest.tmp" "conftest.in"
4155     cp "conftest.in" "conftest.nl"
4156     $as_echo 'GREP' >> "conftest.nl"
4157     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4158     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4159     as_fn_arith $ac_count + 1 && ac_count=$as_val
4160     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4161       # Best one so far, save it but keep looking for a better one
4162       ac_cv_path_GREP="$ac_path_GREP"
4163       ac_path_GREP_max=$ac_count
4164     fi
4165     # 10*(2^10) chars as input seems more than enough
4166     test $ac_count -gt 10 && break
4167   done
4168   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4169 esac
4170
4171       $ac_path_GREP_found && break 3
4172     done
4173   done
4174   done
4175 IFS=$as_save_IFS
4176   if test -z "$ac_cv_path_GREP"; then
4177     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4178   fi
4179 else
4180   ac_cv_path_GREP=$GREP
4181 fi
4182
4183 fi
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4185 $as_echo "$ac_cv_path_GREP" >&6; }
4186  GREP="$ac_cv_path_GREP"
4187
4188
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4190 $as_echo_n "checking for egrep... " >&6; }
4191 if ${ac_cv_path_EGREP+:} false; then :
4192   $as_echo_n "(cached) " >&6
4193 else
4194   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4195    then ac_cv_path_EGREP="$GREP -E"
4196    else
4197      if test -z "$EGREP"; then
4198   ac_path_EGREP_found=false
4199   # Loop through the user's path and test for each of PROGNAME-LIST
4200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4202 do
4203   IFS=$as_save_IFS
4204   test -z "$as_dir" && as_dir=.
4205     for ac_prog in egrep; do
4206     for ac_exec_ext in '' $ac_executable_extensions; do
4207       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4208       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4209 # Check for GNU ac_path_EGREP and select it if it is found.
4210   # Check for GNU $ac_path_EGREP
4211 case `"$ac_path_EGREP" --version 2>&1` in
4212 *GNU*)
4213   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4214 *)
4215   ac_count=0
4216   $as_echo_n 0123456789 >"conftest.in"
4217   while :
4218   do
4219     cat "conftest.in" "conftest.in" >"conftest.tmp"
4220     mv "conftest.tmp" "conftest.in"
4221     cp "conftest.in" "conftest.nl"
4222     $as_echo 'EGREP' >> "conftest.nl"
4223     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4224     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4225     as_fn_arith $ac_count + 1 && ac_count=$as_val
4226     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4227       # Best one so far, save it but keep looking for a better one
4228       ac_cv_path_EGREP="$ac_path_EGREP"
4229       ac_path_EGREP_max=$ac_count
4230     fi
4231     # 10*(2^10) chars as input seems more than enough
4232     test $ac_count -gt 10 && break
4233   done
4234   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4235 esac
4236
4237       $ac_path_EGREP_found && break 3
4238     done
4239   done
4240   done
4241 IFS=$as_save_IFS
4242   if test -z "$ac_cv_path_EGREP"; then
4243     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4244   fi
4245 else
4246   ac_cv_path_EGREP=$EGREP
4247 fi
4248
4249    fi
4250 fi
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4252 $as_echo "$ac_cv_path_EGREP" >&6; }
4253  EGREP="$ac_cv_path_EGREP"
4254
4255
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4257 $as_echo_n "checking for ANSI C header files... " >&6; }
4258 if ${ac_cv_header_stdc+:} false; then :
4259   $as_echo_n "(cached) " >&6
4260 else
4261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h.  */
4263 #include <stdlib.h>
4264 #include <stdarg.h>
4265 #include <string.h>
4266 #include <float.h>
4267
4268 int
4269 main ()
4270 {
4271
4272   ;
4273   return 0;
4274 }
4275 _ACEOF
4276 if ac_fn_c_try_compile "$LINENO"; then :
4277   ac_cv_header_stdc=yes
4278 else
4279   ac_cv_header_stdc=no
4280 fi
4281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4282
4283 if test $ac_cv_header_stdc = yes; then
4284   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h.  */
4287 #include <string.h>
4288
4289 _ACEOF
4290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4291   $EGREP "memchr" >/dev/null 2>&1; then :
4292
4293 else
4294   ac_cv_header_stdc=no
4295 fi
4296 rm -f conftest*
4297
4298 fi
4299
4300 if test $ac_cv_header_stdc = yes; then
4301   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h.  */
4304 #include <stdlib.h>
4305
4306 _ACEOF
4307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4308   $EGREP "free" >/dev/null 2>&1; then :
4309
4310 else
4311   ac_cv_header_stdc=no
4312 fi
4313 rm -f conftest*
4314
4315 fi
4316
4317 if test $ac_cv_header_stdc = yes; then
4318   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4319   if test "$cross_compiling" = yes; then :
4320   :
4321 else
4322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h.  */
4324 #include <ctype.h>
4325 #include <stdlib.h>
4326 #if ((' ' & 0x0FF) == 0x020)
4327 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4328 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4329 #else
4330 # define ISLOWER(c) \
4331                    (('a' <= (c) && (c) <= 'i') \
4332                      || ('j' <= (c) && (c) <= 'r') \
4333                      || ('s' <= (c) && (c) <= 'z'))
4334 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4335 #endif
4336
4337 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4338 int
4339 main ()
4340 {
4341   int i;
4342   for (i = 0; i < 256; i++)
4343     if (XOR (islower (i), ISLOWER (i))
4344         || toupper (i) != TOUPPER (i))
4345       return 2;
4346   return 0;
4347 }
4348 _ACEOF
4349 if ac_fn_c_try_run "$LINENO"; then :
4350
4351 else
4352   ac_cv_header_stdc=no
4353 fi
4354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4355   conftest.$ac_objext conftest.beam conftest.$ac_ext
4356 fi
4357
4358 fi
4359 fi
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4361 $as_echo "$ac_cv_header_stdc" >&6; }
4362 if test $ac_cv_header_stdc = yes; then
4363
4364 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4365
4366 fi
4367
4368 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4369 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4370                   inttypes.h stdint.h unistd.h
4371 do :
4372   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4373 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4374 "
4375 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4376   cat >>confdefs.h <<_ACEOF
4377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4378 _ACEOF
4379
4380 fi
4381
4382 done
4383
4384
4385
4386   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4387 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4388   MINIX=yes
4389 else
4390   MINIX=
4391 fi
4392
4393
4394   if test "$MINIX" = yes; then
4395
4396 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4397
4398
4399 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4400
4401
4402 $as_echo "#define _MINIX 1" >>confdefs.h
4403
4404   fi
4405
4406
4407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4408 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4409 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4410   $as_echo_n "(cached) " >&6
4411 else
4412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h.  */
4414
4415 #         define __EXTENSIONS__ 1
4416           $ac_includes_default
4417 int
4418 main ()
4419 {
4420
4421   ;
4422   return 0;
4423 }
4424 _ACEOF
4425 if ac_fn_c_try_compile "$LINENO"; then :
4426   ac_cv_safe_to_define___extensions__=yes
4427 else
4428   ac_cv_safe_to_define___extensions__=no
4429 fi
4430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431 fi
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4433 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4434   test $ac_cv_safe_to_define___extensions__ = yes &&
4435     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4436
4437   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4438
4439   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4440
4441   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4442
4443   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4444
4445
4446
4447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4448 $as_echo_n "checking whether NLS is requested... " >&6; }
4449     # Check whether --enable-nls was given.
4450 if test "${enable_nls+set}" = set; then :
4451   enableval=$enable_nls; USE_NLS=$enableval
4452 else
4453   USE_NLS=yes
4454 fi
4455
4456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4457 $as_echo "$USE_NLS" >&6; }
4458
4459
4460
4461
4462       GETTEXT_MACRO_VERSION=0.18
4463
4464
4465
4466
4467 # Prepare PATH_SEPARATOR.
4468 # The user is always right.
4469 if test "${PATH_SEPARATOR+set}" != set; then
4470   echo "#! /bin/sh" >conf$$.sh
4471   echo  "exit 0"   >>conf$$.sh
4472   chmod +x conf$$.sh
4473   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4474     PATH_SEPARATOR=';'
4475   else
4476     PATH_SEPARATOR=:
4477   fi
4478   rm -f conf$$.sh
4479 fi
4480
4481 # Find out how to test for executable files. Don't use a zero-byte file,
4482 # as systems may use methods other than mode bits to determine executability.
4483 cat >conf$$.file <<_ASEOF
4484 #! /bin/sh
4485 exit 0
4486 _ASEOF
4487 chmod +x conf$$.file
4488 if test -x conf$$.file >/dev/null 2>&1; then
4489   ac_executable_p="test -x"
4490 else
4491   ac_executable_p="test -f"
4492 fi
4493 rm -f conf$$.file
4494
4495 # Extract the first word of "msgfmt", so it can be a program name with args.
4496 set dummy msgfmt; ac_word=$2
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if ${ac_cv_path_MSGFMT+:} false; then :
4500   $as_echo_n "(cached) " >&6
4501 else
4502   case "$MSGFMT" in
4503   [\\/]* | ?:[\\/]*)
4504     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4505     ;;
4506   *)
4507     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4508     for ac_dir in $PATH; do
4509       IFS="$ac_save_IFS"
4510       test -z "$ac_dir" && ac_dir=.
4511       for ac_exec_ext in '' $ac_executable_extensions; do
4512         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4513           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4514           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4515      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4516             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4517             break 2
4518           fi
4519         fi
4520       done
4521     done
4522     IFS="$ac_save_IFS"
4523   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4524     ;;
4525 esac
4526 fi
4527 MSGFMT="$ac_cv_path_MSGFMT"
4528 if test "$MSGFMT" != ":"; then
4529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4530 $as_echo "$MSGFMT" >&6; }
4531 else
4532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 $as_echo "no" >&6; }
4534 fi
4535
4536   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4537 set dummy gmsgfmt; ac_word=$2
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539 $as_echo_n "checking for $ac_word... " >&6; }
4540 if ${ac_cv_path_GMSGFMT+:} false; then :
4541   $as_echo_n "(cached) " >&6
4542 else
4543   case $GMSGFMT in
4544   [\\/]* | ?:[\\/]*)
4545   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4546   ;;
4547   *)
4548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4550 do
4551   IFS=$as_save_IFS
4552   test -z "$as_dir" && as_dir=.
4553     for ac_exec_ext in '' $ac_executable_extensions; do
4554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557     break 2
4558   fi
4559 done
4560   done
4561 IFS=$as_save_IFS
4562
4563   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4564   ;;
4565 esac
4566 fi
4567 GMSGFMT=$ac_cv_path_GMSGFMT
4568 if test -n "$GMSGFMT"; then
4569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4570 $as_echo "$GMSGFMT" >&6; }
4571 else
4572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573 $as_echo "no" >&6; }
4574 fi
4575
4576
4577
4578     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4579     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4580     *) MSGFMT_015=$MSGFMT ;;
4581   esac
4582
4583   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4584     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4585     *) GMSGFMT_015=$GMSGFMT ;;
4586   esac
4587
4588
4589
4590 # Prepare PATH_SEPARATOR.
4591 # The user is always right.
4592 if test "${PATH_SEPARATOR+set}" != set; then
4593   echo "#! /bin/sh" >conf$$.sh
4594   echo  "exit 0"   >>conf$$.sh
4595   chmod +x conf$$.sh
4596   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4597     PATH_SEPARATOR=';'
4598   else
4599     PATH_SEPARATOR=:
4600   fi
4601   rm -f conf$$.sh
4602 fi
4603
4604 # Find out how to test for executable files. Don't use a zero-byte file,
4605 # as systems may use methods other than mode bits to determine executability.
4606 cat >conf$$.file <<_ASEOF
4607 #! /bin/sh
4608 exit 0
4609 _ASEOF
4610 chmod +x conf$$.file
4611 if test -x conf$$.file >/dev/null 2>&1; then
4612   ac_executable_p="test -x"
4613 else
4614   ac_executable_p="test -f"
4615 fi
4616 rm -f conf$$.file
4617
4618 # Extract the first word of "xgettext", so it can be a program name with args.
4619 set dummy xgettext; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if ${ac_cv_path_XGETTEXT+:} false; then :
4623   $as_echo_n "(cached) " >&6
4624 else
4625   case "$XGETTEXT" in
4626   [\\/]* | ?:[\\/]*)
4627     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4628     ;;
4629   *)
4630     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4631     for ac_dir in $PATH; do
4632       IFS="$ac_save_IFS"
4633       test -z "$ac_dir" && ac_dir=.
4634       for ac_exec_ext in '' $ac_executable_extensions; do
4635         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4636           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4637           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4638      (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
4639             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4640             break 2
4641           fi
4642         fi
4643       done
4644     done
4645     IFS="$ac_save_IFS"
4646   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4647     ;;
4648 esac
4649 fi
4650 XGETTEXT="$ac_cv_path_XGETTEXT"
4651 if test "$XGETTEXT" != ":"; then
4652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4653 $as_echo "$XGETTEXT" >&6; }
4654 else
4655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656 $as_echo "no" >&6; }
4657 fi
4658
4659     rm -f messages.po
4660
4661     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4662     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4663     *) XGETTEXT_015=$XGETTEXT ;;
4664   esac
4665
4666
4667
4668 # Prepare PATH_SEPARATOR.
4669 # The user is always right.
4670 if test "${PATH_SEPARATOR+set}" != set; then
4671   echo "#! /bin/sh" >conf$$.sh
4672   echo  "exit 0"   >>conf$$.sh
4673   chmod +x conf$$.sh
4674   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4675     PATH_SEPARATOR=';'
4676   else
4677     PATH_SEPARATOR=:
4678   fi
4679   rm -f conf$$.sh
4680 fi
4681
4682 # Find out how to test for executable files. Don't use a zero-byte file,
4683 # as systems may use methods other than mode bits to determine executability.
4684 cat >conf$$.file <<_ASEOF
4685 #! /bin/sh
4686 exit 0
4687 _ASEOF
4688 chmod +x conf$$.file
4689 if test -x conf$$.file >/dev/null 2>&1; then
4690   ac_executable_p="test -x"
4691 else
4692   ac_executable_p="test -f"
4693 fi
4694 rm -f conf$$.file
4695
4696 # Extract the first word of "msgmerge", so it can be a program name with args.
4697 set dummy msgmerge; ac_word=$2
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699 $as_echo_n "checking for $ac_word... " >&6; }
4700 if ${ac_cv_path_MSGMERGE+:} false; then :
4701   $as_echo_n "(cached) " >&6
4702 else
4703   case "$MSGMERGE" in
4704   [\\/]* | ?:[\\/]*)
4705     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4706     ;;
4707   *)
4708     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4709     for ac_dir in $PATH; do
4710       IFS="$ac_save_IFS"
4711       test -z "$ac_dir" && ac_dir=.
4712       for ac_exec_ext in '' $ac_executable_extensions; do
4713         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4714           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4715           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4716             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4717             break 2
4718           fi
4719         fi
4720       done
4721     done
4722     IFS="$ac_save_IFS"
4723   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4724     ;;
4725 esac
4726 fi
4727 MSGMERGE="$ac_cv_path_MSGMERGE"
4728 if test "$MSGMERGE" != ":"; then
4729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4730 $as_echo "$MSGMERGE" >&6; }
4731 else
4732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4734 fi
4735
4736
4737         test -n "$localedir" || localedir='${datadir}/locale'
4738
4739
4740     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4741
4742
4743   ac_config_commands="$ac_config_commands po-directories"
4744
4745
4746 # Make sure we can run config.sub.
4747 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4748   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4749
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4751 $as_echo_n "checking build system type... " >&6; }
4752 if ${ac_cv_build+:} false; then :
4753   $as_echo_n "(cached) " >&6
4754 else
4755   ac_build_alias=$build_alias
4756 test "x$ac_build_alias" = x &&
4757   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4758 test "x$ac_build_alias" = x &&
4759   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4760 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4761   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4762
4763 fi
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4765 $as_echo "$ac_cv_build" >&6; }
4766 case $ac_cv_build in
4767 *-*-*) ;;
4768 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4769 esac
4770 build=$ac_cv_build
4771 ac_save_IFS=$IFS; IFS='-'
4772 set x $ac_cv_build
4773 shift
4774 build_cpu=$1
4775 build_vendor=$2
4776 shift; shift
4777 # Remember, the first character of IFS is used to create $*,
4778 # except with old shells:
4779 build_os=$*
4780 IFS=$ac_save_IFS
4781 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4782
4783
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4785 $as_echo_n "checking host system type... " >&6; }
4786 if ${ac_cv_host+:} false; then :
4787   $as_echo_n "(cached) " >&6
4788 else
4789   if test "x$host_alias" = x; then
4790   ac_cv_host=$ac_cv_build
4791 else
4792   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4793     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4794 fi
4795
4796 fi
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4798 $as_echo "$ac_cv_host" >&6; }
4799 case $ac_cv_host in
4800 *-*-*) ;;
4801 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4802 esac
4803 host=$ac_cv_host
4804 ac_save_IFS=$IFS; IFS='-'
4805 set x $ac_cv_host
4806 shift
4807 host_cpu=$1
4808 host_vendor=$2
4809 shift; shift
4810 # Remember, the first character of IFS is used to create $*,
4811 # except with old shells:
4812 host_os=$*
4813 IFS=$ac_save_IFS
4814 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4815
4816
4817
4818     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
4819 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
4820 if ${ac_cv_gnu_library_2+:} false; then :
4821   $as_echo_n "(cached) " >&6
4822 else
4823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h.  */
4825
4826 #include <features.h>
4827 #ifdef __GNU_LIBRARY__
4828  #if (__GLIBC__ >= 2)
4829   Lucky GNU user
4830  #endif
4831 #endif
4832
4833 _ACEOF
4834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4835   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
4836   ac_cv_gnu_library_2=yes
4837 else
4838   ac_cv_gnu_library_2=no
4839 fi
4840 rm -f conftest*
4841
4842
4843
4844 fi
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
4846 $as_echo "$ac_cv_gnu_library_2" >&6; }
4847
4848     GLIBC2="$ac_cv_gnu_library_2"
4849
4850
4851 if test -n "$ac_tool_prefix"; then
4852   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4853 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if ${ac_cv_prog_RANLIB+:} false; then :
4857   $as_echo_n "(cached) " >&6
4858 else
4859   if test -n "$RANLIB"; then
4860   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4864 do
4865   IFS=$as_save_IFS
4866   test -z "$as_dir" && as_dir=.
4867     for ac_exec_ext in '' $ac_executable_extensions; do
4868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871     break 2
4872   fi
4873 done
4874   done
4875 IFS=$as_save_IFS
4876
4877 fi
4878 fi
4879 RANLIB=$ac_cv_prog_RANLIB
4880 if test -n "$RANLIB"; then
4881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4882 $as_echo "$RANLIB" >&6; }
4883 else
4884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4886 fi
4887
4888
4889 fi
4890 if test -z "$ac_cv_prog_RANLIB"; then
4891   ac_ct_RANLIB=$RANLIB
4892   # Extract the first word of "ranlib", so it can be a program name with args.
4893 set dummy ranlib; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4897   $as_echo_n "(cached) " >&6
4898 else
4899   if test -n "$ac_ct_RANLIB"; then
4900   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905   IFS=$as_save_IFS
4906   test -z "$as_dir" && as_dir=.
4907     for ac_exec_ext in '' $ac_executable_extensions; do
4908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909     ac_cv_prog_ac_ct_RANLIB="ranlib"
4910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911     break 2
4912   fi
4913 done
4914   done
4915 IFS=$as_save_IFS
4916
4917 fi
4918 fi
4919 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4920 if test -n "$ac_ct_RANLIB"; then
4921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4922 $as_echo "$ac_ct_RANLIB" >&6; }
4923 else
4924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4926 fi
4927
4928   if test "x$ac_ct_RANLIB" = x; then
4929     RANLIB=":"
4930   else
4931     case $cross_compiling:$ac_tool_warned in
4932 yes:)
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4935 ac_tool_warned=yes ;;
4936 esac
4937     RANLIB=$ac_ct_RANLIB
4938   fi
4939 else
4940   RANLIB="$ac_cv_prog_RANLIB"
4941 fi
4942
4943
4944
4945   CFLAG_VISIBILITY=
4946   HAVE_VISIBILITY=0
4947   if test -n "$GCC"; then
4948                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
4949 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
4950     if ${gl_cv_cc_vis_werror+:} false; then :
4951   $as_echo_n "(cached) " >&6
4952 else
4953
4954       gl_save_CFLAGS="$CFLAGS"
4955       CFLAGS="$CFLAGS -Werror"
4956       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h.  */
4958
4959 int
4960 main ()
4961 {
4962
4963   ;
4964   return 0;
4965 }
4966 _ACEOF
4967 if ac_fn_c_try_compile "$LINENO"; then :
4968   gl_cv_cc_vis_werror=yes
4969 else
4970   gl_cv_cc_vis_werror=no
4971 fi
4972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973       CFLAGS="$gl_save_CFLAGS"
4974 fi
4975
4976     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
4977 $as_echo "$gl_cv_cc_vis_werror" >&6; }
4978         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
4979 $as_echo_n "checking for simple visibility declarations... " >&6; }
4980     if ${gl_cv_cc_visibility+:} false; then :
4981   $as_echo_n "(cached) " >&6
4982 else
4983
4984       gl_save_CFLAGS="$CFLAGS"
4985       CFLAGS="$CFLAGS -fvisibility=hidden"
4986                                     if test $gl_cv_cc_vis_werror = yes; then
4987         CFLAGS="$CFLAGS -Werror"
4988       fi
4989       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h.  */
4991 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
4992          extern __attribute__((__visibility__("default"))) int exportedvar;
4993          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
4994          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
4995          void dummyfunc (void) {}
4996 int
4997 main ()
4998 {
4999
5000   ;
5001   return 0;
5002 }
5003 _ACEOF
5004 if ac_fn_c_try_compile "$LINENO"; then :
5005   gl_cv_cc_visibility=yes
5006 else
5007   gl_cv_cc_visibility=no
5008 fi
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010       CFLAGS="$gl_save_CFLAGS"
5011 fi
5012
5013     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
5014 $as_echo "$gl_cv_cc_visibility" >&6; }
5015     if test $gl_cv_cc_visibility = yes; then
5016       CFLAG_VISIBILITY="-fvisibility=hidden"
5017       HAVE_VISIBILITY=1
5018     fi
5019   fi
5020
5021
5022
5023 cat >>confdefs.h <<_ACEOF
5024 #define HAVE_VISIBILITY $HAVE_VISIBILITY
5025 _ACEOF
5026
5027
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5029 $as_echo_n "checking for inline... " >&6; }
5030 if ${ac_cv_c_inline+:} false; then :
5031   $as_echo_n "(cached) " >&6
5032 else
5033   ac_cv_c_inline=no
5034 for ac_kw in inline __inline__ __inline; do
5035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036 /* end confdefs.h.  */
5037 #ifndef __cplusplus
5038 typedef int foo_t;
5039 static $ac_kw foo_t static_foo () {return 0; }
5040 $ac_kw foo_t foo () {return 0; }
5041 #endif
5042
5043 _ACEOF
5044 if ac_fn_c_try_compile "$LINENO"; then :
5045   ac_cv_c_inline=$ac_kw
5046 fi
5047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048   test "$ac_cv_c_inline" != no && break
5049 done
5050
5051 fi
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5053 $as_echo "$ac_cv_c_inline" >&6; }
5054
5055 case $ac_cv_c_inline in
5056   inline | yes) ;;
5057   *)
5058     case $ac_cv_c_inline in
5059       no) ac_val=;;
5060       *) ac_val=$ac_cv_c_inline;;
5061     esac
5062     cat >>confdefs.h <<_ACEOF
5063 #ifndef __cplusplus
5064 #define inline $ac_val
5065 #endif
5066 _ACEOF
5067     ;;
5068 esac
5069
5070 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5071 if test "x$ac_cv_type_size_t" = xyes; then :
5072
5073 else
5074
5075 cat >>confdefs.h <<_ACEOF
5076 #define size_t unsigned int
5077 _ACEOF
5078
5079 fi
5080
5081
5082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
5083 $as_echo_n "checking for stdint.h... " >&6; }
5084 if ${gl_cv_header_stdint_h+:} false; then :
5085   $as_echo_n "(cached) " >&6
5086 else
5087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h.  */
5089 #include <sys/types.h>
5090 #include <stdint.h>
5091 int
5092 main ()
5093 {
5094 uintmax_t i = (uintmax_t) -1; return !i;
5095   ;
5096   return 0;
5097 }
5098 _ACEOF
5099 if ac_fn_c_try_compile "$LINENO"; then :
5100   gl_cv_header_stdint_h=yes
5101 else
5102   gl_cv_header_stdint_h=no
5103 fi
5104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 fi
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
5107 $as_echo "$gl_cv_header_stdint_h" >&6; }
5108   if test $gl_cv_header_stdint_h = yes; then
5109
5110 cat >>confdefs.h <<_ACEOF
5111 #define HAVE_STDINT_H_WITH_UINTMAX 1
5112 _ACEOF
5113
5114   fi
5115
5116 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5117 # for constant arguments.  Useless!
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5119 $as_echo_n "checking for working alloca.h... " >&6; }
5120 if ${ac_cv_working_alloca_h+:} false; then :
5121   $as_echo_n "(cached) " >&6
5122 else
5123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h.  */
5125 #include <alloca.h>
5126 int
5127 main ()
5128 {
5129 char *p = (char *) alloca (2 * sizeof (int));
5130                           if (p) return 0;
5131   ;
5132   return 0;
5133 }
5134 _ACEOF
5135 if ac_fn_c_try_link "$LINENO"; then :
5136   ac_cv_working_alloca_h=yes
5137 else
5138   ac_cv_working_alloca_h=no
5139 fi
5140 rm -f core conftest.err conftest.$ac_objext \
5141     conftest$ac_exeext conftest.$ac_ext
5142 fi
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5144 $as_echo "$ac_cv_working_alloca_h" >&6; }
5145 if test $ac_cv_working_alloca_h = yes; then
5146
5147 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5148
5149 fi
5150
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5152 $as_echo_n "checking for alloca... " >&6; }
5153 if ${ac_cv_func_alloca_works+:} false; then :
5154   $as_echo_n "(cached) " >&6
5155 else
5156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5157 /* end confdefs.h.  */
5158 #ifdef __GNUC__
5159 # define alloca __builtin_alloca
5160 #else
5161 # ifdef _MSC_VER
5162 #  include <malloc.h>
5163 #  define alloca _alloca
5164 # else
5165 #  ifdef HAVE_ALLOCA_H
5166 #   include <alloca.h>
5167 #  else
5168 #   ifdef _AIX
5169  #pragma alloca
5170 #   else
5171 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5172 void *alloca (size_t);
5173 #    endif
5174 #   endif
5175 #  endif
5176 # endif
5177 #endif
5178
5179 int
5180 main ()
5181 {
5182 char *p = (char *) alloca (1);
5183                                     if (p) return 0;
5184   ;
5185   return 0;
5186 }
5187 _ACEOF
5188 if ac_fn_c_try_link "$LINENO"; then :
5189   ac_cv_func_alloca_works=yes
5190 else
5191   ac_cv_func_alloca_works=no
5192 fi
5193 rm -f core conftest.err conftest.$ac_objext \
5194     conftest$ac_exeext conftest.$ac_ext
5195 fi
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5197 $as_echo "$ac_cv_func_alloca_works" >&6; }
5198
5199 if test $ac_cv_func_alloca_works = yes; then
5200
5201 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5202
5203 else
5204   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5205 # that cause trouble.  Some versions do not even contain alloca or
5206 # contain a buggy version.  If you still want to use their alloca,
5207 # use ar to extract alloca.o from them instead of compiling alloca.c.
5208
5209 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5210
5211 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5212
5213
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5215 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5216 if ${ac_cv_os_cray+:} false; then :
5217   $as_echo_n "(cached) " >&6
5218 else
5219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h.  */
5221 #if defined CRAY && ! defined CRAY2
5222 webecray
5223 #else
5224 wenotbecray
5225 #endif
5226
5227 _ACEOF
5228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5229   $EGREP "webecray" >/dev/null 2>&1; then :
5230   ac_cv_os_cray=yes
5231 else
5232   ac_cv_os_cray=no
5233 fi
5234 rm -f conftest*
5235
5236 fi
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5238 $as_echo "$ac_cv_os_cray" >&6; }
5239 if test $ac_cv_os_cray = yes; then
5240   for ac_func in _getb67 GETB67 getb67; do
5241     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5242 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5243 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5244
5245 cat >>confdefs.h <<_ACEOF
5246 #define CRAY_STACKSEG_END $ac_func
5247 _ACEOF
5248
5249     break
5250 fi
5251
5252   done
5253 fi
5254
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5256 $as_echo_n "checking stack direction for C alloca... " >&6; }
5257 if ${ac_cv_c_stack_direction+:} false; then :
5258   $as_echo_n "(cached) " >&6
5259 else
5260   if test "$cross_compiling" = yes; then :
5261   ac_cv_c_stack_direction=0
5262 else
5263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h.  */
5265 $ac_includes_default
5266 int
5267 find_stack_direction ()
5268 {
5269   static char *addr = 0;
5270   auto char dummy;
5271   if (addr == 0)
5272     {
5273       addr = &dummy;
5274       return find_stack_direction ();
5275     }
5276   else
5277     return (&dummy > addr) ? 1 : -1;
5278 }
5279
5280 int
5281 main ()
5282 {
5283   return find_stack_direction () < 0;
5284 }
5285 _ACEOF
5286 if ac_fn_c_try_run "$LINENO"; then :
5287   ac_cv_c_stack_direction=1
5288 else
5289   ac_cv_c_stack_direction=-1
5290 fi
5291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5292   conftest.$ac_objext conftest.beam conftest.$ac_ext
5293 fi
5294
5295 fi
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5297 $as_echo "$ac_cv_c_stack_direction" >&6; }
5298 cat >>confdefs.h <<_ACEOF
5299 #define STACK_DIRECTION $ac_cv_c_stack_direction
5300 _ACEOF
5301
5302
5303 fi
5304
5305
5306
5307
5308   for ac_header in $ac_header_list
5309 do :
5310   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5311 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5312 "
5313 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5314   cat >>confdefs.h <<_ACEOF
5315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5316 _ACEOF
5317
5318 fi
5319
5320 done
5321
5322
5323
5324
5325
5326
5327
5328
5329 for ac_func in getpagesize
5330 do :
5331   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
5332 if test "x$ac_cv_func_getpagesize" = xyes; then :
5333   cat >>confdefs.h <<_ACEOF
5334 #define HAVE_GETPAGESIZE 1
5335 _ACEOF
5336
5337 fi
5338 done
5339
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
5341 $as_echo_n "checking for working mmap... " >&6; }
5342 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
5343   $as_echo_n "(cached) " >&6
5344 else
5345   if test "$cross_compiling" = yes; then :
5346   ac_cv_func_mmap_fixed_mapped=no
5347 else
5348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h.  */
5350 $ac_includes_default
5351 /* malloc might have been renamed as rpl_malloc. */
5352 #undef malloc
5353
5354 /* Thanks to Mike Haertel and Jim Avera for this test.
5355    Here is a matrix of mmap possibilities:
5356         mmap private not fixed
5357         mmap private fixed at somewhere currently unmapped
5358         mmap private fixed at somewhere already mapped
5359         mmap shared not fixed
5360         mmap shared fixed at somewhere currently unmapped
5361         mmap shared fixed at somewhere already mapped
5362    For private mappings, we should verify that changes cannot be read()
5363    back from the file, nor mmap's back from the file at a different
5364    address.  (There have been systems where private was not correctly
5365    implemented like the infamous i386 svr4.0, and systems where the
5366    VM page cache was not coherent with the file system buffer cache
5367    like early versions of FreeBSD and possibly contemporary NetBSD.)
5368    For shared mappings, we should conversely verify that changes get
5369    propagated back to all the places they're supposed to be.
5370
5371    Grep wants private fixed already mapped.
5372    The main things grep needs to know about mmap are:
5373    * does it exist and is it safe to write into the mmap'd area
5374    * how to use it (BSD variants)  */
5375
5376 #include <fcntl.h>
5377 #include <sys/mman.h>
5378
5379 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5380 char *malloc ();
5381 #endif
5382
5383 /* This mess was copied from the GNU getpagesize.h.  */
5384 #ifndef HAVE_GETPAGESIZE
5385 # ifdef _SC_PAGESIZE
5386 #  define getpagesize() sysconf(_SC_PAGESIZE)
5387 # else /* no _SC_PAGESIZE */
5388 #  ifdef HAVE_SYS_PARAM_H
5389 #   include <sys/param.h>
5390 #   ifdef EXEC_PAGESIZE
5391 #    define getpagesize() EXEC_PAGESIZE
5392 #   else /* no EXEC_PAGESIZE */
5393 #    ifdef NBPG
5394 #     define getpagesize() NBPG * CLSIZE
5395 #     ifndef CLSIZE
5396 #      define CLSIZE 1
5397 #     endif /* no CLSIZE */
5398 #    else /* no NBPG */
5399 #     ifdef NBPC
5400 #      define getpagesize() NBPC
5401 #     else /* no NBPC */
5402 #      ifdef PAGESIZE
5403 #       define getpagesize() PAGESIZE
5404 #      endif /* PAGESIZE */
5405 #     endif /* no NBPC */
5406 #    endif /* no NBPG */
5407 #   endif /* no EXEC_PAGESIZE */
5408 #  else /* no HAVE_SYS_PARAM_H */
5409 #   define getpagesize() 8192   /* punt totally */
5410 #  endif /* no HAVE_SYS_PARAM_H */
5411 # endif /* no _SC_PAGESIZE */
5412
5413 #endif /* no HAVE_GETPAGESIZE */
5414
5415 int
5416 main ()
5417 {
5418   char *data, *data2, *data3;
5419   const char *cdata2;
5420   int i, pagesize;
5421   int fd, fd2;
5422
5423   pagesize = getpagesize ();
5424
5425   /* First, make a file with some known garbage in it. */
5426   data = (char *) malloc (pagesize);
5427   if (!data)
5428     return 1;
5429   for (i = 0; i < pagesize; ++i)
5430     *(data + i) = rand ();
5431   umask (0);
5432   fd = creat ("conftest.mmap", 0600);
5433   if (fd < 0)
5434     return 2;
5435   if (write (fd, data, pagesize) != pagesize)
5436     return 3;
5437   close (fd);
5438
5439   /* Next, check that the tail of a page is zero-filled.  File must have
5440      non-zero length, otherwise we risk SIGBUS for entire page.  */
5441   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
5442   if (fd2 < 0)
5443     return 4;
5444   cdata2 = "";
5445   if (write (fd2, cdata2, 1) != 1)
5446     return 5;
5447   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
5448   if (data2 == MAP_FAILED)
5449     return 6;
5450   for (i = 0; i < pagesize; ++i)
5451     if (*(data2 + i))
5452       return 7;
5453   close (fd2);
5454   if (munmap (data2, pagesize))
5455     return 8;
5456
5457   /* Next, try to mmap the file at a fixed address which already has
5458      something else allocated at it.  If we can, also make sure that
5459      we see the same garbage.  */
5460   fd = open ("conftest.mmap", O_RDWR);
5461   if (fd < 0)
5462     return 9;
5463   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5464                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
5465     return 10;
5466   for (i = 0; i < pagesize; ++i)
5467     if (*(data + i) != *(data2 + i))
5468       return 11;
5469
5470   /* Finally, make sure that changes to the mapped area do not
5471      percolate back to the file as seen by read().  (This is a bug on
5472      some variants of i386 svr4.0.)  */
5473   for (i = 0; i < pagesize; ++i)
5474     *(data2 + i) = *(data2 + i) + 1;
5475   data3 = (char *) malloc (pagesize);
5476   if (!data3)
5477     return 12;
5478   if (read (fd, data3, pagesize) != pagesize)
5479     return 13;
5480   for (i = 0; i < pagesize; ++i)
5481     if (*(data + i) != *(data3 + i))
5482       return 14;
5483   close (fd);
5484   return 0;
5485 }
5486 _ACEOF
5487 if ac_fn_c_try_run "$LINENO"; then :
5488   ac_cv_func_mmap_fixed_mapped=yes
5489 else
5490   ac_cv_func_mmap_fixed_mapped=no
5491 fi
5492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5493   conftest.$ac_objext conftest.beam conftest.$ac_ext
5494 fi
5495
5496 fi
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
5498 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5499 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5500
5501 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
5502
5503 fi
5504 rm -f conftest.mmap conftest.txt
5505
5506
5507
5508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
5509 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
5510 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
5511   $as_echo_n "(cached) " >&6
5512 else
5513
5514       gt_cv_int_divbyzero_sigfpe=
5515       case "$host_os" in
5516         macos* | darwin[6-9]* | darwin[1-9][0-9]*)
5517           # On MacOS X 10.2 or newer, just assume the same as when cross-
5518           # compiling. If we were to perform the real test, 1 Crash Report
5519           # dialog window would pop up.
5520           case "$host_cpu" in
5521             i[34567]86 | x86_64)
5522               gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
5523           esac
5524           ;;
5525       esac
5526       if test -z "$gt_cv_int_divbyzero_sigfpe"; then
5527         if test "$cross_compiling" = yes; then :
5528
5529             # Guess based on the CPU.
5530             case "$host_cpu" in
5531               alpha* | i[34567]86 | x86_64 | m68k | s390*)
5532                 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5533               *)
5534                 gt_cv_int_divbyzero_sigfpe="guessing no";;
5535             esac
5536
5537 else
5538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h.  */
5540
5541 #include <stdlib.h>
5542 #include <signal.h>
5543
5544 static void
5545 sigfpe_handler (int sig)
5546 {
5547   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
5548   exit (sig != SIGFPE);
5549 }
5550
5551 int x = 1;
5552 int y = 0;
5553 int z;
5554 int nan;
5555
5556 int main ()
5557 {
5558   signal (SIGFPE, sigfpe_handler);
5559 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
5560 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5561   signal (SIGTRAP, sigfpe_handler);
5562 #endif
5563 /* Linux/SPARC yields signal SIGILL.  */
5564 #if defined (__sparc__) && defined (__linux__)
5565   signal (SIGILL, sigfpe_handler);
5566 #endif
5567
5568   z = x / y;
5569   nan = y / y;
5570   exit (1);
5571 }
5572
5573 _ACEOF
5574 if ac_fn_c_try_run "$LINENO"; then :
5575   gt_cv_int_divbyzero_sigfpe=yes
5576 else
5577   gt_cv_int_divbyzero_sigfpe=no
5578 fi
5579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5580   conftest.$ac_objext conftest.beam conftest.$ac_ext
5581 fi
5582
5583       fi
5584
5585 fi
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
5587 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
5588   case "$gt_cv_int_divbyzero_sigfpe" in
5589     *yes) value=1;;
5590     *) value=0;;
5591   esac
5592
5593 cat >>confdefs.h <<_ACEOF
5594 #define INTDIV0_RAISES_SIGFPE $value
5595 _ACEOF
5596
5597
5598
5599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
5600 $as_echo_n "checking for inttypes.h... " >&6; }
5601 if ${gl_cv_header_inttypes_h+:} false; then :
5602   $as_echo_n "(cached) " >&6
5603 else
5604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h.  */
5606 #include <sys/types.h>
5607 #include <inttypes.h>
5608 int
5609 main ()
5610 {
5611 uintmax_t i = (uintmax_t) -1; return !i;
5612   ;
5613   return 0;
5614 }
5615 _ACEOF
5616 if ac_fn_c_try_compile "$LINENO"; then :
5617   gl_cv_header_inttypes_h=yes
5618 else
5619   gl_cv_header_inttypes_h=no
5620 fi
5621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622 fi
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
5624 $as_echo "$gl_cv_header_inttypes_h" >&6; }
5625   if test $gl_cv_header_inttypes_h = yes; then
5626
5627 cat >>confdefs.h <<_ACEOF
5628 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5629 _ACEOF
5630
5631   fi
5632
5633
5634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5635 $as_echo_n "checking for unsigned long long int... " >&6; }
5636 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
5637   $as_echo_n "(cached) " >&6
5638 else
5639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h.  */
5641
5642   /* For now, do not test the preprocessor; as of 2007 there are too many
5643          implementations with broken preprocessors.  Perhaps this can
5644          be revisited in 2012.  In the meantime, code should not expect
5645          #if to work with literals wider than 32 bits.  */
5646       /* Test literals.  */
5647       long long int ll = 9223372036854775807ll;
5648       long long int nll = -9223372036854775807LL;
5649       unsigned long long int ull = 18446744073709551615ULL;
5650       /* Test constant expressions.   */
5651       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5652                      ? 1 : -1)];
5653       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5654                      ? 1 : -1)];
5655       int i = 63;
5656 int
5657 main ()
5658 {
5659 /* Test availability of runtime routines for shift and division.  */
5660       long long int llmax = 9223372036854775807ll;
5661       unsigned long long int ullmax = 18446744073709551615ull;
5662       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5663               | (llmax / ll) | (llmax % ll)
5664               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5665               | (ullmax / ull) | (ullmax % ull));
5666   ;
5667   return 0;
5668 }
5669
5670 _ACEOF
5671 if ac_fn_c_try_link "$LINENO"; then :
5672   ac_cv_type_unsigned_long_long_int=yes
5673 else
5674   ac_cv_type_unsigned_long_long_int=no
5675 fi
5676 rm -f core conftest.err conftest.$ac_objext \
5677     conftest$ac_exeext conftest.$ac_ext
5678 fi
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5680 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5681   if test $ac_cv_type_unsigned_long_long_int = yes; then
5682
5683 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5684
5685   fi
5686
5687
5688
5689
5690   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
5691
5692     test $ac_cv_type_unsigned_long_long_int = yes \
5693       && ac_type='unsigned long long' \
5694       || ac_type='unsigned long'
5695
5696 cat >>confdefs.h <<_ACEOF
5697 #define uintmax_t $ac_type
5698 _ACEOF
5699
5700   else
5701
5702 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
5703
5704   fi
5705
5706
5707   for ac_header in inttypes.h
5708 do :
5709   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5710 if test "x$ac_cv_header_inttypes_h" = xyes; then :
5711   cat >>confdefs.h <<_ACEOF
5712 #define HAVE_INTTYPES_H 1
5713 _ACEOF
5714
5715 fi
5716
5717 done
5718
5719   if test $ac_cv_header_inttypes_h = yes; then
5720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
5721 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
5722 if ${gt_cv_inttypes_pri_broken+:} false; then :
5723   $as_echo_n "(cached) " >&6
5724 else
5725
5726         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h.  */
5728 #include <inttypes.h>
5729 #ifdef PRId32
5730 char *p = PRId32;
5731 #endif
5732
5733 int
5734 main ()
5735 {
5736
5737   ;
5738   return 0;
5739 }
5740 _ACEOF
5741 if ac_fn_c_try_compile "$LINENO"; then :
5742   gt_cv_inttypes_pri_broken=no
5743 else
5744   gt_cv_inttypes_pri_broken=yes
5745 fi
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747
5748 fi
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
5750 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
5751   fi
5752   if test "$gt_cv_inttypes_pri_broken" = yes; then
5753
5754 cat >>confdefs.h <<_ACEOF
5755 #define PRI_MACROS_BROKEN 1
5756 _ACEOF
5757
5758     PRI_MACROS_BROKEN=1
5759   else
5760     PRI_MACROS_BROKEN=0
5761   fi
5762
5763
5764
5765
5766
5767
5768
5769   # Check whether --enable-threads was given.
5770 if test "${enable_threads+set}" = set; then :
5771   enableval=$enable_threads; gl_use_threads=$enableval
5772 else
5773   if test -n "$gl_use_threads_default"; then
5774        gl_use_threads="$gl_use_threads_default"
5775      else
5776        case "$host_os" in
5777                                                                osf*) gl_use_threads=no ;;
5778          cygwin*)
5779                case `uname -r` in
5780                  1.[0-5].*) gl_use_threads=no ;;
5781                  *)         gl_use_threads=yes ;;
5782                esac
5783                ;;
5784          *)    gl_use_threads=yes ;;
5785        esac
5786      fi
5787
5788 fi
5789
5790   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5791     # For using <pthread.h>:
5792     case "$host_os" in
5793       osf*)
5794         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5795         # groks <pthread.h>. cc also understands the flag -pthread, but
5796         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5797         # 2. putting a flag into CPPFLAGS that has an effect on the linker
5798         # causes the AC_TRY_LINK test below to succeed unexpectedly,
5799         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5800         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5801         ;;
5802     esac
5803     # Some systems optimize for single-threaded programs by default, and
5804     # need special flags to disable these optimizations. For example, the
5805     # definition of 'errno' in <errno.h>.
5806     case "$host_os" in
5807       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
5808       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
5809     esac
5810   fi
5811
5812
5813
5814
5815
5816       if test "X$prefix" = "XNONE"; then
5817     acl_final_prefix="$ac_default_prefix"
5818   else
5819     acl_final_prefix="$prefix"
5820   fi
5821   if test "X$exec_prefix" = "XNONE"; then
5822     acl_final_exec_prefix='${prefix}'
5823   else
5824     acl_final_exec_prefix="$exec_prefix"
5825   fi
5826   acl_save_prefix="$prefix"
5827   prefix="$acl_final_prefix"
5828   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5829   prefix="$acl_save_prefix"
5830
5831
5832 # Check whether --with-gnu-ld was given.
5833 if test "${with_gnu_ld+set}" = set; then :
5834   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5835 else
5836   with_gnu_ld=no
5837 fi
5838
5839 # Prepare PATH_SEPARATOR.
5840 # The user is always right.
5841 if test "${PATH_SEPARATOR+set}" != set; then
5842   echo "#! /bin/sh" >conf$$.sh
5843   echo  "exit 0"   >>conf$$.sh
5844   chmod +x conf$$.sh
5845   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5846     PATH_SEPARATOR=';'
5847   else
5848     PATH_SEPARATOR=:
5849   fi
5850   rm -f conf$$.sh
5851 fi
5852 ac_prog=ld
5853 if test "$GCC" = yes; then
5854   # Check if gcc -print-prog-name=ld gives a path.
5855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5856 $as_echo_n "checking for ld used by GCC... " >&6; }
5857   case $host in
5858   *-*-mingw*)
5859     # gcc leaves a trailing carriage return which upsets mingw
5860     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5861   *)
5862     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5863   esac
5864   case $ac_prog in
5865     # Accept absolute paths.
5866     [\\/]* | [A-Za-z]:[\\/]*)
5867       re_direlt='/[^/][^/]*/\.\./'
5868       # Canonicalize the path of ld
5869       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5870       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5871         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5872       done
5873       test -z "$LD" && LD="$ac_prog"
5874       ;;
5875   "")
5876     # If it fails, then pretend we aren't using GCC.
5877     ac_prog=ld
5878     ;;
5879   *)
5880     # If it is relative, then search for the first ld in PATH.
5881     with_gnu_ld=unknown
5882     ;;
5883   esac
5884 elif test "$with_gnu_ld" = yes; then
5885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5886 $as_echo_n "checking for GNU ld... " >&6; }
5887 else
5888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5889 $as_echo_n "checking for non-GNU ld... " >&6; }
5890 fi
5891 if ${acl_cv_path_LD+:} false; then :
5892   $as_echo_n "(cached) " >&6
5893 else
5894   if test -z "$LD"; then
5895   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5896   for ac_dir in $PATH; do
5897     test -z "$ac_dir" && ac_dir=.
5898     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5899       acl_cv_path_LD="$ac_dir/$ac_prog"
5900       # Check to see if the program is GNU ld.  I'd rather use --version,
5901       # but apparently some GNU ld's only accept -v.
5902       # Break only if it was the GNU/non-GNU ld that we prefer.
5903       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5904       *GNU* | *'with BFD'*)
5905         test "$with_gnu_ld" != no && break ;;
5906       *)
5907         test "$with_gnu_ld" != yes && break ;;
5908       esac
5909     fi
5910   done
5911   IFS="$ac_save_ifs"
5912 else
5913   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5914 fi
5915 fi
5916
5917 LD="$acl_cv_path_LD"
5918 if test -n "$LD"; then
5919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5920 $as_echo "$LD" >&6; }
5921 else
5922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923 $as_echo "no" >&6; }
5924 fi
5925 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5927 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5928 if ${acl_cv_prog_gnu_ld+:} false; then :
5929   $as_echo_n "(cached) " >&6
5930 else
5931   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5932 case `$LD -v 2>&1 </dev/null` in
5933 *GNU* | *'with BFD'*)
5934   acl_cv_prog_gnu_ld=yes ;;
5935 *)
5936   acl_cv_prog_gnu_ld=no ;;
5937 esac
5938 fi
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5940 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5941 with_gnu_ld=$acl_cv_prog_gnu_ld
5942
5943
5944
5945
5946                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5947 $as_echo_n "checking for shared library run path origin... " >&6; }
5948 if ${acl_cv_rpath+:} false; then :
5949   $as_echo_n "(cached) " >&6
5950 else
5951
5952     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5953     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5954     . ./conftest.sh
5955     rm -f ./conftest.sh
5956     acl_cv_rpath=done
5957
5958 fi
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5960 $as_echo "$acl_cv_rpath" >&6; }
5961   wl="$acl_cv_wl"
5962   acl_libext="$acl_cv_libext"
5963   acl_shlibext="$acl_cv_shlibext"
5964   acl_libname_spec="$acl_cv_libname_spec"
5965   acl_library_names_spec="$acl_cv_library_names_spec"
5966   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5967   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5968   acl_hardcode_direct="$acl_cv_hardcode_direct"
5969   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5970     # Check whether --enable-rpath was given.
5971 if test "${enable_rpath+set}" = set; then :
5972   enableval=$enable_rpath; :
5973 else
5974   enable_rpath=yes
5975 fi
5976
5977
5978
5979
5980   acl_libdirstem=lib
5981   acl_libdirstem2=
5982   case "$host_os" in
5983     solaris*)
5984                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5985 $as_echo_n "checking for 64-bit host... " >&6; }
5986 if ${gl_cv_solaris_64bit+:} false; then :
5987   $as_echo_n "(cached) " >&6
5988 else
5989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h.  */
5991
5992 #ifdef _LP64
5993 sixtyfour bits
5994 #endif
5995
5996 _ACEOF
5997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5998   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5999   gl_cv_solaris_64bit=yes
6000 else
6001   gl_cv_solaris_64bit=no
6002 fi
6003 rm -f conftest*
6004
6005
6006 fi
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6008 $as_echo "$gl_cv_solaris_64bit" >&6; }
6009       if test $gl_cv_solaris_64bit = yes; then
6010         acl_libdirstem=lib/64
6011         case "$host_cpu" in
6012           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
6013           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6014         esac
6015       fi
6016       ;;
6017     *)
6018       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6019       if test -n "$searchpath"; then
6020         acl_save_IFS="${IFS=    }"; IFS=":"
6021         for searchdir in $searchpath; do
6022           if test -d "$searchdir"; then
6023             case "$searchdir" in
6024               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6025               */../ | */.. )
6026                 # Better ignore directories of this form. They are misleading.
6027                 ;;
6028               *) searchdir=`cd "$searchdir" && pwd`
6029                  case "$searchdir" in
6030                    */lib64 ) acl_libdirstem=lib64 ;;
6031                  esac ;;
6032             esac
6033           fi
6034         done
6035         IFS="$acl_save_IFS"
6036       fi
6037       ;;
6038   esac
6039   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6040
6041
6042
6043   gl_threads_api=none
6044   LIBTHREAD=
6045   LTLIBTHREAD=
6046   LIBMULTITHREAD=
6047   LTLIBMULTITHREAD=
6048   if test "$gl_use_threads" != no; then
6049         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
6050 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
6051 if ${gl_cv_have_weak+:} false; then :
6052   $as_echo_n "(cached) " >&6
6053 else
6054   gl_cv_have_weak=no
6055               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h.  */
6057 extern void xyzzy ();
6058 #pragma weak xyzzy
6059 int
6060 main ()
6061 {
6062 xyzzy();
6063   ;
6064   return 0;
6065 }
6066 _ACEOF
6067 if ac_fn_c_try_link "$LINENO"; then :
6068   gl_cv_have_weak=maybe
6069 fi
6070 rm -f core conftest.err conftest.$ac_objext \
6071     conftest$ac_exeext conftest.$ac_ext
6072        if test $gl_cv_have_weak = maybe; then
6073                            if test "$cross_compiling" = yes; then :
6074                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h.  */
6076 #ifdef __ELF__
6077                Extensible Linking Format
6078                #endif
6079
6080 _ACEOF
6081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6082   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
6083   gl_cv_have_weak="guessing yes"
6084 else
6085   gl_cv_have_weak="guessing no"
6086 fi
6087 rm -f conftest*
6088
6089
6090 else
6091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h.  */
6093
6094 #include <stdio.h>
6095 #pragma weak fputs
6096 int main ()
6097 {
6098   return (fputs == NULL);
6099 }
6100 _ACEOF
6101 if ac_fn_c_try_run "$LINENO"; then :
6102   gl_cv_have_weak=yes
6103 else
6104   gl_cv_have_weak=no
6105 fi
6106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6107   conftest.$ac_objext conftest.beam conftest.$ac_ext
6108 fi
6109
6110        fi
6111
6112 fi
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
6114 $as_echo "$gl_cv_have_weak" >&6; }
6115     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6116       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
6117       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
6118       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6119 if test "x$ac_cv_header_pthread_h" = xyes; then :
6120   gl_have_pthread_h=yes
6121 else
6122   gl_have_pthread_h=no
6123 fi
6124
6125
6126       if test "$gl_have_pthread_h" = yes; then
6127         # Other possible tests:
6128         #   -lpthreads (FSU threads, PCthreads)
6129         #   -lgthreads
6130         gl_have_pthread=
6131         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
6132         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
6133         # the second one only in libpthread, and lock.c needs it.
6134         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h.  */
6136 #include <pthread.h>
6137 int
6138 main ()
6139 {
6140 pthread_mutex_lock((pthread_mutex_t*)0);
6141            pthread_mutexattr_init((pthread_mutexattr_t*)0);
6142   ;
6143   return 0;
6144 }
6145 _ACEOF
6146 if ac_fn_c_try_link "$LINENO"; then :
6147   gl_have_pthread=yes
6148 fi
6149 rm -f core conftest.err conftest.$ac_objext \
6150     conftest$ac_exeext conftest.$ac_ext
6151         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
6152         # since it is defined as a macro on OSF/1.)
6153         if test -n "$gl_have_pthread"; then
6154           # The program links fine without libpthread. But it may actually
6155           # need to link with libpthread in order to create multiple threads.
6156           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
6157 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
6158 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
6159   $as_echo_n "(cached) " >&6
6160 else
6161   ac_check_lib_save_LIBS=$LIBS
6162 LIBS="-lpthread  $LIBS"
6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h.  */
6165
6166 /* Override any GCC internal prototype to avoid an error.
6167    Use char because int might match the return type of a GCC
6168    builtin and then its argument prototype would still apply.  */
6169 #ifdef __cplusplus
6170 extern "C"
6171 #endif
6172 char pthread_kill ();
6173 int
6174 main ()
6175 {
6176 return pthread_kill ();
6177   ;
6178   return 0;
6179 }
6180 _ACEOF
6181 if ac_fn_c_try_link "$LINENO"; then :
6182   ac_cv_lib_pthread_pthread_kill=yes
6183 else
6184   ac_cv_lib_pthread_pthread_kill=no
6185 fi
6186 rm -f core conftest.err conftest.$ac_objext \
6187     conftest$ac_exeext conftest.$ac_ext
6188 LIBS=$ac_check_lib_save_LIBS
6189 fi
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
6191 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
6192 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
6193   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6194              # On Solaris and HP-UX, most pthread functions exist also in libc.
6195              # Therefore pthread_in_use() needs to actually try to create a
6196              # thread: pthread_create from libc will fail, whereas
6197              # pthread_create will actually create a thread.
6198              case "$host_os" in
6199                solaris* | hpux*)
6200
6201 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
6202
6203              esac
6204
6205 fi
6206
6207         else
6208           # Some library is needed. Try libpthread and libc_r.
6209           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
6210 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
6211 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
6212   $as_echo_n "(cached) " >&6
6213 else
6214   ac_check_lib_save_LIBS=$LIBS
6215 LIBS="-lpthread  $LIBS"
6216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6217 /* end confdefs.h.  */
6218
6219 /* Override any GCC internal prototype to avoid an error.
6220    Use char because int might match the return type of a GCC
6221    builtin and then its argument prototype would still apply.  */
6222 #ifdef __cplusplus
6223 extern "C"
6224 #endif
6225 char pthread_kill ();
6226 int
6227 main ()
6228 {
6229 return pthread_kill ();
6230   ;
6231   return 0;
6232 }
6233 _ACEOF
6234 if ac_fn_c_try_link "$LINENO"; then :
6235   ac_cv_lib_pthread_pthread_kill=yes
6236 else
6237   ac_cv_lib_pthread_pthread_kill=no
6238 fi
6239 rm -f core conftest.err conftest.$ac_objext \
6240     conftest$ac_exeext conftest.$ac_ext
6241 LIBS=$ac_check_lib_save_LIBS
6242 fi
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
6244 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
6245 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
6246   gl_have_pthread=yes
6247              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
6248              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6249 fi
6250
6251           if test -z "$gl_have_pthread"; then
6252             # For FreeBSD 4.
6253             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
6254 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
6255 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
6256   $as_echo_n "(cached) " >&6
6257 else
6258   ac_check_lib_save_LIBS=$LIBS
6259 LIBS="-lc_r  $LIBS"
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h.  */
6262
6263 /* Override any GCC internal prototype to avoid an error.
6264    Use char because int might match the return type of a GCC
6265    builtin and then its argument prototype would still apply.  */
6266 #ifdef __cplusplus
6267 extern "C"
6268 #endif
6269 char pthread_kill ();
6270 int
6271 main ()
6272 {
6273 return pthread_kill ();
6274   ;
6275   return 0;
6276 }
6277 _ACEOF
6278 if ac_fn_c_try_link "$LINENO"; then :
6279   ac_cv_lib_c_r_pthread_kill=yes
6280 else
6281   ac_cv_lib_c_r_pthread_kill=no
6282 fi
6283 rm -f core conftest.err conftest.$ac_objext \
6284     conftest$ac_exeext conftest.$ac_ext
6285 LIBS=$ac_check_lib_save_LIBS
6286 fi
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
6288 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
6289 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
6290   gl_have_pthread=yes
6291                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
6292                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
6293 fi
6294
6295           fi
6296         fi
6297         if test -n "$gl_have_pthread"; then
6298           gl_threads_api=posix
6299
6300 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
6301
6302           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
6303             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6304
6305 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
6306
6307               LIBTHREAD=
6308               LTLIBTHREAD=
6309             fi
6310           fi
6311         fi
6312       fi
6313     fi
6314     if test -z "$gl_have_pthread"; then
6315       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
6316         gl_have_solaristhread=
6317         gl_save_LIBS="$LIBS"
6318         LIBS="$LIBS -lthread"
6319         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h.  */
6321 #include <thread.h>
6322 #include <synch.h>
6323 int
6324 main ()
6325 {
6326 thr_self();
6327   ;
6328   return 0;
6329 }
6330 _ACEOF
6331 if ac_fn_c_try_link "$LINENO"; then :
6332   gl_have_solaristhread=yes
6333 fi
6334 rm -f core conftest.err conftest.$ac_objext \
6335     conftest$ac_exeext conftest.$ac_ext
6336         LIBS="$gl_save_LIBS"
6337         if test -n "$gl_have_solaristhread"; then
6338           gl_threads_api=solaris
6339           LIBTHREAD=-lthread
6340           LTLIBTHREAD=-lthread
6341           LIBMULTITHREAD="$LIBTHREAD"
6342           LTLIBMULTITHREAD="$LTLIBTHREAD"
6343
6344 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
6345
6346           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6347
6348 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
6349
6350             LIBTHREAD=
6351             LTLIBTHREAD=
6352           fi
6353         fi
6354       fi
6355     fi
6356     if test "$gl_use_threads" = pth; then
6357       gl_save_CPPFLAGS="$CPPFLAGS"
6358
6359
6360
6361
6362
6363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
6364 $as_echo_n "checking how to link with libpth... " >&6; }
6365 if ${ac_cv_libpth_libs+:} false; then :
6366   $as_echo_n "(cached) " >&6
6367 else
6368
6369
6370
6371
6372
6373
6374
6375
6376     use_additional=yes
6377
6378   acl_save_prefix="$prefix"
6379   prefix="$acl_final_prefix"
6380   acl_save_exec_prefix="$exec_prefix"
6381   exec_prefix="$acl_final_exec_prefix"
6382
6383     eval additional_includedir=\"$includedir\"
6384     eval additional_libdir=\"$libdir\"
6385
6386   exec_prefix="$acl_save_exec_prefix"
6387   prefix="$acl_save_prefix"
6388
6389
6390 # Check whether --with-libpth-prefix was given.
6391 if test "${with_libpth_prefix+set}" = set; then :
6392   withval=$with_libpth_prefix;
6393     if test "X$withval" = "Xno"; then
6394       use_additional=no
6395     else
6396       if test "X$withval" = "X"; then
6397
6398   acl_save_prefix="$prefix"
6399   prefix="$acl_final_prefix"
6400   acl_save_exec_prefix="$exec_prefix"
6401   exec_prefix="$acl_final_exec_prefix"
6402
6403           eval additional_includedir=\"$includedir\"
6404           eval additional_libdir=\"$libdir\"
6405
6406   exec_prefix="$acl_save_exec_prefix"
6407   prefix="$acl_save_prefix"
6408
6409       else
6410         additional_includedir="$withval/include"
6411         additional_libdir="$withval/$acl_libdirstem"
6412         if test "$acl_libdirstem2" != "$acl_libdirstem" \
6413            && ! test -d "$withval/$acl_libdirstem"; then
6414           additional_libdir="$withval/$acl_libdirstem2"
6415         fi
6416       fi
6417     fi
6418
6419 fi
6420
6421       LIBPTH=
6422   LTLIBPTH=
6423   INCPTH=
6424   LIBPTH_PREFIX=
6425       HAVE_LIBPTH=
6426   rpathdirs=
6427   ltrpathdirs=
6428   names_already_handled=
6429   names_next_round='pth '
6430   while test -n "$names_next_round"; do
6431     names_this_round="$names_next_round"
6432     names_next_round=
6433     for name in $names_this_round; do
6434       already_handled=
6435       for n in $names_already_handled; do
6436         if test "$n" = "$name"; then
6437           already_handled=yes
6438           break
6439         fi
6440       done
6441       if test -z "$already_handled"; then
6442         names_already_handled="$names_already_handled $name"
6443                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6444         eval value=\"\$HAVE_LIB$uppername\"
6445         if test -n "$value"; then
6446           if test "$value" = yes; then
6447             eval value=\"\$LIB$uppername\"
6448             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
6449             eval value=\"\$LTLIB$uppername\"
6450             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
6451           else
6452                                     :
6453           fi
6454         else
6455                               found_dir=
6456           found_la=
6457           found_so=
6458           found_a=
6459           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6460           if test -n "$acl_shlibext"; then
6461             shrext=".$acl_shlibext"             # typically: shrext=.so
6462           else
6463             shrext=
6464           fi
6465           if test $use_additional = yes; then
6466             dir="$additional_libdir"
6467                                     if test -n "$acl_shlibext"; then
6468               if test -f "$dir/$libname$shrext"; then
6469                 found_dir="$dir"
6470                 found_so="$dir/$libname$shrext"
6471               else
6472                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6473                   ver=`(cd "$dir" && \
6474                         for f in "$libname$shrext".*; do echo "$f"; done \
6475                         | sed -e "s,^$libname$shrext\\\\.,," \
6476                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6477                         | sed 1q ) 2>/dev/null`
6478                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6479                     found_dir="$dir"
6480                     found_so="$dir/$libname$shrext.$ver"
6481                   fi
6482                 else
6483                   eval library_names=\"$acl_library_names_spec\"
6484                   for f in $library_names; do
6485                     if test -f "$dir/$f"; then
6486                       found_dir="$dir"
6487                       found_so="$dir/$f"
6488                       break
6489                     fi
6490                   done
6491                 fi
6492               fi
6493             fi
6494                         if test "X$found_dir" = "X"; then
6495               if test -f "$dir/$libname.$acl_libext"; then
6496                 found_dir="$dir"
6497                 found_a="$dir/$libname.$acl_libext"
6498               fi
6499             fi
6500             if test "X$found_dir" != "X"; then
6501               if test -f "$dir/$libname.la"; then
6502                 found_la="$dir/$libname.la"
6503               fi
6504             fi
6505           fi
6506           if test "X$found_dir" = "X"; then
6507             for x in $LDFLAGS $LTLIBPTH; do
6508
6509   acl_save_prefix="$prefix"
6510   prefix="$acl_final_prefix"
6511   acl_save_exec_prefix="$exec_prefix"
6512   exec_prefix="$acl_final_exec_prefix"
6513   eval x=\"$x\"
6514   exec_prefix="$acl_save_exec_prefix"
6515   prefix="$acl_save_prefix"
6516
6517               case "$x" in
6518                 -L*)
6519                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6520                                     if test -n "$acl_shlibext"; then
6521                     if test -f "$dir/$libname$shrext"; then
6522                       found_dir="$dir"
6523                       found_so="$dir/$libname$shrext"
6524                     else
6525                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6526                         ver=`(cd "$dir" && \
6527                               for f in "$libname$shrext".*; do echo "$f"; done \
6528                               | sed -e "s,^$libname$shrext\\\\.,," \
6529                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6530                               | sed 1q ) 2>/dev/null`
6531                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6532                           found_dir="$dir"
6533                           found_so="$dir/$libname$shrext.$ver"
6534                         fi
6535                       else
6536                         eval library_names=\"$acl_library_names_spec\"
6537                         for f in $library_names; do
6538                           if test -f "$dir/$f"; then
6539                             found_dir="$dir"
6540                             found_so="$dir/$f"
6541                             break
6542                           fi
6543                         done
6544                       fi
6545                     fi
6546                   fi
6547                                     if test "X$found_dir" = "X"; then
6548                     if test -f "$dir/$libname.$acl_libext"; then
6549                       found_dir="$dir"
6550                       found_a="$dir/$libname.$acl_libext"
6551                     fi
6552                   fi
6553                   if test "X$found_dir" != "X"; then
6554                     if test -f "$dir/$libname.la"; then
6555                       found_la="$dir/$libname.la"
6556                     fi
6557                   fi
6558                   ;;
6559               esac
6560               if test "X$found_dir" != "X"; then
6561                 break
6562               fi
6563             done
6564           fi
6565           if test "X$found_dir" != "X"; then
6566                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
6567             if test "X$found_so" != "X"; then
6568                                                         if test "$enable_rpath" = no \
6569                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6570                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6571                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6572               else
6573                                                                                 haveit=
6574                 for x in $ltrpathdirs; do
6575                   if test "X$x" = "X$found_dir"; then
6576                     haveit=yes
6577                     break
6578                   fi
6579                 done
6580                 if test -z "$haveit"; then
6581                   ltrpathdirs="$ltrpathdirs $found_dir"
6582                 fi
6583                                 if test "$acl_hardcode_direct" = yes; then
6584                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6585                 else
6586                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6587                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6588                                                             haveit=
6589                     for x in $rpathdirs; do
6590                       if test "X$x" = "X$found_dir"; then
6591                         haveit=yes
6592                         break
6593                       fi
6594                     done
6595                     if test -z "$haveit"; then
6596                       rpathdirs="$rpathdirs $found_dir"
6597                     fi
6598                   else
6599                                                                                 haveit=
6600                     for x in $LDFLAGS $LIBPTH; do
6601
6602   acl_save_prefix="$prefix"
6603   prefix="$acl_final_prefix"
6604   acl_save_exec_prefix="$exec_prefix"
6605   exec_prefix="$acl_final_exec_prefix"
6606   eval x=\"$x\"
6607   exec_prefix="$acl_save_exec_prefix"
6608   prefix="$acl_save_prefix"
6609
6610                       if test "X$x" = "X-L$found_dir"; then
6611                         haveit=yes
6612                         break
6613                       fi
6614                     done
6615                     if test -z "$haveit"; then
6616                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
6617                     fi
6618                     if test "$acl_hardcode_minus_L" != no; then
6619                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6620                     else
6621                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
6622                     fi
6623                   fi
6624                 fi
6625               fi
6626             else
6627               if test "X$found_a" != "X"; then
6628                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
6629               else
6630                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
6631               fi
6632             fi
6633                         additional_includedir=
6634             case "$found_dir" in
6635               */$acl_libdirstem | */$acl_libdirstem/)
6636                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6637                 if test "$name" = 'pth'; then
6638                   LIBPTH_PREFIX="$basedir"
6639                 fi
6640                 additional_includedir="$basedir/include"
6641                 ;;
6642               */$acl_libdirstem2 | */$acl_libdirstem2/)
6643                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6644                 if test "$name" = 'pth'; then
6645                   LIBPTH_PREFIX="$basedir"
6646                 fi
6647                 additional_includedir="$basedir/include"
6648                 ;;
6649             esac
6650             if test "X$additional_includedir" != "X"; then
6651                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6652                 haveit=
6653                 if test "X$additional_includedir" = "X/usr/local/include"; then
6654                   if test -n "$GCC"; then
6655                     case $host_os in
6656                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6657                     esac
6658                   fi
6659                 fi
6660                 if test -z "$haveit"; then
6661                   for x in $CPPFLAGS $INCPTH; do
6662
6663   acl_save_prefix="$prefix"
6664   prefix="$acl_final_prefix"
6665   acl_save_exec_prefix="$exec_prefix"
6666   exec_prefix="$acl_final_exec_prefix"
6667   eval x=\"$x\"
6668   exec_prefix="$acl_save_exec_prefix"
6669   prefix="$acl_save_prefix"
6670
6671                     if test "X$x" = "X-I$additional_includedir"; then
6672                       haveit=yes
6673                       break
6674                     fi
6675                   done
6676                   if test -z "$haveit"; then
6677                     if test -d "$additional_includedir"; then
6678                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
6679                     fi
6680                   fi
6681                 fi
6682               fi
6683             fi
6684                         if test -n "$found_la"; then
6685                                                         save_libdir="$libdir"
6686               case "$found_la" in
6687                 */* | *\\*) . "$found_la" ;;
6688                 *) . "./$found_la" ;;
6689               esac
6690               libdir="$save_libdir"
6691                             for dep in $dependency_libs; do
6692                 case "$dep" in
6693                   -L*)
6694                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6695                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6696                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6697                       haveit=
6698                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6699                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6700                         if test -n "$GCC"; then
6701                           case $host_os in
6702                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6703                           esac
6704                         fi
6705                       fi
6706                       if test -z "$haveit"; then
6707                         haveit=
6708                         for x in $LDFLAGS $LIBPTH; do
6709
6710   acl_save_prefix="$prefix"
6711   prefix="$acl_final_prefix"
6712   acl_save_exec_prefix="$exec_prefix"
6713   exec_prefix="$acl_final_exec_prefix"
6714   eval x=\"$x\"
6715   exec_prefix="$acl_save_exec_prefix"
6716   prefix="$acl_save_prefix"
6717
6718                           if test "X$x" = "X-L$additional_libdir"; then
6719                             haveit=yes
6720                             break
6721                           fi
6722                         done
6723                         if test -z "$haveit"; then
6724                           if test -d "$additional_libdir"; then
6725                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
6726                           fi
6727                         fi
6728                         haveit=
6729                         for x in $LDFLAGS $LTLIBPTH; do
6730
6731   acl_save_prefix="$prefix"
6732   prefix="$acl_final_prefix"
6733   acl_save_exec_prefix="$exec_prefix"
6734   exec_prefix="$acl_final_exec_prefix"
6735   eval x=\"$x\"
6736   exec_prefix="$acl_save_exec_prefix"
6737   prefix="$acl_save_prefix"
6738
6739                           if test "X$x" = "X-L$additional_libdir"; then
6740                             haveit=yes
6741                             break
6742                           fi
6743                         done
6744                         if test -z "$haveit"; then
6745                           if test -d "$additional_libdir"; then
6746                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
6747                           fi
6748                         fi
6749                       fi
6750                     fi
6751                     ;;
6752                   -R*)
6753                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6754                     if test "$enable_rpath" != no; then
6755                                                                   haveit=
6756                       for x in $rpathdirs; do
6757                         if test "X$x" = "X$dir"; then
6758                           haveit=yes
6759                           break
6760                         fi
6761                       done
6762                       if test -z "$haveit"; then
6763                         rpathdirs="$rpathdirs $dir"
6764                       fi
6765                                                                   haveit=
6766                       for x in $ltrpathdirs; do
6767                         if test "X$x" = "X$dir"; then
6768                           haveit=yes
6769                           break
6770                         fi
6771                       done
6772                       if test -z "$haveit"; then
6773                         ltrpathdirs="$ltrpathdirs $dir"
6774                       fi
6775                     fi
6776                     ;;
6777                   -l*)
6778                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6779                     ;;
6780                   *.la)
6781                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6782                     ;;
6783                   *)
6784                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
6785                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
6786                     ;;
6787                 esac
6788               done
6789             fi
6790           else
6791                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
6792             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
6793           fi
6794         fi
6795       fi
6796     done
6797   done
6798   if test "X$rpathdirs" != "X"; then
6799     if test -n "$acl_hardcode_libdir_separator"; then
6800                         alldirs=
6801       for found_dir in $rpathdirs; do
6802         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6803       done
6804             acl_save_libdir="$libdir"
6805       libdir="$alldirs"
6806       eval flag=\"$acl_hardcode_libdir_flag_spec\"
6807       libdir="$acl_save_libdir"
6808       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
6809     else
6810             for found_dir in $rpathdirs; do
6811         acl_save_libdir="$libdir"
6812         libdir="$found_dir"
6813         eval flag=\"$acl_hardcode_libdir_flag_spec\"
6814         libdir="$acl_save_libdir"
6815         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
6816       done
6817     fi
6818   fi
6819   if test "X$ltrpathdirs" != "X"; then
6820             for found_dir in $ltrpathdirs; do
6821       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
6822     done
6823   fi
6824
6825
6826
6827
6828
6829
6830     ac_cv_libpth_libs="$LIBPTH"
6831     ac_cv_libpth_ltlibs="$LTLIBPTH"
6832     ac_cv_libpth_cppflags="$INCPTH"
6833     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
6834
6835 fi
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
6837 $as_echo "$ac_cv_libpth_libs" >&6; }
6838   LIBPTH="$ac_cv_libpth_libs"
6839   LTLIBPTH="$ac_cv_libpth_ltlibs"
6840   INCPTH="$ac_cv_libpth_cppflags"
6841   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
6842
6843   for element in $INCPTH; do
6844     haveit=
6845     for x in $CPPFLAGS; do
6846
6847   acl_save_prefix="$prefix"
6848   prefix="$acl_final_prefix"
6849   acl_save_exec_prefix="$exec_prefix"
6850   exec_prefix="$acl_final_exec_prefix"
6851   eval x=\"$x\"
6852   exec_prefix="$acl_save_exec_prefix"
6853   prefix="$acl_save_prefix"
6854
6855       if test "X$x" = "X$element"; then
6856         haveit=yes
6857         break
6858       fi
6859     done
6860     if test -z "$haveit"; then
6861       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6862     fi
6863   done
6864
6865
6866
6867
6868       HAVE_LIBPTH=yes
6869
6870
6871
6872       gl_have_pth=
6873       gl_save_LIBS="$LIBS"
6874       LIBS="$LIBS -lpth"
6875       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h.  */
6877 #include <pth.h>
6878 int
6879 main ()
6880 {
6881 pth_self();
6882   ;
6883   return 0;
6884 }
6885 _ACEOF
6886 if ac_fn_c_try_link "$LINENO"; then :
6887   gl_have_pth=yes
6888 fi
6889 rm -f core conftest.err conftest.$ac_objext \
6890     conftest$ac_exeext conftest.$ac_ext
6891       LIBS="$gl_save_LIBS"
6892       if test -n "$gl_have_pth"; then
6893         gl_threads_api=pth
6894         LIBTHREAD="$LIBPTH"
6895         LTLIBTHREAD="$LTLIBPTH"
6896         LIBMULTITHREAD="$LIBTHREAD"
6897         LTLIBMULTITHREAD="$LTLIBTHREAD"
6898
6899 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
6900
6901         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
6902           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6903
6904 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
6905
6906             LIBTHREAD=
6907             LTLIBTHREAD=
6908           fi
6909         fi
6910       else
6911         CPPFLAGS="$gl_save_CPPFLAGS"
6912       fi
6913     fi
6914     if test -z "$gl_have_pthread"; then
6915       if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
6916         if { case "$host_os" in
6917                mingw*) true;;
6918                *) false;;
6919              esac
6920            }; then
6921           gl_threads_api=win32
6922
6923 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
6924
6925         fi
6926       fi
6927     fi
6928   fi
6929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
6930 $as_echo_n "checking for multithread API to use... " >&6; }
6931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
6932 $as_echo "$gl_threads_api" >&6; }
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944   if test "$gl_threads_api" = posix; then
6945     # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
6946     # pthread_rwlock_* functions.
6947     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
6948 "
6949 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
6950
6951 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
6952
6953 fi
6954
6955     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
6956     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h.  */
6958 #include <pthread.h>
6959 int
6960 main ()
6961 {
6962 #if __FreeBSD__ == 4
6963 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
6964 #else
6965 int x = (int)PTHREAD_MUTEX_RECURSIVE;
6966 return !x;
6967 #endif
6968   ;
6969   return 0;
6970 }
6971 _ACEOF
6972 if ac_fn_c_try_compile "$LINENO"; then :
6973
6974 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
6975
6976 fi
6977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6978   fi
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994     use_additional=yes
6995
6996   acl_save_prefix="$prefix"
6997   prefix="$acl_final_prefix"
6998   acl_save_exec_prefix="$exec_prefix"
6999   exec_prefix="$acl_final_exec_prefix"
7000
7001     eval additional_includedir=\"$includedir\"
7002     eval additional_libdir=\"$libdir\"
7003
7004   exec_prefix="$acl_save_exec_prefix"
7005   prefix="$acl_save_prefix"
7006
7007
7008 # Check whether --with-libiconv-prefix was given.
7009 if test "${with_libiconv_prefix+set}" = set; then :
7010   withval=$with_libiconv_prefix;
7011     if test "X$withval" = "Xno"; then
7012       use_additional=no
7013     else
7014       if test "X$withval" = "X"; then
7015
7016   acl_save_prefix="$prefix"
7017   prefix="$acl_final_prefix"
7018   acl_save_exec_prefix="$exec_prefix"
7019   exec_prefix="$acl_final_exec_prefix"
7020
7021           eval additional_includedir=\"$includedir\"
7022           eval additional_libdir=\"$libdir\"
7023
7024   exec_prefix="$acl_save_exec_prefix"
7025   prefix="$acl_save_prefix"
7026
7027       else
7028         additional_includedir="$withval/include"
7029         additional_libdir="$withval/$acl_libdirstem"
7030         if test "$acl_libdirstem2" != "$acl_libdirstem" \
7031            && ! test -d "$withval/$acl_libdirstem"; then
7032           additional_libdir="$withval/$acl_libdirstem2"
7033         fi
7034       fi
7035     fi
7036
7037 fi
7038
7039       LIBICONV=
7040   LTLIBICONV=
7041   INCICONV=
7042   LIBICONV_PREFIX=
7043       HAVE_LIBICONV=
7044   rpathdirs=
7045   ltrpathdirs=
7046   names_already_handled=
7047   names_next_round='iconv '
7048   while test -n "$names_next_round"; do
7049     names_this_round="$names_next_round"
7050     names_next_round=
7051     for name in $names_this_round; do
7052       already_handled=
7053       for n in $names_already_handled; do
7054         if test "$n" = "$name"; then
7055           already_handled=yes
7056           break
7057         fi
7058       done
7059       if test -z "$already_handled"; then
7060         names_already_handled="$names_already_handled $name"
7061                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7062         eval value=\"\$HAVE_LIB$uppername\"
7063         if test -n "$value"; then
7064           if test "$value" = yes; then
7065             eval value=\"\$LIB$uppername\"
7066             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7067             eval value=\"\$LTLIB$uppername\"
7068             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7069           else
7070                                     :
7071           fi
7072         else
7073                               found_dir=
7074           found_la=
7075           found_so=
7076           found_a=
7077           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
7078           if test -n "$acl_shlibext"; then
7079             shrext=".$acl_shlibext"             # typically: shrext=.so
7080           else
7081             shrext=
7082           fi
7083           if test $use_additional = yes; then
7084             dir="$additional_libdir"
7085                                     if test -n "$acl_shlibext"; then
7086               if test -f "$dir/$libname$shrext"; then
7087                 found_dir="$dir"
7088                 found_so="$dir/$libname$shrext"
7089               else
7090                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7091                   ver=`(cd "$dir" && \
7092                         for f in "$libname$shrext".*; do echo "$f"; done \
7093                         | sed -e "s,^$libname$shrext\\\\.,," \
7094                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7095                         | sed 1q ) 2>/dev/null`
7096                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7097                     found_dir="$dir"
7098                     found_so="$dir/$libname$shrext.$ver"
7099                   fi
7100                 else
7101                   eval library_names=\"$acl_library_names_spec\"
7102                   for f in $library_names; do
7103                     if test -f "$dir/$f"; then
7104                       found_dir="$dir"
7105                       found_so="$dir/$f"
7106                       break
7107                     fi
7108                   done
7109                 fi
7110               fi
7111             fi
7112                         if test "X$found_dir" = "X"; then
7113               if test -f "$dir/$libname.$acl_libext"; then
7114                 found_dir="$dir"
7115                 found_a="$dir/$libname.$acl_libext"
7116               fi
7117             fi
7118             if test "X$found_dir" != "X"; then
7119               if test -f "$dir/$libname.la"; then
7120                 found_la="$dir/$libname.la"
7121               fi
7122             fi
7123           fi
7124           if test "X$found_dir" = "X"; then
7125             for x in $LDFLAGS $LTLIBICONV; do
7126
7127   acl_save_prefix="$prefix"
7128   prefix="$acl_final_prefix"
7129   acl_save_exec_prefix="$exec_prefix"
7130   exec_prefix="$acl_final_exec_prefix"
7131   eval x=\"$x\"
7132   exec_prefix="$acl_save_exec_prefix"
7133   prefix="$acl_save_prefix"
7134
7135               case "$x" in
7136                 -L*)
7137                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7138                                     if test -n "$acl_shlibext"; then
7139                     if test -f "$dir/$libname$shrext"; then
7140                       found_dir="$dir"
7141                       found_so="$dir/$libname$shrext"
7142                     else
7143                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7144                         ver=`(cd "$dir" && \
7145                               for f in "$libname$shrext".*; do echo "$f"; done \
7146                               | sed -e "s,^$libname$shrext\\\\.,," \
7147                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7148                               | sed 1q ) 2>/dev/null`
7149                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7150                           found_dir="$dir"
7151                           found_so="$dir/$libname$shrext.$ver"
7152                         fi
7153                       else
7154                         eval library_names=\"$acl_library_names_spec\"
7155                         for f in $library_names; do
7156                           if test -f "$dir/$f"; then
7157                             found_dir="$dir"
7158                             found_so="$dir/$f"
7159                             break
7160                           fi
7161                         done
7162                       fi
7163                     fi
7164                   fi
7165                                     if test "X$found_dir" = "X"; then
7166                     if test -f "$dir/$libname.$acl_libext"; then
7167                       found_dir="$dir"
7168                       found_a="$dir/$libname.$acl_libext"
7169                     fi
7170                   fi
7171                   if test "X$found_dir" != "X"; then
7172                     if test -f "$dir/$libname.la"; then
7173                       found_la="$dir/$libname.la"
7174                     fi
7175                   fi
7176                   ;;
7177               esac
7178               if test "X$found_dir" != "X"; then
7179                 break
7180               fi
7181             done
7182           fi
7183           if test "X$found_dir" != "X"; then
7184                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7185             if test "X$found_so" != "X"; then
7186                                                         if test "$enable_rpath" = no \
7187                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7188                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7189                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7190               else
7191                                                                                 haveit=
7192                 for x in $ltrpathdirs; do
7193                   if test "X$x" = "X$found_dir"; then
7194                     haveit=yes
7195                     break
7196                   fi
7197                 done
7198                 if test -z "$haveit"; then
7199                   ltrpathdirs="$ltrpathdirs $found_dir"
7200                 fi
7201                                 if test "$acl_hardcode_direct" = yes; then
7202                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7203                 else
7204                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7205                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7206                                                             haveit=
7207                     for x in $rpathdirs; do
7208                       if test "X$x" = "X$found_dir"; then
7209                         haveit=yes
7210                         break
7211                       fi
7212                     done
7213                     if test -z "$haveit"; then
7214                       rpathdirs="$rpathdirs $found_dir"
7215                     fi
7216                   else
7217                                                                                 haveit=
7218                     for x in $LDFLAGS $LIBICONV; do
7219
7220   acl_save_prefix="$prefix"
7221   prefix="$acl_final_prefix"
7222   acl_save_exec_prefix="$exec_prefix"
7223   exec_prefix="$acl_final_exec_prefix"
7224   eval x=\"$x\"
7225   exec_prefix="$acl_save_exec_prefix"
7226   prefix="$acl_save_prefix"
7227
7228                       if test "X$x" = "X-L$found_dir"; then
7229                         haveit=yes
7230                         break
7231                       fi
7232                     done
7233                     if test -z "$haveit"; then
7234                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7235                     fi
7236                     if test "$acl_hardcode_minus_L" != no; then
7237                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7238                     else
7239                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7240                     fi
7241                   fi
7242                 fi
7243               fi
7244             else
7245               if test "X$found_a" != "X"; then
7246                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7247               else
7248                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7249               fi
7250             fi
7251                         additional_includedir=
7252             case "$found_dir" in
7253               */$acl_libdirstem | */$acl_libdirstem/)
7254                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7255                 if test "$name" = 'iconv'; then
7256                   LIBICONV_PREFIX="$basedir"
7257                 fi
7258                 additional_includedir="$basedir/include"
7259                 ;;
7260               */$acl_libdirstem2 | */$acl_libdirstem2/)
7261                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7262                 if test "$name" = 'iconv'; then
7263                   LIBICONV_PREFIX="$basedir"
7264                 fi
7265                 additional_includedir="$basedir/include"
7266                 ;;
7267             esac
7268             if test "X$additional_includedir" != "X"; then
7269                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7270                 haveit=
7271                 if test "X$additional_includedir" = "X/usr/local/include"; then
7272                   if test -n "$GCC"; then
7273                     case $host_os in
7274                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7275                     esac
7276                   fi
7277                 fi
7278                 if test -z "$haveit"; then
7279                   for x in $CPPFLAGS $INCICONV; do
7280
7281   acl_save_prefix="$prefix"
7282   prefix="$acl_final_prefix"
7283   acl_save_exec_prefix="$exec_prefix"
7284   exec_prefix="$acl_final_exec_prefix"
7285   eval x=\"$x\"
7286   exec_prefix="$acl_save_exec_prefix"
7287   prefix="$acl_save_prefix"
7288
7289                     if test "X$x" = "X-I$additional_includedir"; then
7290                       haveit=yes
7291                       break
7292                     fi
7293                   done
7294                   if test -z "$haveit"; then
7295                     if test -d "$additional_includedir"; then
7296                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7297                     fi
7298                   fi
7299                 fi
7300               fi
7301             fi
7302                         if test -n "$found_la"; then
7303                                                         save_libdir="$libdir"
7304               case "$found_la" in
7305                 */* | *\\*) . "$found_la" ;;
7306                 *) . "./$found_la" ;;
7307               esac
7308               libdir="$save_libdir"
7309                             for dep in $dependency_libs; do
7310                 case "$dep" in
7311                   -L*)
7312                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7313                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7314                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7315                       haveit=
7316                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7317                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7318                         if test -n "$GCC"; then
7319                           case $host_os in
7320                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7321                           esac
7322                         fi
7323                       fi
7324                       if test -z "$haveit"; then
7325                         haveit=
7326                         for x in $LDFLAGS $LIBICONV; do
7327
7328   acl_save_prefix="$prefix"
7329   prefix="$acl_final_prefix"
7330   acl_save_exec_prefix="$exec_prefix"
7331   exec_prefix="$acl_final_exec_prefix"
7332   eval x=\"$x\"
7333   exec_prefix="$acl_save_exec_prefix"
7334   prefix="$acl_save_prefix"
7335
7336                           if test "X$x" = "X-L$additional_libdir"; then
7337                             haveit=yes
7338                             break
7339                           fi
7340                         done
7341                         if test -z "$haveit"; then
7342                           if test -d "$additional_libdir"; then
7343                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7344                           fi
7345                         fi
7346                         haveit=
7347                         for x in $LDFLAGS $LTLIBICONV; do
7348
7349   acl_save_prefix="$prefix"
7350   prefix="$acl_final_prefix"
7351   acl_save_exec_prefix="$exec_prefix"
7352   exec_prefix="$acl_final_exec_prefix"
7353   eval x=\"$x\"
7354   exec_prefix="$acl_save_exec_prefix"
7355   prefix="$acl_save_prefix"
7356
7357                           if test "X$x" = "X-L$additional_libdir"; then
7358                             haveit=yes
7359                             break
7360                           fi
7361                         done
7362                         if test -z "$haveit"; then
7363                           if test -d "$additional_libdir"; then
7364                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7365                           fi
7366                         fi
7367                       fi
7368                     fi
7369                     ;;
7370                   -R*)
7371                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7372                     if test "$enable_rpath" != no; then
7373                                                                   haveit=
7374                       for x in $rpathdirs; do
7375                         if test "X$x" = "X$dir"; then
7376                           haveit=yes
7377                           break
7378                         fi
7379                       done
7380                       if test -z "$haveit"; then
7381                         rpathdirs="$rpathdirs $dir"
7382                       fi
7383                                                                   haveit=
7384                       for x in $ltrpathdirs; do
7385                         if test "X$x" = "X$dir"; then
7386                           haveit=yes
7387                           break
7388                         fi
7389                       done
7390                       if test -z "$haveit"; then
7391                         ltrpathdirs="$ltrpathdirs $dir"
7392                       fi
7393                     fi
7394                     ;;
7395                   -l*)
7396                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7397                     ;;
7398                   *.la)
7399                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7400                     ;;
7401                   *)
7402                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7403                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7404                     ;;
7405                 esac
7406               done
7407             fi
7408           else
7409                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7410             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7411           fi
7412         fi
7413       fi
7414     done
7415   done
7416   if test "X$rpathdirs" != "X"; then
7417     if test -n "$acl_hardcode_libdir_separator"; then
7418                         alldirs=
7419       for found_dir in $rpathdirs; do
7420         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7421       done
7422             acl_save_libdir="$libdir"
7423       libdir="$alldirs"
7424       eval flag=\"$acl_hardcode_libdir_flag_spec\"
7425       libdir="$acl_save_libdir"
7426       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7427     else
7428             for found_dir in $rpathdirs; do
7429         acl_save_libdir="$libdir"
7430         libdir="$found_dir"
7431         eval flag=\"$acl_hardcode_libdir_flag_spec\"
7432         libdir="$acl_save_libdir"
7433         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7434       done
7435     fi
7436   fi
7437   if test "X$ltrpathdirs" != "X"; then
7438             for found_dir in $ltrpathdirs; do
7439       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7440     done
7441   fi
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454           am_save_CPPFLAGS="$CPPFLAGS"
7455
7456   for element in $INCICONV; do
7457     haveit=
7458     for x in $CPPFLAGS; do
7459
7460   acl_save_prefix="$prefix"
7461   prefix="$acl_final_prefix"
7462   acl_save_exec_prefix="$exec_prefix"
7463   exec_prefix="$acl_final_exec_prefix"
7464   eval x=\"$x\"
7465   exec_prefix="$acl_save_exec_prefix"
7466   prefix="$acl_save_prefix"
7467
7468       if test "X$x" = "X$element"; then
7469         haveit=yes
7470         break
7471       fi
7472     done
7473     if test -z "$haveit"; then
7474       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7475     fi
7476   done
7477
7478
7479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7480 $as_echo_n "checking for iconv... " >&6; }
7481 if ${am_cv_func_iconv+:} false; then :
7482   $as_echo_n "(cached) " >&6
7483 else
7484
7485     am_cv_func_iconv="no, consider installing GNU libiconv"
7486     am_cv_lib_iconv=no
7487     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h.  */
7489 #include <stdlib.h>
7490 #include <iconv.h>
7491 int
7492 main ()
7493 {
7494 iconv_t cd = iconv_open("","");
7495        iconv(cd,NULL,NULL,NULL,NULL);
7496        iconv_close(cd);
7497   ;
7498   return 0;
7499 }
7500 _ACEOF
7501 if ac_fn_c_try_link "$LINENO"; then :
7502   am_cv_func_iconv=yes
7503 fi
7504 rm -f core conftest.err conftest.$ac_objext \
7505     conftest$ac_exeext conftest.$ac_ext
7506     if test "$am_cv_func_iconv" != yes; then
7507       am_save_LIBS="$LIBS"
7508       LIBS="$LIBS $LIBICONV"
7509       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h.  */
7511 #include <stdlib.h>
7512 #include <iconv.h>
7513 int
7514 main ()
7515 {
7516 iconv_t cd = iconv_open("","");
7517          iconv(cd,NULL,NULL,NULL,NULL);
7518          iconv_close(cd);
7519   ;
7520   return 0;
7521 }
7522 _ACEOF
7523 if ac_fn_c_try_link "$LINENO"; then :
7524   am_cv_lib_iconv=yes
7525         am_cv_func_iconv=yes
7526 fi
7527 rm -f core conftest.err conftest.$ac_objext \
7528     conftest$ac_exeext conftest.$ac_ext
7529       LIBS="$am_save_LIBS"
7530     fi
7531
7532 fi
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7534 $as_echo "$am_cv_func_iconv" >&6; }
7535   if test "$am_cv_func_iconv" = yes; then
7536     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7537 $as_echo_n "checking for working iconv... " >&6; }
7538 if ${am_cv_func_iconv_works+:} false; then :
7539   $as_echo_n "(cached) " >&6
7540 else
7541
7542             am_save_LIBS="$LIBS"
7543       if test $am_cv_lib_iconv = yes; then
7544         LIBS="$LIBS $LIBICONV"
7545       fi
7546       if test "$cross_compiling" = yes; then :
7547   case "$host_os" in
7548            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7549            *)            am_cv_func_iconv_works="guessing yes" ;;
7550          esac
7551 else
7552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553 /* end confdefs.h.  */
7554
7555 #include <iconv.h>
7556 #include <string.h>
7557 int main ()
7558 {
7559   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7560      returns.  */
7561   {
7562     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7563     if (cd_utf8_to_88591 != (iconv_t)(-1))
7564       {
7565         static const char input[] = "\342\202\254"; /* EURO SIGN */
7566         char buf[10];
7567         const char *inptr = input;
7568         size_t inbytesleft = strlen (input);
7569         char *outptr = buf;
7570         size_t outbytesleft = sizeof (buf);
7571         size_t res = iconv (cd_utf8_to_88591,
7572                             (char **) &inptr, &inbytesleft,
7573                             &outptr, &outbytesleft);
7574         if (res == 0)
7575           return 1;
7576       }
7577   }
7578   /* Test against Solaris 10 bug: Failures are not distinguishable from
7579      successful returns.  */
7580   {
7581     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7582     if (cd_ascii_to_88591 != (iconv_t)(-1))
7583       {
7584         static const char input[] = "\263";
7585         char buf[10];
7586         const char *inptr = input;
7587         size_t inbytesleft = strlen (input);
7588         char *outptr = buf;
7589         size_t outbytesleft = sizeof (buf);
7590         size_t res = iconv (cd_ascii_to_88591,
7591                             (char **) &inptr, &inbytesleft,
7592                             &outptr, &outbytesleft);
7593         if (res == 0)
7594           return 1;
7595       }
7596   }
7597 #if 0 /* This bug could be worked around by the caller.  */
7598   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
7599   {
7600     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7601     if (cd_88591_to_utf8 != (iconv_t)(-1))
7602       {
7603         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7604         char buf[50];
7605         const char *inptr = input;
7606         size_t inbytesleft = strlen (input);
7607         char *outptr = buf;
7608         size_t outbytesleft = sizeof (buf);
7609         size_t res = iconv (cd_88591_to_utf8,
7610                             (char **) &inptr, &inbytesleft,
7611                             &outptr, &outbytesleft);
7612         if ((int)res > 0)
7613           return 1;
7614       }
7615   }
7616 #endif
7617   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7618      provided.  */
7619   if (/* Try standardized names.  */
7620       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7621       /* Try IRIX, OSF/1 names.  */
7622       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7623       /* Try AIX names.  */
7624       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7625       /* Try HP-UX names.  */
7626       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7627     return 1;
7628   return 0;
7629 }
7630 _ACEOF
7631 if ac_fn_c_try_run "$LINENO"; then :
7632   am_cv_func_iconv_works=yes
7633 else
7634   am_cv_func_iconv_works=no
7635 fi
7636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7637   conftest.$ac_objext conftest.beam conftest.$ac_ext
7638 fi
7639
7640       LIBS="$am_save_LIBS"
7641
7642 fi
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7644 $as_echo "$am_cv_func_iconv_works" >&6; }
7645     case "$am_cv_func_iconv_works" in
7646       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7647       *)   am_func_iconv=yes ;;
7648     esac
7649   else
7650     am_func_iconv=no am_cv_lib_iconv=no
7651   fi
7652   if test "$am_func_iconv" = yes; then
7653
7654 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7655
7656   fi
7657   if test "$am_cv_lib_iconv" = yes; then
7658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7659 $as_echo_n "checking how to link with libiconv... " >&6; }
7660     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7661 $as_echo "$LIBICONV" >&6; }
7662   else
7663             CPPFLAGS="$am_save_CPPFLAGS"
7664     LIBICONV=
7665     LTLIBICONV=
7666   fi
7667
7668
7669
7670   if test "$am_cv_func_iconv" = yes; then
7671     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7672 $as_echo_n "checking for iconv declaration... " >&6; }
7673     if ${am_cv_proto_iconv+:} false; then :
7674   $as_echo_n "(cached) " >&6
7675 else
7676
7677       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678 /* end confdefs.h.  */
7679
7680 #include <stdlib.h>
7681 #include <iconv.h>
7682 extern
7683 #ifdef __cplusplus
7684 "C"
7685 #endif
7686 #if defined(__STDC__) || defined(__cplusplus)
7687 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7688 #else
7689 size_t iconv();
7690 #endif
7691
7692 int
7693 main ()
7694 {
7695
7696   ;
7697   return 0;
7698 }
7699 _ACEOF
7700 if ac_fn_c_try_compile "$LINENO"; then :
7701   am_cv_proto_iconv_arg1=""
7702 else
7703   am_cv_proto_iconv_arg1="const"
7704 fi
7705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7706       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7707 fi
7708
7709     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7710     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
7711          $am_cv_proto_iconv" >&5
7712 $as_echo "
7713          $am_cv_proto_iconv" >&6; }
7714
7715 cat >>confdefs.h <<_ACEOF
7716 #define ICONV_CONST $am_cv_proto_iconv_arg1
7717 _ACEOF
7718
7719   fi
7720
7721
7722
7723
7724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h.  */
7726 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
7727 int
7728 main ()
7729 {
7730
7731   ;
7732   return 0;
7733 }
7734 _ACEOF
7735 if ac_fn_c_try_link "$LINENO"; then :
7736
7737 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
7738
7739 fi
7740 rm -f core conftest.err conftest.$ac_objext \
7741     conftest$ac_exeext conftest.$ac_ext
7742
7743   for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
7744 do :
7745   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7746 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7747 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7748   cat >>confdefs.h <<_ACEOF
7749 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7750 _ACEOF
7751
7752 fi
7753
7754 done
7755
7756   for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
7757     stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
7758     argz_stringify argz_next __fsetlocking
7759 do :
7760   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7761 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7762 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7763   cat >>confdefs.h <<_ACEOF
7764 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7765 _ACEOF
7766
7767 fi
7768 done
7769
7770
7771
7772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
7773 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
7774 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
7775   $as_echo_n "(cached) " >&6
7776 else
7777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h.  */
7779 #include <stdio.h>
7780 int
7781 main ()
7782 {
7783
7784 #ifndef feof_unlocked
7785   char *p = (char *) feof_unlocked;
7786 #endif
7787
7788   ;
7789   return 0;
7790 }
7791 _ACEOF
7792 if ac_fn_c_try_compile "$LINENO"; then :
7793   ac_cv_have_decl_feof_unlocked=yes
7794 else
7795   ac_cv_have_decl_feof_unlocked=no
7796 fi
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798 fi
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
7800 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
7801   if test $ac_cv_have_decl_feof_unlocked = yes; then
7802     gt_value=1
7803   else
7804     gt_value=0
7805   fi
7806
7807 cat >>confdefs.h <<_ACEOF
7808 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
7809 _ACEOF
7810
7811
7812
7813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
7814 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
7815 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
7816   $as_echo_n "(cached) " >&6
7817 else
7818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h.  */
7820 #include <stdio.h>
7821 int
7822 main ()
7823 {
7824
7825 #ifndef fgets_unlocked
7826   char *p = (char *) fgets_unlocked;
7827 #endif
7828
7829   ;
7830   return 0;
7831 }
7832 _ACEOF
7833 if ac_fn_c_try_compile "$LINENO"; then :
7834   ac_cv_have_decl_fgets_unlocked=yes
7835 else
7836   ac_cv_have_decl_fgets_unlocked=no
7837 fi
7838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7839 fi
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
7841 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
7842   if test $ac_cv_have_decl_fgets_unlocked = yes; then
7843     gt_value=1
7844   else
7845     gt_value=0
7846   fi
7847
7848 cat >>confdefs.h <<_ACEOF
7849 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
7850 _ACEOF
7851
7852
7853
7854
7855
7856                       for ac_prog in bison
7857 do
7858   # Extract the first word of "$ac_prog", so it can be a program name with args.
7859 set dummy $ac_prog; ac_word=$2
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861 $as_echo_n "checking for $ac_word... " >&6; }
7862 if ${ac_cv_prog_INTLBISON+:} false; then :
7863   $as_echo_n "(cached) " >&6
7864 else
7865   if test -n "$INTLBISON"; then
7866   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
7867 else
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 for as_dir in $PATH
7870 do
7871   IFS=$as_save_IFS
7872   test -z "$as_dir" && as_dir=.
7873     for ac_exec_ext in '' $ac_executable_extensions; do
7874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7875     ac_cv_prog_INTLBISON="$ac_prog"
7876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7877     break 2
7878   fi
7879 done
7880   done
7881 IFS=$as_save_IFS
7882
7883 fi
7884 fi
7885 INTLBISON=$ac_cv_prog_INTLBISON
7886 if test -n "$INTLBISON"; then
7887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
7888 $as_echo "$INTLBISON" >&6; }
7889 else
7890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891 $as_echo "no" >&6; }
7892 fi
7893
7894
7895   test -n "$INTLBISON" && break
7896 done
7897
7898   if test -z "$INTLBISON"; then
7899     ac_verc_fail=yes
7900   else
7901         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
7902 $as_echo_n "checking version of bison... " >&6; }
7903     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7904     case $ac_prog_version in
7905       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7906       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
7907          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
7908       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
7909     esac
7910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
7911 $as_echo "$ac_prog_version" >&6; }
7912   fi
7913   if test $ac_verc_fail = yes; then
7914     INTLBISON=:
7915   fi
7916
7917
7918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7919 $as_echo_n "checking for long long int... " >&6; }
7920 if ${ac_cv_type_long_long_int+:} false; then :
7921   $as_echo_n "(cached) " >&6
7922 else
7923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h.  */
7925
7926   /* For now, do not test the preprocessor; as of 2007 there are too many
7927          implementations with broken preprocessors.  Perhaps this can
7928          be revisited in 2012.  In the meantime, code should not expect
7929          #if to work with literals wider than 32 bits.  */
7930       /* Test literals.  */
7931       long long int ll = 9223372036854775807ll;
7932       long long int nll = -9223372036854775807LL;
7933       unsigned long long int ull = 18446744073709551615ULL;
7934       /* Test constant expressions.   */
7935       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7936                      ? 1 : -1)];
7937       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7938                      ? 1 : -1)];
7939       int i = 63;
7940 int
7941 main ()
7942 {
7943 /* Test availability of runtime routines for shift and division.  */
7944       long long int llmax = 9223372036854775807ll;
7945       unsigned long long int ullmax = 18446744073709551615ull;
7946       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7947               | (llmax / ll) | (llmax % ll)
7948               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7949               | (ullmax / ull) | (ullmax % ull));
7950   ;
7951   return 0;
7952 }
7953
7954 _ACEOF
7955 if ac_fn_c_try_link "$LINENO"; then :
7956                           if test "$cross_compiling" = yes; then :
7957   ac_cv_type_long_long_int=yes
7958 else
7959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h.  */
7961 #include <limits.h>
7962                #ifndef LLONG_MAX
7963                # define HALF \
7964                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7965                # define LLONG_MAX (HALF - 1 + HALF)
7966                #endif
7967 int
7968 main ()
7969 {
7970 long long int n = 1;
7971                int i;
7972                for (i = 0; ; i++)
7973                  {
7974                    long long int m = n << i;
7975                    if (m >> i != n)
7976                      return 1;
7977                    if (LLONG_MAX / 2 < m)
7978                      break;
7979                  }
7980                return 0;
7981   ;
7982   return 0;
7983 }
7984 _ACEOF
7985 if ac_fn_c_try_run "$LINENO"; then :
7986   ac_cv_type_long_long_int=yes
7987 else
7988   ac_cv_type_long_long_int=no
7989 fi
7990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7991   conftest.$ac_objext conftest.beam conftest.$ac_ext
7992 fi
7993
7994 else
7995   ac_cv_type_long_long_int=no
7996 fi
7997 rm -f core conftest.err conftest.$ac_objext \
7998     conftest$ac_exeext conftest.$ac_ext
7999 fi
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
8001 $as_echo "$ac_cv_type_long_long_int" >&6; }
8002   if test $ac_cv_type_long_long_int = yes; then
8003
8004 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
8005
8006   fi
8007
8008
8009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
8010 $as_echo_n "checking for wchar_t... " >&6; }
8011 if ${gt_cv_c_wchar_t+:} false; then :
8012   $as_echo_n "(cached) " >&6
8013 else
8014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h.  */
8016 #include <stddef.h>
8017        wchar_t foo = (wchar_t)'\0';
8018 int
8019 main ()
8020 {
8021
8022   ;
8023   return 0;
8024 }
8025 _ACEOF
8026 if ac_fn_c_try_compile "$LINENO"; then :
8027   gt_cv_c_wchar_t=yes
8028 else
8029   gt_cv_c_wchar_t=no
8030 fi
8031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8032 fi
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
8034 $as_echo "$gt_cv_c_wchar_t" >&6; }
8035   if test $gt_cv_c_wchar_t = yes; then
8036
8037 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
8038
8039   fi
8040
8041
8042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
8043 $as_echo_n "checking for wint_t... " >&6; }
8044 if ${gt_cv_c_wint_t+:} false; then :
8045   $as_echo_n "(cached) " >&6
8046 else
8047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h.  */
8049
8050 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8051    <wchar.h>.
8052    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
8053    before <wchar.h>.  */
8054 #include <stddef.h>
8055 #include <stdio.h>
8056 #include <time.h>
8057 #include <wchar.h>
8058        wint_t foo = (wchar_t)'\0';
8059 int
8060 main ()
8061 {
8062
8063   ;
8064   return 0;
8065 }
8066 _ACEOF
8067 if ac_fn_c_try_compile "$LINENO"; then :
8068   gt_cv_c_wint_t=yes
8069 else
8070   gt_cv_c_wint_t=no
8071 fi
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073 fi
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
8075 $as_echo "$gt_cv_c_wint_t" >&6; }
8076   if test $gt_cv_c_wint_t = yes; then
8077
8078 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8079
8080   fi
8081
8082
8083
8084
8085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
8086 $as_echo_n "checking for intmax_t... " >&6; }
8087 if ${gt_cv_c_intmax_t+:} false; then :
8088   $as_echo_n "(cached) " >&6
8089 else
8090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h.  */
8092
8093 #include <stddef.h>
8094 #include <stdlib.h>
8095 #if HAVE_STDINT_H_WITH_UINTMAX
8096 #include <stdint.h>
8097 #endif
8098 #if HAVE_INTTYPES_H_WITH_UINTMAX
8099 #include <inttypes.h>
8100 #endif
8101
8102 int
8103 main ()
8104 {
8105 intmax_t x = -1;
8106         return !x;
8107   ;
8108   return 0;
8109 }
8110 _ACEOF
8111 if ac_fn_c_try_compile "$LINENO"; then :
8112   gt_cv_c_intmax_t=yes
8113 else
8114   gt_cv_c_intmax_t=no
8115 fi
8116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8117 fi
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
8119 $as_echo "$gt_cv_c_intmax_t" >&6; }
8120   if test $gt_cv_c_intmax_t = yes; then
8121
8122 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
8123
8124   fi
8125
8126
8127
8128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
8129 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
8130 if ${gt_cv_func_printf_posix+:} false; then :
8131   $as_echo_n "(cached) " >&6
8132 else
8133
8134       if test "$cross_compiling" = yes; then :
8135
8136         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8137 /* end confdefs.h.  */
8138
8139 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8140   notposix
8141 #endif
8142
8143 _ACEOF
8144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8145   $EGREP "notposix" >/dev/null 2>&1; then :
8146   gt_cv_func_printf_posix="guessing no"
8147 else
8148   gt_cv_func_printf_posix="guessing yes"
8149 fi
8150 rm -f conftest*
8151
8152
8153 else
8154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h.  */
8156
8157 #include <stdio.h>
8158 #include <string.h>
8159 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8160    dollar expansion (possibly an autoconf bug).  */
8161 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8162 static char buf[100];
8163 int main ()
8164 {
8165   sprintf (buf, format, 33, 55);
8166   return (strcmp (buf, "55 33") != 0);
8167 }
8168 _ACEOF
8169 if ac_fn_c_try_run "$LINENO"; then :
8170   gt_cv_func_printf_posix=yes
8171 else
8172   gt_cv_func_printf_posix=no
8173 fi
8174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8175   conftest.$ac_objext conftest.beam conftest.$ac_ext
8176 fi
8177
8178
8179 fi
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
8181 $as_echo "$gt_cv_func_printf_posix" >&6; }
8182   case $gt_cv_func_printf_posix in
8183     *yes)
8184
8185 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
8186
8187       ;;
8188   esac
8189
8190
8191     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
8192 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
8193 if ${ac_cv_gnu_library_2_1+:} false; then :
8194   $as_echo_n "(cached) " >&6
8195 else
8196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h.  */
8198
8199 #include <features.h>
8200 #ifdef __GNU_LIBRARY__
8201  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8202   Lucky GNU user
8203  #endif
8204 #endif
8205
8206 _ACEOF
8207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8208   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
8209   ac_cv_gnu_library_2_1=yes
8210 else
8211   ac_cv_gnu_library_2_1=no
8212 fi
8213 rm -f conftest*
8214
8215
8216
8217 fi
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8219 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8220
8221     GLIBC21="$ac_cv_gnu_library_2_1"
8222
8223
8224
8225   for ac_header in stdint.h
8226 do :
8227   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8228 if test "x$ac_cv_header_stdint_h" = xyes; then :
8229   cat >>confdefs.h <<_ACEOF
8230 #define HAVE_STDINT_H 1
8231 _ACEOF
8232
8233 fi
8234
8235 done
8236
8237     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
8238 $as_echo_n "checking for SIZE_MAX... " >&6; }
8239 if ${gl_cv_size_max+:} false; then :
8240   $as_echo_n "(cached) " >&6
8241 else
8242
8243     gl_cv_size_max=
8244     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245 /* end confdefs.h.  */
8246
8247 #include <limits.h>
8248 #if HAVE_STDINT_H
8249 #include <stdint.h>
8250 #endif
8251 #ifdef SIZE_MAX
8252 Found it
8253 #endif
8254
8255 _ACEOF
8256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8257   $EGREP "Found it" >/dev/null 2>&1; then :
8258   gl_cv_size_max=yes
8259 fi
8260 rm -f conftest*
8261
8262     if test -z "$gl_cv_size_max"; then
8263                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
8264 #include <limits.h>"; then :
8265
8266 else
8267   size_t_bits_minus_1=
8268 fi
8269
8270       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
8271
8272 else
8273   fits_in_uint=
8274 fi
8275
8276       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
8277         if test $fits_in_uint = 1; then
8278                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279 /* end confdefs.h.  */
8280 #include <stddef.h>
8281             extern size_t foo;
8282             extern unsigned long foo;
8283
8284 int
8285 main ()
8286 {
8287
8288   ;
8289   return 0;
8290 }
8291 _ACEOF
8292 if ac_fn_c_try_compile "$LINENO"; then :
8293   fits_in_uint=0
8294 fi
8295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8296         fi
8297                                 if test $fits_in_uint = 1; then
8298           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
8299         else
8300           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
8301         fi
8302       else
8303                 gl_cv_size_max='((size_t)~(size_t)0)'
8304       fi
8305     fi
8306
8307 fi
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
8309 $as_echo "$gl_cv_size_max" >&6; }
8310   if test "$gl_cv_size_max" != yes; then
8311
8312 cat >>confdefs.h <<_ACEOF
8313 #define SIZE_MAX $gl_cv_size_max
8314 _ACEOF
8315
8316   fi
8317
8318
8319
8320
8321
8322   for ac_header in stdint.h
8323 do :
8324   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8325 if test "x$ac_cv_header_stdint_h" = xyes; then :
8326   cat >>confdefs.h <<_ACEOF
8327 #define HAVE_STDINT_H 1
8328 _ACEOF
8329
8330 fi
8331
8332 done
8333
8334
8335
8336
8337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8338 $as_echo_n "checking for working fcntl.h... " >&6; }
8339 if ${gl_cv_header_working_fcntl_h+:} false; then :
8340   $as_echo_n "(cached) " >&6
8341 else
8342   if test "$cross_compiling" = yes; then :
8343   gl_cv_header_working_fcntl_h=cross-compiling
8344 else
8345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346 /* end confdefs.h.  */
8347 #include <sys/types.h>
8348            #include <sys/stat.h>
8349            #include <unistd.h>
8350            #include <fcntl.h>
8351            #ifndef O_NOATIME
8352             #define O_NOATIME 0
8353            #endif
8354            #ifndef O_NOFOLLOW
8355             #define O_NOFOLLOW 0
8356            #endif
8357            static int const constants[] =
8358             {
8359               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8360               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8361             };
8362
8363 int
8364 main ()
8365 {
8366
8367             int status = !constants;
8368             {
8369               static char const sym[] = "conftest.sym";
8370               if (symlink (".", sym) != 0
8371                   || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
8372                 status |= 32;
8373               unlink (sym);
8374             }
8375             {
8376               static char const file[] = "confdefs.h";
8377               int fd = open (file, O_RDONLY | O_NOATIME);
8378               char c;
8379               struct stat st0, st1;
8380               if (fd < 0
8381                   || fstat (fd, &st0) != 0
8382                   || sleep (1) != 0
8383                   || read (fd, &c, 1) != 1
8384                   || close (fd) != 0
8385                   || stat (file, &st1) != 0
8386                   || st0.st_atime != st1.st_atime)
8387                 status |= 64;
8388             }
8389             return status;
8390   ;
8391   return 0;
8392 }
8393 _ACEOF
8394 if ac_fn_c_try_run "$LINENO"; then :
8395   gl_cv_header_working_fcntl_h=yes
8396 else
8397   case $? in #(
8398         32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8399         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8400         96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8401          *) gl_cv_header_working_fcntl_h='no';;
8402         esac
8403 fi
8404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8405   conftest.$ac_objext conftest.beam conftest.$ac_ext
8406 fi
8407
8408 fi
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8410 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8411
8412   case $gl_cv_header_working_fcntl_h in #(
8413   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8414   *) ac_val=1;;
8415   esac
8416
8417 cat >>confdefs.h <<_ACEOF
8418 #define HAVE_WORKING_O_NOATIME $ac_val
8419 _ACEOF
8420
8421
8422   case $gl_cv_header_working_fcntl_h in #(
8423   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8424   *) ac_val=1;;
8425   esac
8426
8427 cat >>confdefs.h <<_ACEOF
8428 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8429 _ACEOF
8430
8431
8432
8433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8434 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8435 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8436   $as_echo_n "(cached) " >&6
8437 else
8438   gt_save_LIBS="$LIBS"
8439      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8440      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h.  */
8442 #include <CoreFoundation/CFPreferences.h>
8443 int
8444 main ()
8445 {
8446 CFPreferencesCopyAppValue(NULL, NULL)
8447   ;
8448   return 0;
8449 }
8450 _ACEOF
8451 if ac_fn_c_try_link "$LINENO"; then :
8452   gt_cv_func_CFPreferencesCopyAppValue=yes
8453 else
8454   gt_cv_func_CFPreferencesCopyAppValue=no
8455 fi
8456 rm -f core conftest.err conftest.$ac_objext \
8457     conftest$ac_exeext conftest.$ac_ext
8458      LIBS="$gt_save_LIBS"
8459 fi
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8461 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8462   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8463
8464 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8465
8466   fi
8467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8468 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8469 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8470   $as_echo_n "(cached) " >&6
8471 else
8472   gt_save_LIBS="$LIBS"
8473      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8474      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h.  */
8476 #include <CoreFoundation/CFLocale.h>
8477 int
8478 main ()
8479 {
8480 CFLocaleCopyCurrent();
8481   ;
8482   return 0;
8483 }
8484 _ACEOF
8485 if ac_fn_c_try_link "$LINENO"; then :
8486   gt_cv_func_CFLocaleCopyCurrent=yes
8487 else
8488   gt_cv_func_CFLocaleCopyCurrent=no
8489 fi
8490 rm -f core conftest.err conftest.$ac_objext \
8491     conftest$ac_exeext conftest.$ac_ext
8492      LIBS="$gt_save_LIBS"
8493 fi
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8495 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8496   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8497
8498 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8499
8500   fi
8501   INTL_MACOSX_LIBS=
8502   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8503     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8504   fi
8505
8506
8507
8508
8509
8510
8511
8512     case "$enable_silent_rules" in
8513     yes) INTL_DEFAULT_VERBOSITY=0;;
8514     no)  INTL_DEFAULT_VERBOSITY=1;;
8515     *)   INTL_DEFAULT_VERBOSITY=1;;
8516   esac
8517
8518
8519   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8520 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8521
8522 else
8523
8524 $as_echo "#define ptrdiff_t long" >>confdefs.h
8525
8526
8527 fi
8528
8529   for ac_header in stddef.h stdlib.h string.h
8530 do :
8531   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8532 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8533 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8534   cat >>confdefs.h <<_ACEOF
8535 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8536 _ACEOF
8537
8538 fi
8539
8540 done
8541
8542   for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
8543     snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
8544 do :
8545   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8546 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8547 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8548   cat >>confdefs.h <<_ACEOF
8549 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8550 _ACEOF
8551
8552 fi
8553 done
8554
8555
8556
8557   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8558 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8559 if ${ac_cv_have_decl__snprintf+:} false; then :
8560   $as_echo_n "(cached) " >&6
8561 else
8562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563 /* end confdefs.h.  */
8564 #include <stdio.h>
8565 int
8566 main ()
8567 {
8568
8569 #ifndef _snprintf
8570   char *p = (char *) _snprintf;
8571 #endif
8572
8573   ;
8574   return 0;
8575 }
8576 _ACEOF
8577 if ac_fn_c_try_compile "$LINENO"; then :
8578   ac_cv_have_decl__snprintf=yes
8579 else
8580   ac_cv_have_decl__snprintf=no
8581 fi
8582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8583 fi
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8585 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8586   if test $ac_cv_have_decl__snprintf = yes; then
8587     gt_value=1
8588   else
8589     gt_value=0
8590   fi
8591
8592 cat >>confdefs.h <<_ACEOF
8593 #define HAVE_DECL__SNPRINTF $gt_value
8594 _ACEOF
8595
8596
8597
8598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8599 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8600 if ${ac_cv_have_decl__snwprintf+:} false; then :
8601   $as_echo_n "(cached) " >&6
8602 else
8603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h.  */
8605 #include <stdio.h>
8606 int
8607 main ()
8608 {
8609
8610 #ifndef _snwprintf
8611   char *p = (char *) _snwprintf;
8612 #endif
8613
8614   ;
8615   return 0;
8616 }
8617 _ACEOF
8618 if ac_fn_c_try_compile "$LINENO"; then :
8619   ac_cv_have_decl__snwprintf=yes
8620 else
8621   ac_cv_have_decl__snwprintf=no
8622 fi
8623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8624 fi
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8626 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8627   if test $ac_cv_have_decl__snwprintf = yes; then
8628     gt_value=1
8629   else
8630     gt_value=0
8631   fi
8632
8633 cat >>confdefs.h <<_ACEOF
8634 #define HAVE_DECL__SNWPRINTF $gt_value
8635 _ACEOF
8636
8637
8638
8639
8640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8641 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8642 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8643   $as_echo_n "(cached) " >&6
8644 else
8645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8646 /* end confdefs.h.  */
8647 #include <stdio.h>
8648 int
8649 main ()
8650 {
8651
8652 #ifndef getc_unlocked
8653   char *p = (char *) getc_unlocked;
8654 #endif
8655
8656   ;
8657   return 0;
8658 }
8659 _ACEOF
8660 if ac_fn_c_try_compile "$LINENO"; then :
8661   ac_cv_have_decl_getc_unlocked=yes
8662 else
8663   ac_cv_have_decl_getc_unlocked=no
8664 fi
8665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8666 fi
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8668 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8669   if test $ac_cv_have_decl_getc_unlocked = yes; then
8670     gt_value=1
8671   else
8672     gt_value=0
8673   fi
8674
8675 cat >>confdefs.h <<_ACEOF
8676 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8677 _ACEOF
8678
8679
8680
8681   case $gt_cv_func_printf_posix in
8682     *yes) HAVE_POSIX_PRINTF=1 ;;
8683     *) HAVE_POSIX_PRINTF=0 ;;
8684   esac
8685
8686   if test "$ac_cv_func_asprintf" = yes; then
8687     HAVE_ASPRINTF=1
8688   else
8689     HAVE_ASPRINTF=0
8690   fi
8691
8692   if test "$ac_cv_func_snprintf" = yes; then
8693     HAVE_SNPRINTF=1
8694   else
8695     HAVE_SNPRINTF=0
8696   fi
8697
8698   if test "$ac_cv_func_newlocale" = yes; then
8699     HAVE_NEWLOCALE=1
8700   else
8701     HAVE_NEWLOCALE=0
8702   fi
8703
8704   if test "$ac_cv_func_wprintf" = yes; then
8705     HAVE_WPRINTF=1
8706   else
8707     HAVE_WPRINTF=0
8708   fi
8709
8710
8711
8712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8713 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8714 if ${am_cv_langinfo_codeset+:} false; then :
8715   $as_echo_n "(cached) " >&6
8716 else
8717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718 /* end confdefs.h.  */
8719 #include <langinfo.h>
8720 int
8721 main ()
8722 {
8723 char* cs = nl_langinfo(CODESET); return !cs;
8724   ;
8725   return 0;
8726 }
8727 _ACEOF
8728 if ac_fn_c_try_link "$LINENO"; then :
8729   am_cv_langinfo_codeset=yes
8730 else
8731   am_cv_langinfo_codeset=no
8732 fi
8733 rm -f core conftest.err conftest.$ac_objext \
8734     conftest$ac_exeext conftest.$ac_ext
8735
8736 fi
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8738 $as_echo "$am_cv_langinfo_codeset" >&6; }
8739   if test $am_cv_langinfo_codeset = yes; then
8740
8741 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8742
8743   fi
8744
8745
8746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8747 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8748 if ${gt_cv_val_LC_MESSAGES+:} false; then :
8749   $as_echo_n "(cached) " >&6
8750 else
8751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752 /* end confdefs.h.  */
8753 #include <locale.h>
8754 int
8755 main ()
8756 {
8757 return LC_MESSAGES
8758   ;
8759   return 0;
8760 }
8761 _ACEOF
8762 if ac_fn_c_try_link "$LINENO"; then :
8763   gt_cv_val_LC_MESSAGES=yes
8764 else
8765   gt_cv_val_LC_MESSAGES=no
8766 fi
8767 rm -f core conftest.err conftest.$ac_objext \
8768     conftest$ac_exeext conftest.$ac_ext
8769 fi
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
8771 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
8772   if test $gt_cv_val_LC_MESSAGES = yes; then
8773
8774 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8775
8776   fi
8777
8778
8779                 if test "$enable_shared" = yes; then
8780     case "$host_os" in
8781       mingw* | cygwin*) is_woe32dll=yes ;;
8782       *) is_woe32dll=no ;;
8783     esac
8784   else
8785     is_woe32dll=no
8786   fi
8787   WOE32DLL=$is_woe32dll
8788
8789
8790       case "$host_os" in
8791     mingw* | cygwin*) is_woe32=yes ;;
8792     *) is_woe32=no ;;
8793   esac
8794   WOE32=$is_woe32
8795
8796   if test $WOE32 = yes; then
8797         if test -n "$ac_tool_prefix"; then
8798   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8799 set dummy ${ac_tool_prefix}windres; ac_word=$2
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8801 $as_echo_n "checking for $ac_word... " >&6; }
8802 if ${ac_cv_prog_WINDRES+:} false; then :
8803   $as_echo_n "(cached) " >&6
8804 else
8805   if test -n "$WINDRES"; then
8806   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8807 else
8808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8809 for as_dir in $PATH
8810 do
8811   IFS=$as_save_IFS
8812   test -z "$as_dir" && as_dir=.
8813     for ac_exec_ext in '' $ac_executable_extensions; do
8814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8815     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8817     break 2
8818   fi
8819 done
8820   done
8821 IFS=$as_save_IFS
8822
8823 fi
8824 fi
8825 WINDRES=$ac_cv_prog_WINDRES
8826 if test -n "$WINDRES"; then
8827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8828 $as_echo "$WINDRES" >&6; }
8829 else
8830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 $as_echo "no" >&6; }
8832 fi
8833
8834
8835 fi
8836 if test -z "$ac_cv_prog_WINDRES"; then
8837   ac_ct_WINDRES=$WINDRES
8838   # Extract the first word of "windres", so it can be a program name with args.
8839 set dummy windres; ac_word=$2
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8841 $as_echo_n "checking for $ac_word... " >&6; }
8842 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
8843   $as_echo_n "(cached) " >&6
8844 else
8845   if test -n "$ac_ct_WINDRES"; then
8846   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8847 else
8848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849 for as_dir in $PATH
8850 do
8851   IFS=$as_save_IFS
8852   test -z "$as_dir" && as_dir=.
8853     for ac_exec_ext in '' $ac_executable_extensions; do
8854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8855     ac_cv_prog_ac_ct_WINDRES="windres"
8856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8857     break 2
8858   fi
8859 done
8860   done
8861 IFS=$as_save_IFS
8862
8863 fi
8864 fi
8865 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8866 if test -n "$ac_ct_WINDRES"; then
8867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8868 $as_echo "$ac_ct_WINDRES" >&6; }
8869 else
8870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8871 $as_echo "no" >&6; }
8872 fi
8873
8874   if test "x$ac_ct_WINDRES" = x; then
8875     WINDRES=""
8876   else
8877     case $cross_compiling:$ac_tool_warned in
8878 yes:)
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8881 ac_tool_warned=yes ;;
8882 esac
8883     WINDRES=$ac_ct_WINDRES
8884   fi
8885 else
8886   WINDRES="$ac_cv_prog_WINDRES"
8887 fi
8888
8889   fi
8890
8891               case "$host_os" in
8892     hpux*) LTLIBC="" ;;
8893     *)     LTLIBC="-lc" ;;
8894   esac
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8923 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8924 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8925   $as_echo_n "(cached) " >&6
8926 else
8927   gt_save_LIBS="$LIBS"
8928      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8929      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h.  */
8931 #include <CoreFoundation/CFPreferences.h>
8932 int
8933 main ()
8934 {
8935 CFPreferencesCopyAppValue(NULL, NULL)
8936   ;
8937   return 0;
8938 }
8939 _ACEOF
8940 if ac_fn_c_try_link "$LINENO"; then :
8941   gt_cv_func_CFPreferencesCopyAppValue=yes
8942 else
8943   gt_cv_func_CFPreferencesCopyAppValue=no
8944 fi
8945 rm -f core conftest.err conftest.$ac_objext \
8946     conftest$ac_exeext conftest.$ac_ext
8947      LIBS="$gt_save_LIBS"
8948 fi
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8950 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8951   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8952
8953 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8954
8955   fi
8956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8957 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8958 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8959   $as_echo_n "(cached) " >&6
8960 else
8961   gt_save_LIBS="$LIBS"
8962      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8963      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h.  */
8965 #include <CoreFoundation/CFLocale.h>
8966 int
8967 main ()
8968 {
8969 CFLocaleCopyCurrent();
8970   ;
8971   return 0;
8972 }
8973 _ACEOF
8974 if ac_fn_c_try_link "$LINENO"; then :
8975   gt_cv_func_CFLocaleCopyCurrent=yes
8976 else
8977   gt_cv_func_CFLocaleCopyCurrent=no
8978 fi
8979 rm -f core conftest.err conftest.$ac_objext \
8980     conftest$ac_exeext conftest.$ac_ext
8981      LIBS="$gt_save_LIBS"
8982 fi
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8984 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8985   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8986
8987 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8988
8989   fi
8990   INTL_MACOSX_LIBS=
8991   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8992     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8993   fi
8994
8995
8996
8997
8998
8999
9000     BUILD_INCLUDED_LIBINTL=no
9001     USE_INCLUDED_LIBINTL=no
9002
9003   LIBINTL=
9004   LTLIBINTL=
9005   POSUB=
9006
9007     case " $gt_needs " in
9008     *" need-formatstring-macros "*) gt_api_version=3 ;;
9009     *" need-ngettext "*) gt_api_version=2 ;;
9010     *) gt_api_version=1 ;;
9011   esac
9012   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9013   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9014
9015     if test "$USE_NLS" = "yes"; then
9016     gt_use_preinstalled_gnugettext=no
9017
9018       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
9019 $as_echo_n "checking whether included gettext is requested... " >&6; }
9020
9021 # Check whether --with-included-gettext was given.
9022 if test "${with_included_gettext+set}" = set; then :
9023   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
9024 else
9025   nls_cv_force_use_gnu_gettext=no
9026 fi
9027
9028       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
9029 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
9030
9031       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9032       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9033
9034
9035         if test $gt_api_version -ge 3; then
9036           gt_revision_test_code='
9037 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9038 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9039 #endif
9040 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9041 '
9042         else
9043           gt_revision_test_code=
9044         fi
9045         if test $gt_api_version -ge 2; then
9046           gt_expression_test_code=' + * ngettext ("", "", 0)'
9047         else
9048           gt_expression_test_code=
9049         fi
9050
9051         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9052 $as_echo_n "checking for GNU gettext in libc... " >&6; }
9053 if eval \${$gt_func_gnugettext_libc+:} false; then :
9054   $as_echo_n "(cached) " >&6
9055 else
9056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h.  */
9058 #include <libintl.h>
9059 $gt_revision_test_code
9060 extern int _nl_msg_cat_cntr;
9061 extern int *_nl_domain_bindings;
9062 int
9063 main ()
9064 {
9065 bindtextdomain ("", "");
9066 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
9067   ;
9068   return 0;
9069 }
9070 _ACEOF
9071 if ac_fn_c_try_link "$LINENO"; then :
9072   eval "$gt_func_gnugettext_libc=yes"
9073 else
9074   eval "$gt_func_gnugettext_libc=no"
9075 fi
9076 rm -f core conftest.err conftest.$ac_objext \
9077     conftest$ac_exeext conftest.$ac_ext
9078 fi
9079 eval ac_res=\$$gt_func_gnugettext_libc
9080                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9081 $as_echo "$ac_res" >&6; }
9082
9083         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9084
9085
9086
9087
9088
9089
9090
9091
9092     use_additional=yes
9093
9094   acl_save_prefix="$prefix"
9095   prefix="$acl_final_prefix"
9096   acl_save_exec_prefix="$exec_prefix"
9097   exec_prefix="$acl_final_exec_prefix"
9098
9099     eval additional_includedir=\"$includedir\"
9100     eval additional_libdir=\"$libdir\"
9101
9102   exec_prefix="$acl_save_exec_prefix"
9103   prefix="$acl_save_prefix"
9104
9105
9106 # Check whether --with-libintl-prefix was given.
9107 if test "${with_libintl_prefix+set}" = set; then :
9108   withval=$with_libintl_prefix;
9109     if test "X$withval" = "Xno"; then
9110       use_additional=no
9111     else
9112       if test "X$withval" = "X"; then
9113
9114   acl_save_prefix="$prefix"
9115   prefix="$acl_final_prefix"
9116   acl_save_exec_prefix="$exec_prefix"
9117   exec_prefix="$acl_final_exec_prefix"
9118
9119           eval additional_includedir=\"$includedir\"
9120           eval additional_libdir=\"$libdir\"
9121
9122   exec_prefix="$acl_save_exec_prefix"
9123   prefix="$acl_save_prefix"
9124
9125       else
9126         additional_includedir="$withval/include"
9127         additional_libdir="$withval/$acl_libdirstem"
9128         if test "$acl_libdirstem2" != "$acl_libdirstem" \
9129            && ! test -d "$withval/$acl_libdirstem"; then
9130           additional_libdir="$withval/$acl_libdirstem2"
9131         fi
9132       fi
9133     fi
9134
9135 fi
9136
9137       LIBINTL=
9138   LTLIBINTL=
9139   INCINTL=
9140   LIBINTL_PREFIX=
9141       HAVE_LIBINTL=
9142   rpathdirs=
9143   ltrpathdirs=
9144   names_already_handled=
9145   names_next_round='intl '
9146   while test -n "$names_next_round"; do
9147     names_this_round="$names_next_round"
9148     names_next_round=
9149     for name in $names_this_round; do
9150       already_handled=
9151       for n in $names_already_handled; do
9152         if test "$n" = "$name"; then
9153           already_handled=yes
9154           break
9155         fi
9156       done
9157       if test -z "$already_handled"; then
9158         names_already_handled="$names_already_handled $name"
9159                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9160         eval value=\"\$HAVE_LIB$uppername\"
9161         if test -n "$value"; then
9162           if test "$value" = yes; then
9163             eval value=\"\$LIB$uppername\"
9164             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9165             eval value=\"\$LTLIB$uppername\"
9166             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9167           else
9168                                     :
9169           fi
9170         else
9171                               found_dir=
9172           found_la=
9173           found_so=
9174           found_a=
9175           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
9176           if test -n "$acl_shlibext"; then
9177             shrext=".$acl_shlibext"             # typically: shrext=.so
9178           else
9179             shrext=
9180           fi
9181           if test $use_additional = yes; then
9182             dir="$additional_libdir"
9183                                     if test -n "$acl_shlibext"; then
9184               if test -f "$dir/$libname$shrext"; then
9185                 found_dir="$dir"
9186                 found_so="$dir/$libname$shrext"
9187               else
9188                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9189                   ver=`(cd "$dir" && \
9190                         for f in "$libname$shrext".*; do echo "$f"; done \
9191                         | sed -e "s,^$libname$shrext\\\\.,," \
9192                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9193                         | sed 1q ) 2>/dev/null`
9194                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9195                     found_dir="$dir"
9196                     found_so="$dir/$libname$shrext.$ver"
9197                   fi
9198                 else
9199                   eval library_names=\"$acl_library_names_spec\"
9200                   for f in $library_names; do
9201                     if test -f "$dir/$f"; then
9202                       found_dir="$dir"
9203                       found_so="$dir/$f"
9204                       break
9205                     fi
9206                   done
9207                 fi
9208               fi
9209             fi
9210                         if test "X$found_dir" = "X"; then
9211               if test -f "$dir/$libname.$acl_libext"; then
9212                 found_dir="$dir"
9213                 found_a="$dir/$libname.$acl_libext"
9214               fi
9215             fi
9216             if test "X$found_dir" != "X"; then
9217               if test -f "$dir/$libname.la"; then
9218                 found_la="$dir/$libname.la"
9219               fi
9220             fi
9221           fi
9222           if test "X$found_dir" = "X"; then
9223             for x in $LDFLAGS $LTLIBINTL; do
9224
9225   acl_save_prefix="$prefix"
9226   prefix="$acl_final_prefix"
9227   acl_save_exec_prefix="$exec_prefix"
9228   exec_prefix="$acl_final_exec_prefix"
9229   eval x=\"$x\"
9230   exec_prefix="$acl_save_exec_prefix"
9231   prefix="$acl_save_prefix"
9232
9233               case "$x" in
9234                 -L*)
9235                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9236                                     if test -n "$acl_shlibext"; then
9237                     if test -f "$dir/$libname$shrext"; then
9238                       found_dir="$dir"
9239                       found_so="$dir/$libname$shrext"
9240                     else
9241                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9242                         ver=`(cd "$dir" && \
9243                               for f in "$libname$shrext".*; do echo "$f"; done \
9244                               | sed -e "s,^$libname$shrext\\\\.,," \
9245                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9246                               | sed 1q ) 2>/dev/null`
9247                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9248                           found_dir="$dir"
9249                           found_so="$dir/$libname$shrext.$ver"
9250                         fi
9251                       else
9252                         eval library_names=\"$acl_library_names_spec\"
9253                         for f in $library_names; do
9254                           if test -f "$dir/$f"; then
9255                             found_dir="$dir"
9256                             found_so="$dir/$f"
9257                             break
9258                           fi
9259                         done
9260                       fi
9261                     fi
9262                   fi
9263                                     if test "X$found_dir" = "X"; then
9264                     if test -f "$dir/$libname.$acl_libext"; then
9265                       found_dir="$dir"
9266                       found_a="$dir/$libname.$acl_libext"
9267                     fi
9268                   fi
9269                   if test "X$found_dir" != "X"; then
9270                     if test -f "$dir/$libname.la"; then
9271                       found_la="$dir/$libname.la"
9272                     fi
9273                   fi
9274                   ;;
9275               esac
9276               if test "X$found_dir" != "X"; then
9277                 break
9278               fi
9279             done
9280           fi
9281           if test "X$found_dir" != "X"; then
9282                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9283             if test "X$found_so" != "X"; then
9284                                                         if test "$enable_rpath" = no \
9285                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9286                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9287                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9288               else
9289                                                                                 haveit=
9290                 for x in $ltrpathdirs; do
9291                   if test "X$x" = "X$found_dir"; then
9292                     haveit=yes
9293                     break
9294                   fi
9295                 done
9296                 if test -z "$haveit"; then
9297                   ltrpathdirs="$ltrpathdirs $found_dir"
9298                 fi
9299                                 if test "$acl_hardcode_direct" = yes; then
9300                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9301                 else
9302                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9303                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9304                                                             haveit=
9305                     for x in $rpathdirs; do
9306                       if test "X$x" = "X$found_dir"; then
9307                         haveit=yes
9308                         break
9309                       fi
9310                     done
9311                     if test -z "$haveit"; then
9312                       rpathdirs="$rpathdirs $found_dir"
9313                     fi
9314                   else
9315                                                                                 haveit=
9316                     for x in $LDFLAGS $LIBINTL; do
9317
9318   acl_save_prefix="$prefix"
9319   prefix="$acl_final_prefix"
9320   acl_save_exec_prefix="$exec_prefix"
9321   exec_prefix="$acl_final_exec_prefix"
9322   eval x=\"$x\"
9323   exec_prefix="$acl_save_exec_prefix"
9324   prefix="$acl_save_prefix"
9325
9326                       if test "X$x" = "X-L$found_dir"; then
9327                         haveit=yes
9328                         break
9329                       fi
9330                     done
9331                     if test -z "$haveit"; then
9332                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9333                     fi
9334                     if test "$acl_hardcode_minus_L" != no; then
9335                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9336                     else
9337                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9338                     fi
9339                   fi
9340                 fi
9341               fi
9342             else
9343               if test "X$found_a" != "X"; then
9344                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9345               else
9346                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9347               fi
9348             fi
9349                         additional_includedir=
9350             case "$found_dir" in
9351               */$acl_libdirstem | */$acl_libdirstem/)
9352                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9353                 if test "$name" = 'intl'; then
9354                   LIBINTL_PREFIX="$basedir"
9355                 fi
9356                 additional_includedir="$basedir/include"
9357                 ;;
9358               */$acl_libdirstem2 | */$acl_libdirstem2/)
9359                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9360                 if test "$name" = 'intl'; then
9361                   LIBINTL_PREFIX="$basedir"
9362                 fi
9363                 additional_includedir="$basedir/include"
9364                 ;;
9365             esac
9366             if test "X$additional_includedir" != "X"; then
9367                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9368                 haveit=
9369                 if test "X$additional_includedir" = "X/usr/local/include"; then
9370                   if test -n "$GCC"; then
9371                     case $host_os in
9372                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9373                     esac
9374                   fi
9375                 fi
9376                 if test -z "$haveit"; then
9377                   for x in $CPPFLAGS $INCINTL; do
9378
9379   acl_save_prefix="$prefix"
9380   prefix="$acl_final_prefix"
9381   acl_save_exec_prefix="$exec_prefix"
9382   exec_prefix="$acl_final_exec_prefix"
9383   eval x=\"$x\"
9384   exec_prefix="$acl_save_exec_prefix"
9385   prefix="$acl_save_prefix"
9386
9387                     if test "X$x" = "X-I$additional_includedir"; then
9388                       haveit=yes
9389                       break
9390                     fi
9391                   done
9392                   if test -z "$haveit"; then
9393                     if test -d "$additional_includedir"; then
9394                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9395                     fi
9396                   fi
9397                 fi
9398               fi
9399             fi
9400                         if test -n "$found_la"; then
9401                                                         save_libdir="$libdir"
9402               case "$found_la" in
9403                 */* | *\\*) . "$found_la" ;;
9404                 *) . "./$found_la" ;;
9405               esac
9406               libdir="$save_libdir"
9407                             for dep in $dependency_libs; do
9408                 case "$dep" in
9409                   -L*)
9410                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9411                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9412                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9413                       haveit=
9414                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9415                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9416                         if test -n "$GCC"; then
9417                           case $host_os in
9418                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9419                           esac
9420                         fi
9421                       fi
9422                       if test -z "$haveit"; then
9423                         haveit=
9424                         for x in $LDFLAGS $LIBINTL; do
9425
9426   acl_save_prefix="$prefix"
9427   prefix="$acl_final_prefix"
9428   acl_save_exec_prefix="$exec_prefix"
9429   exec_prefix="$acl_final_exec_prefix"
9430   eval x=\"$x\"
9431   exec_prefix="$acl_save_exec_prefix"
9432   prefix="$acl_save_prefix"
9433
9434                           if test "X$x" = "X-L$additional_libdir"; then
9435                             haveit=yes
9436                             break
9437                           fi
9438                         done
9439                         if test -z "$haveit"; then
9440                           if test -d "$additional_libdir"; then
9441                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9442                           fi
9443                         fi
9444                         haveit=
9445                         for x in $LDFLAGS $LTLIBINTL; do
9446
9447   acl_save_prefix="$prefix"
9448   prefix="$acl_final_prefix"
9449   acl_save_exec_prefix="$exec_prefix"
9450   exec_prefix="$acl_final_exec_prefix"
9451   eval x=\"$x\"
9452   exec_prefix="$acl_save_exec_prefix"
9453   prefix="$acl_save_prefix"
9454
9455                           if test "X$x" = "X-L$additional_libdir"; then
9456                             haveit=yes
9457                             break
9458                           fi
9459                         done
9460                         if test -z "$haveit"; then
9461                           if test -d "$additional_libdir"; then
9462                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9463                           fi
9464                         fi
9465                       fi
9466                     fi
9467                     ;;
9468                   -R*)
9469                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9470                     if test "$enable_rpath" != no; then
9471                                                                   haveit=
9472                       for x in $rpathdirs; do
9473                         if test "X$x" = "X$dir"; then
9474                           haveit=yes
9475                           break
9476                         fi
9477                       done
9478                       if test -z "$haveit"; then
9479                         rpathdirs="$rpathdirs $dir"
9480                       fi
9481                                                                   haveit=
9482                       for x in $ltrpathdirs; do
9483                         if test "X$x" = "X$dir"; then
9484                           haveit=yes
9485                           break
9486                         fi
9487                       done
9488                       if test -z "$haveit"; then
9489                         ltrpathdirs="$ltrpathdirs $dir"
9490                       fi
9491                     fi
9492                     ;;
9493                   -l*)
9494                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9495                     ;;
9496                   *.la)
9497                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9498                     ;;
9499                   *)
9500                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9501                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9502                     ;;
9503                 esac
9504               done
9505             fi
9506           else
9507                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9508             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9509           fi
9510         fi
9511       fi
9512     done
9513   done
9514   if test "X$rpathdirs" != "X"; then
9515     if test -n "$acl_hardcode_libdir_separator"; then
9516                         alldirs=
9517       for found_dir in $rpathdirs; do
9518         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9519       done
9520             acl_save_libdir="$libdir"
9521       libdir="$alldirs"
9522       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9523       libdir="$acl_save_libdir"
9524       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9525     else
9526             for found_dir in $rpathdirs; do
9527         acl_save_libdir="$libdir"
9528         libdir="$found_dir"
9529         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9530         libdir="$acl_save_libdir"
9531         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9532       done
9533     fi
9534   fi
9535   if test "X$ltrpathdirs" != "X"; then
9536             for found_dir in $ltrpathdirs; do
9537       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9538     done
9539   fi
9540
9541
9542
9543
9544
9545
9546           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9547 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9548 if eval \${$gt_func_gnugettext_libintl+:} false; then :
9549   $as_echo_n "(cached) " >&6
9550 else
9551   gt_save_CPPFLAGS="$CPPFLAGS"
9552             CPPFLAGS="$CPPFLAGS $INCINTL"
9553             gt_save_LIBS="$LIBS"
9554             LIBS="$LIBS $LIBINTL"
9555                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556 /* end confdefs.h.  */
9557 #include <libintl.h>
9558 $gt_revision_test_code
9559 extern int _nl_msg_cat_cntr;
9560 extern
9561 #ifdef __cplusplus
9562 "C"
9563 #endif
9564 const char *_nl_expand_alias (const char *);
9565 int
9566 main ()
9567 {
9568 bindtextdomain ("", "");
9569 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9570   ;
9571   return 0;
9572 }
9573 _ACEOF
9574 if ac_fn_c_try_link "$LINENO"; then :
9575   eval "$gt_func_gnugettext_libintl=yes"
9576 else
9577   eval "$gt_func_gnugettext_libintl=no"
9578 fi
9579 rm -f core conftest.err conftest.$ac_objext \
9580     conftest$ac_exeext conftest.$ac_ext
9581                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
9582               LIBS="$LIBS $LIBICONV"
9583               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h.  */
9585 #include <libintl.h>
9586 $gt_revision_test_code
9587 extern int _nl_msg_cat_cntr;
9588 extern
9589 #ifdef __cplusplus
9590 "C"
9591 #endif
9592 const char *_nl_expand_alias (const char *);
9593 int
9594 main ()
9595 {
9596 bindtextdomain ("", "");
9597 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9598   ;
9599   return 0;
9600 }
9601 _ACEOF
9602 if ac_fn_c_try_link "$LINENO"; then :
9603   LIBINTL="$LIBINTL $LIBICONV"
9604                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9605                 eval "$gt_func_gnugettext_libintl=yes"
9606
9607 fi
9608 rm -f core conftest.err conftest.$ac_objext \
9609     conftest$ac_exeext conftest.$ac_ext
9610             fi
9611             CPPFLAGS="$gt_save_CPPFLAGS"
9612             LIBS="$gt_save_LIBS"
9613 fi
9614 eval ac_res=\$$gt_func_gnugettext_libintl
9615                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9616 $as_echo "$ac_res" >&6; }
9617         fi
9618
9619                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9620            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
9621                 && test "$PACKAGE" != gettext-runtime \
9622                 && test "$PACKAGE" != gettext-tools; }; then
9623           gt_use_preinstalled_gnugettext=yes
9624         else
9625                     LIBINTL=
9626           LTLIBINTL=
9627           INCINTL=
9628         fi
9629
9630
9631         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9632                               nls_cv_use_gnu_gettext=yes
9633         fi
9634       fi
9635
9636       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9637                 BUILD_INCLUDED_LIBINTL=yes
9638         USE_INCLUDED_LIBINTL=yes
9639         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
9640         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
9641         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9642       fi
9643
9644       CATOBJEXT=
9645       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9646          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9647                 CATOBJEXT=.gmo
9648       fi
9649
9650
9651     if test -n "$INTL_MACOSX_LIBS"; then
9652       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9653          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9654                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9655         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9656       fi
9657     fi
9658
9659     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9660        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9661
9662 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9663
9664     else
9665       USE_NLS=no
9666     fi
9667   fi
9668
9669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9670 $as_echo_n "checking whether to use NLS... " >&6; }
9671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9672 $as_echo "$USE_NLS" >&6; }
9673   if test "$USE_NLS" = "yes"; then
9674     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9675 $as_echo_n "checking where the gettext function comes from... " >&6; }
9676     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9677       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9678         gt_source="external libintl"
9679       else
9680         gt_source="libc"
9681       fi
9682     else
9683       gt_source="included intl directory"
9684     fi
9685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9686 $as_echo "$gt_source" >&6; }
9687   fi
9688
9689   if test "$USE_NLS" = "yes"; then
9690
9691     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9692       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9693         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9694 $as_echo_n "checking how to link with libintl... " >&6; }
9695         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9696 $as_echo "$LIBINTL" >&6; }
9697
9698   for element in $INCINTL; do
9699     haveit=
9700     for x in $CPPFLAGS; do
9701
9702   acl_save_prefix="$prefix"
9703   prefix="$acl_final_prefix"
9704   acl_save_exec_prefix="$exec_prefix"
9705   exec_prefix="$acl_final_exec_prefix"
9706   eval x=\"$x\"
9707   exec_prefix="$acl_save_exec_prefix"
9708   prefix="$acl_save_prefix"
9709
9710       if test "X$x" = "X$element"; then
9711         haveit=yes
9712         break
9713       fi
9714     done
9715     if test -z "$haveit"; then
9716       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9717     fi
9718   done
9719
9720       fi
9721
9722
9723 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9724
9725
9726 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9727
9728     fi
9729
9730         POSUB=po
9731   fi
9732
9733
9734             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9735       BUILD_INCLUDED_LIBINTL=yes
9736     fi
9737
9738
9739
9740
9741
9742         nls_cv_header_intl=
9743     nls_cv_header_libgt=
9744
9745         DATADIRNAME=share
9746
9747
9748         INSTOBJEXT=.mo
9749
9750
9751         GENCAT=gencat
9752
9753
9754         INTLOBJS=
9755     if test "$USE_INCLUDED_LIBINTL" = yes; then
9756       INTLOBJS="\$(GETTOBJS)"
9757     fi
9758
9759
9760         INTL_LIBTOOL_SUFFIX_PREFIX=
9761
9762
9763
9764     INTLLIBS="$LIBINTL"
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776         abook_localedir="$datadir/locale"
9777                         abook_localedir=`(      test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9778                 eval tmp_abook_prefix=\""$abook_localedir"\"
9779                 eval echo $tmp_abook_prefix
9780                 )`
9781
9782 localedir="\$(datadir)/locale"
9783
9784
9785 # Check whether --with-localedir was given.
9786 if test "${with_localedir+set}" = set; then :
9787   withval=$with_localedir;
9788 fi
9789
9790 if test "x$with_localedir" != "x"; then
9791         abook_localedir="$with_localedir"
9792         localedir="$with_localedir"
9793 fi
9794
9795
9796 cat >>confdefs.h <<_ACEOF
9797 #define LOCALEDIR "$abook_localedir"
9798 _ACEOF
9799
9800
9801
9802  if test x$USE_INCLUDED_LIBINTL = xyes; then
9803   USE_INCLUDED_INTL_H_TRUE=
9804   USE_INCLUDED_INTL_H_FALSE='#'
9805 else
9806   USE_INCLUDED_INTL_H_TRUE='#'
9807   USE_INCLUDED_INTL_H_FALSE=
9808 fi
9809
9810
9811
9812 ac_ext=c
9813 ac_cpp='$CPP $CPPFLAGS'
9814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9817 if test -n "$ac_tool_prefix"; then
9818   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9819 set dummy ${ac_tool_prefix}gcc; ac_word=$2
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9821 $as_echo_n "checking for $ac_word... " >&6; }
9822 if ${ac_cv_prog_CC+:} false; then :
9823   $as_echo_n "(cached) " >&6
9824 else
9825   if test -n "$CC"; then
9826   ac_cv_prog_CC="$CC" # Let the user override the test.
9827 else
9828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9829 for as_dir in $PATH
9830 do
9831   IFS=$as_save_IFS
9832   test -z "$as_dir" && as_dir=.
9833     for ac_exec_ext in '' $ac_executable_extensions; do
9834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9835     ac_cv_prog_CC="${ac_tool_prefix}gcc"
9836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9837     break 2
9838   fi
9839 done
9840   done
9841 IFS=$as_save_IFS
9842
9843 fi
9844 fi
9845 CC=$ac_cv_prog_CC
9846 if test -n "$CC"; then
9847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9848 $as_echo "$CC" >&6; }
9849 else
9850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9851 $as_echo "no" >&6; }
9852 fi
9853
9854
9855 fi
9856 if test -z "$ac_cv_prog_CC"; then
9857   ac_ct_CC=$CC
9858   # Extract the first word of "gcc", so it can be a program name with args.
9859 set dummy gcc; ac_word=$2
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9861 $as_echo_n "checking for $ac_word... " >&6; }
9862 if ${ac_cv_prog_ac_ct_CC+:} false; then :
9863   $as_echo_n "(cached) " >&6
9864 else
9865   if test -n "$ac_ct_CC"; then
9866   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9867 else
9868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9869 for as_dir in $PATH
9870 do
9871   IFS=$as_save_IFS
9872   test -z "$as_dir" && as_dir=.
9873     for ac_exec_ext in '' $ac_executable_extensions; do
9874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9875     ac_cv_prog_ac_ct_CC="gcc"
9876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9877     break 2
9878   fi
9879 done
9880   done
9881 IFS=$as_save_IFS
9882
9883 fi
9884 fi
9885 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9886 if test -n "$ac_ct_CC"; then
9887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
9888 $as_echo "$ac_ct_CC" >&6; }
9889 else
9890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9891 $as_echo "no" >&6; }
9892 fi
9893
9894   if test "x$ac_ct_CC" = x; then
9895     CC=""
9896   else
9897     case $cross_compiling:$ac_tool_warned in
9898 yes:)
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9901 ac_tool_warned=yes ;;
9902 esac
9903     CC=$ac_ct_CC
9904   fi
9905 else
9906   CC="$ac_cv_prog_CC"
9907 fi
9908
9909 if test -z "$CC"; then
9910           if test -n "$ac_tool_prefix"; then
9911     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9912 set dummy ${ac_tool_prefix}cc; ac_word=$2
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9914 $as_echo_n "checking for $ac_word... " >&6; }
9915 if ${ac_cv_prog_CC+:} false; then :
9916   $as_echo_n "(cached) " >&6
9917 else
9918   if test -n "$CC"; then
9919   ac_cv_prog_CC="$CC" # Let the user override the test.
9920 else
9921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9922 for as_dir in $PATH
9923 do
9924   IFS=$as_save_IFS
9925   test -z "$as_dir" && as_dir=.
9926     for ac_exec_ext in '' $ac_executable_extensions; do
9927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9928     ac_cv_prog_CC="${ac_tool_prefix}cc"
9929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9930     break 2
9931   fi
9932 done
9933   done
9934 IFS=$as_save_IFS
9935
9936 fi
9937 fi
9938 CC=$ac_cv_prog_CC
9939 if test -n "$CC"; then
9940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9941 $as_echo "$CC" >&6; }
9942 else
9943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9944 $as_echo "no" >&6; }
9945 fi
9946
9947
9948   fi
9949 fi
9950 if test -z "$CC"; then
9951   # Extract the first word of "cc", so it can be a program name with args.
9952 set dummy cc; ac_word=$2
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9954 $as_echo_n "checking for $ac_word... " >&6; }
9955 if ${ac_cv_prog_CC+:} false; then :
9956   $as_echo_n "(cached) " >&6
9957 else
9958   if test -n "$CC"; then
9959   ac_cv_prog_CC="$CC" # Let the user override the test.
9960 else
9961   ac_prog_rejected=no
9962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9963 for as_dir in $PATH
9964 do
9965   IFS=$as_save_IFS
9966   test -z "$as_dir" && as_dir=.
9967     for ac_exec_ext in '' $ac_executable_extensions; do
9968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9969     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9970        ac_prog_rejected=yes
9971        continue
9972      fi
9973     ac_cv_prog_CC="cc"
9974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9975     break 2
9976   fi
9977 done
9978   done
9979 IFS=$as_save_IFS
9980
9981 if test $ac_prog_rejected = yes; then
9982   # We found a bogon in the path, so make sure we never use it.
9983   set dummy $ac_cv_prog_CC
9984   shift
9985   if test $# != 0; then
9986     # We chose a different compiler from the bogus one.
9987     # However, it has the same basename, so the bogon will be chosen
9988     # first if we set CC to just the basename; use the full file name.
9989     shift
9990     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9991   fi
9992 fi
9993 fi
9994 fi
9995 CC=$ac_cv_prog_CC
9996 if test -n "$CC"; then
9997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9998 $as_echo "$CC" >&6; }
9999 else
10000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001 $as_echo "no" >&6; }
10002 fi
10003
10004
10005 fi
10006 if test -z "$CC"; then
10007   if test -n "$ac_tool_prefix"; then
10008   for ac_prog in cl.exe
10009   do
10010     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10011 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10013 $as_echo_n "checking for $ac_word... " >&6; }
10014 if ${ac_cv_prog_CC+:} false; then :
10015   $as_echo_n "(cached) " >&6
10016 else
10017   if test -n "$CC"; then
10018   ac_cv_prog_CC="$CC" # Let the user override the test.
10019 else
10020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021 for as_dir in $PATH
10022 do
10023   IFS=$as_save_IFS
10024   test -z "$as_dir" && as_dir=.
10025     for ac_exec_ext in '' $ac_executable_extensions; do
10026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10027     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10029     break 2
10030   fi
10031 done
10032   done
10033 IFS=$as_save_IFS
10034
10035 fi
10036 fi
10037 CC=$ac_cv_prog_CC
10038 if test -n "$CC"; then
10039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10040 $as_echo "$CC" >&6; }
10041 else
10042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043 $as_echo "no" >&6; }
10044 fi
10045
10046
10047     test -n "$CC" && break
10048   done
10049 fi
10050 if test -z "$CC"; then
10051   ac_ct_CC=$CC
10052   for ac_prog in cl.exe
10053 do
10054   # Extract the first word of "$ac_prog", so it can be a program name with args.
10055 set dummy $ac_prog; ac_word=$2
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10057 $as_echo_n "checking for $ac_word... " >&6; }
10058 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10059   $as_echo_n "(cached) " >&6
10060 else
10061   if test -n "$ac_ct_CC"; then
10062   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10063 else
10064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065 for as_dir in $PATH
10066 do
10067   IFS=$as_save_IFS
10068   test -z "$as_dir" && as_dir=.
10069     for ac_exec_ext in '' $ac_executable_extensions; do
10070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10071     ac_cv_prog_ac_ct_CC="$ac_prog"
10072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10073     break 2
10074   fi
10075 done
10076   done
10077 IFS=$as_save_IFS
10078
10079 fi
10080 fi
10081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10082 if test -n "$ac_ct_CC"; then
10083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10084 $as_echo "$ac_ct_CC" >&6; }
10085 else
10086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10088 fi
10089
10090
10091   test -n "$ac_ct_CC" && break
10092 done
10093
10094   if test "x$ac_ct_CC" = x; then
10095     CC=""
10096   else
10097     case $cross_compiling:$ac_tool_warned in
10098 yes:)
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10101 ac_tool_warned=yes ;;
10102 esac
10103     CC=$ac_ct_CC
10104   fi
10105 fi
10106
10107 fi
10108
10109
10110 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10112 as_fn_error $? "no acceptable C compiler found in \$PATH
10113 See \`config.log' for more details" "$LINENO" 5; }
10114
10115 # Provide some information about the compiler.
10116 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10117 set X $ac_compile
10118 ac_compiler=$2
10119 for ac_option in --version -v -V -qversion; do
10120   { { ac_try="$ac_compiler $ac_option >&5"
10121 case "(($ac_try" in
10122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123   *) ac_try_echo=$ac_try;;
10124 esac
10125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10126 $as_echo "$ac_try_echo"; } >&5
10127   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10128   ac_status=$?
10129   if test -s conftest.err; then
10130     sed '10a\
10131 ... rest of stderr output deleted ...
10132          10q' conftest.err >conftest.er1
10133     cat conftest.er1 >&5
10134   fi
10135   rm -f conftest.er1 conftest.err
10136   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10137   test $ac_status = 0; }
10138 done
10139
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10141 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10142 if ${ac_cv_c_compiler_gnu+:} false; then :
10143   $as_echo_n "(cached) " >&6
10144 else
10145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h.  */
10147
10148 int
10149 main ()
10150 {
10151 #ifndef __GNUC__
10152        choke me
10153 #endif
10154
10155   ;
10156   return 0;
10157 }
10158 _ACEOF
10159 if ac_fn_c_try_compile "$LINENO"; then :
10160   ac_compiler_gnu=yes
10161 else
10162   ac_compiler_gnu=no
10163 fi
10164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10165 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10166
10167 fi
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10169 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
10170 if test $ac_compiler_gnu = yes; then
10171   GCC=yes
10172 else
10173   GCC=
10174 fi
10175 ac_test_CFLAGS=${CFLAGS+set}
10176 ac_save_CFLAGS=$CFLAGS
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10178 $as_echo_n "checking whether $CC accepts -g... " >&6; }
10179 if ${ac_cv_prog_cc_g+:} false; then :
10180   $as_echo_n "(cached) " >&6
10181 else
10182   ac_save_c_werror_flag=$ac_c_werror_flag
10183    ac_c_werror_flag=yes
10184    ac_cv_prog_cc_g=no
10185    CFLAGS="-g"
10186    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10187 /* end confdefs.h.  */
10188
10189 int
10190 main ()
10191 {
10192
10193   ;
10194   return 0;
10195 }
10196 _ACEOF
10197 if ac_fn_c_try_compile "$LINENO"; then :
10198   ac_cv_prog_cc_g=yes
10199 else
10200   CFLAGS=""
10201       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h.  */
10203
10204 int
10205 main ()
10206 {
10207
10208   ;
10209   return 0;
10210 }
10211 _ACEOF
10212 if ac_fn_c_try_compile "$LINENO"; then :
10213
10214 else
10215   ac_c_werror_flag=$ac_save_c_werror_flag
10216          CFLAGS="-g"
10217          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h.  */
10219
10220 int
10221 main ()
10222 {
10223
10224   ;
10225   return 0;
10226 }
10227 _ACEOF
10228 if ac_fn_c_try_compile "$LINENO"; then :
10229   ac_cv_prog_cc_g=yes
10230 fi
10231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10232 fi
10233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10234 fi
10235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10236    ac_c_werror_flag=$ac_save_c_werror_flag
10237 fi
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
10239 $as_echo "$ac_cv_prog_cc_g" >&6; }
10240 if test "$ac_test_CFLAGS" = set; then
10241   CFLAGS=$ac_save_CFLAGS
10242 elif test $ac_cv_prog_cc_g = yes; then
10243   if test "$GCC" = yes; then
10244     CFLAGS="-g -O2"
10245   else
10246     CFLAGS="-g"
10247   fi
10248 else
10249   if test "$GCC" = yes; then
10250     CFLAGS="-O2"
10251   else
10252     CFLAGS=
10253   fi
10254 fi
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
10256 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
10257 if ${ac_cv_prog_cc_c89+:} false; then :
10258   $as_echo_n "(cached) " >&6
10259 else
10260   ac_cv_prog_cc_c89=no
10261 ac_save_CC=$CC
10262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10263 /* end confdefs.h.  */
10264 #include <stdarg.h>
10265 #include <stdio.h>
10266 #include <sys/types.h>
10267 #include <sys/stat.h>
10268 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10269 struct buf { int x; };
10270 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10271 static char *e (p, i)
10272      char **p;
10273      int i;
10274 {
10275   return p[i];
10276 }
10277 static char *f (char * (*g) (char **, int), char **p, ...)
10278 {
10279   char *s;
10280   va_list v;
10281   va_start (v,p);
10282   s = g (p, va_arg (v,int));
10283   va_end (v);
10284   return s;
10285 }
10286
10287 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
10288    function prototypes and stuff, but not '\xHH' hex character constants.
10289    These don't provoke an error unfortunately, instead are silently treated
10290    as 'x'.  The following induces an error, until -std is added to get
10291    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
10292    array size at least.  It's necessary to write '\x00'==0 to get something
10293    that's true only with -std.  */
10294 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10295
10296 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
10297    inside strings and character constants.  */
10298 #define FOO(x) 'x'
10299 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
10300
10301 int test (int i, double x);
10302 struct s1 {int (*f) (int a);};
10303 struct s2 {int (*f) (double a);};
10304 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10305 int argc;
10306 char **argv;
10307 int
10308 main ()
10309 {
10310 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
10311   ;
10312   return 0;
10313 }
10314 _ACEOF
10315 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
10316         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10317 do
10318   CC="$ac_save_CC $ac_arg"
10319   if ac_fn_c_try_compile "$LINENO"; then :
10320   ac_cv_prog_cc_c89=$ac_arg
10321 fi
10322 rm -f core conftest.err conftest.$ac_objext
10323   test "x$ac_cv_prog_cc_c89" != "xno" && break
10324 done
10325 rm -f conftest.$ac_ext
10326 CC=$ac_save_CC
10327
10328 fi
10329 # AC_CACHE_VAL
10330 case "x$ac_cv_prog_cc_c89" in
10331   x)
10332     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10333 $as_echo "none needed" >&6; } ;;
10334   xno)
10335     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10336 $as_echo "unsupported" >&6; } ;;
10337   *)
10338     CC="$CC $ac_cv_prog_cc_c89"
10339     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
10340 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
10341 esac
10342 if test "x$ac_cv_prog_cc_c89" != xno; then :
10343
10344 fi
10345
10346 ac_ext=c
10347 ac_cpp='$CPP $CPPFLAGS'
10348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10351
10352 depcc="$CC"   am_compiler_list=
10353
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10355 $as_echo_n "checking dependency style of $depcc... " >&6; }
10356 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
10357   $as_echo_n "(cached) " >&6
10358 else
10359   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10360   # We make a subdir and do the tests there.  Otherwise we can end up
10361   # making bogus files that we don't know about and never remove.  For
10362   # instance it was reported that on HP-UX the gcc test will end up
10363   # making a dummy file named `D' -- because `-MD' means `put the output
10364   # in D'.
10365   rm -rf conftest.dir
10366   mkdir conftest.dir
10367   # Copy depcomp to subdir because otherwise we won't find it if we're
10368   # using a relative directory.
10369   cp "$am_depcomp" conftest.dir
10370   cd conftest.dir
10371   # We will build objects and dependencies in a subdirectory because
10372   # it helps to detect inapplicable dependency modes.  For instance
10373   # both Tru64's cc and ICC support -MD to output dependencies as a
10374   # side effect of compilation, but ICC will put the dependencies in
10375   # the current directory while Tru64 will put them in the object
10376   # directory.
10377   mkdir sub
10378
10379   am_cv_CC_dependencies_compiler_type=none
10380   if test "$am_compiler_list" = ""; then
10381      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10382   fi
10383   am__universal=false
10384   case " $depcc " in #(
10385      *\ -arch\ *\ -arch\ *) am__universal=true ;;
10386      esac
10387
10388   for depmode in $am_compiler_list; do
10389     # Setup a source with many dependencies, because some compilers
10390     # like to wrap large dependency lists on column 80 (with \), and
10391     # we should not choose a depcomp mode which is confused by this.
10392     #
10393     # We need to recreate these files for each test, as the compiler may
10394     # overwrite some of them when testing with obscure command lines.
10395     # This happens at least with the AIX C compiler.
10396     : > sub/conftest.c
10397     for i in 1 2 3 4 5 6; do
10398       echo '#include "conftst'$i'.h"' >> sub/conftest.c
10399       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10400       # Solaris 8's {/usr,}/bin/sh.
10401       touch sub/conftst$i.h
10402     done
10403     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10404
10405     # We check with `-c' and `-o' for the sake of the "dashmstdout"
10406     # mode.  It turns out that the SunPro C++ compiler does not properly
10407     # handle `-M -o', and we need to detect this.  Also, some Intel
10408     # versions had trouble with output in subdirs
10409     am__obj=sub/conftest.${OBJEXT-o}
10410     am__minus_obj="-o $am__obj"
10411     case $depmode in
10412     gcc)
10413       # This depmode causes a compiler race in universal mode.
10414       test "$am__universal" = false || continue
10415       ;;
10416     nosideeffect)
10417       # after this tag, mechanisms are not by side-effect, so they'll
10418       # only be used when explicitly requested
10419       if test "x$enable_dependency_tracking" = xyes; then
10420         continue
10421       else
10422         break
10423       fi
10424       ;;
10425     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
10426       # This compiler won't grok `-c -o', but also, the minuso test has
10427       # not run yet.  These depmodes are late enough in the game, and
10428       # so weak that their functioning should not be impacted.
10429       am__obj=conftest.${OBJEXT-o}
10430       am__minus_obj=
10431       ;;
10432     none) break ;;
10433     esac
10434     if depmode=$depmode \
10435        source=sub/conftest.c object=$am__obj \
10436        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10437        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10438          >/dev/null 2>conftest.err &&
10439        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10440        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10441        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10442        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10443       # icc doesn't choke on unknown options, it will just issue warnings
10444       # or remarks (even with -Werror).  So we grep stderr for any message
10445       # that says an option was ignored or not supported.
10446       # When given -MP, icc 7.0 and 7.1 complain thusly:
10447       #   icc: Command line warning: ignoring option '-M'; no argument required
10448       # The diagnosis changed in icc 8.0:
10449       #   icc: Command line remark: option '-MP' not supported
10450       if (grep 'ignoring option' conftest.err ||
10451           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10452         am_cv_CC_dependencies_compiler_type=$depmode
10453         break
10454       fi
10455     fi
10456   done
10457
10458   cd ..
10459   rm -rf conftest.dir
10460 else
10461   am_cv_CC_dependencies_compiler_type=none
10462 fi
10463
10464 fi
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10466 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10467 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10468
10469  if
10470   test "x$enable_dependency_tracking" != xno \
10471   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10472   am__fastdepCC_TRUE=
10473   am__fastdepCC_FALSE='#'
10474 else
10475   am__fastdepCC_TRUE='#'
10476   am__fastdepCC_FALSE=
10477 fi
10478
10479
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
10481 $as_echo_n "checking for library containing strerror... " >&6; }
10482 if ${ac_cv_search_strerror+:} false; then :
10483   $as_echo_n "(cached) " >&6
10484 else
10485   ac_func_search_save_LIBS=$LIBS
10486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487 /* end confdefs.h.  */
10488
10489 /* Override any GCC internal prototype to avoid an error.
10490    Use char because int might match the return type of a GCC
10491    builtin and then its argument prototype would still apply.  */
10492 #ifdef __cplusplus
10493 extern "C"
10494 #endif
10495 char strerror ();
10496 int
10497 main ()
10498 {
10499 return strerror ();
10500   ;
10501   return 0;
10502 }
10503 _ACEOF
10504 for ac_lib in '' cposix; do
10505   if test -z "$ac_lib"; then
10506     ac_res="none required"
10507   else
10508     ac_res=-l$ac_lib
10509     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10510   fi
10511   if ac_fn_c_try_link "$LINENO"; then :
10512   ac_cv_search_strerror=$ac_res
10513 fi
10514 rm -f core conftest.err conftest.$ac_objext \
10515     conftest$ac_exeext
10516   if ${ac_cv_search_strerror+:} false; then :
10517   break
10518 fi
10519 done
10520 if ${ac_cv_search_strerror+:} false; then :
10521
10522 else
10523   ac_cv_search_strerror=no
10524 fi
10525 rm conftest.$ac_ext
10526 LIBS=$ac_func_search_save_LIBS
10527 fi
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
10529 $as_echo "$ac_cv_search_strerror" >&6; }
10530 ac_res=$ac_cv_search_strerror
10531 if test "$ac_res" != no; then :
10532   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10533
10534 fi
10535
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
10537 $as_echo_n "checking for function prototypes... " >&6; }
10538 if test "$ac_cv_prog_cc_c89" != no; then
10539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10540 $as_echo "yes" >&6; }
10541
10542 $as_echo "#define PROTOTYPES 1" >>confdefs.h
10543
10544
10545 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
10546
10547 else
10548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10549 $as_echo "no" >&6; }
10550 fi
10551
10552
10553
10554 if test "$ac_cv_prog_cc_stdc" != no; then
10555   U= ANSI2KNR=
10556 else
10557   U=_ ANSI2KNR=./ansi2knr
10558 fi
10559 # Ensure some checks needed by ansi2knr itself.
10560
10561 for ac_header in string.h
10562 do :
10563   ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
10564 if test "x$ac_cv_header_string_h" = xyes; then :
10565   cat >>confdefs.h <<_ACEOF
10566 #define HAVE_STRING_H 1
10567 _ACEOF
10568
10569 fi
10570
10571 done
10572
10573
10574 if test "x$U" != "x"; then
10575         as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
10576 fi
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10578 $as_echo_n "checking for inline... " >&6; }
10579 if ${ac_cv_c_inline+:} false; then :
10580   $as_echo_n "(cached) " >&6
10581 else
10582   ac_cv_c_inline=no
10583 for ac_kw in inline __inline__ __inline; do
10584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10585 /* end confdefs.h.  */
10586 #ifndef __cplusplus
10587 typedef int foo_t;
10588 static $ac_kw foo_t static_foo () {return 0; }
10589 $ac_kw foo_t foo () {return 0; }
10590 #endif
10591
10592 _ACEOF
10593 if ac_fn_c_try_compile "$LINENO"; then :
10594   ac_cv_c_inline=$ac_kw
10595 fi
10596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10597   test "$ac_cv_c_inline" != no && break
10598 done
10599
10600 fi
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10602 $as_echo "$ac_cv_c_inline" >&6; }
10603
10604 case $ac_cv_c_inline in
10605   inline | yes) ;;
10606   *)
10607     case $ac_cv_c_inline in
10608       no) ac_val=;;
10609       *) ac_val=$ac_cv_c_inline;;
10610     esac
10611     cat >>confdefs.h <<_ACEOF
10612 #ifndef __cplusplus
10613 #define inline $ac_val
10614 #endif
10615 _ACEOF
10616     ;;
10617 esac
10618
10619
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10621 $as_echo_n "checking for ANSI C header files... " >&6; }
10622 if ${ac_cv_header_stdc+:} false; then :
10623   $as_echo_n "(cached) " >&6
10624 else
10625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10626 /* end confdefs.h.  */
10627 #include <stdlib.h>
10628 #include <stdarg.h>
10629 #include <string.h>
10630 #include <float.h>
10631
10632 int
10633 main ()
10634 {
10635
10636   ;
10637   return 0;
10638 }
10639 _ACEOF
10640 if ac_fn_c_try_compile "$LINENO"; then :
10641   ac_cv_header_stdc=yes
10642 else
10643   ac_cv_header_stdc=no
10644 fi
10645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10646
10647 if test $ac_cv_header_stdc = yes; then
10648   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10650 /* end confdefs.h.  */
10651 #include <string.h>
10652
10653 _ACEOF
10654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10655   $EGREP "memchr" >/dev/null 2>&1; then :
10656
10657 else
10658   ac_cv_header_stdc=no
10659 fi
10660 rm -f conftest*
10661
10662 fi
10663
10664 if test $ac_cv_header_stdc = yes; then
10665   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667 /* end confdefs.h.  */
10668 #include <stdlib.h>
10669
10670 _ACEOF
10671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10672   $EGREP "free" >/dev/null 2>&1; then :
10673
10674 else
10675   ac_cv_header_stdc=no
10676 fi
10677 rm -f conftest*
10678
10679 fi
10680
10681 if test $ac_cv_header_stdc = yes; then
10682   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10683   if test "$cross_compiling" = yes; then :
10684   :
10685 else
10686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h.  */
10688 #include <ctype.h>
10689 #include <stdlib.h>
10690 #if ((' ' & 0x0FF) == 0x020)
10691 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10692 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10693 #else
10694 # define ISLOWER(c) \
10695                    (('a' <= (c) && (c) <= 'i') \
10696                      || ('j' <= (c) && (c) <= 'r') \
10697                      || ('s' <= (c) && (c) <= 'z'))
10698 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10699 #endif
10700
10701 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10702 int
10703 main ()
10704 {
10705   int i;
10706   for (i = 0; i < 256; i++)
10707     if (XOR (islower (i), ISLOWER (i))
10708         || toupper (i) != TOUPPER (i))
10709       return 2;
10710   return 0;
10711 }
10712 _ACEOF
10713 if ac_fn_c_try_run "$LINENO"; then :
10714
10715 else
10716   ac_cv_header_stdc=no
10717 fi
10718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10719   conftest.$ac_objext conftest.beam conftest.$ac_ext
10720 fi
10721
10722 fi
10723 fi
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10725 $as_echo "$ac_cv_header_stdc" >&6; }
10726 if test $ac_cv_header_stdc = yes; then
10727
10728 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10729
10730 fi
10731
10732 for ac_header in unistd.h locale.h sys/ioctl.h iconv.h
10733 do :
10734   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10735 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10736 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10737   cat >>confdefs.h <<_ACEOF
10738 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10739 _ACEOF
10740
10741 fi
10742
10743 done
10744
10745 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
10746 if test "x$ac_cv_header_stdarg_h" = xyes; then :
10747
10748 $as_echo "#define HAVE_STDARG_H 1" >>confdefs.h
10749
10750 else
10751   as_fn_error $? "*** stdarg.h is missing on your system ***" "$LINENO" 5
10752 fi
10753
10754
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
10756 $as_echo_n "checking for working strcoll... " >&6; }
10757 if ${ac_cv_func_strcoll_works+:} false; then :
10758   $as_echo_n "(cached) " >&6
10759 else
10760   if test "$cross_compiling" = yes; then :
10761   ac_cv_func_strcoll_works=no
10762 else
10763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h.  */
10765 $ac_includes_default
10766 int
10767 main ()
10768 {
10769 return (strcoll ("abc", "def") >= 0 ||
10770          strcoll ("ABC", "DEF") >= 0 ||
10771          strcoll ("123", "456") >= 0)
10772   ;
10773   return 0;
10774 }
10775 _ACEOF
10776 if ac_fn_c_try_run "$LINENO"; then :
10777   ac_cv_func_strcoll_works=yes
10778 else
10779   ac_cv_func_strcoll_works=no
10780 fi
10781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10782   conftest.$ac_objext conftest.beam conftest.$ac_ext
10783 fi
10784
10785 fi
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
10787 $as_echo "$ac_cv_func_strcoll_works" >&6; }
10788 if test $ac_cv_func_strcoll_works = yes; then
10789
10790 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
10791
10792 fi
10793
10794 for ac_func in setlocale
10795 do :
10796   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
10797 if test "x$ac_cv_func_setlocale" = xyes; then :
10798   cat >>confdefs.h <<_ACEOF
10799 #define HAVE_SETLOCALE 1
10800 _ACEOF
10801
10802 fi
10803 done
10804
10805
10806 ac_widec_funcs=yes
10807 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
10808 if test "x$ac_cv_header_wchar_h" = xyes; then :
10809
10810         ac_have_wchar_h=yes
10811
10812 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
10813
10814 else
10815   ac_have_wchar_h=no
10816 fi
10817
10818
10819 for ac_func in mbtowc wcwidth mbrtowc mbsinit
10820 do :
10821   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10822 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10823 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10824   cat >>confdefs.h <<_ACEOF
10825 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10826 _ACEOF
10827
10828 else
10829   ac_widec_funcs=no
10830 fi
10831 done
10832
10833 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "$ac_includes_default"
10834 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
10835   ac_have_decl=1
10836 else
10837   ac_have_decl=0
10838 fi
10839
10840 cat >>confdefs.h <<_ACEOF
10841 #define HAVE_DECL_WCWIDTH $ac_have_decl
10842 _ACEOF
10843
10844 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
10845 if test "x$ac_cv_type_wchar_t" = xyes; then :
10846
10847 else
10848   ac_widec_funcs=no
10849 fi
10850
10851
10852 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
10853         ac_widec_possible=yes
10854 else
10855         ac_widec_possible=no
10856 fi
10857
10858
10859 abook_cv_curses=/usr
10860
10861 # Check whether --with-curses was given.
10862 if test "${with_curses+set}" = set; then :
10863   withval=$with_curses; if test $withval != yes; then
10864                 abook_cv_curses=$withval
10865         fi
10866         if test x$abook_cv_curses != x/usr; then
10867                 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
10868                 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
10869         fi
10870 fi
10871
10872
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
10874 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
10875 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
10876   $as_echo_n "(cached) " >&6
10877 else
10878   ac_check_lib_save_LIBS=$LIBS
10879 LIBS="-lncursesw  $LIBS"
10880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10881 /* end confdefs.h.  */
10882
10883 /* Override any GCC internal prototype to avoid an error.
10884    Use char because int might match the return type of a GCC
10885    builtin and then its argument prototype would still apply.  */
10886 #ifdef __cplusplus
10887 extern "C"
10888 #endif
10889 char initscr ();
10890 int
10891 main ()
10892 {
10893 return initscr ();
10894   ;
10895   return 0;
10896 }
10897 _ACEOF
10898 if ac_fn_c_try_link "$LINENO"; then :
10899   ac_cv_lib_ncursesw_initscr=yes
10900 else
10901   ac_cv_lib_ncursesw_initscr=no
10902 fi
10903 rm -f core conftest.err conftest.$ac_objext \
10904     conftest$ac_exeext conftest.$ac_ext
10905 LIBS=$ac_check_lib_save_LIBS
10906 fi
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
10908 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
10909 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
10910   LIBS="$LIBS -lncursesw"
10911         if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
10912                 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
10913         fi
10914         for ac_header in ncurses.h
10915 do :
10916   ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
10917 if test "x$ac_cv_header_ncurses_h" = xyes; then :
10918   cat >>confdefs.h <<_ACEOF
10919 #define HAVE_NCURSES_H 1
10920 _ACEOF
10921
10922 fi
10923
10924 done
10925
10926 else
10927
10928         ac_widec_possible=no
10929         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
10930 $as_echo_n "checking for initscr in -lncurses... " >&6; }
10931 if ${ac_cv_lib_ncurses_initscr+:} false; then :
10932   $as_echo_n "(cached) " >&6
10933 else
10934   ac_check_lib_save_LIBS=$LIBS
10935 LIBS="-lncurses  $LIBS"
10936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10937 /* end confdefs.h.  */
10938
10939 /* Override any GCC internal prototype to avoid an error.
10940    Use char because int might match the return type of a GCC
10941    builtin and then its argument prototype would still apply.  */
10942 #ifdef __cplusplus
10943 extern "C"
10944 #endif
10945 char initscr ();
10946 int
10947 main ()
10948 {
10949 return initscr ();
10950   ;
10951   return 0;
10952 }
10953 _ACEOF
10954 if ac_fn_c_try_link "$LINENO"; then :
10955   ac_cv_lib_ncurses_initscr=yes
10956 else
10957   ac_cv_lib_ncurses_initscr=no
10958 fi
10959 rm -f core conftest.err conftest.$ac_objext \
10960     conftest$ac_exeext conftest.$ac_ext
10961 LIBS=$ac_check_lib_save_LIBS
10962 fi
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
10964 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
10965 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
10966   LIBS="$LIBS -lncurses"
10967                 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
10968                         CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
10969                 fi
10970                 for ac_header in ncurses.h
10971 do :
10972   ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
10973 if test "x$ac_cv_header_ncurses_h" = xyes; then :
10974   cat >>confdefs.h <<_ACEOF
10975 #define HAVE_NCURSES_H 1
10976 _ACEOF
10977
10978 fi
10979
10980 done
10981
10982 else
10983
10984 ac_fn_c_check_func "$LINENO" "initscr" "ac_cv_func_initscr"
10985 if test "x$ac_cv_func_initscr" = xyes; then :
10986
10987 else
10988
10989 case $host_os in #(vi
10990 freebsd*) #(vi
10991         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -lmytinfo" >&5
10992 $as_echo_n "checking for tgoto in -lmytinfo... " >&6; }
10993 if ${ac_cv_lib_mytinfo_tgoto+:} false; then :
10994   $as_echo_n "(cached) " >&6
10995 else
10996   ac_check_lib_save_LIBS=$LIBS
10997 LIBS="-lmytinfo  $LIBS"
10998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h.  */
11000
11001 /* Override any GCC internal prototype to avoid an error.
11002    Use char because int might match the return type of a GCC
11003    builtin and then its argument prototype would still apply.  */
11004 #ifdef __cplusplus
11005 extern "C"
11006 #endif
11007 char tgoto ();
11008 int
11009 main ()
11010 {
11011 return tgoto ();
11012   ;
11013   return 0;
11014 }
11015 _ACEOF
11016 if ac_fn_c_try_link "$LINENO"; then :
11017   ac_cv_lib_mytinfo_tgoto=yes
11018 else
11019   ac_cv_lib_mytinfo_tgoto=no
11020 fi
11021 rm -f core conftest.err conftest.$ac_objext \
11022     conftest$ac_exeext conftest.$ac_ext
11023 LIBS=$ac_check_lib_save_LIBS
11024 fi
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mytinfo_tgoto" >&5
11026 $as_echo "$ac_cv_lib_mytinfo_tgoto" >&6; }
11027 if test "x$ac_cv_lib_mytinfo_tgoto" = xyes; then :
11028   LIBS="-lmytinfo $LIBS"
11029 fi
11030
11031         ;;
11032 hpux10.*|hpux11.*)
11033         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcur_colr" >&5
11034 $as_echo_n "checking for initscr in -lcur_colr... " >&6; }
11035 if ${ac_cv_lib_cur_colr_initscr+:} false; then :
11036   $as_echo_n "(cached) " >&6
11037 else
11038   ac_check_lib_save_LIBS=$LIBS
11039 LIBS="-lcur_colr  $LIBS"
11040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11041 /* end confdefs.h.  */
11042
11043 /* Override any GCC internal prototype to avoid an error.
11044    Use char because int might match the return type of a GCC
11045    builtin and then its argument prototype would still apply.  */
11046 #ifdef __cplusplus
11047 extern "C"
11048 #endif
11049 char initscr ();
11050 int
11051 main ()
11052 {
11053 return initscr ();
11054   ;
11055   return 0;
11056 }
11057 _ACEOF
11058 if ac_fn_c_try_link "$LINENO"; then :
11059   ac_cv_lib_cur_colr_initscr=yes
11060 else
11061   ac_cv_lib_cur_colr_initscr=no
11062 fi
11063 rm -f core conftest.err conftest.$ac_objext \
11064     conftest$ac_exeext conftest.$ac_ext
11065 LIBS=$ac_check_lib_save_LIBS
11066 fi
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_initscr" >&5
11068 $as_echo "$ac_cv_lib_cur_colr_initscr" >&6; }
11069 if test "x$ac_cv_lib_cur_colr_initscr" = xyes; then :
11070
11071                 LIBS="-lcur_colr $LIBS"
11072                 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
11073                 ac_cv_func_initscr=yes
11074
11075 else
11076
11077         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lHcurses" >&5
11078 $as_echo_n "checking for initscr in -lHcurses... " >&6; }
11079 if ${ac_cv_lib_Hcurses_initscr+:} false; then :
11080   $as_echo_n "(cached) " >&6
11081 else
11082   ac_check_lib_save_LIBS=$LIBS
11083 LIBS="-lHcurses  $LIBS"
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h.  */
11086
11087 /* Override any GCC internal prototype to avoid an error.
11088    Use char because int might match the return type of a GCC
11089    builtin and then its argument prototype would still apply.  */
11090 #ifdef __cplusplus
11091 extern "C"
11092 #endif
11093 char initscr ();
11094 int
11095 main ()
11096 {
11097 return initscr ();
11098   ;
11099   return 0;
11100 }
11101 _ACEOF
11102 if ac_fn_c_try_link "$LINENO"; then :
11103   ac_cv_lib_Hcurses_initscr=yes
11104 else
11105   ac_cv_lib_Hcurses_initscr=no
11106 fi
11107 rm -f core conftest.err conftest.$ac_objext \
11108     conftest$ac_exeext conftest.$ac_ext
11109 LIBS=$ac_check_lib_save_LIBS
11110 fi
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Hcurses_initscr" >&5
11112 $as_echo "$ac_cv_lib_Hcurses_initscr" >&6; }
11113 if test "x$ac_cv_lib_Hcurses_initscr" = xyes; then :
11114
11115                 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
11116                 LIBS="-lHcurses $LIBS"
11117                 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
11118                 ac_cv_func_initscr=yes
11119
11120 fi
11121
11122 fi
11123
11124         ;;
11125 linux*) # Suse Linux does not follow /usr/lib convention
11126         LIBS="$LIBS -L/lib"
11127         ;;
11128 esac
11129
11130 if test ".$With5lib" != ".no" ; then
11131 if test -d /usr/5lib ; then
11132         # SunOS 3.x or 4.x
11133         CPPFLAGS="$CPPFLAGS -I/usr/5include"
11134         LIBS="$LIBS -L/usr/5lib"
11135 fi
11136 fi
11137
11138 if test ".$ac_cv_func_initscr" != .yes ; then
11139         cf_save_LIBS="$LIBS"
11140         cf_term_lib=""
11141         cf_curs_lib=""
11142
11143         # Check for library containing tgoto.  Do this before curses library
11144         # because it may be needed to link the test-case for initscr.
11145         ac_fn_c_check_func "$LINENO" "tgoto" "ac_cv_func_tgoto"
11146 if test "x$ac_cv_func_tgoto" = xyes; then :
11147   cf_term_lib=predefined
11148 else
11149
11150                 for cf_term_lib in termcap termlib unknown
11151                 do
11152                         as_ac_Lib=`$as_echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -l$cf_term_lib" >&5
11154 $as_echo_n "checking for tgoto in -l$cf_term_lib... " >&6; }
11155 if eval \${$as_ac_Lib+:} false; then :
11156   $as_echo_n "(cached) " >&6
11157 else
11158   ac_check_lib_save_LIBS=$LIBS
11159 LIBS="-l$cf_term_lib  $LIBS"
11160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11161 /* end confdefs.h.  */
11162
11163 /* Override any GCC internal prototype to avoid an error.
11164    Use char because int might match the return type of a GCC
11165    builtin and then its argument prototype would still apply.  */
11166 #ifdef __cplusplus
11167 extern "C"
11168 #endif
11169 char tgoto ();
11170 int
11171 main ()
11172 {
11173 return tgoto ();
11174   ;
11175   return 0;
11176 }
11177 _ACEOF
11178 if ac_fn_c_try_link "$LINENO"; then :
11179   eval "$as_ac_Lib=yes"
11180 else
11181   eval "$as_ac_Lib=no"
11182 fi
11183 rm -f core conftest.err conftest.$ac_objext \
11184     conftest$ac_exeext conftest.$ac_ext
11185 LIBS=$ac_check_lib_save_LIBS
11186 fi
11187 eval ac_res=\$$as_ac_Lib
11188                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11189 $as_echo "$ac_res" >&6; }
11190 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11191   break
11192 fi
11193
11194                 done
11195
11196 fi
11197
11198
11199         # Check for library containing initscr
11200         test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
11201         for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
11202         do
11203                 as_ac_Lib=`$as_echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -l$cf_curs_lib" >&5
11205 $as_echo_n "checking for initscr in -l$cf_curs_lib... " >&6; }
11206 if eval \${$as_ac_Lib+:} false; then :
11207   $as_echo_n "(cached) " >&6
11208 else
11209   ac_check_lib_save_LIBS=$LIBS
11210 LIBS="-l$cf_curs_lib  $LIBS"
11211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11212 /* end confdefs.h.  */
11213
11214 /* Override any GCC internal prototype to avoid an error.
11215    Use char because int might match the return type of a GCC
11216    builtin and then its argument prototype would still apply.  */
11217 #ifdef __cplusplus
11218 extern "C"
11219 #endif
11220 char initscr ();
11221 int
11222 main ()
11223 {
11224 return initscr ();
11225   ;
11226   return 0;
11227 }
11228 _ACEOF
11229 if ac_fn_c_try_link "$LINENO"; then :
11230   eval "$as_ac_Lib=yes"
11231 else
11232   eval "$as_ac_Lib=no"
11233 fi
11234 rm -f core conftest.err conftest.$ac_objext \
11235     conftest$ac_exeext conftest.$ac_ext
11236 LIBS=$ac_check_lib_save_LIBS
11237 fi
11238 eval ac_res=\$$as_ac_Lib
11239                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11240 $as_echo "$ac_res" >&6; }
11241 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11242   break
11243 fi
11244
11245         done
11246         test $cf_curs_lib = unknown && as_fn_error $? "no curses library found" "$LINENO" 5
11247
11248         LIBS="-l$cf_curs_lib $cf_save_LIBS"
11249         if test "$cf_term_lib" = unknown ; then
11250                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can link with $cf_curs_lib library" >&5
11251 $as_echo_n "checking if we can link with $cf_curs_lib library... " >&6; }
11252                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11253 /* end confdefs.h.  */
11254 #include <${cf_cv_ncurses_header-curses.h}>
11255 int
11256 main ()
11257 {
11258 initscr()
11259   ;
11260   return 0;
11261 }
11262 _ACEOF
11263 if ac_fn_c_try_link "$LINENO"; then :
11264   cf_result=yes
11265 else
11266   cf_result=no
11267 fi
11268 rm -f core conftest.err conftest.$ac_objext \
11269     conftest$ac_exeext conftest.$ac_ext
11270                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
11271 $as_echo "$cf_result" >&6; }
11272                 test $cf_result = no && as_fn_error $? "Cannot link curses library" "$LINENO" 5
11273         elif test "$cf_term_lib" != predefined ; then
11274                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
11275 $as_echo_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries... " >&6; }
11276                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11277 /* end confdefs.h.  */
11278 #include <${cf_cv_ncurses_header-curses.h}>
11279 int
11280 main ()
11281 {
11282 initscr(); tgoto((char *)0, 0, 0);
11283   ;
11284   return 0;
11285 }
11286 _ACEOF
11287 if ac_fn_c_try_link "$LINENO"; then :
11288   cf_result=no
11289 else
11290
11291                         LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
11292                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h.  */
11294 #include <${cf_cv_ncurses_header-curses.h}>
11295 int
11296 main ()
11297 {
11298 initscr()
11299   ;
11300   return 0;
11301 }
11302 _ACEOF
11303 if ac_fn_c_try_link "$LINENO"; then :
11304   cf_result=yes
11305 else
11306   cf_result=error
11307 fi
11308 rm -f core conftest.err conftest.$ac_objext \
11309     conftest$ac_exeext conftest.$ac_ext
11310
11311 fi
11312 rm -f core conftest.err conftest.$ac_objext \
11313     conftest$ac_exeext conftest.$ac_ext
11314                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
11315 $as_echo "$cf_result" >&6; }
11316         fi
11317 fi
11318
11319
11320 fi
11321
11322 fi
11323
11324
11325 fi
11326
11327
11328
11329
11330 abook_cv_readline=/usr
11331
11332 # Check whether --with-readline was given.
11333 if test "${with_readline+set}" = set; then :
11334   withval=$with_readline; if test $withval != yes; then
11335                 abook_cv_readline=$withval
11336         fi
11337         if test x$abook_cv_readline != x/usr; then
11338                 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
11339                 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
11340         fi
11341 fi
11342
11343
11344
11345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
11346 $as_echo_n "checking for a readline compatible library... " >&6; }
11347 if ${ac_cv_lib_readline+:} false; then :
11348   $as_echo_n "(cached) " >&6
11349 else
11350
11351     ORIG_LIBS="$LIBS"
11352     for readline_lib in readline edit editline; do
11353       for termcap_lib in "" termcap curses ncurses; do
11354         if test -z "$termcap_lib"; then
11355           TRY_LIB="-l$readline_lib"
11356         else
11357           TRY_LIB="-l$readline_lib -l$termcap_lib"
11358         fi
11359         LIBS="$ORIG_LIBS $TRY_LIB"
11360         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h.  */
11362
11363 /* Override any GCC internal prototype to avoid an error.
11364    Use char because int might match the return type of a GCC
11365    builtin and then its argument prototype would still apply.  */
11366 #ifdef __cplusplus
11367 extern "C"
11368 #endif
11369 char readline ();
11370 int
11371 main ()
11372 {
11373 return readline ();
11374   ;
11375   return 0;
11376 }
11377 _ACEOF
11378 if ac_fn_c_try_link "$LINENO"; then :
11379   ac_cv_lib_readline="$TRY_LIB"
11380 fi
11381 rm -f core conftest.err conftest.$ac_objext \
11382     conftest$ac_exeext conftest.$ac_ext
11383         if test -n "$ac_cv_lib_readline"; then
11384           break
11385         fi
11386       done
11387       if test -n "$ac_cv_lib_readline"; then
11388         break
11389       fi
11390     done
11391     if test -z "$ac_cv_lib_readline"; then
11392       ac_cv_lib_readline="no"
11393     fi
11394     LIBS="$ORIG_LIBS"
11395
11396 fi
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
11398 $as_echo "$ac_cv_lib_readline" >&6; }
11399
11400   if test "$ac_cv_lib_readline" != "no"; then
11401     LIBS="$LIBS $ac_cv_lib_readline"
11402
11403 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
11404
11405     for ac_header in readline.h readline/readline.h
11406 do :
11407   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11408 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11409 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11410   cat >>confdefs.h <<_ACEOF
11411 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11412 _ACEOF
11413
11414 fi
11415
11416 done
11417
11418     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
11419 $as_echo_n "checking whether readline supports history... " >&6; }
11420 if ${ac_cv_lib_readline_history+:} false; then :
11421   $as_echo_n "(cached) " >&6
11422 else
11423
11424       ac_cv_lib_readline_history="no"
11425       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h.  */
11427
11428 /* Override any GCC internal prototype to avoid an error.
11429    Use char because int might match the return type of a GCC
11430    builtin and then its argument prototype would still apply.  */
11431 #ifdef __cplusplus
11432 extern "C"
11433 #endif
11434 char add_history ();
11435 int
11436 main ()
11437 {
11438 return add_history ();
11439   ;
11440   return 0;
11441 }
11442 _ACEOF
11443 if ac_fn_c_try_link "$LINENO"; then :
11444   ac_cv_lib_readline_history="yes"
11445 fi
11446 rm -f core conftest.err conftest.$ac_objext \
11447     conftest$ac_exeext conftest.$ac_ext
11448
11449 fi
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
11451 $as_echo "$ac_cv_lib_readline_history" >&6; }
11452     if test "$ac_cv_lib_readline_history" = "yes"; then
11453
11454 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
11455
11456       for ac_header in history.h readline/history.h
11457 do :
11458   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11459 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11460 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11461   cat >>confdefs.h <<_ACEOF
11462 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11463 _ACEOF
11464
11465 fi
11466
11467 done
11468
11469     fi
11470   fi
11471
11472
11473
11474 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
11475         as_fn_error $? "*** readline library not found or it doesn't support history ***" "$LINENO" 5
11476 fi
11477
11478
11479
11480 # Check whether --enable-vformat was given.
11481 if test "${enable_vformat+set}" = set; then :
11482   enableval=$enable_vformat; case "${enableval}" in
11483         yes) vformat=true ;;
11484         no) vformat=false ;;
11485         *) as_fn_error $? "bad value ${enableval} for --enable-vformat" "$LINENO" 5 ;;
11486         esac
11487 else
11488   vformat=false
11489 fi
11490
11491 if test x$vformat = xtrue; then
11492    ac_fn_c_check_header_mongrel "$LINENO" "vf_iface.h" "ac_cv_header_vf_iface_h" "$ac_includes_default"
11493 if test "x$ac_cv_header_vf_iface_h" = xyes; then :
11494
11495      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vf_read_file in -lvformat" >&5
11496 $as_echo_n "checking for vf_read_file in -lvformat... " >&6; }
11497 if ${ac_cv_lib_vformat_vf_read_file+:} false; then :
11498   $as_echo_n "(cached) " >&6
11499 else
11500   ac_check_lib_save_LIBS=$LIBS
11501 LIBS="-lvformat  $LIBS"
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h.  */
11504
11505 /* Override any GCC internal prototype to avoid an error.
11506    Use char because int might match the return type of a GCC
11507    builtin and then its argument prototype would still apply.  */
11508 #ifdef __cplusplus
11509 extern "C"
11510 #endif
11511 char vf_read_file ();
11512 int
11513 main ()
11514 {
11515 return vf_read_file ();
11516   ;
11517   return 0;
11518 }
11519 _ACEOF
11520 if ac_fn_c_try_link "$LINENO"; then :
11521   ac_cv_lib_vformat_vf_read_file=yes
11522 else
11523   ac_cv_lib_vformat_vf_read_file=no
11524 fi
11525 rm -f core conftest.err conftest.$ac_objext \
11526     conftest$ac_exeext conftest.$ac_ext
11527 LIBS=$ac_check_lib_save_LIBS
11528 fi
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vformat_vf_read_file" >&5
11530 $as_echo "$ac_cv_lib_vformat_vf_read_file" >&6; }
11531 if test "x$ac_cv_lib_vformat_vf_read_file" = xyes; then :
11532
11533      MODULES="$MODULES m_vcf"
11534
11535 $as_echo "#define HAVE_VFORMAT 1" >>confdefs.h
11536
11537      have_vformat=yes
11538
11539 fi
11540
11541
11542 fi
11543
11544
11545 fi
11546  if test x"$have_vformat" = "xyes"; then
11547   ENABLE_VFORMAT_SUPPORT_TRUE=
11548   ENABLE_VFORMAT_SUPPORT_FALSE='#'
11549 else
11550   ENABLE_VFORMAT_SUPPORT_TRUE='#'
11551   ENABLE_VFORMAT_SUPPORT_FALSE=
11552 fi
11553
11554
11555
11556
11557 if test x$ac_widec_possible = xyes; then
11558
11559 $as_echo "#define HANDLE_MULTIBYTE 1" >>confdefs.h
11560
11561 fi
11562
11563 for ac_func in resizeterm
11564 do :
11565   ac_fn_c_check_func "$LINENO" "resizeterm" "ac_cv_func_resizeterm"
11566 if test "x$ac_cv_func_resizeterm" = xyes; then :
11567   cat >>confdefs.h <<_ACEOF
11568 #define HAVE_RESIZETERM 1
11569 _ACEOF
11570
11571 fi
11572 done
11573
11574
11575 for ac_func in snprintf vsnprintf
11576 do :
11577   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11578 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11579 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11580   cat >>confdefs.h <<_ACEOF
11581 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11582 _ACEOF
11583
11584 fi
11585 done
11586
11587
11588 for ac_func in strcasestr
11589 do :
11590   ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
11591 if test "x$ac_cv_func_strcasestr" = xyes; then :
11592   cat >>confdefs.h <<_ACEOF
11593 #define HAVE_STRCASESTR 1
11594 _ACEOF
11595  $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
11596
11597 fi
11598 done
11599
11600
11601 # Check whether --enable-debug was given.
11602 if test "${enable_debug+set}" = set; then :
11603   enableval=$enable_debug; case "${enableval}" in
11604         yes) debug=true ;;
11605         no) debug=false ;;
11606         *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
11607         esac
11608 else
11609   debug=false
11610 fi
11611
11612
11613 if test x$debug = xtrue; then
11614         CPPFLAGS="-DDEBUG=1 $CPPFLAGS"
11615         CFLAGS="-g $CFLAGS"
11616 fi
11617
11618 if test x$GCC = xyes; then
11619         CFLAGS="-Wall $CFLAGS"
11620 fi
11621
11622 ac_config_files="$ac_config_files Makefile abook.spec intl/Makefile po/Makefile.in"
11623
11624 cat >confcache <<\_ACEOF
11625 # This file is a shell script that caches the results of configure
11626 # tests run on this system so they can be shared between configure
11627 # scripts and configure runs, see configure's option --config-cache.
11628 # It is not useful on other systems.  If it contains results you don't
11629 # want to keep, you may remove or edit it.
11630 #
11631 # config.status only pays attention to the cache file if you give it
11632 # the --recheck option to rerun configure.
11633 #
11634 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11635 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11636 # following values.
11637
11638 _ACEOF
11639
11640 # The following way of writing the cache mishandles newlines in values,
11641 # but we know of no workaround that is simple, portable, and efficient.
11642 # So, we kill variables containing newlines.
11643 # Ultrix sh set writes to stderr and can't be redirected directly,
11644 # and sets the high bit in the cache file unless we assign to the vars.
11645 (
11646   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11647     eval ac_val=\$$ac_var
11648     case $ac_val in #(
11649     *${as_nl}*)
11650       case $ac_var in #(
11651       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11652 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11653       esac
11654       case $ac_var in #(
11655       _ | IFS | as_nl) ;; #(
11656       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11657       *) { eval $ac_var=; unset $ac_var;} ;;
11658       esac ;;
11659     esac
11660   done
11661
11662   (set) 2>&1 |
11663     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11664     *${as_nl}ac_space=\ *)
11665       # `set' does not quote correctly, so add quotes: double-quote
11666       # substitution turns \\\\ into \\, and sed turns \\ into \.
11667       sed -n \
11668         "s/'/'\\\\''/g;
11669           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11670       ;; #(
11671     *)
11672       # `set' quotes correctly as required by POSIX, so do not add quotes.
11673       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11674       ;;
11675     esac |
11676     sort
11677 ) |
11678   sed '
11679      /^ac_cv_env_/b end
11680      t clear
11681      :clear
11682      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11683      t end
11684      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11685      :end' >>confcache
11686 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11687   if test -w "$cache_file"; then
11688     if test "x$cache_file" != "x/dev/null"; then
11689       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11690 $as_echo "$as_me: updating cache $cache_file" >&6;}
11691       if test ! -f "$cache_file" || test -h "$cache_file"; then
11692         cat confcache >"$cache_file"
11693       else
11694         case $cache_file in #(
11695         */* | ?:*)
11696           mv -f confcache "$cache_file"$$ &&
11697           mv -f "$cache_file"$$ "$cache_file" ;; #(
11698         *)
11699           mv -f confcache "$cache_file" ;;
11700         esac
11701       fi
11702     fi
11703   else
11704     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11705 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11706   fi
11707 fi
11708 rm -f confcache
11709
11710 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11711 # Let make expand exec_prefix.
11712 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11713
11714 DEFS=-DHAVE_CONFIG_H
11715
11716 ac_libobjs=
11717 ac_ltlibobjs=
11718 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11719   # 1. Remove the extension, and $U if already installed.
11720   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11721   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11722   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11723   #    will be set to the directory where LIBOBJS objects are built.
11724   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11725   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11726 done
11727 LIBOBJS=$ac_libobjs
11728
11729 LTLIBOBJS=$ac_ltlibobjs
11730
11731
11732  if test -n "$EXEEXT"; then
11733   am__EXEEXT_TRUE=
11734   am__EXEEXT_FALSE='#'
11735 else
11736   am__EXEEXT_TRUE='#'
11737   am__EXEEXT_FALSE=
11738 fi
11739
11740 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11741   as_fn_error $? "conditional \"AMDEP\" was never defined.
11742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11743 fi
11744 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11745   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11747 fi
11748 if test -z "${USE_INCLUDED_INTL_H_TRUE}" && test -z "${USE_INCLUDED_INTL_H_FALSE}"; then
11749   as_fn_error $? "conditional \"USE_INCLUDED_INTL_H\" was never defined.
11750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11751 fi
11752 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11753   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11755 fi
11756 if test -z "${ENABLE_VFORMAT_SUPPORT_TRUE}" && test -z "${ENABLE_VFORMAT_SUPPORT_FALSE}"; then
11757   as_fn_error $? "conditional \"ENABLE_VFORMAT_SUPPORT\" was never defined.
11758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11759 fi
11760
11761 : "${CONFIG_STATUS=./config.status}"
11762 ac_write_fail=0
11763 ac_clean_files_save=$ac_clean_files
11764 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11766 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11767 as_write_fail=0
11768 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11769 #! $SHELL
11770 # Generated by $as_me.
11771 # Run this file to recreate the current configuration.
11772 # Compiler output produced by configure, useful for debugging
11773 # configure, is in config.log if it exists.
11774
11775 debug=false
11776 ac_cs_recheck=false
11777 ac_cs_silent=false
11778
11779 SHELL=\${CONFIG_SHELL-$SHELL}
11780 export SHELL
11781 _ASEOF
11782 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11783 ## -------------------- ##
11784 ## M4sh Initialization. ##
11785 ## -------------------- ##
11786
11787 # Be more Bourne compatible
11788 DUALCASE=1; export DUALCASE # for MKS sh
11789 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11790   emulate sh
11791   NULLCMD=:
11792   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11793   # is contrary to our usage.  Disable this feature.
11794   alias -g '${1+"$@"}'='"$@"'
11795   setopt NO_GLOB_SUBST
11796 else
11797   case `(set -o) 2>/dev/null` in #(
11798   *posix*) :
11799     set -o posix ;; #(
11800   *) :
11801      ;;
11802 esac
11803 fi
11804
11805
11806 as_nl='
11807 '
11808 export as_nl
11809 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11810 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11811 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11812 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11813 # Prefer a ksh shell builtin over an external printf program on Solaris,
11814 # but without wasting forks for bash or zsh.
11815 if test -z "$BASH_VERSION$ZSH_VERSION" \
11816     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11817   as_echo='print -r --'
11818   as_echo_n='print -rn --'
11819 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11820   as_echo='printf %s\n'
11821   as_echo_n='printf %s'
11822 else
11823   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11824     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11825     as_echo_n='/usr/ucb/echo -n'
11826   else
11827     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11828     as_echo_n_body='eval
11829       arg=$1;
11830       case $arg in #(
11831       *"$as_nl"*)
11832         expr "X$arg" : "X\\(.*\\)$as_nl";
11833         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11834       esac;
11835       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11836     '
11837     export as_echo_n_body
11838     as_echo_n='sh -c $as_echo_n_body as_echo'
11839   fi
11840   export as_echo_body
11841   as_echo='sh -c $as_echo_body as_echo'
11842 fi
11843
11844 # The user is always right.
11845 if test "${PATH_SEPARATOR+set}" != set; then
11846   PATH_SEPARATOR=:
11847   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11848     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11849       PATH_SEPARATOR=';'
11850   }
11851 fi
11852
11853
11854 # IFS
11855 # We need space, tab and new line, in precisely that order.  Quoting is
11856 # there to prevent editors from complaining about space-tab.
11857 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11858 # splitting by setting IFS to empty value.)
11859 IFS=" ""        $as_nl"
11860
11861 # Find who we are.  Look in the path if we contain no directory separator.
11862 as_myself=
11863 case $0 in #((
11864   *[\\/]* ) as_myself=$0 ;;
11865   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866 for as_dir in $PATH
11867 do
11868   IFS=$as_save_IFS
11869   test -z "$as_dir" && as_dir=.
11870     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11871   done
11872 IFS=$as_save_IFS
11873
11874      ;;
11875 esac
11876 # We did not find ourselves, most probably we were run as `sh COMMAND'
11877 # in which case we are not to be found in the path.
11878 if test "x$as_myself" = x; then
11879   as_myself=$0
11880 fi
11881 if test ! -f "$as_myself"; then
11882   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11883   exit 1
11884 fi
11885
11886 # Unset variables that we do not need and which cause bugs (e.g. in
11887 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11888 # suppresses any "Segmentation fault" message there.  '((' could
11889 # trigger a bug in pdksh 5.2.14.
11890 for as_var in BASH_ENV ENV MAIL MAILPATH
11891 do eval test x\${$as_var+set} = xset \
11892   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11893 done
11894 PS1='$ '
11895 PS2='> '
11896 PS4='+ '
11897
11898 # NLS nuisances.
11899 LC_ALL=C
11900 export LC_ALL
11901 LANGUAGE=C
11902 export LANGUAGE
11903
11904 # CDPATH.
11905 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11906
11907
11908 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11909 # ----------------------------------------
11910 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11911 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11912 # script with STATUS, using 1 if that was 0.
11913 as_fn_error ()
11914 {
11915   as_status=$1; test $as_status -eq 0 && as_status=1
11916   if test "$4"; then
11917     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11918     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11919   fi
11920   $as_echo "$as_me: error: $2" >&2
11921   as_fn_exit $as_status
11922 } # as_fn_error
11923
11924
11925 # as_fn_set_status STATUS
11926 # -----------------------
11927 # Set $? to STATUS, without forking.
11928 as_fn_set_status ()
11929 {
11930   return $1
11931 } # as_fn_set_status
11932
11933 # as_fn_exit STATUS
11934 # -----------------
11935 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11936 as_fn_exit ()
11937 {
11938   set +e
11939   as_fn_set_status $1
11940   exit $1
11941 } # as_fn_exit
11942
11943 # as_fn_unset VAR
11944 # ---------------
11945 # Portably unset VAR.
11946 as_fn_unset ()
11947 {
11948   { eval $1=; unset $1;}
11949 }
11950 as_unset=as_fn_unset
11951 # as_fn_append VAR VALUE
11952 # ----------------------
11953 # Append the text in VALUE to the end of the definition contained in VAR. Take
11954 # advantage of any shell optimizations that allow amortized linear growth over
11955 # repeated appends, instead of the typical quadratic growth present in naive
11956 # implementations.
11957 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11958   eval 'as_fn_append ()
11959   {
11960     eval $1+=\$2
11961   }'
11962 else
11963   as_fn_append ()
11964   {
11965     eval $1=\$$1\$2
11966   }
11967 fi # as_fn_append
11968
11969 # as_fn_arith ARG...
11970 # ------------------
11971 # Perform arithmetic evaluation on the ARGs, and store the result in the
11972 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11973 # must be portable across $(()) and expr.
11974 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11975   eval 'as_fn_arith ()
11976   {
11977     as_val=$(( $* ))
11978   }'
11979 else
11980   as_fn_arith ()
11981   {
11982     as_val=`expr "$@" || test $? -eq 1`
11983   }
11984 fi # as_fn_arith
11985
11986
11987 if expr a : '\(a\)' >/dev/null 2>&1 &&
11988    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11989   as_expr=expr
11990 else
11991   as_expr=false
11992 fi
11993
11994 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11995   as_basename=basename
11996 else
11997   as_basename=false
11998 fi
11999
12000 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12001   as_dirname=dirname
12002 else
12003   as_dirname=false
12004 fi
12005
12006 as_me=`$as_basename -- "$0" ||
12007 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12008          X"$0" : 'X\(//\)$' \| \
12009          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12010 $as_echo X/"$0" |
12011     sed '/^.*\/\([^/][^/]*\)\/*$/{
12012             s//\1/
12013             q
12014           }
12015           /^X\/\(\/\/\)$/{
12016             s//\1/
12017             q
12018           }
12019           /^X\/\(\/\).*/{
12020             s//\1/
12021             q
12022           }
12023           s/.*/./; q'`
12024
12025 # Avoid depending upon Character Ranges.
12026 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12027 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12028 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12029 as_cr_digits='0123456789'
12030 as_cr_alnum=$as_cr_Letters$as_cr_digits
12031
12032 ECHO_C= ECHO_N= ECHO_T=
12033 case `echo -n x` in #(((((
12034 -n*)
12035   case `echo 'xy\c'` in
12036   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12037   xy)  ECHO_C='\c';;
12038   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12039        ECHO_T=' ';;
12040   esac;;
12041 *)
12042   ECHO_N='-n';;
12043 esac
12044
12045 rm -f conf$$ conf$$.exe conf$$.file
12046 if test -d conf$$.dir; then
12047   rm -f conf$$.dir/conf$$.file
12048 else
12049   rm -f conf$$.dir
12050   mkdir conf$$.dir 2>/dev/null
12051 fi
12052 if (echo >conf$$.file) 2>/dev/null; then
12053   if ln -s conf$$.file conf$$ 2>/dev/null; then
12054     as_ln_s='ln -s'
12055     # ... but there are two gotchas:
12056     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12057     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12058     # In both cases, we have to default to `cp -p'.
12059     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12060       as_ln_s='cp -p'
12061   elif ln conf$$.file conf$$ 2>/dev/null; then
12062     as_ln_s=ln
12063   else
12064     as_ln_s='cp -p'
12065   fi
12066 else
12067   as_ln_s='cp -p'
12068 fi
12069 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12070 rmdir conf$$.dir 2>/dev/null
12071
12072
12073 # as_fn_mkdir_p
12074 # -------------
12075 # Create "$as_dir" as a directory, including parents if necessary.
12076 as_fn_mkdir_p ()
12077 {
12078
12079   case $as_dir in #(
12080   -*) as_dir=./$as_dir;;
12081   esac
12082   test -d "$as_dir" || eval $as_mkdir_p || {
12083     as_dirs=
12084     while :; do
12085       case $as_dir in #(
12086       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12087       *) as_qdir=$as_dir;;
12088       esac
12089       as_dirs="'$as_qdir' $as_dirs"
12090       as_dir=`$as_dirname -- "$as_dir" ||
12091 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12092          X"$as_dir" : 'X\(//\)[^/]' \| \
12093          X"$as_dir" : 'X\(//\)$' \| \
12094          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12095 $as_echo X"$as_dir" |
12096     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12097             s//\1/
12098             q
12099           }
12100           /^X\(\/\/\)[^/].*/{
12101             s//\1/
12102             q
12103           }
12104           /^X\(\/\/\)$/{
12105             s//\1/
12106             q
12107           }
12108           /^X\(\/\).*/{
12109             s//\1/
12110             q
12111           }
12112           s/.*/./; q'`
12113       test -d "$as_dir" && break
12114     done
12115     test -z "$as_dirs" || eval "mkdir $as_dirs"
12116   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12117
12118
12119 } # as_fn_mkdir_p
12120 if mkdir -p . 2>/dev/null; then
12121   as_mkdir_p='mkdir -p "$as_dir"'
12122 else
12123   test -d ./-p && rmdir ./-p
12124   as_mkdir_p=false
12125 fi
12126
12127 if test -x / >/dev/null 2>&1; then
12128   as_test_x='test -x'
12129 else
12130   if ls -dL / >/dev/null 2>&1; then
12131     as_ls_L_option=L
12132   else
12133     as_ls_L_option=
12134   fi
12135   as_test_x='
12136     eval sh -c '\''
12137       if test -d "$1"; then
12138         test -d "$1/.";
12139       else
12140         case $1 in #(
12141         -*)set "./$1";;
12142         esac;
12143         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12144         ???[sx]*):;;*)false;;esac;fi
12145     '\'' sh
12146   '
12147 fi
12148 as_executable_p=$as_test_x
12149
12150 # Sed expression to map a string onto a valid CPP name.
12151 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12152
12153 # Sed expression to map a string onto a valid variable name.
12154 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12155
12156
12157 exec 6>&1
12158 ## ----------------------------------- ##
12159 ## Main body of $CONFIG_STATUS script. ##
12160 ## ----------------------------------- ##
12161 _ASEOF
12162 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12163
12164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12165 # Save the log message, to keep $0 and so on meaningful, and to
12166 # report actual input values of CONFIG_FILES etc. instead of their
12167 # values after options handling.
12168 ac_log="
12169 This file was extended by $as_me, which was
12170 generated by GNU Autoconf 2.68.  Invocation command line was
12171
12172   CONFIG_FILES    = $CONFIG_FILES
12173   CONFIG_HEADERS  = $CONFIG_HEADERS
12174   CONFIG_LINKS    = $CONFIG_LINKS
12175   CONFIG_COMMANDS = $CONFIG_COMMANDS
12176   $ $0 $@
12177
12178 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12179 "
12180
12181 _ACEOF
12182
12183 case $ac_config_files in *"
12184 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12185 esac
12186
12187 case $ac_config_headers in *"
12188 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12189 esac
12190
12191
12192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12193 # Files that config.status was made for.
12194 config_files="$ac_config_files"
12195 config_headers="$ac_config_headers"
12196 config_commands="$ac_config_commands"
12197
12198 _ACEOF
12199
12200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12201 ac_cs_usage="\
12202 \`$as_me' instantiates files and other configuration actions
12203 from templates according to the current configuration.  Unless the files
12204 and actions are specified as TAGs, all are instantiated by default.
12205
12206 Usage: $0 [OPTION]... [TAG]...
12207
12208   -h, --help       print this help, then exit
12209   -V, --version    print version number and configuration settings, then exit
12210       --config     print configuration, then exit
12211   -q, --quiet, --silent
12212                    do not print progress messages
12213   -d, --debug      don't remove temporary files
12214       --recheck    update $as_me by reconfiguring in the same conditions
12215       --file=FILE[:TEMPLATE]
12216                    instantiate the configuration file FILE
12217       --header=FILE[:TEMPLATE]
12218                    instantiate the configuration header FILE
12219
12220 Configuration files:
12221 $config_files
12222
12223 Configuration headers:
12224 $config_headers
12225
12226 Configuration commands:
12227 $config_commands
12228
12229 Report bugs to the package provider."
12230
12231 _ACEOF
12232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12233 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12234 ac_cs_version="\\
12235 config.status
12236 configured by $0, generated by GNU Autoconf 2.68,
12237   with options \\"\$ac_cs_config\\"
12238
12239 Copyright (C) 2010 Free Software Foundation, Inc.
12240 This config.status script is free software; the Free Software Foundation
12241 gives unlimited permission to copy, distribute and modify it."
12242
12243 ac_pwd='$ac_pwd'
12244 srcdir='$srcdir'
12245 INSTALL='$INSTALL'
12246 MKDIR_P='$MKDIR_P'
12247 AWK='$AWK'
12248 test -n "\$AWK" || AWK=awk
12249 _ACEOF
12250
12251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12252 # The default lists apply if the user does not specify any file.
12253 ac_need_defaults=:
12254 while test $# != 0
12255 do
12256   case $1 in
12257   --*=?*)
12258     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12259     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12260     ac_shift=:
12261     ;;
12262   --*=)
12263     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12264     ac_optarg=
12265     ac_shift=:
12266     ;;
12267   *)
12268     ac_option=$1
12269     ac_optarg=$2
12270     ac_shift=shift
12271     ;;
12272   esac
12273
12274   case $ac_option in
12275   # Handling of the options.
12276   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12277     ac_cs_recheck=: ;;
12278   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12279     $as_echo "$ac_cs_version"; exit ;;
12280   --config | --confi | --conf | --con | --co | --c )
12281     $as_echo "$ac_cs_config"; exit ;;
12282   --debug | --debu | --deb | --de | --d | -d )
12283     debug=: ;;
12284   --file | --fil | --fi | --f )
12285     $ac_shift
12286     case $ac_optarg in
12287     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12288     '') as_fn_error $? "missing file argument" ;;
12289     esac
12290     as_fn_append CONFIG_FILES " '$ac_optarg'"
12291     ac_need_defaults=false;;
12292   --header | --heade | --head | --hea )
12293     $ac_shift
12294     case $ac_optarg in
12295     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12296     esac
12297     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12298     ac_need_defaults=false;;
12299   --he | --h)
12300     # Conflict between --help and --header
12301     as_fn_error $? "ambiguous option: \`$1'
12302 Try \`$0 --help' for more information.";;
12303   --help | --hel | -h )
12304     $as_echo "$ac_cs_usage"; exit ;;
12305   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12306   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12307     ac_cs_silent=: ;;
12308
12309   # This is an error.
12310   -*) as_fn_error $? "unrecognized option: \`$1'
12311 Try \`$0 --help' for more information." ;;
12312
12313   *) as_fn_append ac_config_targets " $1"
12314      ac_need_defaults=false ;;
12315
12316   esac
12317   shift
12318 done
12319
12320 ac_configure_extra_args=
12321
12322 if $ac_cs_silent; then
12323   exec 6>/dev/null
12324   ac_configure_extra_args="$ac_configure_extra_args --silent"
12325 fi
12326
12327 _ACEOF
12328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12329 if \$ac_cs_recheck; then
12330   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12331   shift
12332   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12333   CONFIG_SHELL='$SHELL'
12334   export CONFIG_SHELL
12335   exec "\$@"
12336 fi
12337
12338 _ACEOF
12339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12340 exec 5>>config.log
12341 {
12342   echo
12343   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12344 ## Running $as_me. ##
12345 _ASBOX
12346   $as_echo "$ac_log"
12347 } >&5
12348
12349 _ACEOF
12350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12351 #
12352 # INIT-COMMANDS
12353 #
12354 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12355 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12356     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12357     # from automake < 1.5.
12358     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12359     # Capture the value of LINGUAS because we need it to compute CATALOGS.
12360     LINGUAS="${LINGUAS-%UNSET%}"
12361
12362
12363 _ACEOF
12364
12365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12366
12367 # Handling of arguments.
12368 for ac_config_target in $ac_config_targets
12369 do
12370   case $ac_config_target in
12371     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12372     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12373     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
12374     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12375     "abook.spec") CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
12376     "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12377     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12378
12379   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12380   esac
12381 done
12382
12383
12384 # If the user did not use the arguments to specify the items to instantiate,
12385 # then the envvar interface is used.  Set only those that are not.
12386 # We use the long form for the default assignment because of an extremely
12387 # bizarre bug on SunOS 4.1.3.
12388 if $ac_need_defaults; then
12389   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12390   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12391   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12392 fi
12393
12394 # Have a temporary directory for convenience.  Make it in the build tree
12395 # simply because there is no reason against having it here, and in addition,
12396 # creating and moving files from /tmp can sometimes cause problems.
12397 # Hook for its removal unless debugging.
12398 # Note that there is a small window in which the directory will not be cleaned:
12399 # after its creation but before its name has been assigned to `$tmp'.
12400 $debug ||
12401 {
12402   tmp= ac_tmp=
12403   trap 'exit_status=$?
12404   : "${ac_tmp:=$tmp}"
12405   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12406 ' 0
12407   trap 'as_fn_exit 1' 1 2 13 15
12408 }
12409 # Create a (secure) tmp directory for tmp files.
12410
12411 {
12412   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12413   test -d "$tmp"
12414 }  ||
12415 {
12416   tmp=./conf$$-$RANDOM
12417   (umask 077 && mkdir "$tmp")
12418 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12419 ac_tmp=$tmp
12420
12421 # Set up the scripts for CONFIG_FILES section.
12422 # No need to generate them if there are no CONFIG_FILES.
12423 # This happens for instance with `./config.status config.h'.
12424 if test -n "$CONFIG_FILES"; then
12425
12426
12427 ac_cr=`echo X | tr X '\015'`
12428 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12429 # But we know of no other shell where ac_cr would be empty at this
12430 # point, so we can use a bashism as a fallback.
12431 if test "x$ac_cr" = x; then
12432   eval ac_cr=\$\'\\r\'
12433 fi
12434 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12435 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12436   ac_cs_awk_cr='\\r'
12437 else
12438   ac_cs_awk_cr=$ac_cr
12439 fi
12440
12441 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12442 _ACEOF
12443
12444
12445 {
12446   echo "cat >conf$$subs.awk <<_ACEOF" &&
12447   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12448   echo "_ACEOF"
12449 } >conf$$subs.sh ||
12450   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12451 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12452 ac_delim='%!_!# '
12453 for ac_last_try in false false false false false :; do
12454   . ./conf$$subs.sh ||
12455     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12456
12457   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12458   if test $ac_delim_n = $ac_delim_num; then
12459     break
12460   elif $ac_last_try; then
12461     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12462   else
12463     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12464   fi
12465 done
12466 rm -f conf$$subs.sh
12467
12468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12469 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12470 _ACEOF
12471 sed -n '
12472 h
12473 s/^/S["/; s/!.*/"]=/
12474 p
12475 g
12476 s/^[^!]*!//
12477 :repl
12478 t repl
12479 s/'"$ac_delim"'$//
12480 t delim
12481 :nl
12482 h
12483 s/\(.\{148\}\)..*/\1/
12484 t more1
12485 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12486 p
12487 n
12488 b repl
12489 :more1
12490 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12491 p
12492 g
12493 s/.\{148\}//
12494 t nl
12495 :delim
12496 h
12497 s/\(.\{148\}\)..*/\1/
12498 t more2
12499 s/["\\]/\\&/g; s/^/"/; s/$/"/
12500 p
12501 b
12502 :more2
12503 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12504 p
12505 g
12506 s/.\{148\}//
12507 t delim
12508 ' <conf$$subs.awk | sed '
12509 /^[^""]/{
12510   N
12511   s/\n//
12512 }
12513 ' >>$CONFIG_STATUS || ac_write_fail=1
12514 rm -f conf$$subs.awk
12515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12516 _ACAWK
12517 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12518   for (key in S) S_is_set[key] = 1
12519   FS = "\a"
12520
12521 }
12522 {
12523   line = $ 0
12524   nfields = split(line, field, "@")
12525   substed = 0
12526   len = length(field[1])
12527   for (i = 2; i < nfields; i++) {
12528     key = field[i]
12529     keylen = length(key)
12530     if (S_is_set[key]) {
12531       value = S[key]
12532       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12533       len += length(value) + length(field[++i])
12534       substed = 1
12535     } else
12536       len += 1 + keylen
12537   }
12538
12539   print line
12540 }
12541
12542 _ACAWK
12543 _ACEOF
12544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12545 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12546   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12547 else
12548   cat
12549 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12550   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12551 _ACEOF
12552
12553 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12554 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12555 # trailing colons and then remove the whole line if VPATH becomes empty
12556 # (actually we leave an empty line to preserve line numbers).
12557 if test "x$srcdir" = x.; then
12558   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12559 h
12560 s///
12561 s/^/:/
12562 s/[      ]*$/:/
12563 s/:\$(srcdir):/:/g
12564 s/:\${srcdir}:/:/g
12565 s/:@srcdir@:/:/g
12566 s/^:*//
12567 s/:*$//
12568 x
12569 s/\(=[   ]*\).*/\1/
12570 G
12571 s/\n//
12572 s/^[^=]*=[       ]*$//
12573 }'
12574 fi
12575
12576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12577 fi # test -n "$CONFIG_FILES"
12578
12579 # Set up the scripts for CONFIG_HEADERS section.
12580 # No need to generate them if there are no CONFIG_HEADERS.
12581 # This happens for instance with `./config.status Makefile'.
12582 if test -n "$CONFIG_HEADERS"; then
12583 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12584 BEGIN {
12585 _ACEOF
12586
12587 # Transform confdefs.h into an awk script `defines.awk', embedded as
12588 # here-document in config.status, that substitutes the proper values into
12589 # config.h.in to produce config.h.
12590
12591 # Create a delimiter string that does not exist in confdefs.h, to ease
12592 # handling of long lines.
12593 ac_delim='%!_!# '
12594 for ac_last_try in false false :; do
12595   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12596   if test -z "$ac_tt"; then
12597     break
12598   elif $ac_last_try; then
12599     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12600   else
12601     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12602   fi
12603 done
12604
12605 # For the awk script, D is an array of macro values keyed by name,
12606 # likewise P contains macro parameters if any.  Preserve backslash
12607 # newline sequences.
12608
12609 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12610 sed -n '
12611 s/.\{148\}/&'"$ac_delim"'/g
12612 t rset
12613 :rset
12614 s/^[     ]*#[    ]*define[       ][      ]*/ /
12615 t def
12616 d
12617 :def
12618 s/\\$//
12619 t bsnl
12620 s/["\\]/\\&/g
12621 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12622 D["\1"]=" \3"/p
12623 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12624 d
12625 :bsnl
12626 s/["\\]/\\&/g
12627 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12628 D["\1"]=" \3\\\\\\n"\\/p
12629 t cont
12630 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12631 t cont
12632 d
12633 :cont
12634 n
12635 s/.\{148\}/&'"$ac_delim"'/g
12636 t clear
12637 :clear
12638 s/\\$//
12639 t bsnlc
12640 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12641 d
12642 :bsnlc
12643 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12644 b cont
12645 ' <confdefs.h | sed '
12646 s/'"$ac_delim"'/"\\\
12647 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12648
12649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12650   for (key in D) D_is_set[key] = 1
12651   FS = "\a"
12652 }
12653 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12654   line = \$ 0
12655   split(line, arg, " ")
12656   if (arg[1] == "#") {
12657     defundef = arg[2]
12658     mac1 = arg[3]
12659   } else {
12660     defundef = substr(arg[1], 2)
12661     mac1 = arg[2]
12662   }
12663   split(mac1, mac2, "(") #)
12664   macro = mac2[1]
12665   prefix = substr(line, 1, index(line, defundef) - 1)
12666   if (D_is_set[macro]) {
12667     # Preserve the white space surrounding the "#".
12668     print prefix "define", macro P[macro] D[macro]
12669     next
12670   } else {
12671     # Replace #undef with comments.  This is necessary, for example,
12672     # in the case of _POSIX_SOURCE, which is predefined and required
12673     # on some systems where configure will not decide to define it.
12674     if (defundef == "undef") {
12675       print "/*", prefix defundef, macro, "*/"
12676       next
12677     }
12678   }
12679 }
12680 { print }
12681 _ACAWK
12682 _ACEOF
12683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12684   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12685 fi # test -n "$CONFIG_HEADERS"
12686
12687
12688 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12689 shift
12690 for ac_tag
12691 do
12692   case $ac_tag in
12693   :[FHLC]) ac_mode=$ac_tag; continue;;
12694   esac
12695   case $ac_mode$ac_tag in
12696   :[FHL]*:*);;
12697   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12698   :[FH]-) ac_tag=-:-;;
12699   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12700   esac
12701   ac_save_IFS=$IFS
12702   IFS=:
12703   set x $ac_tag
12704   IFS=$ac_save_IFS
12705   shift
12706   ac_file=$1
12707   shift
12708
12709   case $ac_mode in
12710   :L) ac_source=$1;;
12711   :[FH])
12712     ac_file_inputs=
12713     for ac_f
12714     do
12715       case $ac_f in
12716       -) ac_f="$ac_tmp/stdin";;
12717       *) # Look for the file first in the build tree, then in the source tree
12718          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12719          # because $ac_f cannot contain `:'.
12720          test -f "$ac_f" ||
12721            case $ac_f in
12722            [\\/$]*) false;;
12723            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12724            esac ||
12725            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12726       esac
12727       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12728       as_fn_append ac_file_inputs " '$ac_f'"
12729     done
12730
12731     # Let's still pretend it is `configure' which instantiates (i.e., don't
12732     # use $as_me), people would be surprised to read:
12733     #    /* config.h.  Generated by config.status.  */
12734     configure_input='Generated from '`
12735           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12736         `' by configure.'
12737     if test x"$ac_file" != x-; then
12738       configure_input="$ac_file.  $configure_input"
12739       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12740 $as_echo "$as_me: creating $ac_file" >&6;}
12741     fi
12742     # Neutralize special characters interpreted by sed in replacement strings.
12743     case $configure_input in #(
12744     *\&* | *\|* | *\\* )
12745        ac_sed_conf_input=`$as_echo "$configure_input" |
12746        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12747     *) ac_sed_conf_input=$configure_input;;
12748     esac
12749
12750     case $ac_tag in
12751     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12752       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12753     esac
12754     ;;
12755   esac
12756
12757   ac_dir=`$as_dirname -- "$ac_file" ||
12758 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12759          X"$ac_file" : 'X\(//\)[^/]' \| \
12760          X"$ac_file" : 'X\(//\)$' \| \
12761          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12762 $as_echo X"$ac_file" |
12763     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12764             s//\1/
12765             q
12766           }
12767           /^X\(\/\/\)[^/].*/{
12768             s//\1/
12769             q
12770           }
12771           /^X\(\/\/\)$/{
12772             s//\1/
12773             q
12774           }
12775           /^X\(\/\).*/{
12776             s//\1/
12777             q
12778           }
12779           s/.*/./; q'`
12780   as_dir="$ac_dir"; as_fn_mkdir_p
12781   ac_builddir=.
12782
12783 case "$ac_dir" in
12784 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12785 *)
12786   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12787   # A ".." for each directory in $ac_dir_suffix.
12788   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12789   case $ac_top_builddir_sub in
12790   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12791   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12792   esac ;;
12793 esac
12794 ac_abs_top_builddir=$ac_pwd
12795 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12796 # for backward compatibility:
12797 ac_top_builddir=$ac_top_build_prefix
12798
12799 case $srcdir in
12800   .)  # We are building in place.
12801     ac_srcdir=.
12802     ac_top_srcdir=$ac_top_builddir_sub
12803     ac_abs_top_srcdir=$ac_pwd ;;
12804   [\\/]* | ?:[\\/]* )  # Absolute name.
12805     ac_srcdir=$srcdir$ac_dir_suffix;
12806     ac_top_srcdir=$srcdir
12807     ac_abs_top_srcdir=$srcdir ;;
12808   *) # Relative name.
12809     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12810     ac_top_srcdir=$ac_top_build_prefix$srcdir
12811     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12812 esac
12813 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12814
12815
12816   case $ac_mode in
12817   :F)
12818   #
12819   # CONFIG_FILE
12820   #
12821
12822   case $INSTALL in
12823   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12824   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12825   esac
12826   ac_MKDIR_P=$MKDIR_P
12827   case $MKDIR_P in
12828   [\\/$]* | ?:[\\/]* ) ;;
12829   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12830   esac
12831 _ACEOF
12832
12833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12834 # If the template does not know about datarootdir, expand it.
12835 # FIXME: This hack should be removed a few years after 2.60.
12836 ac_datarootdir_hack=; ac_datarootdir_seen=
12837 ac_sed_dataroot='
12838 /datarootdir/ {
12839   p
12840   q
12841 }
12842 /@datadir@/p
12843 /@docdir@/p
12844 /@infodir@/p
12845 /@localedir@/p
12846 /@mandir@/p'
12847 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12848 *datarootdir*) ac_datarootdir_seen=yes;;
12849 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12850   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12851 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12852 _ACEOF
12853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12854   ac_datarootdir_hack='
12855   s&@datadir@&$datadir&g
12856   s&@docdir@&$docdir&g
12857   s&@infodir@&$infodir&g
12858   s&@localedir@&$localedir&g
12859   s&@mandir@&$mandir&g
12860   s&\\\${datarootdir}&$datarootdir&g' ;;
12861 esac
12862 _ACEOF
12863
12864 # Neutralize VPATH when `$srcdir' = `.'.
12865 # Shell code in configure.ac might set extrasub.
12866 # FIXME: do we really want to maintain this feature?
12867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12868 ac_sed_extra="$ac_vpsub
12869 $extrasub
12870 _ACEOF
12871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12872 :t
12873 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12874 s|@configure_input@|$ac_sed_conf_input|;t t
12875 s&@top_builddir@&$ac_top_builddir_sub&;t t
12876 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12877 s&@srcdir@&$ac_srcdir&;t t
12878 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12879 s&@top_srcdir@&$ac_top_srcdir&;t t
12880 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12881 s&@builddir@&$ac_builddir&;t t
12882 s&@abs_builddir@&$ac_abs_builddir&;t t
12883 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12884 s&@INSTALL@&$ac_INSTALL&;t t
12885 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12886 $ac_datarootdir_hack
12887 "
12888 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12889   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12890
12891 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12892   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12893   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12894       "$ac_tmp/out"`; test -z "$ac_out"; } &&
12895   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12896 which seems to be undefined.  Please make sure it is defined" >&5
12897 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12898 which seems to be undefined.  Please make sure it is defined" >&2;}
12899
12900   rm -f "$ac_tmp/stdin"
12901   case $ac_file in
12902   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12903   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12904   esac \
12905   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12906  ;;
12907   :H)
12908   #
12909   # CONFIG_HEADER
12910   #
12911   if test x"$ac_file" != x-; then
12912     {
12913       $as_echo "/* $configure_input  */" \
12914       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12915     } >"$ac_tmp/config.h" \
12916       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12917     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12918       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12919 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12920     else
12921       rm -f "$ac_file"
12922       mv "$ac_tmp/config.h" "$ac_file" \
12923         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12924     fi
12925   else
12926     $as_echo "/* $configure_input  */" \
12927       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12928       || as_fn_error $? "could not create -" "$LINENO" 5
12929   fi
12930 # Compute "$ac_file"'s index in $config_headers.
12931 _am_arg="$ac_file"
12932 _am_stamp_count=1
12933 for _am_header in $config_headers :; do
12934   case $_am_header in
12935     $_am_arg | $_am_arg:* )
12936       break ;;
12937     * )
12938       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12939   esac
12940 done
12941 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12942 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12943          X"$_am_arg" : 'X\(//\)[^/]' \| \
12944          X"$_am_arg" : 'X\(//\)$' \| \
12945          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12946 $as_echo X"$_am_arg" |
12947     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12948             s//\1/
12949             q
12950           }
12951           /^X\(\/\/\)[^/].*/{
12952             s//\1/
12953             q
12954           }
12955           /^X\(\/\/\)$/{
12956             s//\1/
12957             q
12958           }
12959           /^X\(\/\).*/{
12960             s//\1/
12961             q
12962           }
12963           s/.*/./; q'`/stamp-h$_am_stamp_count
12964  ;;
12965
12966   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12967 $as_echo "$as_me: executing $ac_file commands" >&6;}
12968  ;;
12969   esac
12970
12971
12972   case $ac_file$ac_mode in
12973     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12974   # Autoconf 2.62 quotes --file arguments for eval, but not when files
12975   # are listed without --file.  Let's play safe and only enable the eval
12976   # if we detect the quoting.
12977   case $CONFIG_FILES in
12978   *\'*) eval set x "$CONFIG_FILES" ;;
12979   *)   set x $CONFIG_FILES ;;
12980   esac
12981   shift
12982   for mf
12983   do
12984     # Strip MF so we end up with the name of the file.
12985     mf=`echo "$mf" | sed -e 's/:.*$//'`
12986     # Check whether this is an Automake generated Makefile or not.
12987     # We used to match only the files named `Makefile.in', but
12988     # some people rename them; so instead we look at the file content.
12989     # Grep'ing the first line is not enough: some people post-process
12990     # each Makefile.in and add a new line on top of each file to say so.
12991     # Grep'ing the whole file is not good either: AIX grep has a line
12992     # limit of 2048, but all sed's we know have understand at least 4000.
12993     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12994       dirpart=`$as_dirname -- "$mf" ||
12995 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12996          X"$mf" : 'X\(//\)[^/]' \| \
12997          X"$mf" : 'X\(//\)$' \| \
12998          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12999 $as_echo X"$mf" |
13000     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13001             s//\1/
13002             q
13003           }
13004           /^X\(\/\/\)[^/].*/{
13005             s//\1/
13006             q
13007           }
13008           /^X\(\/\/\)$/{
13009             s//\1/
13010             q
13011           }
13012           /^X\(\/\).*/{
13013             s//\1/
13014             q
13015           }
13016           s/.*/./; q'`
13017     else
13018       continue
13019     fi
13020     # Extract the definition of DEPDIR, am__include, and am__quote
13021     # from the Makefile without running `make'.
13022     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13023     test -z "$DEPDIR" && continue
13024     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13025     test -z "am__include" && continue
13026     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13027     # When using ansi2knr, U may be empty or an underscore; expand it
13028     U=`sed -n 's/^U = //p' < "$mf"`
13029     # Find all dependency output files, they are included files with
13030     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13031     # simplest approach to changing $(DEPDIR) to its actual value in the
13032     # expansion.
13033     for file in `sed -n "
13034       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13035          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13036       # Make sure the directory exists.
13037       test -f "$dirpart/$file" && continue
13038       fdir=`$as_dirname -- "$file" ||
13039 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13040          X"$file" : 'X\(//\)[^/]' \| \
13041          X"$file" : 'X\(//\)$' \| \
13042          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13043 $as_echo X"$file" |
13044     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13045             s//\1/
13046             q
13047           }
13048           /^X\(\/\/\)[^/].*/{
13049             s//\1/
13050             q
13051           }
13052           /^X\(\/\/\)$/{
13053             s//\1/
13054             q
13055           }
13056           /^X\(\/\).*/{
13057             s//\1/
13058             q
13059           }
13060           s/.*/./; q'`
13061       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13062       # echo "creating $dirpart/$file"
13063       echo '# dummy' > "$dirpart/$file"
13064     done
13065   done
13066 }
13067  ;;
13068     "po-directories":C)
13069     for ac_file in $CONFIG_FILES; do
13070       # Support "outfile[:infile[:infile...]]"
13071       case "$ac_file" in
13072         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13073       esac
13074       # PO directories have a Makefile.in generated from Makefile.in.in.
13075       case "$ac_file" in */Makefile.in)
13076         # Adjust a relative srcdir.
13077         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13078         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13079         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13080         # In autoconf-2.13 it is called $ac_given_srcdir.
13081         # In autoconf-2.50 it is called $srcdir.
13082         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13083         case "$ac_given_srcdir" in
13084           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13085           /*) top_srcdir="$ac_given_srcdir" ;;
13086           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
13087         esac
13088         # Treat a directory as a PO directory if and only if it has a
13089         # POTFILES.in file. This allows packages to have multiple PO
13090         # directories under different names or in different locations.
13091         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13092           rm -f "$ac_dir/POTFILES"
13093           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13094           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13095           POMAKEFILEDEPS="POTFILES.in"
13096           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
13097           # on $ac_dir but don't depend on user-specified configuration
13098           # parameters.
13099           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13100             # The LINGUAS file contains the set of available languages.
13101             if test -n "$OBSOLETE_ALL_LINGUAS"; then
13102               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13103             fi
13104             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13105             # Hide the ALL_LINGUAS assigment from automake < 1.5.
13106             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13107             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13108           else
13109             # The set of available languages was given in configure.in.
13110             # Hide the ALL_LINGUAS assigment from automake < 1.5.
13111             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13112           fi
13113           # Compute POFILES
13114           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
13115           # Compute UPDATEPOFILES
13116           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
13117           # Compute DUMMYPOFILES
13118           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
13119           # Compute GMOFILES
13120           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
13121           case "$ac_given_srcdir" in
13122             .) srcdirpre= ;;
13123             *) srcdirpre='$(srcdir)/' ;;
13124           esac
13125           POFILES=
13126           UPDATEPOFILES=
13127           DUMMYPOFILES=
13128           GMOFILES=
13129           for lang in $ALL_LINGUAS; do
13130             POFILES="$POFILES $srcdirpre$lang.po"
13131             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13132             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13133             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13134           done
13135           # CATALOGS depends on both $ac_dir and the user's LINGUAS
13136           # environment variable.
13137           INST_LINGUAS=
13138           if test -n "$ALL_LINGUAS"; then
13139             for presentlang in $ALL_LINGUAS; do
13140               useit=no
13141               if test "%UNSET%" != "$LINGUAS"; then
13142                 desiredlanguages="$LINGUAS"
13143               else
13144                 desiredlanguages="$ALL_LINGUAS"
13145               fi
13146               for desiredlang in $desiredlanguages; do
13147                 # Use the presentlang catalog if desiredlang is
13148                 #   a. equal to presentlang, or
13149                 #   b. a variant of presentlang (because in this case,
13150                 #      presentlang can be used as a fallback for messages
13151                 #      which are not translated in the desiredlang catalog).
13152                 case "$desiredlang" in
13153                   "$presentlang"*) useit=yes;;
13154                 esac
13155               done
13156               if test $useit = yes; then
13157                 INST_LINGUAS="$INST_LINGUAS $presentlang"
13158               fi
13159             done
13160           fi
13161           CATALOGS=
13162           if test -n "$INST_LINGUAS"; then
13163             for lang in $INST_LINGUAS; do
13164               CATALOGS="$CATALOGS $lang.gmo"
13165             done
13166           fi
13167           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13168           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"
13169           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13170             if test -f "$f"; then
13171               case "$f" in
13172                 *.orig | *.bak | *~) ;;
13173                 *) cat "$f" >> "$ac_dir/Makefile" ;;
13174               esac
13175             fi
13176           done
13177         fi
13178         ;;
13179       esac
13180     done ;;
13181
13182   esac
13183 done # for ac_tag
13184
13185
13186 as_fn_exit 0
13187 _ACEOF
13188 ac_clean_files=$ac_clean_files_save
13189
13190 test $ac_write_fail = 0 ||
13191   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13192
13193
13194 # configure is writing to config.log, and then calls config.status.
13195 # config.status does its own redirection, appending to config.log.
13196 # Unfortunately, on DOS this fails, as config.log is still kept open
13197 # by configure, so config.status won't be able to write to it; its
13198 # output is simply discarded.  So we exec the FD to /dev/null,
13199 # effectively closing config.log, so it can be properly (re)opened and
13200 # appended to by config.status.  When coming back to configure, we
13201 # need to make the FD available again.
13202 if test "$no_create" != yes; then
13203   ac_cs_success=:
13204   ac_config_status_args=
13205   test "$silent" = yes &&
13206     ac_config_status_args="$ac_config_status_args --quiet"
13207   exec 5>/dev/null
13208   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13209   exec 5>>config.log
13210   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13211   # would make configure fail if this is the last instruction.
13212   $ac_cs_success || as_fn_exit 1
13213 fi
13214 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13215   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13216 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13217 fi
13218