]> git.deb.at Git - pkg/abook.git/blob - configure
vformat: added abook's specific libvformat wrapper: vcard.[ch]
[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 VFORMAT
610 ANSI2KNR
611 U
612 USE_INCLUDED_INTL_H_FALSE
613 USE_INCLUDED_INTL_H_TRUE
614 POSUB
615 LTLIBINTL
616 LIBINTL
617 INTLLIBS
618 INTL_LIBTOOL_SUFFIX_PREFIX
619 INTLOBJS
620 GENCAT
621 INSTOBJEXT
622 DATADIRNAME
623 CATOBJEXT
624 USE_INCLUDED_LIBINTL
625 BUILD_INCLUDED_LIBINTL
626 LTLIBC
627 WINDRES
628 WOE32
629 WOE32DLL
630 HAVE_WPRINTF
631 HAVE_NEWLOCALE
632 HAVE_SNPRINTF
633 HAVE_ASPRINTF
634 HAVE_POSIX_PRINTF
635 INTL_DEFAULT_VERBOSITY
636 INTL_MACOSX_LIBS
637 GLIBC21
638 INTLBISON
639 LTLIBICONV
640 LIBICONV
641 LTLIBMULTITHREAD
642 LIBMULTITHREAD
643 LTLIBTHREAD
644 LIBTHREAD
645 LIBPTH_PREFIX
646 LTLIBPTH
647 LIBPTH
648 PRI_MACROS_BROKEN
649 ALLOCA
650 HAVE_VISIBILITY
651 CFLAG_VISIBILITY
652 RANLIB
653 GLIBC2
654 host_os
655 host_vendor
656 host_cpu
657 host
658 build_os
659 build_vendor
660 build_cpu
661 build
662 XGETTEXT_EXTRA_OPTIONS
663 MSGMERGE
664 XGETTEXT_015
665 XGETTEXT
666 GMSGFMT_015
667 MSGFMT_015
668 GMSGFMT
669 MSGFMT
670 GETTEXT_MACRO_VERSION
671 USE_NLS
672 EGREP
673 GREP
674 CPP
675 am__fastdepCC_FALSE
676 am__fastdepCC_TRUE
677 CCDEPMODE
678 am__nodep
679 AMDEPBACKSLASH
680 AMDEP_FALSE
681 AMDEP_TRUE
682 am__quote
683 am__include
684 DEPDIR
685 OBJEXT
686 EXEEXT
687 ac_ct_CC
688 CPPFLAGS
689 LDFLAGS
690 CFLAGS
691 CC
692 am__untar
693 am__tar
694 AMTAR
695 am__leading_dot
696 SET_MAKE
697 AWK
698 mkdir_p
699 MKDIR_P
700 INSTALL_STRIP_PROGRAM
701 STRIP
702 install_sh
703 MAKEINFO
704 AUTOHEADER
705 AUTOMAKE
706 AUTOCONF
707 ACLOCAL
708 VERSION
709 PACKAGE
710 CYGPATH_W
711 am__isrc
712 INSTALL_DATA
713 INSTALL_SCRIPT
714 INSTALL_PROGRAM
715 target_alias
716 host_alias
717 build_alias
718 LIBS
719 ECHO_T
720 ECHO_N
721 ECHO_C
722 DEFS
723 mandir
724 localedir
725 libdir
726 psdir
727 pdfdir
728 dvidir
729 htmldir
730 infodir
731 docdir
732 oldincludedir
733 includedir
734 localstatedir
735 sharedstatedir
736 sysconfdir
737 datadir
738 datarootdir
739 libexecdir
740 sbindir
741 bindir
742 program_transform_name
743 prefix
744 exec_prefix
745 PACKAGE_URL
746 PACKAGE_BUGREPORT
747 PACKAGE_STRING
748 PACKAGE_VERSION
749 PACKAGE_TARNAME
750 PACKAGE_NAME
751 PATH_SEPARATOR
752 SHELL'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_dependency_tracking
757 enable_nls
758 enable_threads
759 with_gnu_ld
760 enable_rpath
761 with_libpth_prefix
762 with_libiconv_prefix
763 with_included_gettext
764 with_libintl_prefix
765 with_localedir
766 with_curses
767 with_readline
768 enable_vformat
769 enable_debug
770 '
771       ac_precious_vars='build_alias
772 host_alias
773 target_alias
774 CC
775 CFLAGS
776 LDFLAGS
777 LIBS
778 CPPFLAGS
779 CPP'
780
781
782 # Initialize some variables set by options.
783 ac_init_help=
784 ac_init_version=false
785 ac_unrecognized_opts=
786 ac_unrecognized_sep=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
789 cache_file=/dev/null
790 exec_prefix=NONE
791 no_create=
792 no_recursion=
793 prefix=NONE
794 program_prefix=NONE
795 program_suffix=NONE
796 program_transform_name=s,x,x,
797 silent=
798 site=
799 srcdir=
800 verbose=
801 x_includes=NONE
802 x_libraries=NONE
803
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
829
830 ac_prev=
831 ac_dashdash=
832 for ac_option
833 do
834   # If the previous option needs an argument, assign it.
835   if test -n "$ac_prev"; then
836     eval $ac_prev=\$ac_option
837     ac_prev=
838     continue
839   fi
840
841   case $ac_option in
842   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843   *=)   ac_optarg= ;;
844   *)    ac_optarg=yes ;;
845   esac
846
847   # Accept the important Cygnus configure options, so we can diagnose typos.
848
849   case $ac_dashdash$ac_option in
850   --)
851     ac_dashdash=yes ;;
852
853   -bindir | --bindir | --bindi | --bind | --bin | --bi)
854     ac_prev=bindir ;;
855   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856     bindir=$ac_optarg ;;
857
858   -build | --build | --buil | --bui | --bu)
859     ac_prev=build_alias ;;
860   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861     build_alias=$ac_optarg ;;
862
863   -cache-file | --cache-file | --cache-fil | --cache-fi \
864   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865     ac_prev=cache_file ;;
866   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868     cache_file=$ac_optarg ;;
869
870   --config-cache | -C)
871     cache_file=config.cache ;;
872
873   -datadir | --datadir | --datadi | --datad)
874     ac_prev=datadir ;;
875   -datadir=* | --datadir=* | --datadi=* | --datad=*)
876     datadir=$ac_optarg ;;
877
878   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879   | --dataroo | --dataro | --datar)
880     ac_prev=datarootdir ;;
881   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883     datarootdir=$ac_optarg ;;
884
885   -disable-* | --disable-*)
886     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887     # Reject names that are not valid shell variable names.
888     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889       as_fn_error $? "invalid feature name: $ac_useropt"
890     ac_useropt_orig=$ac_useropt
891     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892     case $ac_user_opts in
893       *"
894 "enable_$ac_useropt"
895 "*) ;;
896       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897          ac_unrecognized_sep=', ';;
898     esac
899     eval enable_$ac_useropt=no ;;
900
901   -docdir | --docdir | --docdi | --doc | --do)
902     ac_prev=docdir ;;
903   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904     docdir=$ac_optarg ;;
905
906   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907     ac_prev=dvidir ;;
908   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909     dvidir=$ac_optarg ;;
910
911   -enable-* | --enable-*)
912     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913     # Reject names that are not valid shell variable names.
914     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915       as_fn_error $? "invalid feature name: $ac_useropt"
916     ac_useropt_orig=$ac_useropt
917     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918     case $ac_user_opts in
919       *"
920 "enable_$ac_useropt"
921 "*) ;;
922       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923          ac_unrecognized_sep=', ';;
924     esac
925     eval enable_$ac_useropt=\$ac_optarg ;;
926
927   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929   | --exec | --exe | --ex)
930     ac_prev=exec_prefix ;;
931   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933   | --exec=* | --exe=* | --ex=*)
934     exec_prefix=$ac_optarg ;;
935
936   -gas | --gas | --ga | --g)
937     # Obsolete; use --with-gas.
938     with_gas=yes ;;
939
940   -help | --help | --hel | --he | -h)
941     ac_init_help=long ;;
942   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943     ac_init_help=recursive ;;
944   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945     ac_init_help=short ;;
946
947   -host | --host | --hos | --ho)
948     ac_prev=host_alias ;;
949   -host=* | --host=* | --hos=* | --ho=*)
950     host_alias=$ac_optarg ;;
951
952   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953     ac_prev=htmldir ;;
954   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955   | --ht=*)
956     htmldir=$ac_optarg ;;
957
958   -includedir | --includedir | --includedi | --included | --include \
959   | --includ | --inclu | --incl | --inc)
960     ac_prev=includedir ;;
961   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962   | --includ=* | --inclu=* | --incl=* | --inc=*)
963     includedir=$ac_optarg ;;
964
965   -infodir | --infodir | --infodi | --infod | --info | --inf)
966     ac_prev=infodir ;;
967   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968     infodir=$ac_optarg ;;
969
970   -libdir | --libdir | --libdi | --libd)
971     ac_prev=libdir ;;
972   -libdir=* | --libdir=* | --libdi=* | --libd=*)
973     libdir=$ac_optarg ;;
974
975   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976   | --libexe | --libex | --libe)
977     ac_prev=libexecdir ;;
978   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979   | --libexe=* | --libex=* | --libe=*)
980     libexecdir=$ac_optarg ;;
981
982   -localedir | --localedir | --localedi | --localed | --locale)
983     ac_prev=localedir ;;
984   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985     localedir=$ac_optarg ;;
986
987   -localstatedir | --localstatedir | --localstatedi | --localstated \
988   | --localstate | --localstat | --localsta | --localst | --locals)
989     ac_prev=localstatedir ;;
990   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992     localstatedir=$ac_optarg ;;
993
994   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995     ac_prev=mandir ;;
996   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997     mandir=$ac_optarg ;;
998
999   -nfp | --nfp | --nf)
1000     # Obsolete; use --without-fp.
1001     with_fp=no ;;
1002
1003   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004   | --no-cr | --no-c | -n)
1005     no_create=yes ;;
1006
1007   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009     no_recursion=yes ;;
1010
1011   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013   | --oldin | --oldi | --old | --ol | --o)
1014     ac_prev=oldincludedir ;;
1015   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018     oldincludedir=$ac_optarg ;;
1019
1020   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021     ac_prev=prefix ;;
1022   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023     prefix=$ac_optarg ;;
1024
1025   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026   | --program-pre | --program-pr | --program-p)
1027     ac_prev=program_prefix ;;
1028   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030     program_prefix=$ac_optarg ;;
1031
1032   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033   | --program-suf | --program-su | --program-s)
1034     ac_prev=program_suffix ;;
1035   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037     program_suffix=$ac_optarg ;;
1038
1039   -program-transform-name | --program-transform-name \
1040   | --program-transform-nam | --program-transform-na \
1041   | --program-transform-n | --program-transform- \
1042   | --program-transform | --program-transfor \
1043   | --program-transfo | --program-transf \
1044   | --program-trans | --program-tran \
1045   | --progr-tra | --program-tr | --program-t)
1046     ac_prev=program_transform_name ;;
1047   -program-transform-name=* | --program-transform-name=* \
1048   | --program-transform-nam=* | --program-transform-na=* \
1049   | --program-transform-n=* | --program-transform-=* \
1050   | --program-transform=* | --program-transfor=* \
1051   | --program-transfo=* | --program-transf=* \
1052   | --program-trans=* | --program-tran=* \
1053   | --progr-tra=* | --program-tr=* | --program-t=*)
1054     program_transform_name=$ac_optarg ;;
1055
1056   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057     ac_prev=pdfdir ;;
1058   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059     pdfdir=$ac_optarg ;;
1060
1061   -psdir | --psdir | --psdi | --psd | --ps)
1062     ac_prev=psdir ;;
1063   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064     psdir=$ac_optarg ;;
1065
1066   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067   | -silent | --silent | --silen | --sile | --sil)
1068     silent=yes ;;
1069
1070   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071     ac_prev=sbindir ;;
1072   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073   | --sbi=* | --sb=*)
1074     sbindir=$ac_optarg ;;
1075
1076   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078   | --sharedst | --shareds | --shared | --share | --shar \
1079   | --sha | --sh)
1080     ac_prev=sharedstatedir ;;
1081   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084   | --sha=* | --sh=*)
1085     sharedstatedir=$ac_optarg ;;
1086
1087   -site | --site | --sit)
1088     ac_prev=site ;;
1089   -site=* | --site=* | --sit=*)
1090     site=$ac_optarg ;;
1091
1092   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093     ac_prev=srcdir ;;
1094   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095     srcdir=$ac_optarg ;;
1096
1097   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098   | --syscon | --sysco | --sysc | --sys | --sy)
1099     ac_prev=sysconfdir ;;
1100   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102     sysconfdir=$ac_optarg ;;
1103
1104   -target | --target | --targe | --targ | --tar | --ta | --t)
1105     ac_prev=target_alias ;;
1106   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107     target_alias=$ac_optarg ;;
1108
1109   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110     verbose=yes ;;
1111
1112   -version | --version | --versio | --versi | --vers | -V)
1113     ac_init_version=: ;;
1114
1115   -with-* | --with-*)
1116     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117     # Reject names that are not valid shell variable names.
1118     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119       as_fn_error $? "invalid package name: $ac_useropt"
1120     ac_useropt_orig=$ac_useropt
1121     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122     case $ac_user_opts in
1123       *"
1124 "with_$ac_useropt"
1125 "*) ;;
1126       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127          ac_unrecognized_sep=', ';;
1128     esac
1129     eval with_$ac_useropt=\$ac_optarg ;;
1130
1131   -without-* | --without-*)
1132     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133     # Reject names that are not valid shell variable names.
1134     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135       as_fn_error $? "invalid package name: $ac_useropt"
1136     ac_useropt_orig=$ac_useropt
1137     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138     case $ac_user_opts in
1139       *"
1140 "with_$ac_useropt"
1141 "*) ;;
1142       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143          ac_unrecognized_sep=', ';;
1144     esac
1145     eval with_$ac_useropt=no ;;
1146
1147   --x)
1148     # Obsolete; use --with-x.
1149     with_x=yes ;;
1150
1151   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152   | --x-incl | --x-inc | --x-in | --x-i)
1153     ac_prev=x_includes ;;
1154   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156     x_includes=$ac_optarg ;;
1157
1158   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160     ac_prev=x_libraries ;;
1161   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163     x_libraries=$ac_optarg ;;
1164
1165   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166 Try \`$0 --help' for more information"
1167     ;;
1168
1169   *=*)
1170     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171     # Reject names that are not valid shell variable names.
1172     case $ac_envvar in #(
1173       '' | [0-9]* | *[!_$as_cr_alnum]* )
1174       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1175     esac
1176     eval $ac_envvar=\$ac_optarg
1177     export $ac_envvar ;;
1178
1179   *)
1180     # FIXME: should be removed in autoconf 3.0.
1181     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1185     ;;
1186
1187   esac
1188 done
1189
1190 if test -n "$ac_prev"; then
1191   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192   as_fn_error $? "missing argument to $ac_option"
1193 fi
1194
1195 if test -n "$ac_unrecognized_opts"; then
1196   case $enable_option_checking in
1197     no) ;;
1198     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200   esac
1201 fi
1202
1203 # Check all directory arguments for consistency.
1204 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205                 datadir sysconfdir sharedstatedir localstatedir includedir \
1206                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207                 libdir localedir mandir
1208 do
1209   eval ac_val=\$$ac_var
1210   # Remove trailing slashes.
1211   case $ac_val in
1212     */ )
1213       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214       eval $ac_var=\$ac_val;;
1215   esac
1216   # Be sure to have absolute directory names.
1217   case $ac_val in
1218     [\\/$]* | ?:[\\/]* )  continue;;
1219     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220   esac
1221   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1222 done
1223
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1227 build=$build_alias
1228 host=$host_alias
1229 target=$target_alias
1230
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233   if test "x$build_alias" = x; then
1234     cross_compiling=maybe
1235     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1236     If a cross compiler is detected then cross compile mode will be used" >&2
1237   elif test "x$build_alias" != "x$host_alias"; then
1238     cross_compiling=yes
1239   fi
1240 fi
1241
1242 ac_tool_prefix=
1243 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244
1245 test "$silent" = yes && exec 6>/dev/null
1246
1247
1248 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249 ac_ls_di=`ls -di .` &&
1250 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251   as_fn_error $? "working directory cannot be determined"
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253   as_fn_error $? "pwd does not report name of working directory"
1254
1255
1256 # Find the source files, if location was not specified.
1257 if test -z "$srcdir"; then
1258   ac_srcdir_defaulted=yes
1259   # Try the directory containing this script, then the parent directory.
1260   ac_confdir=`$as_dirname -- "$as_myself" ||
1261 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262          X"$as_myself" : 'X\(//\)[^/]' \| \
1263          X"$as_myself" : 'X\(//\)$' \| \
1264          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1265 $as_echo X"$as_myself" |
1266     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267             s//\1/
1268             q
1269           }
1270           /^X\(\/\/\)[^/].*/{
1271             s//\1/
1272             q
1273           }
1274           /^X\(\/\/\)$/{
1275             s//\1/
1276             q
1277           }
1278           /^X\(\/\).*/{
1279             s//\1/
1280             q
1281           }
1282           s/.*/./; q'`
1283   srcdir=$ac_confdir
1284   if test ! -r "$srcdir/$ac_unique_file"; then
1285     srcdir=..
1286   fi
1287 else
1288   ac_srcdir_defaulted=no
1289 fi
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1293 fi
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 ac_abs_confdir=`(
1296         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1297         pwd)`
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300   srcdir=.
1301 fi
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1305 case $srcdir in
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 esac
1308 for ac_var in $ac_precious_vars; do
1309   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_env_${ac_var}_value=\$${ac_var}
1311   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 done
1314
1315 #
1316 # Report the --help message.
1317 #
1318 if test "$ac_init_help" = "long"; then
1319   # Omit some internal or obsolete options to make the list less imposing.
1320   # This message is too long to be a string in the A/UX 3.1 sh.
1321   cat <<_ACEOF
1322 \`configure' configures this package to adapt to many kinds of systems.
1323
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE.  See below for descriptions of some of the useful variables.
1328
1329 Defaults for the options are specified in brackets.
1330
1331 Configuration:
1332   -h, --help              display this help and exit
1333       --help=short        display options specific to this package
1334       --help=recursive    display the short help of all the included packages
1335   -V, --version           display version information and exit
1336   -q, --quiet, --silent   do not print \`checking ...' messages
1337       --cache-file=FILE   cache test results in FILE [disabled]
1338   -C, --config-cache      alias for \`--cache-file=config.cache'
1339   -n, --no-create         do not create output files
1340       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1341
1342 Installation directories:
1343   --prefix=PREFIX         install architecture-independent files in PREFIX
1344                           [$ac_default_prefix]
1345   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1346                           [PREFIX]
1347
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1352
1353 For better control, use the options below.
1354
1355 Fine tuning of the installation directories:
1356   --bindir=DIR            user executables [EPREFIX/bin]
1357   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1358   --libexecdir=DIR        program executables [EPREFIX/libexec]
1359   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1360   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1361   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1362   --libdir=DIR            object code libraries [EPREFIX/lib]
1363   --includedir=DIR        C header files [PREFIX/include]
1364   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1365   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1366   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1367   --infodir=DIR           info documentation [DATAROOTDIR/info]
1368   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1369   --mandir=DIR            man documentation [DATAROOTDIR/man]
1370   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1371   --htmldir=DIR           html documentation [DOCDIR]
1372   --dvidir=DIR            dvi documentation [DOCDIR]
1373   --pdfdir=DIR            pdf documentation [DOCDIR]
1374   --psdir=DIR             ps documentation [DOCDIR]
1375 _ACEOF
1376
1377   cat <<\_ACEOF
1378
1379 Program names:
1380   --program-prefix=PREFIX            prepend PREFIX to installed program names
1381   --program-suffix=SUFFIX            append SUFFIX to installed program names
1382   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1383
1384 System types:
1385   --build=BUILD     configure for building on BUILD [guessed]
1386   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1387 _ACEOF
1388 fi
1389
1390 if test -n "$ac_init_help"; then
1391
1392   cat <<\_ACEOF
1393
1394 Optional Features:
1395   --disable-option-checking  ignore unrecognized --enable/--with options
1396   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1397   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1398   --disable-dependency-tracking  speeds up one-time build
1399   --enable-dependency-tracking   do not reject slow dependency extractors
1400   --disable-nls           do not use Native Language Support
1401   --enable-threads={posix|solaris|pth|win32}
1402                           specify multithreading API
1403   --disable-threads       build without multithread safety
1404   --disable-rpath         do not hardcode runtime library paths
1405   --enable-vformat          Use libvformat is available
1406   --enable-debug          Enable debugging support
1407
1408 Optional Packages:
1409   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1410   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1411   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1412   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1413   --without-libpth-prefix     don't search for libpth in includedir and libdir
1414   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1415   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1416   --with-included-gettext use the GNU gettext library included here
1417   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1418   --without-libintl-prefix     don't search for libintl in includedir and libdir
1419   --with-localedir=PATH      Where the locale files are installed
1420   --with-curses=DIR       Where ncurses is installed
1421   --with-readline=DIR     Where readline is installed
1422
1423 Some influential environment variables:
1424   CC          C compiler command
1425   CFLAGS      C compiler flags
1426   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1427               nonstandard directory <lib dir>
1428   LIBS        libraries to pass to the linker, e.g. -l<library>
1429   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1430               you have headers in a nonstandard directory <include dir>
1431   CPP         C preprocessor
1432
1433 Use these variables to override the choices made by `configure' or to help
1434 it to find libraries and programs with nonstandard names/locations.
1435
1436 Report bugs to the package provider.
1437 _ACEOF
1438 ac_status=$?
1439 fi
1440
1441 if test "$ac_init_help" = "recursive"; then
1442   # If there are subdirs, report their specific --help.
1443   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1444     test -d "$ac_dir" ||
1445       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1446       continue
1447     ac_builddir=.
1448
1449 case "$ac_dir" in
1450 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451 *)
1452   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1453   # A ".." for each directory in $ac_dir_suffix.
1454   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1455   case $ac_top_builddir_sub in
1456   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1458   esac ;;
1459 esac
1460 ac_abs_top_builddir=$ac_pwd
1461 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1462 # for backward compatibility:
1463 ac_top_builddir=$ac_top_build_prefix
1464
1465 case $srcdir in
1466   .)  # We are building in place.
1467     ac_srcdir=.
1468     ac_top_srcdir=$ac_top_builddir_sub
1469     ac_abs_top_srcdir=$ac_pwd ;;
1470   [\\/]* | ?:[\\/]* )  # Absolute name.
1471     ac_srcdir=$srcdir$ac_dir_suffix;
1472     ac_top_srcdir=$srcdir
1473     ac_abs_top_srcdir=$srcdir ;;
1474   *) # Relative name.
1475     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1476     ac_top_srcdir=$ac_top_build_prefix$srcdir
1477     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1478 esac
1479 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1480
1481     cd "$ac_dir" || { ac_status=$?; continue; }
1482     # Check for guested configure.
1483     if test -f "$ac_srcdir/configure.gnu"; then
1484       echo &&
1485       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1486     elif test -f "$ac_srcdir/configure"; then
1487       echo &&
1488       $SHELL "$ac_srcdir/configure" --help=recursive
1489     else
1490       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1491     fi || ac_status=$?
1492     cd "$ac_pwd" || { ac_status=$?; break; }
1493   done
1494 fi
1495
1496 test -n "$ac_init_help" && exit $ac_status
1497 if $ac_init_version; then
1498   cat <<\_ACEOF
1499 configure
1500 generated by GNU Autoconf 2.68
1501
1502 Copyright (C) 2010 Free Software Foundation, Inc.
1503 This configure script is free software; the Free Software Foundation
1504 gives unlimited permission to copy, distribute and modify it.
1505 _ACEOF
1506   exit
1507 fi
1508
1509 ## ------------------------ ##
1510 ## Autoconf initialization. ##
1511 ## ------------------------ ##
1512
1513 # ac_fn_c_try_compile LINENO
1514 # --------------------------
1515 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1516 ac_fn_c_try_compile ()
1517 {
1518   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519   rm -f conftest.$ac_objext
1520   if { { ac_try="$ac_compile"
1521 case "(($ac_try" in
1522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1523   *) ac_try_echo=$ac_try;;
1524 esac
1525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526 $as_echo "$ac_try_echo"; } >&5
1527   (eval "$ac_compile") 2>conftest.err
1528   ac_status=$?
1529   if test -s conftest.err; then
1530     grep -v '^ *+' conftest.err >conftest.er1
1531     cat conftest.er1 >&5
1532     mv -f conftest.er1 conftest.err
1533   fi
1534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1535   test $ac_status = 0; } && {
1536          test -z "$ac_c_werror_flag" ||
1537          test ! -s conftest.err
1538        } && test -s conftest.$ac_objext; then :
1539   ac_retval=0
1540 else
1541   $as_echo "$as_me: failed program was:" >&5
1542 sed 's/^/| /' conftest.$ac_ext >&5
1543
1544         ac_retval=1
1545 fi
1546   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1547   as_fn_set_status $ac_retval
1548
1549 } # ac_fn_c_try_compile
1550
1551 # ac_fn_c_try_cpp LINENO
1552 # ----------------------
1553 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1554 ac_fn_c_try_cpp ()
1555 {
1556   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557   if { { ac_try="$ac_cpp conftest.$ac_ext"
1558 case "(($ac_try" in
1559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560   *) ac_try_echo=$ac_try;;
1561 esac
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1565   ac_status=$?
1566   if test -s conftest.err; then
1567     grep -v '^ *+' conftest.err >conftest.er1
1568     cat conftest.er1 >&5
1569     mv -f conftest.er1 conftest.err
1570   fi
1571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572   test $ac_status = 0; } > conftest.i && {
1573          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1574          test ! -s conftest.err
1575        }; then :
1576   ac_retval=0
1577 else
1578   $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1580
1581     ac_retval=1
1582 fi
1583   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584   as_fn_set_status $ac_retval
1585
1586 } # ac_fn_c_try_cpp
1587
1588 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1589 # -------------------------------------------------------
1590 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1591 # the include files in INCLUDES and setting the cache variable VAR
1592 # accordingly.
1593 ac_fn_c_check_header_mongrel ()
1594 {
1595   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596   if eval \${$3+:} false; then :
1597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1598 $as_echo_n "checking for $2... " >&6; }
1599 if eval \${$3+:} false; then :
1600   $as_echo_n "(cached) " >&6
1601 fi
1602 eval ac_res=\$$3
1603                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1604 $as_echo "$ac_res" >&6; }
1605 else
1606   # Is the header compilable?
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1608 $as_echo_n "checking $2 usability... " >&6; }
1609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1610 /* end confdefs.h.  */
1611 $4
1612 #include <$2>
1613 _ACEOF
1614 if ac_fn_c_try_compile "$LINENO"; then :
1615   ac_header_compiler=yes
1616 else
1617   ac_header_compiler=no
1618 fi
1619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1621 $as_echo "$ac_header_compiler" >&6; }
1622
1623 # Is the header present?
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1625 $as_echo_n "checking $2 presence... " >&6; }
1626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627 /* end confdefs.h.  */
1628 #include <$2>
1629 _ACEOF
1630 if ac_fn_c_try_cpp "$LINENO"; then :
1631   ac_header_preproc=yes
1632 else
1633   ac_header_preproc=no
1634 fi
1635 rm -f conftest.err conftest.i conftest.$ac_ext
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1637 $as_echo "$ac_header_preproc" >&6; }
1638
1639 # So?  What about this header?
1640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1641   yes:no: )
1642     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1643 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1644     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1645 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1646     ;;
1647   no:yes:* )
1648     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1649 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1650     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1651 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1652     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1653 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1654     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1655 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1656     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1657 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1658     ;;
1659 esac
1660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 $as_echo_n "checking for $2... " >&6; }
1662 if eval \${$3+:} false; then :
1663   $as_echo_n "(cached) " >&6
1664 else
1665   eval "$3=\$ac_header_compiler"
1666 fi
1667 eval ac_res=\$$3
1668                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669 $as_echo "$ac_res" >&6; }
1670 fi
1671   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672
1673 } # ac_fn_c_check_header_mongrel
1674
1675 # ac_fn_c_try_run LINENO
1676 # ----------------------
1677 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678 # that executables *can* be run.
1679 ac_fn_c_try_run ()
1680 {
1681   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682   if { { ac_try="$ac_link"
1683 case "(($ac_try" in
1684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685   *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689   (eval "$ac_link") 2>&5
1690   ac_status=$?
1691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693   { { case "(($ac_try" in
1694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695   *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699   (eval "$ac_try") 2>&5
1700   ac_status=$?
1701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702   test $ac_status = 0; }; }; then :
1703   ac_retval=0
1704 else
1705   $as_echo "$as_me: program exited with status $ac_status" >&5
1706        $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709        ac_retval=$ac_status
1710 fi
1711   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713   as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_run
1716
1717 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1718 # -------------------------------------------------------
1719 # Tests whether HEADER exists and can be compiled using the include files in
1720 # INCLUDES, setting the cache variable VAR accordingly.
1721 ac_fn_c_check_header_compile ()
1722 {
1723   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if eval \${$3+:} false; then :
1727   $as_echo_n "(cached) " >&6
1728 else
1729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h.  */
1731 $4
1732 #include <$2>
1733 _ACEOF
1734 if ac_fn_c_try_compile "$LINENO"; then :
1735   eval "$3=yes"
1736 else
1737   eval "$3=no"
1738 fi
1739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740 fi
1741 eval ac_res=\$$3
1742                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1744   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745
1746 } # ac_fn_c_check_header_compile
1747
1748 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1749 # -------------------------------------------
1750 # Tests whether TYPE exists after having included INCLUDES, setting cache
1751 # variable VAR accordingly.
1752 ac_fn_c_check_type ()
1753 {
1754   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \${$3+:} false; then :
1758   $as_echo_n "(cached) " >&6
1759 else
1760   eval "$3=no"
1761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h.  */
1763 $4
1764 int
1765 main ()
1766 {
1767 if (sizeof ($2))
1768          return 0;
1769   ;
1770   return 0;
1771 }
1772 _ACEOF
1773 if ac_fn_c_try_compile "$LINENO"; then :
1774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h.  */
1776 $4
1777 int
1778 main ()
1779 {
1780 if (sizeof (($2)))
1781             return 0;
1782   ;
1783   return 0;
1784 }
1785 _ACEOF
1786 if ac_fn_c_try_compile "$LINENO"; then :
1787
1788 else
1789   eval "$3=yes"
1790 fi
1791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 fi
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 fi
1795 eval ac_res=\$$3
1796                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
1800 } # ac_fn_c_check_type
1801
1802 # ac_fn_c_try_link LINENO
1803 # -----------------------
1804 # Try to link conftest.$ac_ext, and return whether this succeeded.
1805 ac_fn_c_try_link ()
1806 {
1807   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808   rm -f conftest.$ac_objext conftest$ac_exeext
1809   if { { ac_try="$ac_link"
1810 case "(($ac_try" in
1811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812   *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816   (eval "$ac_link") 2>conftest.err
1817   ac_status=$?
1818   if test -s conftest.err; then
1819     grep -v '^ *+' conftest.err >conftest.er1
1820     cat conftest.er1 >&5
1821     mv -f conftest.er1 conftest.err
1822   fi
1823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824   test $ac_status = 0; } && {
1825          test -z "$ac_c_werror_flag" ||
1826          test ! -s conftest.err
1827        } && test -s conftest$ac_exeext && {
1828          test "$cross_compiling" = yes ||
1829          $as_test_x conftest$ac_exeext
1830        }; then :
1831   ac_retval=0
1832 else
1833   $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1835
1836         ac_retval=1
1837 fi
1838   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1839   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1840   # interfere with the next link command; also delete a directory that is
1841   # left behind by Apple's compiler.  We do this before executing the actions.
1842   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1843   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844   as_fn_set_status $ac_retval
1845
1846 } # ac_fn_c_try_link
1847
1848 # ac_fn_c_check_func LINENO FUNC VAR
1849 # ----------------------------------
1850 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1851 ac_fn_c_check_func ()
1852 {
1853   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855 $as_echo_n "checking for $2... " >&6; }
1856 if eval \${$3+:} false; then :
1857   $as_echo_n "(cached) " >&6
1858 else
1859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h.  */
1861 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1862    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1863 #define $2 innocuous_$2
1864
1865 /* System header to define __stub macros and hopefully few prototypes,
1866     which can conflict with char $2 (); below.
1867     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1868     <limits.h> exists even on freestanding compilers.  */
1869
1870 #ifdef __STDC__
1871 # include <limits.h>
1872 #else
1873 # include <assert.h>
1874 #endif
1875
1876 #undef $2
1877
1878 /* Override any GCC internal prototype to avoid an error.
1879    Use char because int might match the return type of a GCC
1880    builtin and then its argument prototype would still apply.  */
1881 #ifdef __cplusplus
1882 extern "C"
1883 #endif
1884 char $2 ();
1885 /* The GNU C library defines this for functions which it implements
1886     to always fail with ENOSYS.  Some functions are actually named
1887     something starting with __ and the normal name is an alias.  */
1888 #if defined __stub_$2 || defined __stub___$2
1889 choke me
1890 #endif
1891
1892 int
1893 main ()
1894 {
1895 return $2 ();
1896   ;
1897   return 0;
1898 }
1899 _ACEOF
1900 if ac_fn_c_try_link "$LINENO"; then :
1901   eval "$3=yes"
1902 else
1903   eval "$3=no"
1904 fi
1905 rm -f core conftest.err conftest.$ac_objext \
1906     conftest$ac_exeext conftest.$ac_ext
1907 fi
1908 eval ac_res=\$$3
1909                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910 $as_echo "$ac_res" >&6; }
1911   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912
1913 } # ac_fn_c_check_func
1914
1915 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1916 # --------------------------------------------
1917 # Tries to find the compile-time value of EXPR in a program that includes
1918 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1919 # computed
1920 ac_fn_c_compute_int ()
1921 {
1922   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923   if test "$cross_compiling" = yes; then
1924     # Depending upon the size, compute the lo and hi bounds.
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h.  */
1927 $4
1928 int
1929 main ()
1930 {
1931 static int test_array [1 - 2 * !(($2) >= 0)];
1932 test_array [0] = 0
1933
1934   ;
1935   return 0;
1936 }
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939   ac_lo=0 ac_mid=0
1940   while :; do
1941     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h.  */
1943 $4
1944 int
1945 main ()
1946 {
1947 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1948 test_array [0] = 0
1949
1950   ;
1951   return 0;
1952 }
1953 _ACEOF
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955   ac_hi=$ac_mid; break
1956 else
1957   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1958                         if test $ac_lo -le $ac_mid; then
1959                           ac_lo= ac_hi=
1960                           break
1961                         fi
1962                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1963 fi
1964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965   done
1966 else
1967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h.  */
1969 $4
1970 int
1971 main ()
1972 {
1973 static int test_array [1 - 2 * !(($2) < 0)];
1974 test_array [0] = 0
1975
1976   ;
1977   return 0;
1978 }
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"; then :
1981   ac_hi=-1 ac_mid=-1
1982   while :; do
1983     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h.  */
1985 $4
1986 int
1987 main ()
1988 {
1989 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1990 test_array [0] = 0
1991
1992   ;
1993   return 0;
1994 }
1995 _ACEOF
1996 if ac_fn_c_try_compile "$LINENO"; then :
1997   ac_lo=$ac_mid; break
1998 else
1999   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2000                         if test $ac_mid -le $ac_hi; then
2001                           ac_lo= ac_hi=
2002                           break
2003                         fi
2004                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2005 fi
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007   done
2008 else
2009   ac_lo= ac_hi=
2010 fi
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 fi
2013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 # Binary search between lo and hi bounds.
2015 while test "x$ac_lo" != "x$ac_hi"; do
2016   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h.  */
2019 $4
2020 int
2021 main ()
2022 {
2023 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2024 test_array [0] = 0
2025
2026   ;
2027   return 0;
2028 }
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031   ac_hi=$ac_mid
2032 else
2033   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2034 fi
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 done
2037 case $ac_lo in #((
2038 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2039 '') ac_retval=1 ;;
2040 esac
2041   else
2042     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h.  */
2044 $4
2045 static long int longval () { return $2; }
2046 static unsigned long int ulongval () { return $2; }
2047 #include <stdio.h>
2048 #include <stdlib.h>
2049 int
2050 main ()
2051 {
2052
2053   FILE *f = fopen ("conftest.val", "w");
2054   if (! f)
2055     return 1;
2056   if (($2) < 0)
2057     {
2058       long int i = longval ();
2059       if (i != ($2))
2060         return 1;
2061       fprintf (f, "%ld", i);
2062     }
2063   else
2064     {
2065       unsigned long int i = ulongval ();
2066       if (i != ($2))
2067         return 1;
2068       fprintf (f, "%lu", i);
2069     }
2070   /* Do not output a trailing newline, as this causes \r\n confusion
2071      on some platforms.  */
2072   return ferror (f) || fclose (f) != 0;
2073
2074   ;
2075   return 0;
2076 }
2077 _ACEOF
2078 if ac_fn_c_try_run "$LINENO"; then :
2079   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2080 else
2081   ac_retval=1
2082 fi
2083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2084   conftest.$ac_objext conftest.beam conftest.$ac_ext
2085 rm -f conftest.val
2086
2087   fi
2088   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2089   as_fn_set_status $ac_retval
2090
2091 } # ac_fn_c_compute_int
2092
2093 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2094 # ---------------------------------------------
2095 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2096 # accordingly.
2097 ac_fn_c_check_decl ()
2098 {
2099   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100   as_decl_name=`echo $2|sed 's/ *(.*//'`
2101   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2103 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2104 if eval \${$3+:} false; then :
2105   $as_echo_n "(cached) " >&6
2106 else
2107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h.  */
2109 $4
2110 int
2111 main ()
2112 {
2113 #ifndef $as_decl_name
2114 #ifdef __cplusplus
2115   (void) $as_decl_use;
2116 #else
2117   (void) $as_decl_name;
2118 #endif
2119 #endif
2120
2121   ;
2122   return 0;
2123 }
2124 _ACEOF
2125 if ac_fn_c_try_compile "$LINENO"; then :
2126   eval "$3=yes"
2127 else
2128   eval "$3=no"
2129 fi
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 fi
2132 eval ac_res=\$$3
2133                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134 $as_echo "$ac_res" >&6; }
2135   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136
2137 } # ac_fn_c_check_decl
2138 cat >config.log <<_ACEOF
2139 This file contains any messages produced by compilers while
2140 running configure, to aid debugging if configure makes a mistake.
2141
2142 It was created by $as_me, which was
2143 generated by GNU Autoconf 2.68.  Invocation command line was
2144
2145   $ $0 $@
2146
2147 _ACEOF
2148 exec 5>>config.log
2149 {
2150 cat <<_ASUNAME
2151 ## --------- ##
2152 ## Platform. ##
2153 ## --------- ##
2154
2155 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2156 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2157 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2158 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2159 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2160
2161 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2162 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2163
2164 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2165 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2166 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2167 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2168 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2169 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2170 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2171
2172 _ASUNAME
2173
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 for as_dir in $PATH
2176 do
2177   IFS=$as_save_IFS
2178   test -z "$as_dir" && as_dir=.
2179     $as_echo "PATH: $as_dir"
2180   done
2181 IFS=$as_save_IFS
2182
2183 } >&5
2184
2185 cat >&5 <<_ACEOF
2186
2187
2188 ## ----------- ##
2189 ## Core tests. ##
2190 ## ----------- ##
2191
2192 _ACEOF
2193
2194
2195 # Keep a trace of the command line.
2196 # Strip out --no-create and --no-recursion so they do not pile up.
2197 # Strip out --silent because we don't want to record it for future runs.
2198 # Also quote any args containing shell meta-characters.
2199 # Make two passes to allow for proper duplicate-argument suppression.
2200 ac_configure_args=
2201 ac_configure_args0=
2202 ac_configure_args1=
2203 ac_must_keep_next=false
2204 for ac_pass in 1 2
2205 do
2206   for ac_arg
2207   do
2208     case $ac_arg in
2209     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2210     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2211     | -silent | --silent | --silen | --sile | --sil)
2212       continue ;;
2213     *\'*)
2214       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2215     esac
2216     case $ac_pass in
2217     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2218     2)
2219       as_fn_append ac_configure_args1 " '$ac_arg'"
2220       if test $ac_must_keep_next = true; then
2221         ac_must_keep_next=false # Got value, back to normal.
2222       else
2223         case $ac_arg in
2224           *=* | --config-cache | -C | -disable-* | --disable-* \
2225           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2226           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2227           | -with-* | --with-* | -without-* | --without-* | --x)
2228             case "$ac_configure_args0 " in
2229               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2230             esac
2231             ;;
2232           -* ) ac_must_keep_next=true ;;
2233         esac
2234       fi
2235       as_fn_append ac_configure_args " '$ac_arg'"
2236       ;;
2237     esac
2238   done
2239 done
2240 { ac_configure_args0=; unset ac_configure_args0;}
2241 { ac_configure_args1=; unset ac_configure_args1;}
2242
2243 # When interrupted or exit'd, cleanup temporary files, and complete
2244 # config.log.  We remove comments because anyway the quotes in there
2245 # would cause problems or look ugly.
2246 # WARNING: Use '\'' to represent an apostrophe within the trap.
2247 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2248 trap 'exit_status=$?
2249   # Save into config.log some information that might help in debugging.
2250   {
2251     echo
2252
2253     $as_echo "## ---------------- ##
2254 ## Cache variables. ##
2255 ## ---------------- ##"
2256     echo
2257     # The following way of writing the cache mishandles newlines in values,
2258 (
2259   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2260     eval ac_val=\$$ac_var
2261     case $ac_val in #(
2262     *${as_nl}*)
2263       case $ac_var in #(
2264       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2265 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2266       esac
2267       case $ac_var in #(
2268       _ | IFS | as_nl) ;; #(
2269       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2270       *) { eval $ac_var=; unset $ac_var;} ;;
2271       esac ;;
2272     esac
2273   done
2274   (set) 2>&1 |
2275     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2276     *${as_nl}ac_space=\ *)
2277       sed -n \
2278         "s/'\''/'\''\\\\'\'''\''/g;
2279           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2280       ;; #(
2281     *)
2282       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2283       ;;
2284     esac |
2285     sort
2286 )
2287     echo
2288
2289     $as_echo "## ----------------- ##
2290 ## Output variables. ##
2291 ## ----------------- ##"
2292     echo
2293     for ac_var in $ac_subst_vars
2294     do
2295       eval ac_val=\$$ac_var
2296       case $ac_val in
2297       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2298       esac
2299       $as_echo "$ac_var='\''$ac_val'\''"
2300     done | sort
2301     echo
2302
2303     if test -n "$ac_subst_files"; then
2304       $as_echo "## ------------------- ##
2305 ## File substitutions. ##
2306 ## ------------------- ##"
2307       echo
2308       for ac_var in $ac_subst_files
2309       do
2310         eval ac_val=\$$ac_var
2311         case $ac_val in
2312         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2313         esac
2314         $as_echo "$ac_var='\''$ac_val'\''"
2315       done | sort
2316       echo
2317     fi
2318
2319     if test -s confdefs.h; then
2320       $as_echo "## ----------- ##
2321 ## confdefs.h. ##
2322 ## ----------- ##"
2323       echo
2324       cat confdefs.h
2325       echo
2326     fi
2327     test "$ac_signal" != 0 &&
2328       $as_echo "$as_me: caught signal $ac_signal"
2329     $as_echo "$as_me: exit $exit_status"
2330   } >&5
2331   rm -f core *.core core.conftest.* &&
2332     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2333     exit $exit_status
2334 ' 0
2335 for ac_signal in 1 2 13 15; do
2336   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2337 done
2338 ac_signal=0
2339
2340 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2341 rm -f -r conftest* confdefs.h
2342
2343 $as_echo "/* confdefs.h */" > confdefs.h
2344
2345 # Predefined preprocessor variables.
2346
2347 cat >>confdefs.h <<_ACEOF
2348 #define PACKAGE_NAME "$PACKAGE_NAME"
2349 _ACEOF
2350
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2353 _ACEOF
2354
2355 cat >>confdefs.h <<_ACEOF
2356 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2357 _ACEOF
2358
2359 cat >>confdefs.h <<_ACEOF
2360 #define PACKAGE_STRING "$PACKAGE_STRING"
2361 _ACEOF
2362
2363 cat >>confdefs.h <<_ACEOF
2364 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2365 _ACEOF
2366
2367 cat >>confdefs.h <<_ACEOF
2368 #define PACKAGE_URL "$PACKAGE_URL"
2369 _ACEOF
2370
2371
2372 # Let the site file select an alternate cache file if it wants to.
2373 # Prefer an explicitly selected file to automatically selected ones.
2374 ac_site_file1=NONE
2375 ac_site_file2=NONE
2376 if test -n "$CONFIG_SITE"; then
2377   # We do not want a PATH search for config.site.
2378   case $CONFIG_SITE in #((
2379     -*)  ac_site_file1=./$CONFIG_SITE;;
2380     */*) ac_site_file1=$CONFIG_SITE;;
2381     *)   ac_site_file1=./$CONFIG_SITE;;
2382   esac
2383 elif test "x$prefix" != xNONE; then
2384   ac_site_file1=$prefix/share/config.site
2385   ac_site_file2=$prefix/etc/config.site
2386 else
2387   ac_site_file1=$ac_default_prefix/share/config.site
2388   ac_site_file2=$ac_default_prefix/etc/config.site
2389 fi
2390 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2391 do
2392   test "x$ac_site_file" = xNONE && continue
2393   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2394     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2395 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2396     sed 's/^/| /' "$ac_site_file" >&5
2397     . "$ac_site_file" \
2398       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2400 as_fn_error $? "failed to load site script $ac_site_file
2401 See \`config.log' for more details" "$LINENO" 5; }
2402   fi
2403 done
2404
2405 if test -r "$cache_file"; then
2406   # Some versions of bash will fail to source /dev/null (special files
2407   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2408   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2409     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2410 $as_echo "$as_me: loading cache $cache_file" >&6;}
2411     case $cache_file in
2412       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2413       *)                      . "./$cache_file";;
2414     esac
2415   fi
2416 else
2417   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2418 $as_echo "$as_me: creating cache $cache_file" >&6;}
2419   >$cache_file
2420 fi
2421
2422 gt_needs="$gt_needs "
2423 as_fn_append ac_header_list " stdlib.h"
2424 as_fn_append ac_header_list " unistd.h"
2425 as_fn_append ac_header_list " sys/param.h"
2426 # Check that the precious variables saved in the cache have kept the same
2427 # value.
2428 ac_cache_corrupted=false
2429 for ac_var in $ac_precious_vars; do
2430   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2431   eval ac_new_set=\$ac_env_${ac_var}_set
2432   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2433   eval ac_new_val=\$ac_env_${ac_var}_value
2434   case $ac_old_set,$ac_new_set in
2435     set,)
2436       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2437 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2438       ac_cache_corrupted=: ;;
2439     ,set)
2440       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2441 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2442       ac_cache_corrupted=: ;;
2443     ,);;
2444     *)
2445       if test "x$ac_old_val" != "x$ac_new_val"; then
2446         # differences in whitespace do not lead to failure.
2447         ac_old_val_w=`echo x $ac_old_val`
2448         ac_new_val_w=`echo x $ac_new_val`
2449         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2450           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2451 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2452           ac_cache_corrupted=:
2453         else
2454           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2455 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2456           eval $ac_var=\$ac_old_val
2457         fi
2458         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2459 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2460         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2461 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2462       fi;;
2463   esac
2464   # Pass precious variables to config.status.
2465   if test "$ac_new_set" = set; then
2466     case $ac_new_val in
2467     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2468     *) ac_arg=$ac_var=$ac_new_val ;;
2469     esac
2470     case " $ac_configure_args " in
2471       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2472       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2473     esac
2474   fi
2475 done
2476 if $ac_cache_corrupted; then
2477   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2479   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2480 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2481   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2482 fi
2483 ## -------------------- ##
2484 ## Main body of script. ##
2485 ## -------------------- ##
2486
2487 ac_ext=c
2488 ac_cpp='$CPP $CPPFLAGS'
2489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2492
2493
2494 am__api_version='1.11'
2495
2496 ac_aux_dir=
2497 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2498   if test -f "$ac_dir/install-sh"; then
2499     ac_aux_dir=$ac_dir
2500     ac_install_sh="$ac_aux_dir/install-sh -c"
2501     break
2502   elif test -f "$ac_dir/install.sh"; then
2503     ac_aux_dir=$ac_dir
2504     ac_install_sh="$ac_aux_dir/install.sh -c"
2505     break
2506   elif test -f "$ac_dir/shtool"; then
2507     ac_aux_dir=$ac_dir
2508     ac_install_sh="$ac_aux_dir/shtool install -c"
2509     break
2510   fi
2511 done
2512 if test -z "$ac_aux_dir"; then
2513   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2514 fi
2515
2516 # These three variables are undocumented and unsupported,
2517 # and are intended to be withdrawn in a future Autoconf release.
2518 # They can cause serious problems if a builder's source tree is in a directory
2519 # whose full name contains unusual characters.
2520 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2521 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2522 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2523
2524
2525 # Find a good install program.  We prefer a C program (faster),
2526 # so one script is as good as another.  But avoid the broken or
2527 # incompatible versions:
2528 # SysV /etc/install, /usr/sbin/install
2529 # SunOS /usr/etc/install
2530 # IRIX /sbin/install
2531 # AIX /bin/install
2532 # AmigaOS /C/install, which installs bootblocks on floppy discs
2533 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2534 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2535 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2536 # OS/2's system install, which has a completely different semantic
2537 # ./install, which can be erroneously created by make from ./install.sh.
2538 # Reject install programs that cannot install multiple files.
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2540 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2541 if test -z "$INSTALL"; then
2542 if ${ac_cv_path_install+:} false; then :
2543   $as_echo_n "(cached) " >&6
2544 else
2545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH
2547 do
2548   IFS=$as_save_IFS
2549   test -z "$as_dir" && as_dir=.
2550     # Account for people who put trailing slashes in PATH elements.
2551 case $as_dir/ in #((
2552   ./ | .// | /[cC]/* | \
2553   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2554   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2555   /usr/ucb/* ) ;;
2556   *)
2557     # OSF1 and SCO ODT 3.0 have their own names for install.
2558     # Don't use installbsd from OSF since it installs stuff as root
2559     # by default.
2560     for ac_prog in ginstall scoinst install; do
2561       for ac_exec_ext in '' $ac_executable_extensions; do
2562         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2563           if test $ac_prog = install &&
2564             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2565             # AIX install.  It has an incompatible calling convention.
2566             :
2567           elif test $ac_prog = install &&
2568             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2569             # program-specific install script used by HP pwplus--don't use.
2570             :
2571           else
2572             rm -rf conftest.one conftest.two conftest.dir
2573             echo one > conftest.one
2574             echo two > conftest.two
2575             mkdir conftest.dir
2576             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2577               test -s conftest.one && test -s conftest.two &&
2578               test -s conftest.dir/conftest.one &&
2579               test -s conftest.dir/conftest.two
2580             then
2581               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2582               break 3
2583             fi
2584           fi
2585         fi
2586       done
2587     done
2588     ;;
2589 esac
2590
2591   done
2592 IFS=$as_save_IFS
2593
2594 rm -rf conftest.one conftest.two conftest.dir
2595
2596 fi
2597   if test "${ac_cv_path_install+set}" = set; then
2598     INSTALL=$ac_cv_path_install
2599   else
2600     # As a last resort, use the slow shell script.  Don't cache a
2601     # value for INSTALL within a source directory, because that will
2602     # break other packages using the cache if that directory is
2603     # removed, or if the value is a relative name.
2604     INSTALL=$ac_install_sh
2605   fi
2606 fi
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2608 $as_echo "$INSTALL" >&6; }
2609
2610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2611 # It thinks the first close brace ends the variable substitution.
2612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2613
2614 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2615
2616 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2617
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2619 $as_echo_n "checking whether build environment is sane... " >&6; }
2620 # Just in case
2621 sleep 1
2622 echo timestamp > conftest.file
2623 # Reject unsafe characters in $srcdir or the absolute working directory
2624 # name.  Accept space and tab only in the latter.
2625 am_lf='
2626 '
2627 case `pwd` in
2628   *[\\\"\#\$\&\'\`$am_lf]*)
2629     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2630 esac
2631 case $srcdir in
2632   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2633     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2634 esac
2635
2636 # Do `set' in a subshell so we don't clobber the current shell's
2637 # arguments.  Must try -L first in case configure is actually a
2638 # symlink; some systems play weird games with the mod time of symlinks
2639 # (eg FreeBSD returns the mod time of the symlink's containing
2640 # directory).
2641 if (
2642    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2643    if test "$*" = "X"; then
2644       # -L didn't work.
2645       set X `ls -t "$srcdir/configure" conftest.file`
2646    fi
2647    rm -f conftest.file
2648    if test "$*" != "X $srcdir/configure conftest.file" \
2649       && test "$*" != "X conftest.file $srcdir/configure"; then
2650
2651       # If neither matched, then we have a broken ls.  This can happen
2652       # if, for instance, CONFIG_SHELL is bash and it inherits a
2653       # broken ls alias from the environment.  This has actually
2654       # happened.  Such a system could not be considered "sane".
2655       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2656 alias in your environment" "$LINENO" 5
2657    fi
2658
2659    test "$2" = conftest.file
2660    )
2661 then
2662    # Ok.
2663    :
2664 else
2665    as_fn_error $? "newly created file is older than distributed files!
2666 Check your system clock" "$LINENO" 5
2667 fi
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2669 $as_echo "yes" >&6; }
2670 test "$program_prefix" != NONE &&
2671   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2672 # Use a double $ so make ignores it.
2673 test "$program_suffix" != NONE &&
2674   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2675 # Double any \ or $.
2676 # By default was `s,x,x', remove it if useless.
2677 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2678 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2679
2680 # expand $ac_aux_dir to an absolute path
2681 am_aux_dir=`cd $ac_aux_dir && pwd`
2682
2683 if test x"${MISSING+set}" != xset; then
2684   case $am_aux_dir in
2685   *\ * | *\     *)
2686     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2687   *)
2688     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2689   esac
2690 fi
2691 # Use eval to expand $SHELL
2692 if eval "$MISSING --run true"; then
2693   am_missing_run="$MISSING --run "
2694 else
2695   am_missing_run=
2696   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2697 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2698 fi
2699
2700 if test x"${install_sh}" != xset; then
2701   case $am_aux_dir in
2702   *\ * | *\     *)
2703     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2704   *)
2705     install_sh="\${SHELL} $am_aux_dir/install-sh"
2706   esac
2707 fi
2708
2709 # Installed binaries are usually stripped using `strip' when the user
2710 # run `make install-strip'.  However `strip' might not be the right
2711 # tool to use in cross-compilation environments, therefore Automake
2712 # will honor the `STRIP' environment variable to overrule this program.
2713 if test "$cross_compiling" != no; then
2714   if test -n "$ac_tool_prefix"; then
2715   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2716 set dummy ${ac_tool_prefix}strip; ac_word=$2
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if ${ac_cv_prog_STRIP+:} false; then :
2720   $as_echo_n "(cached) " >&6
2721 else
2722   if test -n "$STRIP"; then
2723   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2727 do
2728   IFS=$as_save_IFS
2729   test -z "$as_dir" && as_dir=.
2730     for ac_exec_ext in '' $ac_executable_extensions; do
2731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734     break 2
2735   fi
2736 done
2737   done
2738 IFS=$as_save_IFS
2739
2740 fi
2741 fi
2742 STRIP=$ac_cv_prog_STRIP
2743 if test -n "$STRIP"; then
2744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2745 $as_echo "$STRIP" >&6; }
2746 else
2747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2749 fi
2750
2751
2752 fi
2753 if test -z "$ac_cv_prog_STRIP"; then
2754   ac_ct_STRIP=$STRIP
2755   # Extract the first word of "strip", so it can be a program name with args.
2756 set dummy strip; ac_word=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2760   $as_echo_n "(cached) " >&6
2761 else
2762   if test -n "$ac_ct_STRIP"; then
2763   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2764 else
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2767 do
2768   IFS=$as_save_IFS
2769   test -z "$as_dir" && as_dir=.
2770     for ac_exec_ext in '' $ac_executable_extensions; do
2771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772     ac_cv_prog_ac_ct_STRIP="strip"
2773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774     break 2
2775   fi
2776 done
2777   done
2778 IFS=$as_save_IFS
2779
2780 fi
2781 fi
2782 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2783 if test -n "$ac_ct_STRIP"; then
2784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2785 $as_echo "$ac_ct_STRIP" >&6; }
2786 else
2787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2789 fi
2790
2791   if test "x$ac_ct_STRIP" = x; then
2792     STRIP=":"
2793   else
2794     case $cross_compiling:$ac_tool_warned in
2795 yes:)
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2798 ac_tool_warned=yes ;;
2799 esac
2800     STRIP=$ac_ct_STRIP
2801   fi
2802 else
2803   STRIP="$ac_cv_prog_STRIP"
2804 fi
2805
2806 fi
2807 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2808
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2810 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2811 if test -z "$MKDIR_P"; then
2812   if ${ac_cv_path_mkdir+:} false; then :
2813   $as_echo_n "(cached) " >&6
2814 else
2815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2817 do
2818   IFS=$as_save_IFS
2819   test -z "$as_dir" && as_dir=.
2820     for ac_prog in mkdir gmkdir; do
2821          for ac_exec_ext in '' $ac_executable_extensions; do
2822            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2823            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2824              'mkdir (GNU coreutils) '* | \
2825              'mkdir (coreutils) '* | \
2826              'mkdir (fileutils) '4.1*)
2827                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2828                break 3;;
2829            esac
2830          done
2831        done
2832   done
2833 IFS=$as_save_IFS
2834
2835 fi
2836
2837   test -d ./--version && rmdir ./--version
2838   if test "${ac_cv_path_mkdir+set}" = set; then
2839     MKDIR_P="$ac_cv_path_mkdir -p"
2840   else
2841     # As a last resort, use the slow shell script.  Don't cache a
2842     # value for MKDIR_P within a source directory, because that will
2843     # break other packages using the cache if that directory is
2844     # removed, or if the value is a relative name.
2845     MKDIR_P="$ac_install_sh -d"
2846   fi
2847 fi
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2849 $as_echo "$MKDIR_P" >&6; }
2850
2851 mkdir_p="$MKDIR_P"
2852 case $mkdir_p in
2853   [\\/$]* | ?:[\\/]*) ;;
2854   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2855 esac
2856
2857 for ac_prog in gawk mawk nawk awk
2858 do
2859   # Extract the first word of "$ac_prog", so it can be a program name with args.
2860 set dummy $ac_prog; ac_word=$2
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if ${ac_cv_prog_AWK+:} false; then :
2864   $as_echo_n "(cached) " >&6
2865 else
2866   if test -n "$AWK"; then
2867   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872   IFS=$as_save_IFS
2873   test -z "$as_dir" && as_dir=.
2874     for ac_exec_ext in '' $ac_executable_extensions; do
2875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876     ac_cv_prog_AWK="$ac_prog"
2877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878     break 2
2879   fi
2880 done
2881   done
2882 IFS=$as_save_IFS
2883
2884 fi
2885 fi
2886 AWK=$ac_cv_prog_AWK
2887 if test -n "$AWK"; then
2888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2889 $as_echo "$AWK" >&6; }
2890 else
2891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2893 fi
2894
2895
2896   test -n "$AWK" && break
2897 done
2898
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2900 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2901 set x ${MAKE-make}
2902 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2903 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2904   $as_echo_n "(cached) " >&6
2905 else
2906   cat >conftest.make <<\_ACEOF
2907 SHELL = /bin/sh
2908 all:
2909         @echo '@@@%%%=$(MAKE)=@@@%%%'
2910 _ACEOF
2911 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2912 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2913   *@@@%%%=?*=@@@%%%*)
2914     eval ac_cv_prog_make_${ac_make}_set=yes;;
2915   *)
2916     eval ac_cv_prog_make_${ac_make}_set=no;;
2917 esac
2918 rm -f conftest.make
2919 fi
2920 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2922 $as_echo "yes" >&6; }
2923   SET_MAKE=
2924 else
2925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 $as_echo "no" >&6; }
2927   SET_MAKE="MAKE=${MAKE-make}"
2928 fi
2929
2930 rm -rf .tst 2>/dev/null
2931 mkdir .tst 2>/dev/null
2932 if test -d .tst; then
2933   am__leading_dot=.
2934 else
2935   am__leading_dot=_
2936 fi
2937 rmdir .tst 2>/dev/null
2938
2939 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2940   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2941   # is not polluted with repeated "-I."
2942   am__isrc=' -I$(srcdir)'
2943   # test to see if srcdir already configured
2944   if test -f $srcdir/config.status; then
2945     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2946   fi
2947 fi
2948
2949 # test whether we have cygpath
2950 if test -z "$CYGPATH_W"; then
2951   if (cygpath --version) >/dev/null 2>/dev/null; then
2952     CYGPATH_W='cygpath -w'
2953   else
2954     CYGPATH_W=echo
2955   fi
2956 fi
2957
2958
2959 # Define the identity of the package.
2960  PACKAGE=abook
2961  VERSION=0.6.0pre2
2962
2963
2964 cat >>confdefs.h <<_ACEOF
2965 #define PACKAGE "$PACKAGE"
2966 _ACEOF
2967
2968
2969 cat >>confdefs.h <<_ACEOF
2970 #define VERSION "$VERSION"
2971 _ACEOF
2972
2973 # Some tools Automake needs.
2974
2975 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2976
2977
2978 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2979
2980
2981 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2982
2983
2984 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2985
2986
2987 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2988
2989 # We need awk for the "check" target.  The system "awk" is bad on
2990 # some platforms.
2991 # Always define AMTAR for backward compatibility.  Yes, it's still used
2992 # in the wild :-(  We should find a proper way to deprecate it ...
2993 AMTAR='$${TAR-tar}'
2994
2995 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2996
2997
2998
2999
3000
3001 ac_config_headers="$ac_config_headers config.h"
3002
3003
3004
3005 DEPDIR="${am__leading_dot}deps"
3006
3007 ac_config_commands="$ac_config_commands depfiles"
3008
3009
3010 am_make=${MAKE-make}
3011 cat > confinc << 'END'
3012 am__doit:
3013         @echo this is the am__doit target
3014 .PHONY: am__doit
3015 END
3016 # If we don't find an include directive, just comment out the code.
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3018 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3019 am__include="#"
3020 am__quote=
3021 _am_result=none
3022 # First try GNU make style include.
3023 echo "include confinc" > confmf
3024 # Ignore all kinds of additional output from `make'.
3025 case `$am_make -s -f confmf 2> /dev/null` in #(
3026 *the\ am__doit\ target*)
3027   am__include=include
3028   am__quote=
3029   _am_result=GNU
3030   ;;
3031 esac
3032 # Now try BSD make style include.
3033 if test "$am__include" = "#"; then
3034    echo '.include "confinc"' > confmf
3035    case `$am_make -s -f confmf 2> /dev/null` in #(
3036    *the\ am__doit\ target*)
3037      am__include=.include
3038      am__quote="\""
3039      _am_result=BSD
3040      ;;
3041    esac
3042 fi
3043
3044
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3046 $as_echo "$_am_result" >&6; }
3047 rm -f confinc confmf
3048
3049 # Check whether --enable-dependency-tracking was given.
3050 if test "${enable_dependency_tracking+set}" = set; then :
3051   enableval=$enable_dependency_tracking;
3052 fi
3053
3054 if test "x$enable_dependency_tracking" != xno; then
3055   am_depcomp="$ac_aux_dir/depcomp"
3056   AMDEPBACKSLASH='\'
3057   am__nodep='_no'
3058 fi
3059  if test "x$enable_dependency_tracking" != xno; then
3060   AMDEP_TRUE=
3061   AMDEP_FALSE='#'
3062 else
3063   AMDEP_TRUE='#'
3064   AMDEP_FALSE=
3065 fi
3066
3067
3068 ac_ext=c
3069 ac_cpp='$CPP $CPPFLAGS'
3070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073 if test -n "$ac_tool_prefix"; then
3074   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3075 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if ${ac_cv_prog_CC+:} false; then :
3079   $as_echo_n "(cached) " >&6
3080 else
3081   if test -n "$CC"; then
3082   ac_cv_prog_CC="$CC" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087   IFS=$as_save_IFS
3088   test -z "$as_dir" && as_dir=.
3089     for ac_exec_ext in '' $ac_executable_extensions; do
3090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093     break 2
3094   fi
3095 done
3096   done
3097 IFS=$as_save_IFS
3098
3099 fi
3100 fi
3101 CC=$ac_cv_prog_CC
3102 if test -n "$CC"; then
3103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 $as_echo "$CC" >&6; }
3105 else
3106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3108 fi
3109
3110
3111 fi
3112 if test -z "$ac_cv_prog_CC"; then
3113   ac_ct_CC=$CC
3114   # Extract the first word of "gcc", so it can be a program name with args.
3115 set dummy gcc; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3119   $as_echo_n "(cached) " >&6
3120 else
3121   if test -n "$ac_ct_CC"; then
3122   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3123 else
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 for as_dir in $PATH
3126 do
3127   IFS=$as_save_IFS
3128   test -z "$as_dir" && as_dir=.
3129     for ac_exec_ext in '' $ac_executable_extensions; do
3130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3131     ac_cv_prog_ac_ct_CC="gcc"
3132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3133     break 2
3134   fi
3135 done
3136   done
3137 IFS=$as_save_IFS
3138
3139 fi
3140 fi
3141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3142 if test -n "$ac_ct_CC"; then
3143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3144 $as_echo "$ac_ct_CC" >&6; }
3145 else
3146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148 fi
3149
3150   if test "x$ac_ct_CC" = x; then
3151     CC=""
3152   else
3153     case $cross_compiling:$ac_tool_warned in
3154 yes:)
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3157 ac_tool_warned=yes ;;
3158 esac
3159     CC=$ac_ct_CC
3160   fi
3161 else
3162   CC="$ac_cv_prog_CC"
3163 fi
3164
3165 if test -z "$CC"; then
3166           if test -n "$ac_tool_prefix"; then
3167     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3168 set dummy ${ac_tool_prefix}cc; ac_word=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if ${ac_cv_prog_CC+:} false; then :
3172   $as_echo_n "(cached) " >&6
3173 else
3174   if test -n "$CC"; then
3175   ac_cv_prog_CC="$CC" # Let the user override the test.
3176 else
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3179 do
3180   IFS=$as_save_IFS
3181   test -z "$as_dir" && as_dir=.
3182     for ac_exec_ext in '' $ac_executable_extensions; do
3183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3184     ac_cv_prog_CC="${ac_tool_prefix}cc"
3185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186     break 2
3187   fi
3188 done
3189   done
3190 IFS=$as_save_IFS
3191
3192 fi
3193 fi
3194 CC=$ac_cv_prog_CC
3195 if test -n "$CC"; then
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3197 $as_echo "$CC" >&6; }
3198 else
3199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3201 fi
3202
3203
3204   fi
3205 fi
3206 if test -z "$CC"; then
3207   # Extract the first word of "cc", so it can be a program name with args.
3208 set dummy cc; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_prog_CC+:} false; then :
3212   $as_echo_n "(cached) " >&6
3213 else
3214   if test -n "$CC"; then
3215   ac_cv_prog_CC="$CC" # Let the user override the test.
3216 else
3217   ac_prog_rejected=no
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3220 do
3221   IFS=$as_save_IFS
3222   test -z "$as_dir" && as_dir=.
3223     for ac_exec_ext in '' $ac_executable_extensions; do
3224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3225     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3226        ac_prog_rejected=yes
3227        continue
3228      fi
3229     ac_cv_prog_CC="cc"
3230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231     break 2
3232   fi
3233 done
3234   done
3235 IFS=$as_save_IFS
3236
3237 if test $ac_prog_rejected = yes; then
3238   # We found a bogon in the path, so make sure we never use it.
3239   set dummy $ac_cv_prog_CC
3240   shift
3241   if test $# != 0; then
3242     # We chose a different compiler from the bogus one.
3243     # However, it has the same basename, so the bogon will be chosen
3244     # first if we set CC to just the basename; use the full file name.
3245     shift
3246     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3247   fi
3248 fi
3249 fi
3250 fi
3251 CC=$ac_cv_prog_CC
3252 if test -n "$CC"; then
3253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254 $as_echo "$CC" >&6; }
3255 else
3256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3258 fi
3259
3260
3261 fi
3262 if test -z "$CC"; then
3263   if test -n "$ac_tool_prefix"; then
3264   for ac_prog in cl.exe
3265   do
3266     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if ${ac_cv_prog_CC+:} false; then :
3271   $as_echo_n "(cached) " >&6
3272 else
3273   if test -n "$CC"; then
3274   ac_cv_prog_CC="$CC" # Let the user override the test.
3275 else
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279   IFS=$as_save_IFS
3280   test -z "$as_dir" && as_dir=.
3281     for ac_exec_ext in '' $ac_executable_extensions; do
3282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285     break 2
3286   fi
3287 done
3288   done
3289 IFS=$as_save_IFS
3290
3291 fi
3292 fi
3293 CC=$ac_cv_prog_CC
3294 if test -n "$CC"; then
3295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3296 $as_echo "$CC" >&6; }
3297 else
3298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 fi
3301
3302
3303     test -n "$CC" && break
3304   done
3305 fi
3306 if test -z "$CC"; then
3307   ac_ct_CC=$CC
3308   for ac_prog in cl.exe
3309 do
3310   # Extract the first word of "$ac_prog", so it can be a program name with args.
3311 set dummy $ac_prog; ac_word=$2
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313 $as_echo_n "checking for $ac_word... " >&6; }
3314 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3315   $as_echo_n "(cached) " >&6
3316 else
3317   if test -n "$ac_ct_CC"; then
3318   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323   IFS=$as_save_IFS
3324   test -z "$as_dir" && as_dir=.
3325     for ac_exec_ext in '' $ac_executable_extensions; do
3326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3327     ac_cv_prog_ac_ct_CC="$ac_prog"
3328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329     break 2
3330   fi
3331 done
3332   done
3333 IFS=$as_save_IFS
3334
3335 fi
3336 fi
3337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3338 if test -n "$ac_ct_CC"; then
3339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3340 $as_echo "$ac_ct_CC" >&6; }
3341 else
3342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3344 fi
3345
3346
3347   test -n "$ac_ct_CC" && break
3348 done
3349
3350   if test "x$ac_ct_CC" = x; then
3351     CC=""
3352   else
3353     case $cross_compiling:$ac_tool_warned in
3354 yes:)
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3357 ac_tool_warned=yes ;;
3358 esac
3359     CC=$ac_ct_CC
3360   fi
3361 fi
3362
3363 fi
3364
3365
3366 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368 as_fn_error $? "no acceptable C compiler found in \$PATH
3369 See \`config.log' for more details" "$LINENO" 5; }
3370
3371 # Provide some information about the compiler.
3372 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3373 set X $ac_compile
3374 ac_compiler=$2
3375 for ac_option in --version -v -V -qversion; do
3376   { { ac_try="$ac_compiler $ac_option >&5"
3377 case "(($ac_try" in
3378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379   *) ac_try_echo=$ac_try;;
3380 esac
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3384   ac_status=$?
3385   if test -s conftest.err; then
3386     sed '10a\
3387 ... rest of stderr output deleted ...
3388          10q' conftest.err >conftest.er1
3389     cat conftest.er1 >&5
3390   fi
3391   rm -f conftest.er1 conftest.err
3392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393   test $ac_status = 0; }
3394 done
3395
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h.  */
3398
3399 int
3400 main ()
3401 {
3402
3403   ;
3404   return 0;
3405 }
3406 _ACEOF
3407 ac_clean_files_save=$ac_clean_files
3408 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3409 # Try to create an executable without -o first, disregard a.out.
3410 # It will help us diagnose broken compilers, and finding out an intuition
3411 # of exeext.
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3413 $as_echo_n "checking whether the C compiler works... " >&6; }
3414 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3415
3416 # The possible output files:
3417 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3418
3419 ac_rmfiles=
3420 for ac_file in $ac_files
3421 do
3422   case $ac_file in
3423     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3424     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3425   esac
3426 done
3427 rm -f $ac_rmfiles
3428
3429 if { { ac_try="$ac_link_default"
3430 case "(($ac_try" in
3431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432   *) ac_try_echo=$ac_try;;
3433 esac
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436   (eval "$ac_link_default") 2>&5
3437   ac_status=$?
3438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439   test $ac_status = 0; }; then :
3440   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3441 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3442 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3443 # so that the user can short-circuit this test for compilers unknown to
3444 # Autoconf.
3445 for ac_file in $ac_files ''
3446 do
3447   test -f "$ac_file" || continue
3448   case $ac_file in
3449     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3450         ;;
3451     [ab].out )
3452         # We found the default executable, but exeext='' is most
3453         # certainly right.
3454         break;;
3455     *.* )
3456         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3457         then :; else
3458            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3459         fi
3460         # We set ac_cv_exeext here because the later test for it is not
3461         # safe: cross compilers may not add the suffix if given an `-o'
3462         # argument, so we may need to know it at that point already.
3463         # Even if this section looks crufty: it has the advantage of
3464         # actually working.
3465         break;;
3466     * )
3467         break;;
3468   esac
3469 done
3470 test "$ac_cv_exeext" = no && ac_cv_exeext=
3471
3472 else
3473   ac_file=''
3474 fi
3475 if test -z "$ac_file"; then :
3476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477 $as_echo "no" >&6; }
3478 $as_echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3480
3481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483 as_fn_error 77 "C compiler cannot create executables
3484 See \`config.log' for more details" "$LINENO" 5; }
3485 else
3486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3487 $as_echo "yes" >&6; }
3488 fi
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3490 $as_echo_n "checking for C compiler default output file name... " >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3492 $as_echo "$ac_file" >&6; }
3493 ac_exeext=$ac_cv_exeext
3494
3495 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3496 ac_clean_files=$ac_clean_files_save
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3498 $as_echo_n "checking for suffix of executables... " >&6; }
3499 if { { ac_try="$ac_link"
3500 case "(($ac_try" in
3501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502   *) ac_try_echo=$ac_try;;
3503 esac
3504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505 $as_echo "$ac_try_echo"; } >&5
3506   (eval "$ac_link") 2>&5
3507   ac_status=$?
3508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509   test $ac_status = 0; }; then :
3510   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3511 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3512 # work properly (i.e., refer to `conftest.exe'), while it won't with
3513 # `rm'.
3514 for ac_file in conftest.exe conftest conftest.*; do
3515   test -f "$ac_file" || continue
3516   case $ac_file in
3517     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3518     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3519           break;;
3520     * ) break;;
3521   esac
3522 done
3523 else
3524   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3527 See \`config.log' for more details" "$LINENO" 5; }
3528 fi
3529 rm -f conftest conftest$ac_cv_exeext
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3531 $as_echo "$ac_cv_exeext" >&6; }
3532
3533 rm -f conftest.$ac_ext
3534 EXEEXT=$ac_cv_exeext
3535 ac_exeext=$EXEEXT
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h.  */
3538 #include <stdio.h>
3539 int
3540 main ()
3541 {
3542 FILE *f = fopen ("conftest.out", "w");
3543  return ferror (f) || fclose (f) != 0;
3544
3545   ;
3546   return 0;
3547 }
3548 _ACEOF
3549 ac_clean_files="$ac_clean_files conftest.out"
3550 # Check that the compiler produces executables we can run.  If not, either
3551 # the compiler is broken, or we cross compile.
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3553 $as_echo_n "checking whether we are cross compiling... " >&6; }
3554 if test "$cross_compiling" != yes; then
3555   { { ac_try="$ac_link"
3556 case "(($ac_try" in
3557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558   *) ac_try_echo=$ac_try;;
3559 esac
3560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561 $as_echo "$ac_try_echo"; } >&5
3562   (eval "$ac_link") 2>&5
3563   ac_status=$?
3564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565   test $ac_status = 0; }
3566   if { ac_try='./conftest$ac_cv_exeext'
3567   { { case "(($ac_try" in
3568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569   *) ac_try_echo=$ac_try;;
3570 esac
3571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572 $as_echo "$ac_try_echo"; } >&5
3573   (eval "$ac_try") 2>&5
3574   ac_status=$?
3575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576   test $ac_status = 0; }; }; then
3577     cross_compiling=no
3578   else
3579     if test "$cross_compiling" = maybe; then
3580         cross_compiling=yes
3581     else
3582         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error $? "cannot run C compiled programs.
3585 If you meant to cross compile, use \`--host'.
3586 See \`config.log' for more details" "$LINENO" 5; }
3587     fi
3588   fi
3589 fi
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3591 $as_echo "$cross_compiling" >&6; }
3592
3593 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3594 ac_clean_files=$ac_clean_files_save
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3596 $as_echo_n "checking for suffix of object files... " >&6; }
3597 if ${ac_cv_objext+:} false; then :
3598   $as_echo_n "(cached) " >&6
3599 else
3600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h.  */
3602
3603 int
3604 main ()
3605 {
3606
3607   ;
3608   return 0;
3609 }
3610 _ACEOF
3611 rm -f conftest.o conftest.obj
3612 if { { ac_try="$ac_compile"
3613 case "(($ac_try" in
3614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615   *) ac_try_echo=$ac_try;;
3616 esac
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619   (eval "$ac_compile") 2>&5
3620   ac_status=$?
3621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622   test $ac_status = 0; }; then :
3623   for ac_file in conftest.o conftest.obj conftest.*; do
3624   test -f "$ac_file" || continue;
3625   case $ac_file in
3626     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3627     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3628        break;;
3629   esac
3630 done
3631 else
3632   $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 as_fn_error $? "cannot compute suffix of object files: cannot compile
3638 See \`config.log' for more details" "$LINENO" 5; }
3639 fi
3640 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3641 fi
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3643 $as_echo "$ac_cv_objext" >&6; }
3644 OBJEXT=$ac_cv_objext
3645 ac_objext=$OBJEXT
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3647 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3648 if ${ac_cv_c_compiler_gnu+:} false; then :
3649   $as_echo_n "(cached) " >&6
3650 else
3651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h.  */
3653
3654 int
3655 main ()
3656 {
3657 #ifndef __GNUC__
3658        choke me
3659 #endif
3660
3661   ;
3662   return 0;
3663 }
3664 _ACEOF
3665 if ac_fn_c_try_compile "$LINENO"; then :
3666   ac_compiler_gnu=yes
3667 else
3668   ac_compiler_gnu=no
3669 fi
3670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3672
3673 fi
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3675 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3676 if test $ac_compiler_gnu = yes; then
3677   GCC=yes
3678 else
3679   GCC=
3680 fi
3681 ac_test_CFLAGS=${CFLAGS+set}
3682 ac_save_CFLAGS=$CFLAGS
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3684 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3685 if ${ac_cv_prog_cc_g+:} false; then :
3686   $as_echo_n "(cached) " >&6
3687 else
3688   ac_save_c_werror_flag=$ac_c_werror_flag
3689    ac_c_werror_flag=yes
3690    ac_cv_prog_cc_g=no
3691    CFLAGS="-g"
3692    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h.  */
3694
3695 int
3696 main ()
3697 {
3698
3699   ;
3700   return 0;
3701 }
3702 _ACEOF
3703 if ac_fn_c_try_compile "$LINENO"; then :
3704   ac_cv_prog_cc_g=yes
3705 else
3706   CFLAGS=""
3707       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h.  */
3709
3710 int
3711 main ()
3712 {
3713
3714   ;
3715   return 0;
3716 }
3717 _ACEOF
3718 if ac_fn_c_try_compile "$LINENO"; then :
3719
3720 else
3721   ac_c_werror_flag=$ac_save_c_werror_flag
3722          CFLAGS="-g"
3723          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h.  */
3725
3726 int
3727 main ()
3728 {
3729
3730   ;
3731   return 0;
3732 }
3733 _ACEOF
3734 if ac_fn_c_try_compile "$LINENO"; then :
3735   ac_cv_prog_cc_g=yes
3736 fi
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 fi
3739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3740 fi
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742    ac_c_werror_flag=$ac_save_c_werror_flag
3743 fi
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3745 $as_echo "$ac_cv_prog_cc_g" >&6; }
3746 if test "$ac_test_CFLAGS" = set; then
3747   CFLAGS=$ac_save_CFLAGS
3748 elif test $ac_cv_prog_cc_g = yes; then
3749   if test "$GCC" = yes; then
3750     CFLAGS="-g -O2"
3751   else
3752     CFLAGS="-g"
3753   fi
3754 else
3755   if test "$GCC" = yes; then
3756     CFLAGS="-O2"
3757   else
3758     CFLAGS=
3759   fi
3760 fi
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3762 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3763 if ${ac_cv_prog_cc_c89+:} false; then :
3764   $as_echo_n "(cached) " >&6
3765 else
3766   ac_cv_prog_cc_c89=no
3767 ac_save_CC=$CC
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h.  */
3770 #include <stdarg.h>
3771 #include <stdio.h>
3772 #include <sys/types.h>
3773 #include <sys/stat.h>
3774 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3775 struct buf { int x; };
3776 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3777 static char *e (p, i)
3778      char **p;
3779      int i;
3780 {
3781   return p[i];
3782 }
3783 static char *f (char * (*g) (char **, int), char **p, ...)
3784 {
3785   char *s;
3786   va_list v;
3787   va_start (v,p);
3788   s = g (p, va_arg (v,int));
3789   va_end (v);
3790   return s;
3791 }
3792
3793 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3794    function prototypes and stuff, but not '\xHH' hex character constants.
3795    These don't provoke an error unfortunately, instead are silently treated
3796    as 'x'.  The following induces an error, until -std is added to get
3797    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3798    array size at least.  It's necessary to write '\x00'==0 to get something
3799    that's true only with -std.  */
3800 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3801
3802 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3803    inside strings and character constants.  */
3804 #define FOO(x) 'x'
3805 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3806
3807 int test (int i, double x);
3808 struct s1 {int (*f) (int a);};
3809 struct s2 {int (*f) (double a);};
3810 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3811 int argc;
3812 char **argv;
3813 int
3814 main ()
3815 {
3816 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3817   ;
3818   return 0;
3819 }
3820 _ACEOF
3821 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3822         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3823 do
3824   CC="$ac_save_CC $ac_arg"
3825   if ac_fn_c_try_compile "$LINENO"; then :
3826   ac_cv_prog_cc_c89=$ac_arg
3827 fi
3828 rm -f core conftest.err conftest.$ac_objext
3829   test "x$ac_cv_prog_cc_c89" != "xno" && break
3830 done
3831 rm -f conftest.$ac_ext
3832 CC=$ac_save_CC
3833
3834 fi
3835 # AC_CACHE_VAL
3836 case "x$ac_cv_prog_cc_c89" in
3837   x)
3838     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3839 $as_echo "none needed" >&6; } ;;
3840   xno)
3841     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3842 $as_echo "unsupported" >&6; } ;;
3843   *)
3844     CC="$CC $ac_cv_prog_cc_c89"
3845     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3846 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3847 esac
3848 if test "x$ac_cv_prog_cc_c89" != xno; then :
3849
3850 fi
3851
3852 ac_ext=c
3853 ac_cpp='$CPP $CPPFLAGS'
3854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857
3858 depcc="$CC"   am_compiler_list=
3859
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3861 $as_echo_n "checking dependency style of $depcc... " >&6; }
3862 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3863   $as_echo_n "(cached) " >&6
3864 else
3865   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3866   # We make a subdir and do the tests there.  Otherwise we can end up
3867   # making bogus files that we don't know about and never remove.  For
3868   # instance it was reported that on HP-UX the gcc test will end up
3869   # making a dummy file named `D' -- because `-MD' means `put the output
3870   # in D'.
3871   rm -rf conftest.dir
3872   mkdir conftest.dir
3873   # Copy depcomp to subdir because otherwise we won't find it if we're
3874   # using a relative directory.
3875   cp "$am_depcomp" conftest.dir
3876   cd conftest.dir
3877   # We will build objects and dependencies in a subdirectory because
3878   # it helps to detect inapplicable dependency modes.  For instance
3879   # both Tru64's cc and ICC support -MD to output dependencies as a
3880   # side effect of compilation, but ICC will put the dependencies in
3881   # the current directory while Tru64 will put them in the object
3882   # directory.
3883   mkdir sub
3884
3885   am_cv_CC_dependencies_compiler_type=none
3886   if test "$am_compiler_list" = ""; then
3887      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3888   fi
3889   am__universal=false
3890   case " $depcc " in #(
3891      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3892      esac
3893
3894   for depmode in $am_compiler_list; do
3895     # Setup a source with many dependencies, because some compilers
3896     # like to wrap large dependency lists on column 80 (with \), and
3897     # we should not choose a depcomp mode which is confused by this.
3898     #
3899     # We need to recreate these files for each test, as the compiler may
3900     # overwrite some of them when testing with obscure command lines.
3901     # This happens at least with the AIX C compiler.
3902     : > sub/conftest.c
3903     for i in 1 2 3 4 5 6; do
3904       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3905       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3906       # Solaris 8's {/usr,}/bin/sh.
3907       touch sub/conftst$i.h
3908     done
3909     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3910
3911     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3912     # mode.  It turns out that the SunPro C++ compiler does not properly
3913     # handle `-M -o', and we need to detect this.  Also, some Intel
3914     # versions had trouble with output in subdirs
3915     am__obj=sub/conftest.${OBJEXT-o}
3916     am__minus_obj="-o $am__obj"
3917     case $depmode in
3918     gcc)
3919       # This depmode causes a compiler race in universal mode.
3920       test "$am__universal" = false || continue
3921       ;;
3922     nosideeffect)
3923       # after this tag, mechanisms are not by side-effect, so they'll
3924       # only be used when explicitly requested
3925       if test "x$enable_dependency_tracking" = xyes; then
3926         continue
3927       else
3928         break
3929       fi
3930       ;;
3931     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3932       # This compiler won't grok `-c -o', but also, the minuso test has
3933       # not run yet.  These depmodes are late enough in the game, and
3934       # so weak that their functioning should not be impacted.
3935       am__obj=conftest.${OBJEXT-o}
3936       am__minus_obj=
3937       ;;
3938     none) break ;;
3939     esac
3940     if depmode=$depmode \
3941        source=sub/conftest.c object=$am__obj \
3942        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3943        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3944          >/dev/null 2>conftest.err &&
3945        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3946        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3947        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3948        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3949       # icc doesn't choke on unknown options, it will just issue warnings
3950       # or remarks (even with -Werror).  So we grep stderr for any message
3951       # that says an option was ignored or not supported.
3952       # When given -MP, icc 7.0 and 7.1 complain thusly:
3953       #   icc: Command line warning: ignoring option '-M'; no argument required
3954       # The diagnosis changed in icc 8.0:
3955       #   icc: Command line remark: option '-MP' not supported
3956       if (grep 'ignoring option' conftest.err ||
3957           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3958         am_cv_CC_dependencies_compiler_type=$depmode
3959         break
3960       fi
3961     fi
3962   done
3963
3964   cd ..
3965   rm -rf conftest.dir
3966 else
3967   am_cv_CC_dependencies_compiler_type=none
3968 fi
3969
3970 fi
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3972 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3973 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3974
3975  if
3976   test "x$enable_dependency_tracking" != xno \
3977   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3978   am__fastdepCC_TRUE=
3979   am__fastdepCC_FALSE='#'
3980 else
3981   am__fastdepCC_TRUE='#'
3982   am__fastdepCC_FALSE=
3983 fi
3984
3985
3986
3987 ac_ext=c
3988 ac_cpp='$CPP $CPPFLAGS'
3989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3993 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3994 # On Suns, sometimes $CPP names a directory.
3995 if test -n "$CPP" && test -d "$CPP"; then
3996   CPP=
3997 fi
3998 if test -z "$CPP"; then
3999   if ${ac_cv_prog_CPP+:} false; then :
4000   $as_echo_n "(cached) " >&6
4001 else
4002       # Double quotes because CPP needs to be expanded
4003     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4004     do
4005       ac_preproc_ok=false
4006 for ac_c_preproc_warn_flag in '' yes
4007 do
4008   # Use a header file that comes with gcc, so configuring glibc
4009   # with a fresh cross-compiler works.
4010   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4011   # <limits.h> exists even on freestanding compilers.
4012   # On the NeXT, cc -E runs the code through the compiler's parser,
4013   # not just through cpp. "Syntax error" is here to catch this case.
4014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h.  */
4016 #ifdef __STDC__
4017 # include <limits.h>
4018 #else
4019 # include <assert.h>
4020 #endif
4021                      Syntax error
4022 _ACEOF
4023 if ac_fn_c_try_cpp "$LINENO"; then :
4024
4025 else
4026   # Broken: fails on valid input.
4027 continue
4028 fi
4029 rm -f conftest.err conftest.i conftest.$ac_ext
4030
4031   # OK, works on sane cases.  Now check whether nonexistent headers
4032   # can be detected and how.
4033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h.  */
4035 #include <ac_nonexistent.h>
4036 _ACEOF
4037 if ac_fn_c_try_cpp "$LINENO"; then :
4038   # Broken: success on invalid input.
4039 continue
4040 else
4041   # Passes both tests.
4042 ac_preproc_ok=:
4043 break
4044 fi
4045 rm -f conftest.err conftest.i conftest.$ac_ext
4046
4047 done
4048 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4049 rm -f conftest.i conftest.err conftest.$ac_ext
4050 if $ac_preproc_ok; then :
4051   break
4052 fi
4053
4054     done
4055     ac_cv_prog_CPP=$CPP
4056
4057 fi
4058   CPP=$ac_cv_prog_CPP
4059 else
4060   ac_cv_prog_CPP=$CPP
4061 fi
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4063 $as_echo "$CPP" >&6; }
4064 ac_preproc_ok=false
4065 for ac_c_preproc_warn_flag in '' yes
4066 do
4067   # Use a header file that comes with gcc, so configuring glibc
4068   # with a fresh cross-compiler works.
4069   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4070   # <limits.h> exists even on freestanding compilers.
4071   # On the NeXT, cc -E runs the code through the compiler's parser,
4072   # not just through cpp. "Syntax error" is here to catch this case.
4073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h.  */
4075 #ifdef __STDC__
4076 # include <limits.h>
4077 #else
4078 # include <assert.h>
4079 #endif
4080                      Syntax error
4081 _ACEOF
4082 if ac_fn_c_try_cpp "$LINENO"; then :
4083
4084 else
4085   # Broken: fails on valid input.
4086 continue
4087 fi
4088 rm -f conftest.err conftest.i conftest.$ac_ext
4089
4090   # OK, works on sane cases.  Now check whether nonexistent headers
4091   # can be detected and how.
4092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h.  */
4094 #include <ac_nonexistent.h>
4095 _ACEOF
4096 if ac_fn_c_try_cpp "$LINENO"; then :
4097   # Broken: success on invalid input.
4098 continue
4099 else
4100   # Passes both tests.
4101 ac_preproc_ok=:
4102 break
4103 fi
4104 rm -f conftest.err conftest.i conftest.$ac_ext
4105
4106 done
4107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4108 rm -f conftest.i conftest.err conftest.$ac_ext
4109 if $ac_preproc_ok; then :
4110
4111 else
4112   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4114 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4115 See \`config.log' for more details" "$LINENO" 5; }
4116 fi
4117
4118 ac_ext=c
4119 ac_cpp='$CPP $CPPFLAGS'
4120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4123
4124
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4126 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4127 if ${ac_cv_path_GREP+:} false; then :
4128   $as_echo_n "(cached) " >&6
4129 else
4130   if test -z "$GREP"; then
4131   ac_path_GREP_found=false
4132   # Loop through the user's path and test for each of PROGNAME-LIST
4133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4135 do
4136   IFS=$as_save_IFS
4137   test -z "$as_dir" && as_dir=.
4138     for ac_prog in grep ggrep; do
4139     for ac_exec_ext in '' $ac_executable_extensions; do
4140       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4141       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4142 # Check for GNU ac_path_GREP and select it if it is found.
4143   # Check for GNU $ac_path_GREP
4144 case `"$ac_path_GREP" --version 2>&1` in
4145 *GNU*)
4146   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4147 *)
4148   ac_count=0
4149   $as_echo_n 0123456789 >"conftest.in"
4150   while :
4151   do
4152     cat "conftest.in" "conftest.in" >"conftest.tmp"
4153     mv "conftest.tmp" "conftest.in"
4154     cp "conftest.in" "conftest.nl"
4155     $as_echo 'GREP' >> "conftest.nl"
4156     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4157     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4158     as_fn_arith $ac_count + 1 && ac_count=$as_val
4159     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4160       # Best one so far, save it but keep looking for a better one
4161       ac_cv_path_GREP="$ac_path_GREP"
4162       ac_path_GREP_max=$ac_count
4163     fi
4164     # 10*(2^10) chars as input seems more than enough
4165     test $ac_count -gt 10 && break
4166   done
4167   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4168 esac
4169
4170       $ac_path_GREP_found && break 3
4171     done
4172   done
4173   done
4174 IFS=$as_save_IFS
4175   if test -z "$ac_cv_path_GREP"; then
4176     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4177   fi
4178 else
4179   ac_cv_path_GREP=$GREP
4180 fi
4181
4182 fi
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4184 $as_echo "$ac_cv_path_GREP" >&6; }
4185  GREP="$ac_cv_path_GREP"
4186
4187
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4189 $as_echo_n "checking for egrep... " >&6; }
4190 if ${ac_cv_path_EGREP+:} false; then :
4191   $as_echo_n "(cached) " >&6
4192 else
4193   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4194    then ac_cv_path_EGREP="$GREP -E"
4195    else
4196      if test -z "$EGREP"; then
4197   ac_path_EGREP_found=false
4198   # Loop through the user's path and test for each of PROGNAME-LIST
4199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4201 do
4202   IFS=$as_save_IFS
4203   test -z "$as_dir" && as_dir=.
4204     for ac_prog in egrep; do
4205     for ac_exec_ext in '' $ac_executable_extensions; do
4206       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4207       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4208 # Check for GNU ac_path_EGREP and select it if it is found.
4209   # Check for GNU $ac_path_EGREP
4210 case `"$ac_path_EGREP" --version 2>&1` in
4211 *GNU*)
4212   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4213 *)
4214   ac_count=0
4215   $as_echo_n 0123456789 >"conftest.in"
4216   while :
4217   do
4218     cat "conftest.in" "conftest.in" >"conftest.tmp"
4219     mv "conftest.tmp" "conftest.in"
4220     cp "conftest.in" "conftest.nl"
4221     $as_echo 'EGREP' >> "conftest.nl"
4222     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4223     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4224     as_fn_arith $ac_count + 1 && ac_count=$as_val
4225     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4226       # Best one so far, save it but keep looking for a better one
4227       ac_cv_path_EGREP="$ac_path_EGREP"
4228       ac_path_EGREP_max=$ac_count
4229     fi
4230     # 10*(2^10) chars as input seems more than enough
4231     test $ac_count -gt 10 && break
4232   done
4233   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4234 esac
4235
4236       $ac_path_EGREP_found && break 3
4237     done
4238   done
4239   done
4240 IFS=$as_save_IFS
4241   if test -z "$ac_cv_path_EGREP"; then
4242     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4243   fi
4244 else
4245   ac_cv_path_EGREP=$EGREP
4246 fi
4247
4248    fi
4249 fi
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4251 $as_echo "$ac_cv_path_EGREP" >&6; }
4252  EGREP="$ac_cv_path_EGREP"
4253
4254
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4256 $as_echo_n "checking for ANSI C header files... " >&6; }
4257 if ${ac_cv_header_stdc+:} false; then :
4258   $as_echo_n "(cached) " >&6
4259 else
4260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h.  */
4262 #include <stdlib.h>
4263 #include <stdarg.h>
4264 #include <string.h>
4265 #include <float.h>
4266
4267 int
4268 main ()
4269 {
4270
4271   ;
4272   return 0;
4273 }
4274 _ACEOF
4275 if ac_fn_c_try_compile "$LINENO"; then :
4276   ac_cv_header_stdc=yes
4277 else
4278   ac_cv_header_stdc=no
4279 fi
4280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281
4282 if test $ac_cv_header_stdc = yes; then
4283   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h.  */
4286 #include <string.h>
4287
4288 _ACEOF
4289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4290   $EGREP "memchr" >/dev/null 2>&1; then :
4291
4292 else
4293   ac_cv_header_stdc=no
4294 fi
4295 rm -f conftest*
4296
4297 fi
4298
4299 if test $ac_cv_header_stdc = yes; then
4300   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h.  */
4303 #include <stdlib.h>
4304
4305 _ACEOF
4306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4307   $EGREP "free" >/dev/null 2>&1; then :
4308
4309 else
4310   ac_cv_header_stdc=no
4311 fi
4312 rm -f conftest*
4313
4314 fi
4315
4316 if test $ac_cv_header_stdc = yes; then
4317   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4318   if test "$cross_compiling" = yes; then :
4319   :
4320 else
4321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h.  */
4323 #include <ctype.h>
4324 #include <stdlib.h>
4325 #if ((' ' & 0x0FF) == 0x020)
4326 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4327 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4328 #else
4329 # define ISLOWER(c) \
4330                    (('a' <= (c) && (c) <= 'i') \
4331                      || ('j' <= (c) && (c) <= 'r') \
4332                      || ('s' <= (c) && (c) <= 'z'))
4333 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4334 #endif
4335
4336 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4337 int
4338 main ()
4339 {
4340   int i;
4341   for (i = 0; i < 256; i++)
4342     if (XOR (islower (i), ISLOWER (i))
4343         || toupper (i) != TOUPPER (i))
4344       return 2;
4345   return 0;
4346 }
4347 _ACEOF
4348 if ac_fn_c_try_run "$LINENO"; then :
4349
4350 else
4351   ac_cv_header_stdc=no
4352 fi
4353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4354   conftest.$ac_objext conftest.beam conftest.$ac_ext
4355 fi
4356
4357 fi
4358 fi
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4360 $as_echo "$ac_cv_header_stdc" >&6; }
4361 if test $ac_cv_header_stdc = yes; then
4362
4363 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4364
4365 fi
4366
4367 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4368 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4369                   inttypes.h stdint.h unistd.h
4370 do :
4371   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4372 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4373 "
4374 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4375   cat >>confdefs.h <<_ACEOF
4376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4377 _ACEOF
4378
4379 fi
4380
4381 done
4382
4383
4384
4385   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4386 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4387   MINIX=yes
4388 else
4389   MINIX=
4390 fi
4391
4392
4393   if test "$MINIX" = yes; then
4394
4395 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4396
4397
4398 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4399
4400
4401 $as_echo "#define _MINIX 1" >>confdefs.h
4402
4403   fi
4404
4405
4406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4407 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4408 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4409   $as_echo_n "(cached) " >&6
4410 else
4411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h.  */
4413
4414 #         define __EXTENSIONS__ 1
4415           $ac_includes_default
4416 int
4417 main ()
4418 {
4419
4420   ;
4421   return 0;
4422 }
4423 _ACEOF
4424 if ac_fn_c_try_compile "$LINENO"; then :
4425   ac_cv_safe_to_define___extensions__=yes
4426 else
4427   ac_cv_safe_to_define___extensions__=no
4428 fi
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 fi
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4432 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4433   test $ac_cv_safe_to_define___extensions__ = yes &&
4434     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4435
4436   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4437
4438   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4439
4440   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4441
4442   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4443
4444
4445
4446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4447 $as_echo_n "checking whether NLS is requested... " >&6; }
4448     # Check whether --enable-nls was given.
4449 if test "${enable_nls+set}" = set; then :
4450   enableval=$enable_nls; USE_NLS=$enableval
4451 else
4452   USE_NLS=yes
4453 fi
4454
4455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4456 $as_echo "$USE_NLS" >&6; }
4457
4458
4459
4460
4461       GETTEXT_MACRO_VERSION=0.18
4462
4463
4464
4465
4466 # Prepare PATH_SEPARATOR.
4467 # The user is always right.
4468 if test "${PATH_SEPARATOR+set}" != set; then
4469   echo "#! /bin/sh" >conf$$.sh
4470   echo  "exit 0"   >>conf$$.sh
4471   chmod +x conf$$.sh
4472   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4473     PATH_SEPARATOR=';'
4474   else
4475     PATH_SEPARATOR=:
4476   fi
4477   rm -f conf$$.sh
4478 fi
4479
4480 # Find out how to test for executable files. Don't use a zero-byte file,
4481 # as systems may use methods other than mode bits to determine executability.
4482 cat >conf$$.file <<_ASEOF
4483 #! /bin/sh
4484 exit 0
4485 _ASEOF
4486 chmod +x conf$$.file
4487 if test -x conf$$.file >/dev/null 2>&1; then
4488   ac_executable_p="test -x"
4489 else
4490   ac_executable_p="test -f"
4491 fi
4492 rm -f conf$$.file
4493
4494 # Extract the first word of "msgfmt", so it can be a program name with args.
4495 set dummy msgfmt; ac_word=$2
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4497 $as_echo_n "checking for $ac_word... " >&6; }
4498 if ${ac_cv_path_MSGFMT+:} false; then :
4499   $as_echo_n "(cached) " >&6
4500 else
4501   case "$MSGFMT" in
4502   [\\/]* | ?:[\\/]*)
4503     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4504     ;;
4505   *)
4506     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4507     for ac_dir in $PATH; do
4508       IFS="$ac_save_IFS"
4509       test -z "$ac_dir" && ac_dir=.
4510       for ac_exec_ext in '' $ac_executable_extensions; do
4511         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4512           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4513           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4514      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4515             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4516             break 2
4517           fi
4518         fi
4519       done
4520     done
4521     IFS="$ac_save_IFS"
4522   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4523     ;;
4524 esac
4525 fi
4526 MSGFMT="$ac_cv_path_MSGFMT"
4527 if test "$MSGFMT" != ":"; then
4528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4529 $as_echo "$MSGFMT" >&6; }
4530 else
4531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532 $as_echo "no" >&6; }
4533 fi
4534
4535   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4536 set dummy gmsgfmt; ac_word=$2
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; }
4539 if ${ac_cv_path_GMSGFMT+:} false; then :
4540   $as_echo_n "(cached) " >&6
4541 else
4542   case $GMSGFMT in
4543   [\\/]* | ?:[\\/]*)
4544   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4545   ;;
4546   *)
4547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH
4549 do
4550   IFS=$as_save_IFS
4551   test -z "$as_dir" && as_dir=.
4552     for ac_exec_ext in '' $ac_executable_extensions; do
4553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4556     break 2
4557   fi
4558 done
4559   done
4560 IFS=$as_save_IFS
4561
4562   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4563   ;;
4564 esac
4565 fi
4566 GMSGFMT=$ac_cv_path_GMSGFMT
4567 if test -n "$GMSGFMT"; then
4568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4569 $as_echo "$GMSGFMT" >&6; }
4570 else
4571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4573 fi
4574
4575
4576
4577     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4578     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4579     *) MSGFMT_015=$MSGFMT ;;
4580   esac
4581
4582   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4583     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4584     *) GMSGFMT_015=$GMSGFMT ;;
4585   esac
4586
4587
4588
4589 # Prepare PATH_SEPARATOR.
4590 # The user is always right.
4591 if test "${PATH_SEPARATOR+set}" != set; then
4592   echo "#! /bin/sh" >conf$$.sh
4593   echo  "exit 0"   >>conf$$.sh
4594   chmod +x conf$$.sh
4595   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4596     PATH_SEPARATOR=';'
4597   else
4598     PATH_SEPARATOR=:
4599   fi
4600   rm -f conf$$.sh
4601 fi
4602
4603 # Find out how to test for executable files. Don't use a zero-byte file,
4604 # as systems may use methods other than mode bits to determine executability.
4605 cat >conf$$.file <<_ASEOF
4606 #! /bin/sh
4607 exit 0
4608 _ASEOF
4609 chmod +x conf$$.file
4610 if test -x conf$$.file >/dev/null 2>&1; then
4611   ac_executable_p="test -x"
4612 else
4613   ac_executable_p="test -f"
4614 fi
4615 rm -f conf$$.file
4616
4617 # Extract the first word of "xgettext", so it can be a program name with args.
4618 set dummy xgettext; ac_word=$2
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4620 $as_echo_n "checking for $ac_word... " >&6; }
4621 if ${ac_cv_path_XGETTEXT+:} false; then :
4622   $as_echo_n "(cached) " >&6
4623 else
4624   case "$XGETTEXT" in
4625   [\\/]* | ?:[\\/]*)
4626     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4627     ;;
4628   *)
4629     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4630     for ac_dir in $PATH; do
4631       IFS="$ac_save_IFS"
4632       test -z "$ac_dir" && ac_dir=.
4633       for ac_exec_ext in '' $ac_executable_extensions; do
4634         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4635           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4636           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4637      (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
4638             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4639             break 2
4640           fi
4641         fi
4642       done
4643     done
4644     IFS="$ac_save_IFS"
4645   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4646     ;;
4647 esac
4648 fi
4649 XGETTEXT="$ac_cv_path_XGETTEXT"
4650 if test "$XGETTEXT" != ":"; then
4651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4652 $as_echo "$XGETTEXT" >&6; }
4653 else
4654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4655 $as_echo "no" >&6; }
4656 fi
4657
4658     rm -f messages.po
4659
4660     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4661     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4662     *) XGETTEXT_015=$XGETTEXT ;;
4663   esac
4664
4665
4666
4667 # Prepare PATH_SEPARATOR.
4668 # The user is always right.
4669 if test "${PATH_SEPARATOR+set}" != set; then
4670   echo "#! /bin/sh" >conf$$.sh
4671   echo  "exit 0"   >>conf$$.sh
4672   chmod +x conf$$.sh
4673   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4674     PATH_SEPARATOR=';'
4675   else
4676     PATH_SEPARATOR=:
4677   fi
4678   rm -f conf$$.sh
4679 fi
4680
4681 # Find out how to test for executable files. Don't use a zero-byte file,
4682 # as systems may use methods other than mode bits to determine executability.
4683 cat >conf$$.file <<_ASEOF
4684 #! /bin/sh
4685 exit 0
4686 _ASEOF
4687 chmod +x conf$$.file
4688 if test -x conf$$.file >/dev/null 2>&1; then
4689   ac_executable_p="test -x"
4690 else
4691   ac_executable_p="test -f"
4692 fi
4693 rm -f conf$$.file
4694
4695 # Extract the first word of "msgmerge", so it can be a program name with args.
4696 set dummy msgmerge; ac_word=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if ${ac_cv_path_MSGMERGE+:} false; then :
4700   $as_echo_n "(cached) " >&6
4701 else
4702   case "$MSGMERGE" in
4703   [\\/]* | ?:[\\/]*)
4704     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4705     ;;
4706   *)
4707     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4708     for ac_dir in $PATH; do
4709       IFS="$ac_save_IFS"
4710       test -z "$ac_dir" && ac_dir=.
4711       for ac_exec_ext in '' $ac_executable_extensions; do
4712         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4713           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4714           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4715             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4716             break 2
4717           fi
4718         fi
4719       done
4720     done
4721     IFS="$ac_save_IFS"
4722   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4723     ;;
4724 esac
4725 fi
4726 MSGMERGE="$ac_cv_path_MSGMERGE"
4727 if test "$MSGMERGE" != ":"; then
4728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4729 $as_echo "$MSGMERGE" >&6; }
4730 else
4731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4733 fi
4734
4735
4736         test -n "$localedir" || localedir='${datadir}/locale'
4737
4738
4739     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4740
4741
4742   ac_config_commands="$ac_config_commands po-directories"
4743
4744
4745 # Make sure we can run config.sub.
4746 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4747   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4748
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4750 $as_echo_n "checking build system type... " >&6; }
4751 if ${ac_cv_build+:} false; then :
4752   $as_echo_n "(cached) " >&6
4753 else
4754   ac_build_alias=$build_alias
4755 test "x$ac_build_alias" = x &&
4756   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4757 test "x$ac_build_alias" = x &&
4758   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4759 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4760   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4761
4762 fi
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4764 $as_echo "$ac_cv_build" >&6; }
4765 case $ac_cv_build in
4766 *-*-*) ;;
4767 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4768 esac
4769 build=$ac_cv_build
4770 ac_save_IFS=$IFS; IFS='-'
4771 set x $ac_cv_build
4772 shift
4773 build_cpu=$1
4774 build_vendor=$2
4775 shift; shift
4776 # Remember, the first character of IFS is used to create $*,
4777 # except with old shells:
4778 build_os=$*
4779 IFS=$ac_save_IFS
4780 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4781
4782
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4784 $as_echo_n "checking host system type... " >&6; }
4785 if ${ac_cv_host+:} false; then :
4786   $as_echo_n "(cached) " >&6
4787 else
4788   if test "x$host_alias" = x; then
4789   ac_cv_host=$ac_cv_build
4790 else
4791   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4792     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4793 fi
4794
4795 fi
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4797 $as_echo "$ac_cv_host" >&6; }
4798 case $ac_cv_host in
4799 *-*-*) ;;
4800 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4801 esac
4802 host=$ac_cv_host
4803 ac_save_IFS=$IFS; IFS='-'
4804 set x $ac_cv_host
4805 shift
4806 host_cpu=$1
4807 host_vendor=$2
4808 shift; shift
4809 # Remember, the first character of IFS is used to create $*,
4810 # except with old shells:
4811 host_os=$*
4812 IFS=$ac_save_IFS
4813 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4814
4815
4816
4817     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
4818 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
4819 if ${ac_cv_gnu_library_2+:} false; then :
4820   $as_echo_n "(cached) " >&6
4821 else
4822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h.  */
4824
4825 #include <features.h>
4826 #ifdef __GNU_LIBRARY__
4827  #if (__GLIBC__ >= 2)
4828   Lucky GNU user
4829  #endif
4830 #endif
4831
4832 _ACEOF
4833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4834   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
4835   ac_cv_gnu_library_2=yes
4836 else
4837   ac_cv_gnu_library_2=no
4838 fi
4839 rm -f conftest*
4840
4841
4842
4843 fi
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
4845 $as_echo "$ac_cv_gnu_library_2" >&6; }
4846
4847     GLIBC2="$ac_cv_gnu_library_2"
4848
4849
4850 if test -n "$ac_tool_prefix"; then
4851   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4852 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if ${ac_cv_prog_RANLIB+:} false; then :
4856   $as_echo_n "(cached) " >&6
4857 else
4858   if test -n "$RANLIB"; then
4859   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864   IFS=$as_save_IFS
4865   test -z "$as_dir" && as_dir=.
4866     for ac_exec_ext in '' $ac_executable_extensions; do
4867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870     break 2
4871   fi
4872 done
4873   done
4874 IFS=$as_save_IFS
4875
4876 fi
4877 fi
4878 RANLIB=$ac_cv_prog_RANLIB
4879 if test -n "$RANLIB"; then
4880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4881 $as_echo "$RANLIB" >&6; }
4882 else
4883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4885 fi
4886
4887
4888 fi
4889 if test -z "$ac_cv_prog_RANLIB"; then
4890   ac_ct_RANLIB=$RANLIB
4891   # Extract the first word of "ranlib", so it can be a program name with args.
4892 set dummy ranlib; ac_word=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4896   $as_echo_n "(cached) " >&6
4897 else
4898   if test -n "$ac_ct_RANLIB"; then
4899   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4900 else
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4903 do
4904   IFS=$as_save_IFS
4905   test -z "$as_dir" && as_dir=.
4906     for ac_exec_ext in '' $ac_executable_extensions; do
4907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4908     ac_cv_prog_ac_ct_RANLIB="ranlib"
4909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4910     break 2
4911   fi
4912 done
4913   done
4914 IFS=$as_save_IFS
4915
4916 fi
4917 fi
4918 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4919 if test -n "$ac_ct_RANLIB"; then
4920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4921 $as_echo "$ac_ct_RANLIB" >&6; }
4922 else
4923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924 $as_echo "no" >&6; }
4925 fi
4926
4927   if test "x$ac_ct_RANLIB" = x; then
4928     RANLIB=":"
4929   else
4930     case $cross_compiling:$ac_tool_warned in
4931 yes:)
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4934 ac_tool_warned=yes ;;
4935 esac
4936     RANLIB=$ac_ct_RANLIB
4937   fi
4938 else
4939   RANLIB="$ac_cv_prog_RANLIB"
4940 fi
4941
4942
4943
4944   CFLAG_VISIBILITY=
4945   HAVE_VISIBILITY=0
4946   if test -n "$GCC"; then
4947                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
4948 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
4949     if ${gl_cv_cc_vis_werror+:} false; then :
4950   $as_echo_n "(cached) " >&6
4951 else
4952
4953       gl_save_CFLAGS="$CFLAGS"
4954       CFLAGS="$CFLAGS -Werror"
4955       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h.  */
4957
4958 int
4959 main ()
4960 {
4961
4962   ;
4963   return 0;
4964 }
4965 _ACEOF
4966 if ac_fn_c_try_compile "$LINENO"; then :
4967   gl_cv_cc_vis_werror=yes
4968 else
4969   gl_cv_cc_vis_werror=no
4970 fi
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972       CFLAGS="$gl_save_CFLAGS"
4973 fi
4974
4975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
4976 $as_echo "$gl_cv_cc_vis_werror" >&6; }
4977         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
4978 $as_echo_n "checking for simple visibility declarations... " >&6; }
4979     if ${gl_cv_cc_visibility+:} false; then :
4980   $as_echo_n "(cached) " >&6
4981 else
4982
4983       gl_save_CFLAGS="$CFLAGS"
4984       CFLAGS="$CFLAGS -fvisibility=hidden"
4985                                     if test $gl_cv_cc_vis_werror = yes; then
4986         CFLAGS="$CFLAGS -Werror"
4987       fi
4988       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h.  */
4990 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
4991          extern __attribute__((__visibility__("default"))) int exportedvar;
4992          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
4993          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
4994          void dummyfunc (void) {}
4995 int
4996 main ()
4997 {
4998
4999   ;
5000   return 0;
5001 }
5002 _ACEOF
5003 if ac_fn_c_try_compile "$LINENO"; then :
5004   gl_cv_cc_visibility=yes
5005 else
5006   gl_cv_cc_visibility=no
5007 fi
5008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009       CFLAGS="$gl_save_CFLAGS"
5010 fi
5011
5012     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
5013 $as_echo "$gl_cv_cc_visibility" >&6; }
5014     if test $gl_cv_cc_visibility = yes; then
5015       CFLAG_VISIBILITY="-fvisibility=hidden"
5016       HAVE_VISIBILITY=1
5017     fi
5018   fi
5019
5020
5021
5022 cat >>confdefs.h <<_ACEOF
5023 #define HAVE_VISIBILITY $HAVE_VISIBILITY
5024 _ACEOF
5025
5026
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5028 $as_echo_n "checking for inline... " >&6; }
5029 if ${ac_cv_c_inline+:} false; then :
5030   $as_echo_n "(cached) " >&6
5031 else
5032   ac_cv_c_inline=no
5033 for ac_kw in inline __inline__ __inline; do
5034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035 /* end confdefs.h.  */
5036 #ifndef __cplusplus
5037 typedef int foo_t;
5038 static $ac_kw foo_t static_foo () {return 0; }
5039 $ac_kw foo_t foo () {return 0; }
5040 #endif
5041
5042 _ACEOF
5043 if ac_fn_c_try_compile "$LINENO"; then :
5044   ac_cv_c_inline=$ac_kw
5045 fi
5046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047   test "$ac_cv_c_inline" != no && break
5048 done
5049
5050 fi
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5052 $as_echo "$ac_cv_c_inline" >&6; }
5053
5054 case $ac_cv_c_inline in
5055   inline | yes) ;;
5056   *)
5057     case $ac_cv_c_inline in
5058       no) ac_val=;;
5059       *) ac_val=$ac_cv_c_inline;;
5060     esac
5061     cat >>confdefs.h <<_ACEOF
5062 #ifndef __cplusplus
5063 #define inline $ac_val
5064 #endif
5065 _ACEOF
5066     ;;
5067 esac
5068
5069 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5070 if test "x$ac_cv_type_size_t" = xyes; then :
5071
5072 else
5073
5074 cat >>confdefs.h <<_ACEOF
5075 #define size_t unsigned int
5076 _ACEOF
5077
5078 fi
5079
5080
5081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
5082 $as_echo_n "checking for stdint.h... " >&6; }
5083 if ${gl_cv_header_stdint_h+:} false; then :
5084   $as_echo_n "(cached) " >&6
5085 else
5086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h.  */
5088 #include <sys/types.h>
5089 #include <stdint.h>
5090 int
5091 main ()
5092 {
5093 uintmax_t i = (uintmax_t) -1; return !i;
5094   ;
5095   return 0;
5096 }
5097 _ACEOF
5098 if ac_fn_c_try_compile "$LINENO"; then :
5099   gl_cv_header_stdint_h=yes
5100 else
5101   gl_cv_header_stdint_h=no
5102 fi
5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5104 fi
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
5106 $as_echo "$gl_cv_header_stdint_h" >&6; }
5107   if test $gl_cv_header_stdint_h = yes; then
5108
5109 cat >>confdefs.h <<_ACEOF
5110 #define HAVE_STDINT_H_WITH_UINTMAX 1
5111 _ACEOF
5112
5113   fi
5114
5115 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5116 # for constant arguments.  Useless!
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5118 $as_echo_n "checking for working alloca.h... " >&6; }
5119 if ${ac_cv_working_alloca_h+:} false; then :
5120   $as_echo_n "(cached) " >&6
5121 else
5122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h.  */
5124 #include <alloca.h>
5125 int
5126 main ()
5127 {
5128 char *p = (char *) alloca (2 * sizeof (int));
5129                           if (p) return 0;
5130   ;
5131   return 0;
5132 }
5133 _ACEOF
5134 if ac_fn_c_try_link "$LINENO"; then :
5135   ac_cv_working_alloca_h=yes
5136 else
5137   ac_cv_working_alloca_h=no
5138 fi
5139 rm -f core conftest.err conftest.$ac_objext \
5140     conftest$ac_exeext conftest.$ac_ext
5141 fi
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5143 $as_echo "$ac_cv_working_alloca_h" >&6; }
5144 if test $ac_cv_working_alloca_h = yes; then
5145
5146 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5147
5148 fi
5149
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5151 $as_echo_n "checking for alloca... " >&6; }
5152 if ${ac_cv_func_alloca_works+:} false; then :
5153   $as_echo_n "(cached) " >&6
5154 else
5155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h.  */
5157 #ifdef __GNUC__
5158 # define alloca __builtin_alloca
5159 #else
5160 # ifdef _MSC_VER
5161 #  include <malloc.h>
5162 #  define alloca _alloca
5163 # else
5164 #  ifdef HAVE_ALLOCA_H
5165 #   include <alloca.h>
5166 #  else
5167 #   ifdef _AIX
5168  #pragma alloca
5169 #   else
5170 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5171 void *alloca (size_t);
5172 #    endif
5173 #   endif
5174 #  endif
5175 # endif
5176 #endif
5177
5178 int
5179 main ()
5180 {
5181 char *p = (char *) alloca (1);
5182                                     if (p) return 0;
5183   ;
5184   return 0;
5185 }
5186 _ACEOF
5187 if ac_fn_c_try_link "$LINENO"; then :
5188   ac_cv_func_alloca_works=yes
5189 else
5190   ac_cv_func_alloca_works=no
5191 fi
5192 rm -f core conftest.err conftest.$ac_objext \
5193     conftest$ac_exeext conftest.$ac_ext
5194 fi
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5196 $as_echo "$ac_cv_func_alloca_works" >&6; }
5197
5198 if test $ac_cv_func_alloca_works = yes; then
5199
5200 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5201
5202 else
5203   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5204 # that cause trouble.  Some versions do not even contain alloca or
5205 # contain a buggy version.  If you still want to use their alloca,
5206 # use ar to extract alloca.o from them instead of compiling alloca.c.
5207
5208 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5209
5210 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5211
5212
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5214 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5215 if ${ac_cv_os_cray+:} false; then :
5216   $as_echo_n "(cached) " >&6
5217 else
5218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h.  */
5220 #if defined CRAY && ! defined CRAY2
5221 webecray
5222 #else
5223 wenotbecray
5224 #endif
5225
5226 _ACEOF
5227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5228   $EGREP "webecray" >/dev/null 2>&1; then :
5229   ac_cv_os_cray=yes
5230 else
5231   ac_cv_os_cray=no
5232 fi
5233 rm -f conftest*
5234
5235 fi
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5237 $as_echo "$ac_cv_os_cray" >&6; }
5238 if test $ac_cv_os_cray = yes; then
5239   for ac_func in _getb67 GETB67 getb67; do
5240     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5241 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5242 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5243
5244 cat >>confdefs.h <<_ACEOF
5245 #define CRAY_STACKSEG_END $ac_func
5246 _ACEOF
5247
5248     break
5249 fi
5250
5251   done
5252 fi
5253
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5255 $as_echo_n "checking stack direction for C alloca... " >&6; }
5256 if ${ac_cv_c_stack_direction+:} false; then :
5257   $as_echo_n "(cached) " >&6
5258 else
5259   if test "$cross_compiling" = yes; then :
5260   ac_cv_c_stack_direction=0
5261 else
5262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h.  */
5264 $ac_includes_default
5265 int
5266 find_stack_direction ()
5267 {
5268   static char *addr = 0;
5269   auto char dummy;
5270   if (addr == 0)
5271     {
5272       addr = &dummy;
5273       return find_stack_direction ();
5274     }
5275   else
5276     return (&dummy > addr) ? 1 : -1;
5277 }
5278
5279 int
5280 main ()
5281 {
5282   return find_stack_direction () < 0;
5283 }
5284 _ACEOF
5285 if ac_fn_c_try_run "$LINENO"; then :
5286   ac_cv_c_stack_direction=1
5287 else
5288   ac_cv_c_stack_direction=-1
5289 fi
5290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5291   conftest.$ac_objext conftest.beam conftest.$ac_ext
5292 fi
5293
5294 fi
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5296 $as_echo "$ac_cv_c_stack_direction" >&6; }
5297 cat >>confdefs.h <<_ACEOF
5298 #define STACK_DIRECTION $ac_cv_c_stack_direction
5299 _ACEOF
5300
5301
5302 fi
5303
5304
5305
5306
5307   for ac_header in $ac_header_list
5308 do :
5309   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5310 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5311 "
5312 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5313   cat >>confdefs.h <<_ACEOF
5314 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5315 _ACEOF
5316
5317 fi
5318
5319 done
5320
5321
5322
5323
5324
5325
5326
5327
5328 for ac_func in getpagesize
5329 do :
5330   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
5331 if test "x$ac_cv_func_getpagesize" = xyes; then :
5332   cat >>confdefs.h <<_ACEOF
5333 #define HAVE_GETPAGESIZE 1
5334 _ACEOF
5335
5336 fi
5337 done
5338
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
5340 $as_echo_n "checking for working mmap... " >&6; }
5341 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
5342   $as_echo_n "(cached) " >&6
5343 else
5344   if test "$cross_compiling" = yes; then :
5345   ac_cv_func_mmap_fixed_mapped=no
5346 else
5347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h.  */
5349 $ac_includes_default
5350 /* malloc might have been renamed as rpl_malloc. */
5351 #undef malloc
5352
5353 /* Thanks to Mike Haertel and Jim Avera for this test.
5354    Here is a matrix of mmap possibilities:
5355         mmap private not fixed
5356         mmap private fixed at somewhere currently unmapped
5357         mmap private fixed at somewhere already mapped
5358         mmap shared not fixed
5359         mmap shared fixed at somewhere currently unmapped
5360         mmap shared fixed at somewhere already mapped
5361    For private mappings, we should verify that changes cannot be read()
5362    back from the file, nor mmap's back from the file at a different
5363    address.  (There have been systems where private was not correctly
5364    implemented like the infamous i386 svr4.0, and systems where the
5365    VM page cache was not coherent with the file system buffer cache
5366    like early versions of FreeBSD and possibly contemporary NetBSD.)
5367    For shared mappings, we should conversely verify that changes get
5368    propagated back to all the places they're supposed to be.
5369
5370    Grep wants private fixed already mapped.
5371    The main things grep needs to know about mmap are:
5372    * does it exist and is it safe to write into the mmap'd area
5373    * how to use it (BSD variants)  */
5374
5375 #include <fcntl.h>
5376 #include <sys/mman.h>
5377
5378 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
5379 char *malloc ();
5380 #endif
5381
5382 /* This mess was copied from the GNU getpagesize.h.  */
5383 #ifndef HAVE_GETPAGESIZE
5384 # ifdef _SC_PAGESIZE
5385 #  define getpagesize() sysconf(_SC_PAGESIZE)
5386 # else /* no _SC_PAGESIZE */
5387 #  ifdef HAVE_SYS_PARAM_H
5388 #   include <sys/param.h>
5389 #   ifdef EXEC_PAGESIZE
5390 #    define getpagesize() EXEC_PAGESIZE
5391 #   else /* no EXEC_PAGESIZE */
5392 #    ifdef NBPG
5393 #     define getpagesize() NBPG * CLSIZE
5394 #     ifndef CLSIZE
5395 #      define CLSIZE 1
5396 #     endif /* no CLSIZE */
5397 #    else /* no NBPG */
5398 #     ifdef NBPC
5399 #      define getpagesize() NBPC
5400 #     else /* no NBPC */
5401 #      ifdef PAGESIZE
5402 #       define getpagesize() PAGESIZE
5403 #      endif /* PAGESIZE */
5404 #     endif /* no NBPC */
5405 #    endif /* no NBPG */
5406 #   endif /* no EXEC_PAGESIZE */
5407 #  else /* no HAVE_SYS_PARAM_H */
5408 #   define getpagesize() 8192   /* punt totally */
5409 #  endif /* no HAVE_SYS_PARAM_H */
5410 # endif /* no _SC_PAGESIZE */
5411
5412 #endif /* no HAVE_GETPAGESIZE */
5413
5414 int
5415 main ()
5416 {
5417   char *data, *data2, *data3;
5418   const char *cdata2;
5419   int i, pagesize;
5420   int fd, fd2;
5421
5422   pagesize = getpagesize ();
5423
5424   /* First, make a file with some known garbage in it. */
5425   data = (char *) malloc (pagesize);
5426   if (!data)
5427     return 1;
5428   for (i = 0; i < pagesize; ++i)
5429     *(data + i) = rand ();
5430   umask (0);
5431   fd = creat ("conftest.mmap", 0600);
5432   if (fd < 0)
5433     return 2;
5434   if (write (fd, data, pagesize) != pagesize)
5435     return 3;
5436   close (fd);
5437
5438   /* Next, check that the tail of a page is zero-filled.  File must have
5439      non-zero length, otherwise we risk SIGBUS for entire page.  */
5440   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
5441   if (fd2 < 0)
5442     return 4;
5443   cdata2 = "";
5444   if (write (fd2, cdata2, 1) != 1)
5445     return 5;
5446   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
5447   if (data2 == MAP_FAILED)
5448     return 6;
5449   for (i = 0; i < pagesize; ++i)
5450     if (*(data2 + i))
5451       return 7;
5452   close (fd2);
5453   if (munmap (data2, pagesize))
5454     return 8;
5455
5456   /* Next, try to mmap the file at a fixed address which already has
5457      something else allocated at it.  If we can, also make sure that
5458      we see the same garbage.  */
5459   fd = open ("conftest.mmap", O_RDWR);
5460   if (fd < 0)
5461     return 9;
5462   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5463                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
5464     return 10;
5465   for (i = 0; i < pagesize; ++i)
5466     if (*(data + i) != *(data2 + i))
5467       return 11;
5468
5469   /* Finally, make sure that changes to the mapped area do not
5470      percolate back to the file as seen by read().  (This is a bug on
5471      some variants of i386 svr4.0.)  */
5472   for (i = 0; i < pagesize; ++i)
5473     *(data2 + i) = *(data2 + i) + 1;
5474   data3 = (char *) malloc (pagesize);
5475   if (!data3)
5476     return 12;
5477   if (read (fd, data3, pagesize) != pagesize)
5478     return 13;
5479   for (i = 0; i < pagesize; ++i)
5480     if (*(data + i) != *(data3 + i))
5481       return 14;
5482   close (fd);
5483   return 0;
5484 }
5485 _ACEOF
5486 if ac_fn_c_try_run "$LINENO"; then :
5487   ac_cv_func_mmap_fixed_mapped=yes
5488 else
5489   ac_cv_func_mmap_fixed_mapped=no
5490 fi
5491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5492   conftest.$ac_objext conftest.beam conftest.$ac_ext
5493 fi
5494
5495 fi
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
5497 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5498 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5499
5500 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
5501
5502 fi
5503 rm -f conftest.mmap conftest.txt
5504
5505
5506
5507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
5508 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
5509 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
5510   $as_echo_n "(cached) " >&6
5511 else
5512
5513       gt_cv_int_divbyzero_sigfpe=
5514       case "$host_os" in
5515         macos* | darwin[6-9]* | darwin[1-9][0-9]*)
5516           # On MacOS X 10.2 or newer, just assume the same as when cross-
5517           # compiling. If we were to perform the real test, 1 Crash Report
5518           # dialog window would pop up.
5519           case "$host_cpu" in
5520             i[34567]86 | x86_64)
5521               gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
5522           esac
5523           ;;
5524       esac
5525       if test -z "$gt_cv_int_divbyzero_sigfpe"; then
5526         if test "$cross_compiling" = yes; then :
5527
5528             # Guess based on the CPU.
5529             case "$host_cpu" in
5530               alpha* | i[34567]86 | x86_64 | m68k | s390*)
5531                 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5532               *)
5533                 gt_cv_int_divbyzero_sigfpe="guessing no";;
5534             esac
5535
5536 else
5537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h.  */
5539
5540 #include <stdlib.h>
5541 #include <signal.h>
5542
5543 static void
5544 sigfpe_handler (int sig)
5545 {
5546   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
5547   exit (sig != SIGFPE);
5548 }
5549
5550 int x = 1;
5551 int y = 0;
5552 int z;
5553 int nan;
5554
5555 int main ()
5556 {
5557   signal (SIGFPE, sigfpe_handler);
5558 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
5559 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5560   signal (SIGTRAP, sigfpe_handler);
5561 #endif
5562 /* Linux/SPARC yields signal SIGILL.  */
5563 #if defined (__sparc__) && defined (__linux__)
5564   signal (SIGILL, sigfpe_handler);
5565 #endif
5566
5567   z = x / y;
5568   nan = y / y;
5569   exit (1);
5570 }
5571
5572 _ACEOF
5573 if ac_fn_c_try_run "$LINENO"; then :
5574   gt_cv_int_divbyzero_sigfpe=yes
5575 else
5576   gt_cv_int_divbyzero_sigfpe=no
5577 fi
5578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5579   conftest.$ac_objext conftest.beam conftest.$ac_ext
5580 fi
5581
5582       fi
5583
5584 fi
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
5586 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
5587   case "$gt_cv_int_divbyzero_sigfpe" in
5588     *yes) value=1;;
5589     *) value=0;;
5590   esac
5591
5592 cat >>confdefs.h <<_ACEOF
5593 #define INTDIV0_RAISES_SIGFPE $value
5594 _ACEOF
5595
5596
5597
5598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
5599 $as_echo_n "checking for inttypes.h... " >&6; }
5600 if ${gl_cv_header_inttypes_h+:} false; then :
5601   $as_echo_n "(cached) " >&6
5602 else
5603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604 /* end confdefs.h.  */
5605 #include <sys/types.h>
5606 #include <inttypes.h>
5607 int
5608 main ()
5609 {
5610 uintmax_t i = (uintmax_t) -1; return !i;
5611   ;
5612   return 0;
5613 }
5614 _ACEOF
5615 if ac_fn_c_try_compile "$LINENO"; then :
5616   gl_cv_header_inttypes_h=yes
5617 else
5618   gl_cv_header_inttypes_h=no
5619 fi
5620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621 fi
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
5623 $as_echo "$gl_cv_header_inttypes_h" >&6; }
5624   if test $gl_cv_header_inttypes_h = yes; then
5625
5626 cat >>confdefs.h <<_ACEOF
5627 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5628 _ACEOF
5629
5630   fi
5631
5632
5633   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5634 $as_echo_n "checking for unsigned long long int... " >&6; }
5635 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
5636   $as_echo_n "(cached) " >&6
5637 else
5638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h.  */
5640
5641   /* For now, do not test the preprocessor; as of 2007 there are too many
5642          implementations with broken preprocessors.  Perhaps this can
5643          be revisited in 2012.  In the meantime, code should not expect
5644          #if to work with literals wider than 32 bits.  */
5645       /* Test literals.  */
5646       long long int ll = 9223372036854775807ll;
5647       long long int nll = -9223372036854775807LL;
5648       unsigned long long int ull = 18446744073709551615ULL;
5649       /* Test constant expressions.   */
5650       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5651                      ? 1 : -1)];
5652       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5653                      ? 1 : -1)];
5654       int i = 63;
5655 int
5656 main ()
5657 {
5658 /* Test availability of runtime routines for shift and division.  */
5659       long long int llmax = 9223372036854775807ll;
5660       unsigned long long int ullmax = 18446744073709551615ull;
5661       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5662               | (llmax / ll) | (llmax % ll)
5663               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5664               | (ullmax / ull) | (ullmax % ull));
5665   ;
5666   return 0;
5667 }
5668
5669 _ACEOF
5670 if ac_fn_c_try_link "$LINENO"; then :
5671   ac_cv_type_unsigned_long_long_int=yes
5672 else
5673   ac_cv_type_unsigned_long_long_int=no
5674 fi
5675 rm -f core conftest.err conftest.$ac_objext \
5676     conftest$ac_exeext conftest.$ac_ext
5677 fi
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5679 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5680   if test $ac_cv_type_unsigned_long_long_int = yes; then
5681
5682 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5683
5684   fi
5685
5686
5687
5688
5689   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
5690
5691     test $ac_cv_type_unsigned_long_long_int = yes \
5692       && ac_type='unsigned long long' \
5693       || ac_type='unsigned long'
5694
5695 cat >>confdefs.h <<_ACEOF
5696 #define uintmax_t $ac_type
5697 _ACEOF
5698
5699   else
5700
5701 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
5702
5703   fi
5704
5705
5706   for ac_header in inttypes.h
5707 do :
5708   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5709 if test "x$ac_cv_header_inttypes_h" = xyes; then :
5710   cat >>confdefs.h <<_ACEOF
5711 #define HAVE_INTTYPES_H 1
5712 _ACEOF
5713
5714 fi
5715
5716 done
5717
5718   if test $ac_cv_header_inttypes_h = yes; then
5719     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
5720 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
5721 if ${gt_cv_inttypes_pri_broken+:} false; then :
5722   $as_echo_n "(cached) " >&6
5723 else
5724
5725         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h.  */
5727 #include <inttypes.h>
5728 #ifdef PRId32
5729 char *p = PRId32;
5730 #endif
5731
5732 int
5733 main ()
5734 {
5735
5736   ;
5737   return 0;
5738 }
5739 _ACEOF
5740 if ac_fn_c_try_compile "$LINENO"; then :
5741   gt_cv_inttypes_pri_broken=no
5742 else
5743   gt_cv_inttypes_pri_broken=yes
5744 fi
5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746
5747 fi
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
5749 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
5750   fi
5751   if test "$gt_cv_inttypes_pri_broken" = yes; then
5752
5753 cat >>confdefs.h <<_ACEOF
5754 #define PRI_MACROS_BROKEN 1
5755 _ACEOF
5756
5757     PRI_MACROS_BROKEN=1
5758   else
5759     PRI_MACROS_BROKEN=0
5760   fi
5761
5762
5763
5764
5765
5766
5767
5768   # Check whether --enable-threads was given.
5769 if test "${enable_threads+set}" = set; then :
5770   enableval=$enable_threads; gl_use_threads=$enableval
5771 else
5772   if test -n "$gl_use_threads_default"; then
5773        gl_use_threads="$gl_use_threads_default"
5774      else
5775        case "$host_os" in
5776                                                                osf*) gl_use_threads=no ;;
5777          cygwin*)
5778                case `uname -r` in
5779                  1.[0-5].*) gl_use_threads=no ;;
5780                  *)         gl_use_threads=yes ;;
5781                esac
5782                ;;
5783          *)    gl_use_threads=yes ;;
5784        esac
5785      fi
5786
5787 fi
5788
5789   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5790     # For using <pthread.h>:
5791     case "$host_os" in
5792       osf*)
5793         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
5794         # groks <pthread.h>. cc also understands the flag -pthread, but
5795         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
5796         # 2. putting a flag into CPPFLAGS that has an effect on the linker
5797         # causes the AC_TRY_LINK test below to succeed unexpectedly,
5798         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
5799         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5800         ;;
5801     esac
5802     # Some systems optimize for single-threaded programs by default, and
5803     # need special flags to disable these optimizations. For example, the
5804     # definition of 'errno' in <errno.h>.
5805     case "$host_os" in
5806       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
5807       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
5808     esac
5809   fi
5810
5811
5812
5813
5814
5815       if test "X$prefix" = "XNONE"; then
5816     acl_final_prefix="$ac_default_prefix"
5817   else
5818     acl_final_prefix="$prefix"
5819   fi
5820   if test "X$exec_prefix" = "XNONE"; then
5821     acl_final_exec_prefix='${prefix}'
5822   else
5823     acl_final_exec_prefix="$exec_prefix"
5824   fi
5825   acl_save_prefix="$prefix"
5826   prefix="$acl_final_prefix"
5827   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5828   prefix="$acl_save_prefix"
5829
5830
5831 # Check whether --with-gnu-ld was given.
5832 if test "${with_gnu_ld+set}" = set; then :
5833   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5834 else
5835   with_gnu_ld=no
5836 fi
5837
5838 # Prepare PATH_SEPARATOR.
5839 # The user is always right.
5840 if test "${PATH_SEPARATOR+set}" != set; then
5841   echo "#! /bin/sh" >conf$$.sh
5842   echo  "exit 0"   >>conf$$.sh
5843   chmod +x conf$$.sh
5844   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5845     PATH_SEPARATOR=';'
5846   else
5847     PATH_SEPARATOR=:
5848   fi
5849   rm -f conf$$.sh
5850 fi
5851 ac_prog=ld
5852 if test "$GCC" = yes; then
5853   # Check if gcc -print-prog-name=ld gives a path.
5854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5855 $as_echo_n "checking for ld used by GCC... " >&6; }
5856   case $host in
5857   *-*-mingw*)
5858     # gcc leaves a trailing carriage return which upsets mingw
5859     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5860   *)
5861     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5862   esac
5863   case $ac_prog in
5864     # Accept absolute paths.
5865     [\\/]* | [A-Za-z]:[\\/]*)
5866       re_direlt='/[^/][^/]*/\.\./'
5867       # Canonicalize the path of ld
5868       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5869       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5870         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5871       done
5872       test -z "$LD" && LD="$ac_prog"
5873       ;;
5874   "")
5875     # If it fails, then pretend we aren't using GCC.
5876     ac_prog=ld
5877     ;;
5878   *)
5879     # If it is relative, then search for the first ld in PATH.
5880     with_gnu_ld=unknown
5881     ;;
5882   esac
5883 elif test "$with_gnu_ld" = yes; then
5884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5885 $as_echo_n "checking for GNU ld... " >&6; }
5886 else
5887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5888 $as_echo_n "checking for non-GNU ld... " >&6; }
5889 fi
5890 if ${acl_cv_path_LD+:} false; then :
5891   $as_echo_n "(cached) " >&6
5892 else
5893   if test -z "$LD"; then
5894   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5895   for ac_dir in $PATH; do
5896     test -z "$ac_dir" && ac_dir=.
5897     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5898       acl_cv_path_LD="$ac_dir/$ac_prog"
5899       # Check to see if the program is GNU ld.  I'd rather use --version,
5900       # but apparently some GNU ld's only accept -v.
5901       # Break only if it was the GNU/non-GNU ld that we prefer.
5902       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5903       *GNU* | *'with BFD'*)
5904         test "$with_gnu_ld" != no && break ;;
5905       *)
5906         test "$with_gnu_ld" != yes && break ;;
5907       esac
5908     fi
5909   done
5910   IFS="$ac_save_ifs"
5911 else
5912   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5913 fi
5914 fi
5915
5916 LD="$acl_cv_path_LD"
5917 if test -n "$LD"; then
5918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5919 $as_echo "$LD" >&6; }
5920 else
5921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5923 fi
5924 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5926 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5927 if ${acl_cv_prog_gnu_ld+:} false; then :
5928   $as_echo_n "(cached) " >&6
5929 else
5930   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5931 case `$LD -v 2>&1 </dev/null` in
5932 *GNU* | *'with BFD'*)
5933   acl_cv_prog_gnu_ld=yes ;;
5934 *)
5935   acl_cv_prog_gnu_ld=no ;;
5936 esac
5937 fi
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5939 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5940 with_gnu_ld=$acl_cv_prog_gnu_ld
5941
5942
5943
5944
5945                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5946 $as_echo_n "checking for shared library run path origin... " >&6; }
5947 if ${acl_cv_rpath+:} false; then :
5948   $as_echo_n "(cached) " >&6
5949 else
5950
5951     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5952     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5953     . ./conftest.sh
5954     rm -f ./conftest.sh
5955     acl_cv_rpath=done
5956
5957 fi
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5959 $as_echo "$acl_cv_rpath" >&6; }
5960   wl="$acl_cv_wl"
5961   acl_libext="$acl_cv_libext"
5962   acl_shlibext="$acl_cv_shlibext"
5963   acl_libname_spec="$acl_cv_libname_spec"
5964   acl_library_names_spec="$acl_cv_library_names_spec"
5965   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5966   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5967   acl_hardcode_direct="$acl_cv_hardcode_direct"
5968   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5969     # Check whether --enable-rpath was given.
5970 if test "${enable_rpath+set}" = set; then :
5971   enableval=$enable_rpath; :
5972 else
5973   enable_rpath=yes
5974 fi
5975
5976
5977
5978
5979   acl_libdirstem=lib
5980   acl_libdirstem2=
5981   case "$host_os" in
5982     solaris*)
5983                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5984 $as_echo_n "checking for 64-bit host... " >&6; }
5985 if ${gl_cv_solaris_64bit+:} false; then :
5986   $as_echo_n "(cached) " >&6
5987 else
5988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989 /* end confdefs.h.  */
5990
5991 #ifdef _LP64
5992 sixtyfour bits
5993 #endif
5994
5995 _ACEOF
5996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5997   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5998   gl_cv_solaris_64bit=yes
5999 else
6000   gl_cv_solaris_64bit=no
6001 fi
6002 rm -f conftest*
6003
6004
6005 fi
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6007 $as_echo "$gl_cv_solaris_64bit" >&6; }
6008       if test $gl_cv_solaris_64bit = yes; then
6009         acl_libdirstem=lib/64
6010         case "$host_cpu" in
6011           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
6012           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6013         esac
6014       fi
6015       ;;
6016     *)
6017       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6018       if test -n "$searchpath"; then
6019         acl_save_IFS="${IFS=    }"; IFS=":"
6020         for searchdir in $searchpath; do
6021           if test -d "$searchdir"; then
6022             case "$searchdir" in
6023               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6024               */../ | */.. )
6025                 # Better ignore directories of this form. They are misleading.
6026                 ;;
6027               *) searchdir=`cd "$searchdir" && pwd`
6028                  case "$searchdir" in
6029                    */lib64 ) acl_libdirstem=lib64 ;;
6030                  esac ;;
6031             esac
6032           fi
6033         done
6034         IFS="$acl_save_IFS"
6035       fi
6036       ;;
6037   esac
6038   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6039
6040
6041
6042   gl_threads_api=none
6043   LIBTHREAD=
6044   LTLIBTHREAD=
6045   LIBMULTITHREAD=
6046   LTLIBMULTITHREAD=
6047   if test "$gl_use_threads" != no; then
6048         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
6049 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
6050 if ${gl_cv_have_weak+:} false; then :
6051   $as_echo_n "(cached) " >&6
6052 else
6053   gl_cv_have_weak=no
6054               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h.  */
6056 extern void xyzzy ();
6057 #pragma weak xyzzy
6058 int
6059 main ()
6060 {
6061 xyzzy();
6062   ;
6063   return 0;
6064 }
6065 _ACEOF
6066 if ac_fn_c_try_link "$LINENO"; then :
6067   gl_cv_have_weak=maybe
6068 fi
6069 rm -f core conftest.err conftest.$ac_objext \
6070     conftest$ac_exeext conftest.$ac_ext
6071        if test $gl_cv_have_weak = maybe; then
6072                            if test "$cross_compiling" = yes; then :
6073                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h.  */
6075 #ifdef __ELF__
6076                Extensible Linking Format
6077                #endif
6078
6079 _ACEOF
6080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6081   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
6082   gl_cv_have_weak="guessing yes"
6083 else
6084   gl_cv_have_weak="guessing no"
6085 fi
6086 rm -f conftest*
6087
6088
6089 else
6090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h.  */
6092
6093 #include <stdio.h>
6094 #pragma weak fputs
6095 int main ()
6096 {
6097   return (fputs == NULL);
6098 }
6099 _ACEOF
6100 if ac_fn_c_try_run "$LINENO"; then :
6101   gl_cv_have_weak=yes
6102 else
6103   gl_cv_have_weak=no
6104 fi
6105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6106   conftest.$ac_objext conftest.beam conftest.$ac_ext
6107 fi
6108
6109        fi
6110
6111 fi
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
6113 $as_echo "$gl_cv_have_weak" >&6; }
6114     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6115       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
6116       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
6117       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6118 if test "x$ac_cv_header_pthread_h" = xyes; then :
6119   gl_have_pthread_h=yes
6120 else
6121   gl_have_pthread_h=no
6122 fi
6123
6124
6125       if test "$gl_have_pthread_h" = yes; then
6126         # Other possible tests:
6127         #   -lpthreads (FSU threads, PCthreads)
6128         #   -lgthreads
6129         gl_have_pthread=
6130         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
6131         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
6132         # the second one only in libpthread, and lock.c needs it.
6133         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h.  */
6135 #include <pthread.h>
6136 int
6137 main ()
6138 {
6139 pthread_mutex_lock((pthread_mutex_t*)0);
6140            pthread_mutexattr_init((pthread_mutexattr_t*)0);
6141   ;
6142   return 0;
6143 }
6144 _ACEOF
6145 if ac_fn_c_try_link "$LINENO"; then :
6146   gl_have_pthread=yes
6147 fi
6148 rm -f core conftest.err conftest.$ac_objext \
6149     conftest$ac_exeext conftest.$ac_ext
6150         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
6151         # since it is defined as a macro on OSF/1.)
6152         if test -n "$gl_have_pthread"; then
6153           # The program links fine without libpthread. But it may actually
6154           # need to link with libpthread in order to create multiple threads.
6155           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
6156 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
6157 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
6158   $as_echo_n "(cached) " >&6
6159 else
6160   ac_check_lib_save_LIBS=$LIBS
6161 LIBS="-lpthread  $LIBS"
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h.  */
6164
6165 /* Override any GCC internal prototype to avoid an error.
6166    Use char because int might match the return type of a GCC
6167    builtin and then its argument prototype would still apply.  */
6168 #ifdef __cplusplus
6169 extern "C"
6170 #endif
6171 char pthread_kill ();
6172 int
6173 main ()
6174 {
6175 return pthread_kill ();
6176   ;
6177   return 0;
6178 }
6179 _ACEOF
6180 if ac_fn_c_try_link "$LINENO"; then :
6181   ac_cv_lib_pthread_pthread_kill=yes
6182 else
6183   ac_cv_lib_pthread_pthread_kill=no
6184 fi
6185 rm -f core conftest.err conftest.$ac_objext \
6186     conftest$ac_exeext conftest.$ac_ext
6187 LIBS=$ac_check_lib_save_LIBS
6188 fi
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
6190 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
6191 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
6192   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6193              # On Solaris and HP-UX, most pthread functions exist also in libc.
6194              # Therefore pthread_in_use() needs to actually try to create a
6195              # thread: pthread_create from libc will fail, whereas
6196              # pthread_create will actually create a thread.
6197              case "$host_os" in
6198                solaris* | hpux*)
6199
6200 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
6201
6202              esac
6203
6204 fi
6205
6206         else
6207           # Some library is needed. Try libpthread and libc_r.
6208           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
6209 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
6210 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
6211   $as_echo_n "(cached) " >&6
6212 else
6213   ac_check_lib_save_LIBS=$LIBS
6214 LIBS="-lpthread  $LIBS"
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h.  */
6217
6218 /* Override any GCC internal prototype to avoid an error.
6219    Use char because int might match the return type of a GCC
6220    builtin and then its argument prototype would still apply.  */
6221 #ifdef __cplusplus
6222 extern "C"
6223 #endif
6224 char pthread_kill ();
6225 int
6226 main ()
6227 {
6228 return pthread_kill ();
6229   ;
6230   return 0;
6231 }
6232 _ACEOF
6233 if ac_fn_c_try_link "$LINENO"; then :
6234   ac_cv_lib_pthread_pthread_kill=yes
6235 else
6236   ac_cv_lib_pthread_pthread_kill=no
6237 fi
6238 rm -f core conftest.err conftest.$ac_objext \
6239     conftest$ac_exeext conftest.$ac_ext
6240 LIBS=$ac_check_lib_save_LIBS
6241 fi
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
6243 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
6244 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
6245   gl_have_pthread=yes
6246              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
6247              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
6248 fi
6249
6250           if test -z "$gl_have_pthread"; then
6251             # For FreeBSD 4.
6252             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
6253 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
6254 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
6255   $as_echo_n "(cached) " >&6
6256 else
6257   ac_check_lib_save_LIBS=$LIBS
6258 LIBS="-lc_r  $LIBS"
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h.  */
6261
6262 /* Override any GCC internal prototype to avoid an error.
6263    Use char because int might match the return type of a GCC
6264    builtin and then its argument prototype would still apply.  */
6265 #ifdef __cplusplus
6266 extern "C"
6267 #endif
6268 char pthread_kill ();
6269 int
6270 main ()
6271 {
6272 return pthread_kill ();
6273   ;
6274   return 0;
6275 }
6276 _ACEOF
6277 if ac_fn_c_try_link "$LINENO"; then :
6278   ac_cv_lib_c_r_pthread_kill=yes
6279 else
6280   ac_cv_lib_c_r_pthread_kill=no
6281 fi
6282 rm -f core conftest.err conftest.$ac_objext \
6283     conftest$ac_exeext conftest.$ac_ext
6284 LIBS=$ac_check_lib_save_LIBS
6285 fi
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
6287 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
6288 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
6289   gl_have_pthread=yes
6290                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
6291                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
6292 fi
6293
6294           fi
6295         fi
6296         if test -n "$gl_have_pthread"; then
6297           gl_threads_api=posix
6298
6299 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
6300
6301           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
6302             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6303
6304 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
6305
6306               LIBTHREAD=
6307               LTLIBTHREAD=
6308             fi
6309           fi
6310         fi
6311       fi
6312     fi
6313     if test -z "$gl_have_pthread"; then
6314       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
6315         gl_have_solaristhread=
6316         gl_save_LIBS="$LIBS"
6317         LIBS="$LIBS -lthread"
6318         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h.  */
6320 #include <thread.h>
6321 #include <synch.h>
6322 int
6323 main ()
6324 {
6325 thr_self();
6326   ;
6327   return 0;
6328 }
6329 _ACEOF
6330 if ac_fn_c_try_link "$LINENO"; then :
6331   gl_have_solaristhread=yes
6332 fi
6333 rm -f core conftest.err conftest.$ac_objext \
6334     conftest$ac_exeext conftest.$ac_ext
6335         LIBS="$gl_save_LIBS"
6336         if test -n "$gl_have_solaristhread"; then
6337           gl_threads_api=solaris
6338           LIBTHREAD=-lthread
6339           LTLIBTHREAD=-lthread
6340           LIBMULTITHREAD="$LIBTHREAD"
6341           LTLIBMULTITHREAD="$LTLIBTHREAD"
6342
6343 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
6344
6345           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6346
6347 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
6348
6349             LIBTHREAD=
6350             LTLIBTHREAD=
6351           fi
6352         fi
6353       fi
6354     fi
6355     if test "$gl_use_threads" = pth; then
6356       gl_save_CPPFLAGS="$CPPFLAGS"
6357
6358
6359
6360
6361
6362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
6363 $as_echo_n "checking how to link with libpth... " >&6; }
6364 if ${ac_cv_libpth_libs+:} false; then :
6365   $as_echo_n "(cached) " >&6
6366 else
6367
6368
6369
6370
6371
6372
6373
6374
6375     use_additional=yes
6376
6377   acl_save_prefix="$prefix"
6378   prefix="$acl_final_prefix"
6379   acl_save_exec_prefix="$exec_prefix"
6380   exec_prefix="$acl_final_exec_prefix"
6381
6382     eval additional_includedir=\"$includedir\"
6383     eval additional_libdir=\"$libdir\"
6384
6385   exec_prefix="$acl_save_exec_prefix"
6386   prefix="$acl_save_prefix"
6387
6388
6389 # Check whether --with-libpth-prefix was given.
6390 if test "${with_libpth_prefix+set}" = set; then :
6391   withval=$with_libpth_prefix;
6392     if test "X$withval" = "Xno"; then
6393       use_additional=no
6394     else
6395       if test "X$withval" = "X"; then
6396
6397   acl_save_prefix="$prefix"
6398   prefix="$acl_final_prefix"
6399   acl_save_exec_prefix="$exec_prefix"
6400   exec_prefix="$acl_final_exec_prefix"
6401
6402           eval additional_includedir=\"$includedir\"
6403           eval additional_libdir=\"$libdir\"
6404
6405   exec_prefix="$acl_save_exec_prefix"
6406   prefix="$acl_save_prefix"
6407
6408       else
6409         additional_includedir="$withval/include"
6410         additional_libdir="$withval/$acl_libdirstem"
6411         if test "$acl_libdirstem2" != "$acl_libdirstem" \
6412            && ! test -d "$withval/$acl_libdirstem"; then
6413           additional_libdir="$withval/$acl_libdirstem2"
6414         fi
6415       fi
6416     fi
6417
6418 fi
6419
6420       LIBPTH=
6421   LTLIBPTH=
6422   INCPTH=
6423   LIBPTH_PREFIX=
6424       HAVE_LIBPTH=
6425   rpathdirs=
6426   ltrpathdirs=
6427   names_already_handled=
6428   names_next_round='pth '
6429   while test -n "$names_next_round"; do
6430     names_this_round="$names_next_round"
6431     names_next_round=
6432     for name in $names_this_round; do
6433       already_handled=
6434       for n in $names_already_handled; do
6435         if test "$n" = "$name"; then
6436           already_handled=yes
6437           break
6438         fi
6439       done
6440       if test -z "$already_handled"; then
6441         names_already_handled="$names_already_handled $name"
6442                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6443         eval value=\"\$HAVE_LIB$uppername\"
6444         if test -n "$value"; then
6445           if test "$value" = yes; then
6446             eval value=\"\$LIB$uppername\"
6447             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
6448             eval value=\"\$LTLIB$uppername\"
6449             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
6450           else
6451                                     :
6452           fi
6453         else
6454                               found_dir=
6455           found_la=
6456           found_so=
6457           found_a=
6458           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6459           if test -n "$acl_shlibext"; then
6460             shrext=".$acl_shlibext"             # typically: shrext=.so
6461           else
6462             shrext=
6463           fi
6464           if test $use_additional = yes; then
6465             dir="$additional_libdir"
6466                                     if test -n "$acl_shlibext"; then
6467               if test -f "$dir/$libname$shrext"; then
6468                 found_dir="$dir"
6469                 found_so="$dir/$libname$shrext"
6470               else
6471                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6472                   ver=`(cd "$dir" && \
6473                         for f in "$libname$shrext".*; do echo "$f"; done \
6474                         | sed -e "s,^$libname$shrext\\\\.,," \
6475                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6476                         | sed 1q ) 2>/dev/null`
6477                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6478                     found_dir="$dir"
6479                     found_so="$dir/$libname$shrext.$ver"
6480                   fi
6481                 else
6482                   eval library_names=\"$acl_library_names_spec\"
6483                   for f in $library_names; do
6484                     if test -f "$dir/$f"; then
6485                       found_dir="$dir"
6486                       found_so="$dir/$f"
6487                       break
6488                     fi
6489                   done
6490                 fi
6491               fi
6492             fi
6493                         if test "X$found_dir" = "X"; then
6494               if test -f "$dir/$libname.$acl_libext"; then
6495                 found_dir="$dir"
6496                 found_a="$dir/$libname.$acl_libext"
6497               fi
6498             fi
6499             if test "X$found_dir" != "X"; then
6500               if test -f "$dir/$libname.la"; then
6501                 found_la="$dir/$libname.la"
6502               fi
6503             fi
6504           fi
6505           if test "X$found_dir" = "X"; then
6506             for x in $LDFLAGS $LTLIBPTH; do
6507
6508   acl_save_prefix="$prefix"
6509   prefix="$acl_final_prefix"
6510   acl_save_exec_prefix="$exec_prefix"
6511   exec_prefix="$acl_final_exec_prefix"
6512   eval x=\"$x\"
6513   exec_prefix="$acl_save_exec_prefix"
6514   prefix="$acl_save_prefix"
6515
6516               case "$x" in
6517                 -L*)
6518                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6519                                     if test -n "$acl_shlibext"; then
6520                     if test -f "$dir/$libname$shrext"; then
6521                       found_dir="$dir"
6522                       found_so="$dir/$libname$shrext"
6523                     else
6524                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6525                         ver=`(cd "$dir" && \
6526                               for f in "$libname$shrext".*; do echo "$f"; done \
6527                               | sed -e "s,^$libname$shrext\\\\.,," \
6528                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6529                               | sed 1q ) 2>/dev/null`
6530                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6531                           found_dir="$dir"
6532                           found_so="$dir/$libname$shrext.$ver"
6533                         fi
6534                       else
6535                         eval library_names=\"$acl_library_names_spec\"
6536                         for f in $library_names; do
6537                           if test -f "$dir/$f"; then
6538                             found_dir="$dir"
6539                             found_so="$dir/$f"
6540                             break
6541                           fi
6542                         done
6543                       fi
6544                     fi
6545                   fi
6546                                     if test "X$found_dir" = "X"; then
6547                     if test -f "$dir/$libname.$acl_libext"; then
6548                       found_dir="$dir"
6549                       found_a="$dir/$libname.$acl_libext"
6550                     fi
6551                   fi
6552                   if test "X$found_dir" != "X"; then
6553                     if test -f "$dir/$libname.la"; then
6554                       found_la="$dir/$libname.la"
6555                     fi
6556                   fi
6557                   ;;
6558               esac
6559               if test "X$found_dir" != "X"; then
6560                 break
6561               fi
6562             done
6563           fi
6564           if test "X$found_dir" != "X"; then
6565                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
6566             if test "X$found_so" != "X"; then
6567                                                         if test "$enable_rpath" = no \
6568                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6569                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6570                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6571               else
6572                                                                                 haveit=
6573                 for x in $ltrpathdirs; do
6574                   if test "X$x" = "X$found_dir"; then
6575                     haveit=yes
6576                     break
6577                   fi
6578                 done
6579                 if test -z "$haveit"; then
6580                   ltrpathdirs="$ltrpathdirs $found_dir"
6581                 fi
6582                                 if test "$acl_hardcode_direct" = yes; then
6583                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6584                 else
6585                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6586                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6587                                                             haveit=
6588                     for x in $rpathdirs; do
6589                       if test "X$x" = "X$found_dir"; then
6590                         haveit=yes
6591                         break
6592                       fi
6593                     done
6594                     if test -z "$haveit"; then
6595                       rpathdirs="$rpathdirs $found_dir"
6596                     fi
6597                   else
6598                                                                                 haveit=
6599                     for x in $LDFLAGS $LIBPTH; do
6600
6601   acl_save_prefix="$prefix"
6602   prefix="$acl_final_prefix"
6603   acl_save_exec_prefix="$exec_prefix"
6604   exec_prefix="$acl_final_exec_prefix"
6605   eval x=\"$x\"
6606   exec_prefix="$acl_save_exec_prefix"
6607   prefix="$acl_save_prefix"
6608
6609                       if test "X$x" = "X-L$found_dir"; then
6610                         haveit=yes
6611                         break
6612                       fi
6613                     done
6614                     if test -z "$haveit"; then
6615                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
6616                     fi
6617                     if test "$acl_hardcode_minus_L" != no; then
6618                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6619                     else
6620                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
6621                     fi
6622                   fi
6623                 fi
6624               fi
6625             else
6626               if test "X$found_a" != "X"; then
6627                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
6628               else
6629                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
6630               fi
6631             fi
6632                         additional_includedir=
6633             case "$found_dir" in
6634               */$acl_libdirstem | */$acl_libdirstem/)
6635                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6636                 if test "$name" = 'pth'; then
6637                   LIBPTH_PREFIX="$basedir"
6638                 fi
6639                 additional_includedir="$basedir/include"
6640                 ;;
6641               */$acl_libdirstem2 | */$acl_libdirstem2/)
6642                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6643                 if test "$name" = 'pth'; then
6644                   LIBPTH_PREFIX="$basedir"
6645                 fi
6646                 additional_includedir="$basedir/include"
6647                 ;;
6648             esac
6649             if test "X$additional_includedir" != "X"; then
6650                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6651                 haveit=
6652                 if test "X$additional_includedir" = "X/usr/local/include"; then
6653                   if test -n "$GCC"; then
6654                     case $host_os in
6655                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6656                     esac
6657                   fi
6658                 fi
6659                 if test -z "$haveit"; then
6660                   for x in $CPPFLAGS $INCPTH; do
6661
6662   acl_save_prefix="$prefix"
6663   prefix="$acl_final_prefix"
6664   acl_save_exec_prefix="$exec_prefix"
6665   exec_prefix="$acl_final_exec_prefix"
6666   eval x=\"$x\"
6667   exec_prefix="$acl_save_exec_prefix"
6668   prefix="$acl_save_prefix"
6669
6670                     if test "X$x" = "X-I$additional_includedir"; then
6671                       haveit=yes
6672                       break
6673                     fi
6674                   done
6675                   if test -z "$haveit"; then
6676                     if test -d "$additional_includedir"; then
6677                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
6678                     fi
6679                   fi
6680                 fi
6681               fi
6682             fi
6683                         if test -n "$found_la"; then
6684                                                         save_libdir="$libdir"
6685               case "$found_la" in
6686                 */* | *\\*) . "$found_la" ;;
6687                 *) . "./$found_la" ;;
6688               esac
6689               libdir="$save_libdir"
6690                             for dep in $dependency_libs; do
6691                 case "$dep" in
6692                   -L*)
6693                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6694                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6695                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6696                       haveit=
6697                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6698                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6699                         if test -n "$GCC"; then
6700                           case $host_os in
6701                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6702                           esac
6703                         fi
6704                       fi
6705                       if test -z "$haveit"; then
6706                         haveit=
6707                         for x in $LDFLAGS $LIBPTH; do
6708
6709   acl_save_prefix="$prefix"
6710   prefix="$acl_final_prefix"
6711   acl_save_exec_prefix="$exec_prefix"
6712   exec_prefix="$acl_final_exec_prefix"
6713   eval x=\"$x\"
6714   exec_prefix="$acl_save_exec_prefix"
6715   prefix="$acl_save_prefix"
6716
6717                           if test "X$x" = "X-L$additional_libdir"; then
6718                             haveit=yes
6719                             break
6720                           fi
6721                         done
6722                         if test -z "$haveit"; then
6723                           if test -d "$additional_libdir"; then
6724                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
6725                           fi
6726                         fi
6727                         haveit=
6728                         for x in $LDFLAGS $LTLIBPTH; do
6729
6730   acl_save_prefix="$prefix"
6731   prefix="$acl_final_prefix"
6732   acl_save_exec_prefix="$exec_prefix"
6733   exec_prefix="$acl_final_exec_prefix"
6734   eval x=\"$x\"
6735   exec_prefix="$acl_save_exec_prefix"
6736   prefix="$acl_save_prefix"
6737
6738                           if test "X$x" = "X-L$additional_libdir"; then
6739                             haveit=yes
6740                             break
6741                           fi
6742                         done
6743                         if test -z "$haveit"; then
6744                           if test -d "$additional_libdir"; then
6745                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
6746                           fi
6747                         fi
6748                       fi
6749                     fi
6750                     ;;
6751                   -R*)
6752                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6753                     if test "$enable_rpath" != no; then
6754                                                                   haveit=
6755                       for x in $rpathdirs; do
6756                         if test "X$x" = "X$dir"; then
6757                           haveit=yes
6758                           break
6759                         fi
6760                       done
6761                       if test -z "$haveit"; then
6762                         rpathdirs="$rpathdirs $dir"
6763                       fi
6764                                                                   haveit=
6765                       for x in $ltrpathdirs; do
6766                         if test "X$x" = "X$dir"; then
6767                           haveit=yes
6768                           break
6769                         fi
6770                       done
6771                       if test -z "$haveit"; then
6772                         ltrpathdirs="$ltrpathdirs $dir"
6773                       fi
6774                     fi
6775                     ;;
6776                   -l*)
6777                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6778                     ;;
6779                   *.la)
6780                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6781                     ;;
6782                   *)
6783                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
6784                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
6785                     ;;
6786                 esac
6787               done
6788             fi
6789           else
6790                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
6791             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
6792           fi
6793         fi
6794       fi
6795     done
6796   done
6797   if test "X$rpathdirs" != "X"; then
6798     if test -n "$acl_hardcode_libdir_separator"; then
6799                         alldirs=
6800       for found_dir in $rpathdirs; do
6801         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6802       done
6803             acl_save_libdir="$libdir"
6804       libdir="$alldirs"
6805       eval flag=\"$acl_hardcode_libdir_flag_spec\"
6806       libdir="$acl_save_libdir"
6807       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
6808     else
6809             for found_dir in $rpathdirs; do
6810         acl_save_libdir="$libdir"
6811         libdir="$found_dir"
6812         eval flag=\"$acl_hardcode_libdir_flag_spec\"
6813         libdir="$acl_save_libdir"
6814         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
6815       done
6816     fi
6817   fi
6818   if test "X$ltrpathdirs" != "X"; then
6819             for found_dir in $ltrpathdirs; do
6820       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
6821     done
6822   fi
6823
6824
6825
6826
6827
6828
6829     ac_cv_libpth_libs="$LIBPTH"
6830     ac_cv_libpth_ltlibs="$LTLIBPTH"
6831     ac_cv_libpth_cppflags="$INCPTH"
6832     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
6833
6834 fi
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
6836 $as_echo "$ac_cv_libpth_libs" >&6; }
6837   LIBPTH="$ac_cv_libpth_libs"
6838   LTLIBPTH="$ac_cv_libpth_ltlibs"
6839   INCPTH="$ac_cv_libpth_cppflags"
6840   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
6841
6842   for element in $INCPTH; do
6843     haveit=
6844     for x in $CPPFLAGS; do
6845
6846   acl_save_prefix="$prefix"
6847   prefix="$acl_final_prefix"
6848   acl_save_exec_prefix="$exec_prefix"
6849   exec_prefix="$acl_final_exec_prefix"
6850   eval x=\"$x\"
6851   exec_prefix="$acl_save_exec_prefix"
6852   prefix="$acl_save_prefix"
6853
6854       if test "X$x" = "X$element"; then
6855         haveit=yes
6856         break
6857       fi
6858     done
6859     if test -z "$haveit"; then
6860       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6861     fi
6862   done
6863
6864
6865
6866
6867       HAVE_LIBPTH=yes
6868
6869
6870
6871       gl_have_pth=
6872       gl_save_LIBS="$LIBS"
6873       LIBS="$LIBS -lpth"
6874       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h.  */
6876 #include <pth.h>
6877 int
6878 main ()
6879 {
6880 pth_self();
6881   ;
6882   return 0;
6883 }
6884 _ACEOF
6885 if ac_fn_c_try_link "$LINENO"; then :
6886   gl_have_pth=yes
6887 fi
6888 rm -f core conftest.err conftest.$ac_objext \
6889     conftest$ac_exeext conftest.$ac_ext
6890       LIBS="$gl_save_LIBS"
6891       if test -n "$gl_have_pth"; then
6892         gl_threads_api=pth
6893         LIBTHREAD="$LIBPTH"
6894         LTLIBTHREAD="$LTLIBPTH"
6895         LIBMULTITHREAD="$LIBTHREAD"
6896         LTLIBMULTITHREAD="$LTLIBTHREAD"
6897
6898 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
6899
6900         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
6901           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
6902
6903 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
6904
6905             LIBTHREAD=
6906             LTLIBTHREAD=
6907           fi
6908         fi
6909       else
6910         CPPFLAGS="$gl_save_CPPFLAGS"
6911       fi
6912     fi
6913     if test -z "$gl_have_pthread"; then
6914       if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
6915         if { case "$host_os" in
6916                mingw*) true;;
6917                *) false;;
6918              esac
6919            }; then
6920           gl_threads_api=win32
6921
6922 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h
6923
6924         fi
6925       fi
6926     fi
6927   fi
6928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
6929 $as_echo_n "checking for multithread API to use... " >&6; }
6930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
6931 $as_echo "$gl_threads_api" >&6; }
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943   if test "$gl_threads_api" = posix; then
6944     # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
6945     # pthread_rwlock_* functions.
6946     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
6947 "
6948 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
6949
6950 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
6951
6952 fi
6953
6954     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
6955     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h.  */
6957 #include <pthread.h>
6958 int
6959 main ()
6960 {
6961 #if __FreeBSD__ == 4
6962 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
6963 #else
6964 int x = (int)PTHREAD_MUTEX_RECURSIVE;
6965 return !x;
6966 #endif
6967   ;
6968   return 0;
6969 }
6970 _ACEOF
6971 if ac_fn_c_try_compile "$LINENO"; then :
6972
6973 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
6974
6975 fi
6976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977   fi
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993     use_additional=yes
6994
6995   acl_save_prefix="$prefix"
6996   prefix="$acl_final_prefix"
6997   acl_save_exec_prefix="$exec_prefix"
6998   exec_prefix="$acl_final_exec_prefix"
6999
7000     eval additional_includedir=\"$includedir\"
7001     eval additional_libdir=\"$libdir\"
7002
7003   exec_prefix="$acl_save_exec_prefix"
7004   prefix="$acl_save_prefix"
7005
7006
7007 # Check whether --with-libiconv-prefix was given.
7008 if test "${with_libiconv_prefix+set}" = set; then :
7009   withval=$with_libiconv_prefix;
7010     if test "X$withval" = "Xno"; then
7011       use_additional=no
7012     else
7013       if test "X$withval" = "X"; then
7014
7015   acl_save_prefix="$prefix"
7016   prefix="$acl_final_prefix"
7017   acl_save_exec_prefix="$exec_prefix"
7018   exec_prefix="$acl_final_exec_prefix"
7019
7020           eval additional_includedir=\"$includedir\"
7021           eval additional_libdir=\"$libdir\"
7022
7023   exec_prefix="$acl_save_exec_prefix"
7024   prefix="$acl_save_prefix"
7025
7026       else
7027         additional_includedir="$withval/include"
7028         additional_libdir="$withval/$acl_libdirstem"
7029         if test "$acl_libdirstem2" != "$acl_libdirstem" \
7030            && ! test -d "$withval/$acl_libdirstem"; then
7031           additional_libdir="$withval/$acl_libdirstem2"
7032         fi
7033       fi
7034     fi
7035
7036 fi
7037
7038       LIBICONV=
7039   LTLIBICONV=
7040   INCICONV=
7041   LIBICONV_PREFIX=
7042       HAVE_LIBICONV=
7043   rpathdirs=
7044   ltrpathdirs=
7045   names_already_handled=
7046   names_next_round='iconv '
7047   while test -n "$names_next_round"; do
7048     names_this_round="$names_next_round"
7049     names_next_round=
7050     for name in $names_this_round; do
7051       already_handled=
7052       for n in $names_already_handled; do
7053         if test "$n" = "$name"; then
7054           already_handled=yes
7055           break
7056         fi
7057       done
7058       if test -z "$already_handled"; then
7059         names_already_handled="$names_already_handled $name"
7060                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7061         eval value=\"\$HAVE_LIB$uppername\"
7062         if test -n "$value"; then
7063           if test "$value" = yes; then
7064             eval value=\"\$LIB$uppername\"
7065             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7066             eval value=\"\$LTLIB$uppername\"
7067             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7068           else
7069                                     :
7070           fi
7071         else
7072                               found_dir=
7073           found_la=
7074           found_so=
7075           found_a=
7076           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
7077           if test -n "$acl_shlibext"; then
7078             shrext=".$acl_shlibext"             # typically: shrext=.so
7079           else
7080             shrext=
7081           fi
7082           if test $use_additional = yes; then
7083             dir="$additional_libdir"
7084                                     if test -n "$acl_shlibext"; then
7085               if test -f "$dir/$libname$shrext"; then
7086                 found_dir="$dir"
7087                 found_so="$dir/$libname$shrext"
7088               else
7089                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7090                   ver=`(cd "$dir" && \
7091                         for f in "$libname$shrext".*; do echo "$f"; done \
7092                         | sed -e "s,^$libname$shrext\\\\.,," \
7093                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7094                         | sed 1q ) 2>/dev/null`
7095                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7096                     found_dir="$dir"
7097                     found_so="$dir/$libname$shrext.$ver"
7098                   fi
7099                 else
7100                   eval library_names=\"$acl_library_names_spec\"
7101                   for f in $library_names; do
7102                     if test -f "$dir/$f"; then
7103                       found_dir="$dir"
7104                       found_so="$dir/$f"
7105                       break
7106                     fi
7107                   done
7108                 fi
7109               fi
7110             fi
7111                         if test "X$found_dir" = "X"; then
7112               if test -f "$dir/$libname.$acl_libext"; then
7113                 found_dir="$dir"
7114                 found_a="$dir/$libname.$acl_libext"
7115               fi
7116             fi
7117             if test "X$found_dir" != "X"; then
7118               if test -f "$dir/$libname.la"; then
7119                 found_la="$dir/$libname.la"
7120               fi
7121             fi
7122           fi
7123           if test "X$found_dir" = "X"; then
7124             for x in $LDFLAGS $LTLIBICONV; do
7125
7126   acl_save_prefix="$prefix"
7127   prefix="$acl_final_prefix"
7128   acl_save_exec_prefix="$exec_prefix"
7129   exec_prefix="$acl_final_exec_prefix"
7130   eval x=\"$x\"
7131   exec_prefix="$acl_save_exec_prefix"
7132   prefix="$acl_save_prefix"
7133
7134               case "$x" in
7135                 -L*)
7136                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7137                                     if test -n "$acl_shlibext"; then
7138                     if test -f "$dir/$libname$shrext"; then
7139                       found_dir="$dir"
7140                       found_so="$dir/$libname$shrext"
7141                     else
7142                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7143                         ver=`(cd "$dir" && \
7144                               for f in "$libname$shrext".*; do echo "$f"; done \
7145                               | sed -e "s,^$libname$shrext\\\\.,," \
7146                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7147                               | sed 1q ) 2>/dev/null`
7148                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7149                           found_dir="$dir"
7150                           found_so="$dir/$libname$shrext.$ver"
7151                         fi
7152                       else
7153                         eval library_names=\"$acl_library_names_spec\"
7154                         for f in $library_names; do
7155                           if test -f "$dir/$f"; then
7156                             found_dir="$dir"
7157                             found_so="$dir/$f"
7158                             break
7159                           fi
7160                         done
7161                       fi
7162                     fi
7163                   fi
7164                                     if test "X$found_dir" = "X"; then
7165                     if test -f "$dir/$libname.$acl_libext"; then
7166                       found_dir="$dir"
7167                       found_a="$dir/$libname.$acl_libext"
7168                     fi
7169                   fi
7170                   if test "X$found_dir" != "X"; then
7171                     if test -f "$dir/$libname.la"; then
7172                       found_la="$dir/$libname.la"
7173                     fi
7174                   fi
7175                   ;;
7176               esac
7177               if test "X$found_dir" != "X"; then
7178                 break
7179               fi
7180             done
7181           fi
7182           if test "X$found_dir" != "X"; then
7183                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7184             if test "X$found_so" != "X"; then
7185                                                         if test "$enable_rpath" = no \
7186                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7187                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7188                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7189               else
7190                                                                                 haveit=
7191                 for x in $ltrpathdirs; do
7192                   if test "X$x" = "X$found_dir"; then
7193                     haveit=yes
7194                     break
7195                   fi
7196                 done
7197                 if test -z "$haveit"; then
7198                   ltrpathdirs="$ltrpathdirs $found_dir"
7199                 fi
7200                                 if test "$acl_hardcode_direct" = yes; then
7201                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7202                 else
7203                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7204                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7205                                                             haveit=
7206                     for x in $rpathdirs; do
7207                       if test "X$x" = "X$found_dir"; then
7208                         haveit=yes
7209                         break
7210                       fi
7211                     done
7212                     if test -z "$haveit"; then
7213                       rpathdirs="$rpathdirs $found_dir"
7214                     fi
7215                   else
7216                                                                                 haveit=
7217                     for x in $LDFLAGS $LIBICONV; do
7218
7219   acl_save_prefix="$prefix"
7220   prefix="$acl_final_prefix"
7221   acl_save_exec_prefix="$exec_prefix"
7222   exec_prefix="$acl_final_exec_prefix"
7223   eval x=\"$x\"
7224   exec_prefix="$acl_save_exec_prefix"
7225   prefix="$acl_save_prefix"
7226
7227                       if test "X$x" = "X-L$found_dir"; then
7228                         haveit=yes
7229                         break
7230                       fi
7231                     done
7232                     if test -z "$haveit"; then
7233                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7234                     fi
7235                     if test "$acl_hardcode_minus_L" != no; then
7236                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7237                     else
7238                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7239                     fi
7240                   fi
7241                 fi
7242               fi
7243             else
7244               if test "X$found_a" != "X"; then
7245                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7246               else
7247                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7248               fi
7249             fi
7250                         additional_includedir=
7251             case "$found_dir" in
7252               */$acl_libdirstem | */$acl_libdirstem/)
7253                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7254                 if test "$name" = 'iconv'; then
7255                   LIBICONV_PREFIX="$basedir"
7256                 fi
7257                 additional_includedir="$basedir/include"
7258                 ;;
7259               */$acl_libdirstem2 | */$acl_libdirstem2/)
7260                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7261                 if test "$name" = 'iconv'; then
7262                   LIBICONV_PREFIX="$basedir"
7263                 fi
7264                 additional_includedir="$basedir/include"
7265                 ;;
7266             esac
7267             if test "X$additional_includedir" != "X"; then
7268                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7269                 haveit=
7270                 if test "X$additional_includedir" = "X/usr/local/include"; then
7271                   if test -n "$GCC"; then
7272                     case $host_os in
7273                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7274                     esac
7275                   fi
7276                 fi
7277                 if test -z "$haveit"; then
7278                   for x in $CPPFLAGS $INCICONV; do
7279
7280   acl_save_prefix="$prefix"
7281   prefix="$acl_final_prefix"
7282   acl_save_exec_prefix="$exec_prefix"
7283   exec_prefix="$acl_final_exec_prefix"
7284   eval x=\"$x\"
7285   exec_prefix="$acl_save_exec_prefix"
7286   prefix="$acl_save_prefix"
7287
7288                     if test "X$x" = "X-I$additional_includedir"; then
7289                       haveit=yes
7290                       break
7291                     fi
7292                   done
7293                   if test -z "$haveit"; then
7294                     if test -d "$additional_includedir"; then
7295                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7296                     fi
7297                   fi
7298                 fi
7299               fi
7300             fi
7301                         if test -n "$found_la"; then
7302                                                         save_libdir="$libdir"
7303               case "$found_la" in
7304                 */* | *\\*) . "$found_la" ;;
7305                 *) . "./$found_la" ;;
7306               esac
7307               libdir="$save_libdir"
7308                             for dep in $dependency_libs; do
7309                 case "$dep" in
7310                   -L*)
7311                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7312                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7313                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7314                       haveit=
7315                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7316                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7317                         if test -n "$GCC"; then
7318                           case $host_os in
7319                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7320                           esac
7321                         fi
7322                       fi
7323                       if test -z "$haveit"; then
7324                         haveit=
7325                         for x in $LDFLAGS $LIBICONV; do
7326
7327   acl_save_prefix="$prefix"
7328   prefix="$acl_final_prefix"
7329   acl_save_exec_prefix="$exec_prefix"
7330   exec_prefix="$acl_final_exec_prefix"
7331   eval x=\"$x\"
7332   exec_prefix="$acl_save_exec_prefix"
7333   prefix="$acl_save_prefix"
7334
7335                           if test "X$x" = "X-L$additional_libdir"; then
7336                             haveit=yes
7337                             break
7338                           fi
7339                         done
7340                         if test -z "$haveit"; then
7341                           if test -d "$additional_libdir"; then
7342                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7343                           fi
7344                         fi
7345                         haveit=
7346                         for x in $LDFLAGS $LTLIBICONV; do
7347
7348   acl_save_prefix="$prefix"
7349   prefix="$acl_final_prefix"
7350   acl_save_exec_prefix="$exec_prefix"
7351   exec_prefix="$acl_final_exec_prefix"
7352   eval x=\"$x\"
7353   exec_prefix="$acl_save_exec_prefix"
7354   prefix="$acl_save_prefix"
7355
7356                           if test "X$x" = "X-L$additional_libdir"; then
7357                             haveit=yes
7358                             break
7359                           fi
7360                         done
7361                         if test -z "$haveit"; then
7362                           if test -d "$additional_libdir"; then
7363                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7364                           fi
7365                         fi
7366                       fi
7367                     fi
7368                     ;;
7369                   -R*)
7370                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7371                     if test "$enable_rpath" != no; then
7372                                                                   haveit=
7373                       for x in $rpathdirs; do
7374                         if test "X$x" = "X$dir"; then
7375                           haveit=yes
7376                           break
7377                         fi
7378                       done
7379                       if test -z "$haveit"; then
7380                         rpathdirs="$rpathdirs $dir"
7381                       fi
7382                                                                   haveit=
7383                       for x in $ltrpathdirs; do
7384                         if test "X$x" = "X$dir"; then
7385                           haveit=yes
7386                           break
7387                         fi
7388                       done
7389                       if test -z "$haveit"; then
7390                         ltrpathdirs="$ltrpathdirs $dir"
7391                       fi
7392                     fi
7393                     ;;
7394                   -l*)
7395                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7396                     ;;
7397                   *.la)
7398                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7399                     ;;
7400                   *)
7401                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7402                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7403                     ;;
7404                 esac
7405               done
7406             fi
7407           else
7408                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7409             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7410           fi
7411         fi
7412       fi
7413     done
7414   done
7415   if test "X$rpathdirs" != "X"; then
7416     if test -n "$acl_hardcode_libdir_separator"; then
7417                         alldirs=
7418       for found_dir in $rpathdirs; do
7419         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7420       done
7421             acl_save_libdir="$libdir"
7422       libdir="$alldirs"
7423       eval flag=\"$acl_hardcode_libdir_flag_spec\"
7424       libdir="$acl_save_libdir"
7425       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7426     else
7427             for found_dir in $rpathdirs; do
7428         acl_save_libdir="$libdir"
7429         libdir="$found_dir"
7430         eval flag=\"$acl_hardcode_libdir_flag_spec\"
7431         libdir="$acl_save_libdir"
7432         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7433       done
7434     fi
7435   fi
7436   if test "X$ltrpathdirs" != "X"; then
7437             for found_dir in $ltrpathdirs; do
7438       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7439     done
7440   fi
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453           am_save_CPPFLAGS="$CPPFLAGS"
7454
7455   for element in $INCICONV; do
7456     haveit=
7457     for x in $CPPFLAGS; do
7458
7459   acl_save_prefix="$prefix"
7460   prefix="$acl_final_prefix"
7461   acl_save_exec_prefix="$exec_prefix"
7462   exec_prefix="$acl_final_exec_prefix"
7463   eval x=\"$x\"
7464   exec_prefix="$acl_save_exec_prefix"
7465   prefix="$acl_save_prefix"
7466
7467       if test "X$x" = "X$element"; then
7468         haveit=yes
7469         break
7470       fi
7471     done
7472     if test -z "$haveit"; then
7473       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7474     fi
7475   done
7476
7477
7478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7479 $as_echo_n "checking for iconv... " >&6; }
7480 if ${am_cv_func_iconv+:} false; then :
7481   $as_echo_n "(cached) " >&6
7482 else
7483
7484     am_cv_func_iconv="no, consider installing GNU libiconv"
7485     am_cv_lib_iconv=no
7486     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h.  */
7488 #include <stdlib.h>
7489 #include <iconv.h>
7490 int
7491 main ()
7492 {
7493 iconv_t cd = iconv_open("","");
7494        iconv(cd,NULL,NULL,NULL,NULL);
7495        iconv_close(cd);
7496   ;
7497   return 0;
7498 }
7499 _ACEOF
7500 if ac_fn_c_try_link "$LINENO"; then :
7501   am_cv_func_iconv=yes
7502 fi
7503 rm -f core conftest.err conftest.$ac_objext \
7504     conftest$ac_exeext conftest.$ac_ext
7505     if test "$am_cv_func_iconv" != yes; then
7506       am_save_LIBS="$LIBS"
7507       LIBS="$LIBS $LIBICONV"
7508       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509 /* end confdefs.h.  */
7510 #include <stdlib.h>
7511 #include <iconv.h>
7512 int
7513 main ()
7514 {
7515 iconv_t cd = iconv_open("","");
7516          iconv(cd,NULL,NULL,NULL,NULL);
7517          iconv_close(cd);
7518   ;
7519   return 0;
7520 }
7521 _ACEOF
7522 if ac_fn_c_try_link "$LINENO"; then :
7523   am_cv_lib_iconv=yes
7524         am_cv_func_iconv=yes
7525 fi
7526 rm -f core conftest.err conftest.$ac_objext \
7527     conftest$ac_exeext conftest.$ac_ext
7528       LIBS="$am_save_LIBS"
7529     fi
7530
7531 fi
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7533 $as_echo "$am_cv_func_iconv" >&6; }
7534   if test "$am_cv_func_iconv" = yes; then
7535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7536 $as_echo_n "checking for working iconv... " >&6; }
7537 if ${am_cv_func_iconv_works+:} false; then :
7538   $as_echo_n "(cached) " >&6
7539 else
7540
7541             am_save_LIBS="$LIBS"
7542       if test $am_cv_lib_iconv = yes; then
7543         LIBS="$LIBS $LIBICONV"
7544       fi
7545       if test "$cross_compiling" = yes; then :
7546   case "$host_os" in
7547            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7548            *)            am_cv_func_iconv_works="guessing yes" ;;
7549          esac
7550 else
7551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552 /* end confdefs.h.  */
7553
7554 #include <iconv.h>
7555 #include <string.h>
7556 int main ()
7557 {
7558   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7559      returns.  */
7560   {
7561     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7562     if (cd_utf8_to_88591 != (iconv_t)(-1))
7563       {
7564         static const char input[] = "\342\202\254"; /* EURO SIGN */
7565         char buf[10];
7566         const char *inptr = input;
7567         size_t inbytesleft = strlen (input);
7568         char *outptr = buf;
7569         size_t outbytesleft = sizeof (buf);
7570         size_t res = iconv (cd_utf8_to_88591,
7571                             (char **) &inptr, &inbytesleft,
7572                             &outptr, &outbytesleft);
7573         if (res == 0)
7574           return 1;
7575       }
7576   }
7577   /* Test against Solaris 10 bug: Failures are not distinguishable from
7578      successful returns.  */
7579   {
7580     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7581     if (cd_ascii_to_88591 != (iconv_t)(-1))
7582       {
7583         static const char input[] = "\263";
7584         char buf[10];
7585         const char *inptr = input;
7586         size_t inbytesleft = strlen (input);
7587         char *outptr = buf;
7588         size_t outbytesleft = sizeof (buf);
7589         size_t res = iconv (cd_ascii_to_88591,
7590                             (char **) &inptr, &inbytesleft,
7591                             &outptr, &outbytesleft);
7592         if (res == 0)
7593           return 1;
7594       }
7595   }
7596 #if 0 /* This bug could be worked around by the caller.  */
7597   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
7598   {
7599     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7600     if (cd_88591_to_utf8 != (iconv_t)(-1))
7601       {
7602         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7603         char buf[50];
7604         const char *inptr = input;
7605         size_t inbytesleft = strlen (input);
7606         char *outptr = buf;
7607         size_t outbytesleft = sizeof (buf);
7608         size_t res = iconv (cd_88591_to_utf8,
7609                             (char **) &inptr, &inbytesleft,
7610                             &outptr, &outbytesleft);
7611         if ((int)res > 0)
7612           return 1;
7613       }
7614   }
7615 #endif
7616   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7617      provided.  */
7618   if (/* Try standardized names.  */
7619       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7620       /* Try IRIX, OSF/1 names.  */
7621       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7622       /* Try AIX names.  */
7623       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7624       /* Try HP-UX names.  */
7625       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7626     return 1;
7627   return 0;
7628 }
7629 _ACEOF
7630 if ac_fn_c_try_run "$LINENO"; then :
7631   am_cv_func_iconv_works=yes
7632 else
7633   am_cv_func_iconv_works=no
7634 fi
7635 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7636   conftest.$ac_objext conftest.beam conftest.$ac_ext
7637 fi
7638
7639       LIBS="$am_save_LIBS"
7640
7641 fi
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7643 $as_echo "$am_cv_func_iconv_works" >&6; }
7644     case "$am_cv_func_iconv_works" in
7645       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7646       *)   am_func_iconv=yes ;;
7647     esac
7648   else
7649     am_func_iconv=no am_cv_lib_iconv=no
7650   fi
7651   if test "$am_func_iconv" = yes; then
7652
7653 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7654
7655   fi
7656   if test "$am_cv_lib_iconv" = yes; then
7657     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7658 $as_echo_n "checking how to link with libiconv... " >&6; }
7659     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7660 $as_echo "$LIBICONV" >&6; }
7661   else
7662             CPPFLAGS="$am_save_CPPFLAGS"
7663     LIBICONV=
7664     LTLIBICONV=
7665   fi
7666
7667
7668
7669   if test "$am_cv_func_iconv" = yes; then
7670     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7671 $as_echo_n "checking for iconv declaration... " >&6; }
7672     if ${am_cv_proto_iconv+:} false; then :
7673   $as_echo_n "(cached) " >&6
7674 else
7675
7676       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h.  */
7678
7679 #include <stdlib.h>
7680 #include <iconv.h>
7681 extern
7682 #ifdef __cplusplus
7683 "C"
7684 #endif
7685 #if defined(__STDC__) || defined(__cplusplus)
7686 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7687 #else
7688 size_t iconv();
7689 #endif
7690
7691 int
7692 main ()
7693 {
7694
7695   ;
7696   return 0;
7697 }
7698 _ACEOF
7699 if ac_fn_c_try_compile "$LINENO"; then :
7700   am_cv_proto_iconv_arg1=""
7701 else
7702   am_cv_proto_iconv_arg1="const"
7703 fi
7704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7705       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);"
7706 fi
7707
7708     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7709     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
7710          $am_cv_proto_iconv" >&5
7711 $as_echo "
7712          $am_cv_proto_iconv" >&6; }
7713
7714 cat >>confdefs.h <<_ACEOF
7715 #define ICONV_CONST $am_cv_proto_iconv_arg1
7716 _ACEOF
7717
7718   fi
7719
7720
7721
7722
7723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h.  */
7725 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
7726 int
7727 main ()
7728 {
7729
7730   ;
7731   return 0;
7732 }
7733 _ACEOF
7734 if ac_fn_c_try_link "$LINENO"; then :
7735
7736 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
7737
7738 fi
7739 rm -f core conftest.err conftest.$ac_objext \
7740     conftest$ac_exeext conftest.$ac_ext
7741
7742   for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
7743 do :
7744   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7745 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7746 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7747   cat >>confdefs.h <<_ACEOF
7748 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7749 _ACEOF
7750
7751 fi
7752
7753 done
7754
7755   for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
7756     stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
7757     argz_stringify argz_next __fsetlocking
7758 do :
7759   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7760 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7761 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7762   cat >>confdefs.h <<_ACEOF
7763 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7764 _ACEOF
7765
7766 fi
7767 done
7768
7769
7770
7771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
7772 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
7773 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
7774   $as_echo_n "(cached) " >&6
7775 else
7776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h.  */
7778 #include <stdio.h>
7779 int
7780 main ()
7781 {
7782
7783 #ifndef feof_unlocked
7784   char *p = (char *) feof_unlocked;
7785 #endif
7786
7787   ;
7788   return 0;
7789 }
7790 _ACEOF
7791 if ac_fn_c_try_compile "$LINENO"; then :
7792   ac_cv_have_decl_feof_unlocked=yes
7793 else
7794   ac_cv_have_decl_feof_unlocked=no
7795 fi
7796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7797 fi
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
7799 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
7800   if test $ac_cv_have_decl_feof_unlocked = yes; then
7801     gt_value=1
7802   else
7803     gt_value=0
7804   fi
7805
7806 cat >>confdefs.h <<_ACEOF
7807 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
7808 _ACEOF
7809
7810
7811
7812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
7813 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
7814 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
7815   $as_echo_n "(cached) " >&6
7816 else
7817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h.  */
7819 #include <stdio.h>
7820 int
7821 main ()
7822 {
7823
7824 #ifndef fgets_unlocked
7825   char *p = (char *) fgets_unlocked;
7826 #endif
7827
7828   ;
7829   return 0;
7830 }
7831 _ACEOF
7832 if ac_fn_c_try_compile "$LINENO"; then :
7833   ac_cv_have_decl_fgets_unlocked=yes
7834 else
7835   ac_cv_have_decl_fgets_unlocked=no
7836 fi
7837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7838 fi
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
7840 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
7841   if test $ac_cv_have_decl_fgets_unlocked = yes; then
7842     gt_value=1
7843   else
7844     gt_value=0
7845   fi
7846
7847 cat >>confdefs.h <<_ACEOF
7848 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
7849 _ACEOF
7850
7851
7852
7853
7854
7855                       for ac_prog in bison
7856 do
7857   # Extract the first word of "$ac_prog", so it can be a program name with args.
7858 set dummy $ac_prog; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if ${ac_cv_prog_INTLBISON+:} false; then :
7862   $as_echo_n "(cached) " >&6
7863 else
7864   if test -n "$INTLBISON"; then
7865   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
7866 else
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870   IFS=$as_save_IFS
7871   test -z "$as_dir" && as_dir=.
7872     for ac_exec_ext in '' $ac_executable_extensions; do
7873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7874     ac_cv_prog_INTLBISON="$ac_prog"
7875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876     break 2
7877   fi
7878 done
7879   done
7880 IFS=$as_save_IFS
7881
7882 fi
7883 fi
7884 INTLBISON=$ac_cv_prog_INTLBISON
7885 if test -n "$INTLBISON"; then
7886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
7887 $as_echo "$INTLBISON" >&6; }
7888 else
7889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7891 fi
7892
7893
7894   test -n "$INTLBISON" && break
7895 done
7896
7897   if test -z "$INTLBISON"; then
7898     ac_verc_fail=yes
7899   else
7900         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
7901 $as_echo_n "checking version of bison... " >&6; }
7902     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7903     case $ac_prog_version in
7904       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7905       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
7906          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
7907       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
7908     esac
7909     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
7910 $as_echo "$ac_prog_version" >&6; }
7911   fi
7912   if test $ac_verc_fail = yes; then
7913     INTLBISON=:
7914   fi
7915
7916
7917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7918 $as_echo_n "checking for long long int... " >&6; }
7919 if ${ac_cv_type_long_long_int+:} false; then :
7920   $as_echo_n "(cached) " >&6
7921 else
7922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h.  */
7924
7925   /* For now, do not test the preprocessor; as of 2007 there are too many
7926          implementations with broken preprocessors.  Perhaps this can
7927          be revisited in 2012.  In the meantime, code should not expect
7928          #if to work with literals wider than 32 bits.  */
7929       /* Test literals.  */
7930       long long int ll = 9223372036854775807ll;
7931       long long int nll = -9223372036854775807LL;
7932       unsigned long long int ull = 18446744073709551615ULL;
7933       /* Test constant expressions.   */
7934       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7935                      ? 1 : -1)];
7936       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7937                      ? 1 : -1)];
7938       int i = 63;
7939 int
7940 main ()
7941 {
7942 /* Test availability of runtime routines for shift and division.  */
7943       long long int llmax = 9223372036854775807ll;
7944       unsigned long long int ullmax = 18446744073709551615ull;
7945       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7946               | (llmax / ll) | (llmax % ll)
7947               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7948               | (ullmax / ull) | (ullmax % ull));
7949   ;
7950   return 0;
7951 }
7952
7953 _ACEOF
7954 if ac_fn_c_try_link "$LINENO"; then :
7955                           if test "$cross_compiling" = yes; then :
7956   ac_cv_type_long_long_int=yes
7957 else
7958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h.  */
7960 #include <limits.h>
7961                #ifndef LLONG_MAX
7962                # define HALF \
7963                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7964                # define LLONG_MAX (HALF - 1 + HALF)
7965                #endif
7966 int
7967 main ()
7968 {
7969 long long int n = 1;
7970                int i;
7971                for (i = 0; ; i++)
7972                  {
7973                    long long int m = n << i;
7974                    if (m >> i != n)
7975                      return 1;
7976                    if (LLONG_MAX / 2 < m)
7977                      break;
7978                  }
7979                return 0;
7980   ;
7981   return 0;
7982 }
7983 _ACEOF
7984 if ac_fn_c_try_run "$LINENO"; then :
7985   ac_cv_type_long_long_int=yes
7986 else
7987   ac_cv_type_long_long_int=no
7988 fi
7989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7990   conftest.$ac_objext conftest.beam conftest.$ac_ext
7991 fi
7992
7993 else
7994   ac_cv_type_long_long_int=no
7995 fi
7996 rm -f core conftest.err conftest.$ac_objext \
7997     conftest$ac_exeext conftest.$ac_ext
7998 fi
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
8000 $as_echo "$ac_cv_type_long_long_int" >&6; }
8001   if test $ac_cv_type_long_long_int = yes; then
8002
8003 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
8004
8005   fi
8006
8007
8008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
8009 $as_echo_n "checking for wchar_t... " >&6; }
8010 if ${gt_cv_c_wchar_t+:} false; then :
8011   $as_echo_n "(cached) " >&6
8012 else
8013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h.  */
8015 #include <stddef.h>
8016        wchar_t foo = (wchar_t)'\0';
8017 int
8018 main ()
8019 {
8020
8021   ;
8022   return 0;
8023 }
8024 _ACEOF
8025 if ac_fn_c_try_compile "$LINENO"; then :
8026   gt_cv_c_wchar_t=yes
8027 else
8028   gt_cv_c_wchar_t=no
8029 fi
8030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031 fi
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
8033 $as_echo "$gt_cv_c_wchar_t" >&6; }
8034   if test $gt_cv_c_wchar_t = yes; then
8035
8036 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
8037
8038   fi
8039
8040
8041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
8042 $as_echo_n "checking for wint_t... " >&6; }
8043 if ${gt_cv_c_wint_t+:} false; then :
8044   $as_echo_n "(cached) " >&6
8045 else
8046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h.  */
8048
8049 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8050    <wchar.h>.
8051    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
8052    before <wchar.h>.  */
8053 #include <stddef.h>
8054 #include <stdio.h>
8055 #include <time.h>
8056 #include <wchar.h>
8057        wint_t foo = (wchar_t)'\0';
8058 int
8059 main ()
8060 {
8061
8062   ;
8063   return 0;
8064 }
8065 _ACEOF
8066 if ac_fn_c_try_compile "$LINENO"; then :
8067   gt_cv_c_wint_t=yes
8068 else
8069   gt_cv_c_wint_t=no
8070 fi
8071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072 fi
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
8074 $as_echo "$gt_cv_c_wint_t" >&6; }
8075   if test $gt_cv_c_wint_t = yes; then
8076
8077 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8078
8079   fi
8080
8081
8082
8083
8084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
8085 $as_echo_n "checking for intmax_t... " >&6; }
8086 if ${gt_cv_c_intmax_t+:} false; then :
8087   $as_echo_n "(cached) " >&6
8088 else
8089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h.  */
8091
8092 #include <stddef.h>
8093 #include <stdlib.h>
8094 #if HAVE_STDINT_H_WITH_UINTMAX
8095 #include <stdint.h>
8096 #endif
8097 #if HAVE_INTTYPES_H_WITH_UINTMAX
8098 #include <inttypes.h>
8099 #endif
8100
8101 int
8102 main ()
8103 {
8104 intmax_t x = -1;
8105         return !x;
8106   ;
8107   return 0;
8108 }
8109 _ACEOF
8110 if ac_fn_c_try_compile "$LINENO"; then :
8111   gt_cv_c_intmax_t=yes
8112 else
8113   gt_cv_c_intmax_t=no
8114 fi
8115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8116 fi
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
8118 $as_echo "$gt_cv_c_intmax_t" >&6; }
8119   if test $gt_cv_c_intmax_t = yes; then
8120
8121 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
8122
8123   fi
8124
8125
8126
8127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
8128 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
8129 if ${gt_cv_func_printf_posix+:} false; then :
8130   $as_echo_n "(cached) " >&6
8131 else
8132
8133       if test "$cross_compiling" = yes; then :
8134
8135         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136 /* end confdefs.h.  */
8137
8138 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8139   notposix
8140 #endif
8141
8142 _ACEOF
8143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8144   $EGREP "notposix" >/dev/null 2>&1; then :
8145   gt_cv_func_printf_posix="guessing no"
8146 else
8147   gt_cv_func_printf_posix="guessing yes"
8148 fi
8149 rm -f conftest*
8150
8151
8152 else
8153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8154 /* end confdefs.h.  */
8155
8156 #include <stdio.h>
8157 #include <string.h>
8158 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8159    dollar expansion (possibly an autoconf bug).  */
8160 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8161 static char buf[100];
8162 int main ()
8163 {
8164   sprintf (buf, format, 33, 55);
8165   return (strcmp (buf, "55 33") != 0);
8166 }
8167 _ACEOF
8168 if ac_fn_c_try_run "$LINENO"; then :
8169   gt_cv_func_printf_posix=yes
8170 else
8171   gt_cv_func_printf_posix=no
8172 fi
8173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8174   conftest.$ac_objext conftest.beam conftest.$ac_ext
8175 fi
8176
8177
8178 fi
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
8180 $as_echo "$gt_cv_func_printf_posix" >&6; }
8181   case $gt_cv_func_printf_posix in
8182     *yes)
8183
8184 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
8185
8186       ;;
8187   esac
8188
8189
8190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
8191 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
8192 if ${ac_cv_gnu_library_2_1+:} false; then :
8193   $as_echo_n "(cached) " >&6
8194 else
8195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h.  */
8197
8198 #include <features.h>
8199 #ifdef __GNU_LIBRARY__
8200  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8201   Lucky GNU user
8202  #endif
8203 #endif
8204
8205 _ACEOF
8206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8207   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
8208   ac_cv_gnu_library_2_1=yes
8209 else
8210   ac_cv_gnu_library_2_1=no
8211 fi
8212 rm -f conftest*
8213
8214
8215
8216 fi
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8218 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8219
8220     GLIBC21="$ac_cv_gnu_library_2_1"
8221
8222
8223
8224   for ac_header in stdint.h
8225 do :
8226   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8227 if test "x$ac_cv_header_stdint_h" = xyes; then :
8228   cat >>confdefs.h <<_ACEOF
8229 #define HAVE_STDINT_H 1
8230 _ACEOF
8231
8232 fi
8233
8234 done
8235
8236     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
8237 $as_echo_n "checking for SIZE_MAX... " >&6; }
8238 if ${gl_cv_size_max+:} false; then :
8239   $as_echo_n "(cached) " >&6
8240 else
8241
8242     gl_cv_size_max=
8243     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244 /* end confdefs.h.  */
8245
8246 #include <limits.h>
8247 #if HAVE_STDINT_H
8248 #include <stdint.h>
8249 #endif
8250 #ifdef SIZE_MAX
8251 Found it
8252 #endif
8253
8254 _ACEOF
8255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8256   $EGREP "Found it" >/dev/null 2>&1; then :
8257   gl_cv_size_max=yes
8258 fi
8259 rm -f conftest*
8260
8261     if test -z "$gl_cv_size_max"; then
8262                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
8263 #include <limits.h>"; then :
8264
8265 else
8266   size_t_bits_minus_1=
8267 fi
8268
8269       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
8270
8271 else
8272   fits_in_uint=
8273 fi
8274
8275       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
8276         if test $fits_in_uint = 1; then
8277                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8278 /* end confdefs.h.  */
8279 #include <stddef.h>
8280             extern size_t foo;
8281             extern unsigned long foo;
8282
8283 int
8284 main ()
8285 {
8286
8287   ;
8288   return 0;
8289 }
8290 _ACEOF
8291 if ac_fn_c_try_compile "$LINENO"; then :
8292   fits_in_uint=0
8293 fi
8294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8295         fi
8296                                 if test $fits_in_uint = 1; then
8297           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
8298         else
8299           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
8300         fi
8301       else
8302                 gl_cv_size_max='((size_t)~(size_t)0)'
8303       fi
8304     fi
8305
8306 fi
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
8308 $as_echo "$gl_cv_size_max" >&6; }
8309   if test "$gl_cv_size_max" != yes; then
8310
8311 cat >>confdefs.h <<_ACEOF
8312 #define SIZE_MAX $gl_cv_size_max
8313 _ACEOF
8314
8315   fi
8316
8317
8318
8319
8320
8321   for ac_header in stdint.h
8322 do :
8323   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
8324 if test "x$ac_cv_header_stdint_h" = xyes; then :
8325   cat >>confdefs.h <<_ACEOF
8326 #define HAVE_STDINT_H 1
8327 _ACEOF
8328
8329 fi
8330
8331 done
8332
8333
8334
8335
8336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8337 $as_echo_n "checking for working fcntl.h... " >&6; }
8338 if ${gl_cv_header_working_fcntl_h+:} false; then :
8339   $as_echo_n "(cached) " >&6
8340 else
8341   if test "$cross_compiling" = yes; then :
8342   gl_cv_header_working_fcntl_h=cross-compiling
8343 else
8344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345 /* end confdefs.h.  */
8346 #include <sys/types.h>
8347            #include <sys/stat.h>
8348            #include <unistd.h>
8349            #include <fcntl.h>
8350            #ifndef O_NOATIME
8351             #define O_NOATIME 0
8352            #endif
8353            #ifndef O_NOFOLLOW
8354             #define O_NOFOLLOW 0
8355            #endif
8356            static int const constants[] =
8357             {
8358               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8359               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8360             };
8361
8362 int
8363 main ()
8364 {
8365
8366             int status = !constants;
8367             {
8368               static char const sym[] = "conftest.sym";
8369               if (symlink (".", sym) != 0
8370                   || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
8371                 status |= 32;
8372               unlink (sym);
8373             }
8374             {
8375               static char const file[] = "confdefs.h";
8376               int fd = open (file, O_RDONLY | O_NOATIME);
8377               char c;
8378               struct stat st0, st1;
8379               if (fd < 0
8380                   || fstat (fd, &st0) != 0
8381                   || sleep (1) != 0
8382                   || read (fd, &c, 1) != 1
8383                   || close (fd) != 0
8384                   || stat (file, &st1) != 0
8385                   || st0.st_atime != st1.st_atime)
8386                 status |= 64;
8387             }
8388             return status;
8389   ;
8390   return 0;
8391 }
8392 _ACEOF
8393 if ac_fn_c_try_run "$LINENO"; then :
8394   gl_cv_header_working_fcntl_h=yes
8395 else
8396   case $? in #(
8397         32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8398         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8399         96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8400          *) gl_cv_header_working_fcntl_h='no';;
8401         esac
8402 fi
8403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8404   conftest.$ac_objext conftest.beam conftest.$ac_ext
8405 fi
8406
8407 fi
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8409 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8410
8411   case $gl_cv_header_working_fcntl_h in #(
8412   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8413   *) ac_val=1;;
8414   esac
8415
8416 cat >>confdefs.h <<_ACEOF
8417 #define HAVE_WORKING_O_NOATIME $ac_val
8418 _ACEOF
8419
8420
8421   case $gl_cv_header_working_fcntl_h in #(
8422   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8423   *) ac_val=1;;
8424   esac
8425
8426 cat >>confdefs.h <<_ACEOF
8427 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8428 _ACEOF
8429
8430
8431
8432     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8433 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8434 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8435   $as_echo_n "(cached) " >&6
8436 else
8437   gt_save_LIBS="$LIBS"
8438      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8439      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h.  */
8441 #include <CoreFoundation/CFPreferences.h>
8442 int
8443 main ()
8444 {
8445 CFPreferencesCopyAppValue(NULL, NULL)
8446   ;
8447   return 0;
8448 }
8449 _ACEOF
8450 if ac_fn_c_try_link "$LINENO"; then :
8451   gt_cv_func_CFPreferencesCopyAppValue=yes
8452 else
8453   gt_cv_func_CFPreferencesCopyAppValue=no
8454 fi
8455 rm -f core conftest.err conftest.$ac_objext \
8456     conftest$ac_exeext conftest.$ac_ext
8457      LIBS="$gt_save_LIBS"
8458 fi
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8460 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8461   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8462
8463 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8464
8465   fi
8466     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8467 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8468 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8469   $as_echo_n "(cached) " >&6
8470 else
8471   gt_save_LIBS="$LIBS"
8472      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8473      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h.  */
8475 #include <CoreFoundation/CFLocale.h>
8476 int
8477 main ()
8478 {
8479 CFLocaleCopyCurrent();
8480   ;
8481   return 0;
8482 }
8483 _ACEOF
8484 if ac_fn_c_try_link "$LINENO"; then :
8485   gt_cv_func_CFLocaleCopyCurrent=yes
8486 else
8487   gt_cv_func_CFLocaleCopyCurrent=no
8488 fi
8489 rm -f core conftest.err conftest.$ac_objext \
8490     conftest$ac_exeext conftest.$ac_ext
8491      LIBS="$gt_save_LIBS"
8492 fi
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8494 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8495   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8496
8497 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8498
8499   fi
8500   INTL_MACOSX_LIBS=
8501   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8502     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8503   fi
8504
8505
8506
8507
8508
8509
8510
8511     case "$enable_silent_rules" in
8512     yes) INTL_DEFAULT_VERBOSITY=0;;
8513     no)  INTL_DEFAULT_VERBOSITY=1;;
8514     *)   INTL_DEFAULT_VERBOSITY=1;;
8515   esac
8516
8517
8518   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8519 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8520
8521 else
8522
8523 $as_echo "#define ptrdiff_t long" >>confdefs.h
8524
8525
8526 fi
8527
8528   for ac_header in stddef.h stdlib.h string.h
8529 do :
8530   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8531 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8532 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8533   cat >>confdefs.h <<_ACEOF
8534 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8535 _ACEOF
8536
8537 fi
8538
8539 done
8540
8541   for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
8542     snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
8543 do :
8544   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8545 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8546 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8547   cat >>confdefs.h <<_ACEOF
8548 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8549 _ACEOF
8550
8551 fi
8552 done
8553
8554
8555
8556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8557 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8558 if ${ac_cv_have_decl__snprintf+:} false; then :
8559   $as_echo_n "(cached) " >&6
8560 else
8561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562 /* end confdefs.h.  */
8563 #include <stdio.h>
8564 int
8565 main ()
8566 {
8567
8568 #ifndef _snprintf
8569   char *p = (char *) _snprintf;
8570 #endif
8571
8572   ;
8573   return 0;
8574 }
8575 _ACEOF
8576 if ac_fn_c_try_compile "$LINENO"; then :
8577   ac_cv_have_decl__snprintf=yes
8578 else
8579   ac_cv_have_decl__snprintf=no
8580 fi
8581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8582 fi
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8584 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8585   if test $ac_cv_have_decl__snprintf = yes; then
8586     gt_value=1
8587   else
8588     gt_value=0
8589   fi
8590
8591 cat >>confdefs.h <<_ACEOF
8592 #define HAVE_DECL__SNPRINTF $gt_value
8593 _ACEOF
8594
8595
8596
8597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8598 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8599 if ${ac_cv_have_decl__snwprintf+:} false; then :
8600   $as_echo_n "(cached) " >&6
8601 else
8602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h.  */
8604 #include <stdio.h>
8605 int
8606 main ()
8607 {
8608
8609 #ifndef _snwprintf
8610   char *p = (char *) _snwprintf;
8611 #endif
8612
8613   ;
8614   return 0;
8615 }
8616 _ACEOF
8617 if ac_fn_c_try_compile "$LINENO"; then :
8618   ac_cv_have_decl__snwprintf=yes
8619 else
8620   ac_cv_have_decl__snwprintf=no
8621 fi
8622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623 fi
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8625 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8626   if test $ac_cv_have_decl__snwprintf = yes; then
8627     gt_value=1
8628   else
8629     gt_value=0
8630   fi
8631
8632 cat >>confdefs.h <<_ACEOF
8633 #define HAVE_DECL__SNWPRINTF $gt_value
8634 _ACEOF
8635
8636
8637
8638
8639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8640 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8641 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8642   $as_echo_n "(cached) " >&6
8643 else
8644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8645 /* end confdefs.h.  */
8646 #include <stdio.h>
8647 int
8648 main ()
8649 {
8650
8651 #ifndef getc_unlocked
8652   char *p = (char *) getc_unlocked;
8653 #endif
8654
8655   ;
8656   return 0;
8657 }
8658 _ACEOF
8659 if ac_fn_c_try_compile "$LINENO"; then :
8660   ac_cv_have_decl_getc_unlocked=yes
8661 else
8662   ac_cv_have_decl_getc_unlocked=no
8663 fi
8664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8665 fi
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8667 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8668   if test $ac_cv_have_decl_getc_unlocked = yes; then
8669     gt_value=1
8670   else
8671     gt_value=0
8672   fi
8673
8674 cat >>confdefs.h <<_ACEOF
8675 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8676 _ACEOF
8677
8678
8679
8680   case $gt_cv_func_printf_posix in
8681     *yes) HAVE_POSIX_PRINTF=1 ;;
8682     *) HAVE_POSIX_PRINTF=0 ;;
8683   esac
8684
8685   if test "$ac_cv_func_asprintf" = yes; then
8686     HAVE_ASPRINTF=1
8687   else
8688     HAVE_ASPRINTF=0
8689   fi
8690
8691   if test "$ac_cv_func_snprintf" = yes; then
8692     HAVE_SNPRINTF=1
8693   else
8694     HAVE_SNPRINTF=0
8695   fi
8696
8697   if test "$ac_cv_func_newlocale" = yes; then
8698     HAVE_NEWLOCALE=1
8699   else
8700     HAVE_NEWLOCALE=0
8701   fi
8702
8703   if test "$ac_cv_func_wprintf" = yes; then
8704     HAVE_WPRINTF=1
8705   else
8706     HAVE_WPRINTF=0
8707   fi
8708
8709
8710
8711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8712 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8713 if ${am_cv_langinfo_codeset+:} false; then :
8714   $as_echo_n "(cached) " >&6
8715 else
8716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717 /* end confdefs.h.  */
8718 #include <langinfo.h>
8719 int
8720 main ()
8721 {
8722 char* cs = nl_langinfo(CODESET); return !cs;
8723   ;
8724   return 0;
8725 }
8726 _ACEOF
8727 if ac_fn_c_try_link "$LINENO"; then :
8728   am_cv_langinfo_codeset=yes
8729 else
8730   am_cv_langinfo_codeset=no
8731 fi
8732 rm -f core conftest.err conftest.$ac_objext \
8733     conftest$ac_exeext conftest.$ac_ext
8734
8735 fi
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8737 $as_echo "$am_cv_langinfo_codeset" >&6; }
8738   if test $am_cv_langinfo_codeset = yes; then
8739
8740 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8741
8742   fi
8743
8744
8745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8746 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8747 if ${gt_cv_val_LC_MESSAGES+:} false; then :
8748   $as_echo_n "(cached) " >&6
8749 else
8750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h.  */
8752 #include <locale.h>
8753 int
8754 main ()
8755 {
8756 return LC_MESSAGES
8757   ;
8758   return 0;
8759 }
8760 _ACEOF
8761 if ac_fn_c_try_link "$LINENO"; then :
8762   gt_cv_val_LC_MESSAGES=yes
8763 else
8764   gt_cv_val_LC_MESSAGES=no
8765 fi
8766 rm -f core conftest.err conftest.$ac_objext \
8767     conftest$ac_exeext conftest.$ac_ext
8768 fi
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
8770 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
8771   if test $gt_cv_val_LC_MESSAGES = yes; then
8772
8773 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8774
8775   fi
8776
8777
8778                 if test "$enable_shared" = yes; then
8779     case "$host_os" in
8780       mingw* | cygwin*) is_woe32dll=yes ;;
8781       *) is_woe32dll=no ;;
8782     esac
8783   else
8784     is_woe32dll=no
8785   fi
8786   WOE32DLL=$is_woe32dll
8787
8788
8789       case "$host_os" in
8790     mingw* | cygwin*) is_woe32=yes ;;
8791     *) is_woe32=no ;;
8792   esac
8793   WOE32=$is_woe32
8794
8795   if test $WOE32 = yes; then
8796         if test -n "$ac_tool_prefix"; then
8797   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8798 set dummy ${ac_tool_prefix}windres; ac_word=$2
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8800 $as_echo_n "checking for $ac_word... " >&6; }
8801 if ${ac_cv_prog_WINDRES+:} false; then :
8802   $as_echo_n "(cached) " >&6
8803 else
8804   if test -n "$WINDRES"; then
8805   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8806 else
8807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808 for as_dir in $PATH
8809 do
8810   IFS=$as_save_IFS
8811   test -z "$as_dir" && as_dir=.
8812     for ac_exec_ext in '' $ac_executable_extensions; do
8813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8814     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8816     break 2
8817   fi
8818 done
8819   done
8820 IFS=$as_save_IFS
8821
8822 fi
8823 fi
8824 WINDRES=$ac_cv_prog_WINDRES
8825 if test -n "$WINDRES"; then
8826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8827 $as_echo "$WINDRES" >&6; }
8828 else
8829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830 $as_echo "no" >&6; }
8831 fi
8832
8833
8834 fi
8835 if test -z "$ac_cv_prog_WINDRES"; then
8836   ac_ct_WINDRES=$WINDRES
8837   # Extract the first word of "windres", so it can be a program name with args.
8838 set dummy windres; ac_word=$2
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8840 $as_echo_n "checking for $ac_word... " >&6; }
8841 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
8842   $as_echo_n "(cached) " >&6
8843 else
8844   if test -n "$ac_ct_WINDRES"; then
8845   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8846 else
8847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848 for as_dir in $PATH
8849 do
8850   IFS=$as_save_IFS
8851   test -z "$as_dir" && as_dir=.
8852     for ac_exec_ext in '' $ac_executable_extensions; do
8853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8854     ac_cv_prog_ac_ct_WINDRES="windres"
8855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8856     break 2
8857   fi
8858 done
8859   done
8860 IFS=$as_save_IFS
8861
8862 fi
8863 fi
8864 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8865 if test -n "$ac_ct_WINDRES"; then
8866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8867 $as_echo "$ac_ct_WINDRES" >&6; }
8868 else
8869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8870 $as_echo "no" >&6; }
8871 fi
8872
8873   if test "x$ac_ct_WINDRES" = x; then
8874     WINDRES=""
8875   else
8876     case $cross_compiling:$ac_tool_warned in
8877 yes:)
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8880 ac_tool_warned=yes ;;
8881 esac
8882     WINDRES=$ac_ct_WINDRES
8883   fi
8884 else
8885   WINDRES="$ac_cv_prog_WINDRES"
8886 fi
8887
8888   fi
8889
8890               case "$host_os" in
8891     hpux*) LTLIBC="" ;;
8892     *)     LTLIBC="-lc" ;;
8893   esac
8894
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8922 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8923 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8924   $as_echo_n "(cached) " >&6
8925 else
8926   gt_save_LIBS="$LIBS"
8927      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8928      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h.  */
8930 #include <CoreFoundation/CFPreferences.h>
8931 int
8932 main ()
8933 {
8934 CFPreferencesCopyAppValue(NULL, NULL)
8935   ;
8936   return 0;
8937 }
8938 _ACEOF
8939 if ac_fn_c_try_link "$LINENO"; then :
8940   gt_cv_func_CFPreferencesCopyAppValue=yes
8941 else
8942   gt_cv_func_CFPreferencesCopyAppValue=no
8943 fi
8944 rm -f core conftest.err conftest.$ac_objext \
8945     conftest$ac_exeext conftest.$ac_ext
8946      LIBS="$gt_save_LIBS"
8947 fi
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8949 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8950   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8951
8952 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8953
8954   fi
8955     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
8956 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
8957 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
8958   $as_echo_n "(cached) " >&6
8959 else
8960   gt_save_LIBS="$LIBS"
8961      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8962      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h.  */
8964 #include <CoreFoundation/CFLocale.h>
8965 int
8966 main ()
8967 {
8968 CFLocaleCopyCurrent();
8969   ;
8970   return 0;
8971 }
8972 _ACEOF
8973 if ac_fn_c_try_link "$LINENO"; then :
8974   gt_cv_func_CFLocaleCopyCurrent=yes
8975 else
8976   gt_cv_func_CFLocaleCopyCurrent=no
8977 fi
8978 rm -f core conftest.err conftest.$ac_objext \
8979     conftest$ac_exeext conftest.$ac_ext
8980      LIBS="$gt_save_LIBS"
8981 fi
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8983 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8984   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8985
8986 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
8987
8988   fi
8989   INTL_MACOSX_LIBS=
8990   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8991     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8992   fi
8993
8994
8995
8996
8997
8998
8999     BUILD_INCLUDED_LIBINTL=no
9000     USE_INCLUDED_LIBINTL=no
9001
9002   LIBINTL=
9003   LTLIBINTL=
9004   POSUB=
9005
9006     case " $gt_needs " in
9007     *" need-formatstring-macros "*) gt_api_version=3 ;;
9008     *" need-ngettext "*) gt_api_version=2 ;;
9009     *) gt_api_version=1 ;;
9010   esac
9011   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9012   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9013
9014     if test "$USE_NLS" = "yes"; then
9015     gt_use_preinstalled_gnugettext=no
9016
9017       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
9018 $as_echo_n "checking whether included gettext is requested... " >&6; }
9019
9020 # Check whether --with-included-gettext was given.
9021 if test "${with_included_gettext+set}" = set; then :
9022   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
9023 else
9024   nls_cv_force_use_gnu_gettext=no
9025 fi
9026
9027       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
9028 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
9029
9030       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9031       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9032
9033
9034         if test $gt_api_version -ge 3; then
9035           gt_revision_test_code='
9036 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9037 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9038 #endif
9039 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9040 '
9041         else
9042           gt_revision_test_code=
9043         fi
9044         if test $gt_api_version -ge 2; then
9045           gt_expression_test_code=' + * ngettext ("", "", 0)'
9046         else
9047           gt_expression_test_code=
9048         fi
9049
9050         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9051 $as_echo_n "checking for GNU gettext in libc... " >&6; }
9052 if eval \${$gt_func_gnugettext_libc+:} false; then :
9053   $as_echo_n "(cached) " >&6
9054 else
9055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h.  */
9057 #include <libintl.h>
9058 $gt_revision_test_code
9059 extern int _nl_msg_cat_cntr;
9060 extern int *_nl_domain_bindings;
9061 int
9062 main ()
9063 {
9064 bindtextdomain ("", "");
9065 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
9066   ;
9067   return 0;
9068 }
9069 _ACEOF
9070 if ac_fn_c_try_link "$LINENO"; then :
9071   eval "$gt_func_gnugettext_libc=yes"
9072 else
9073   eval "$gt_func_gnugettext_libc=no"
9074 fi
9075 rm -f core conftest.err conftest.$ac_objext \
9076     conftest$ac_exeext conftest.$ac_ext
9077 fi
9078 eval ac_res=\$$gt_func_gnugettext_libc
9079                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9080 $as_echo "$ac_res" >&6; }
9081
9082         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9083
9084
9085
9086
9087
9088
9089
9090
9091     use_additional=yes
9092
9093   acl_save_prefix="$prefix"
9094   prefix="$acl_final_prefix"
9095   acl_save_exec_prefix="$exec_prefix"
9096   exec_prefix="$acl_final_exec_prefix"
9097
9098     eval additional_includedir=\"$includedir\"
9099     eval additional_libdir=\"$libdir\"
9100
9101   exec_prefix="$acl_save_exec_prefix"
9102   prefix="$acl_save_prefix"
9103
9104
9105 # Check whether --with-libintl-prefix was given.
9106 if test "${with_libintl_prefix+set}" = set; then :
9107   withval=$with_libintl_prefix;
9108     if test "X$withval" = "Xno"; then
9109       use_additional=no
9110     else
9111       if test "X$withval" = "X"; then
9112
9113   acl_save_prefix="$prefix"
9114   prefix="$acl_final_prefix"
9115   acl_save_exec_prefix="$exec_prefix"
9116   exec_prefix="$acl_final_exec_prefix"
9117
9118           eval additional_includedir=\"$includedir\"
9119           eval additional_libdir=\"$libdir\"
9120
9121   exec_prefix="$acl_save_exec_prefix"
9122   prefix="$acl_save_prefix"
9123
9124       else
9125         additional_includedir="$withval/include"
9126         additional_libdir="$withval/$acl_libdirstem"
9127         if test "$acl_libdirstem2" != "$acl_libdirstem" \
9128            && ! test -d "$withval/$acl_libdirstem"; then
9129           additional_libdir="$withval/$acl_libdirstem2"
9130         fi
9131       fi
9132     fi
9133
9134 fi
9135
9136       LIBINTL=
9137   LTLIBINTL=
9138   INCINTL=
9139   LIBINTL_PREFIX=
9140       HAVE_LIBINTL=
9141   rpathdirs=
9142   ltrpathdirs=
9143   names_already_handled=
9144   names_next_round='intl '
9145   while test -n "$names_next_round"; do
9146     names_this_round="$names_next_round"
9147     names_next_round=
9148     for name in $names_this_round; do
9149       already_handled=
9150       for n in $names_already_handled; do
9151         if test "$n" = "$name"; then
9152           already_handled=yes
9153           break
9154         fi
9155       done
9156       if test -z "$already_handled"; then
9157         names_already_handled="$names_already_handled $name"
9158                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9159         eval value=\"\$HAVE_LIB$uppername\"
9160         if test -n "$value"; then
9161           if test "$value" = yes; then
9162             eval value=\"\$LIB$uppername\"
9163             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9164             eval value=\"\$LTLIB$uppername\"
9165             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9166           else
9167                                     :
9168           fi
9169         else
9170                               found_dir=
9171           found_la=
9172           found_so=
9173           found_a=
9174           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
9175           if test -n "$acl_shlibext"; then
9176             shrext=".$acl_shlibext"             # typically: shrext=.so
9177           else
9178             shrext=
9179           fi
9180           if test $use_additional = yes; then
9181             dir="$additional_libdir"
9182                                     if test -n "$acl_shlibext"; then
9183               if test -f "$dir/$libname$shrext"; then
9184                 found_dir="$dir"
9185                 found_so="$dir/$libname$shrext"
9186               else
9187                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9188                   ver=`(cd "$dir" && \
9189                         for f in "$libname$shrext".*; do echo "$f"; done \
9190                         | sed -e "s,^$libname$shrext\\\\.,," \
9191                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9192                         | sed 1q ) 2>/dev/null`
9193                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9194                     found_dir="$dir"
9195                     found_so="$dir/$libname$shrext.$ver"
9196                   fi
9197                 else
9198                   eval library_names=\"$acl_library_names_spec\"
9199                   for f in $library_names; do
9200                     if test -f "$dir/$f"; then
9201                       found_dir="$dir"
9202                       found_so="$dir/$f"
9203                       break
9204                     fi
9205                   done
9206                 fi
9207               fi
9208             fi
9209                         if test "X$found_dir" = "X"; then
9210               if test -f "$dir/$libname.$acl_libext"; then
9211                 found_dir="$dir"
9212                 found_a="$dir/$libname.$acl_libext"
9213               fi
9214             fi
9215             if test "X$found_dir" != "X"; then
9216               if test -f "$dir/$libname.la"; then
9217                 found_la="$dir/$libname.la"
9218               fi
9219             fi
9220           fi
9221           if test "X$found_dir" = "X"; then
9222             for x in $LDFLAGS $LTLIBINTL; do
9223
9224   acl_save_prefix="$prefix"
9225   prefix="$acl_final_prefix"
9226   acl_save_exec_prefix="$exec_prefix"
9227   exec_prefix="$acl_final_exec_prefix"
9228   eval x=\"$x\"
9229   exec_prefix="$acl_save_exec_prefix"
9230   prefix="$acl_save_prefix"
9231
9232               case "$x" in
9233                 -L*)
9234                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9235                                     if test -n "$acl_shlibext"; then
9236                     if test -f "$dir/$libname$shrext"; then
9237                       found_dir="$dir"
9238                       found_so="$dir/$libname$shrext"
9239                     else
9240                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9241                         ver=`(cd "$dir" && \
9242                               for f in "$libname$shrext".*; do echo "$f"; done \
9243                               | sed -e "s,^$libname$shrext\\\\.,," \
9244                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9245                               | sed 1q ) 2>/dev/null`
9246                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9247                           found_dir="$dir"
9248                           found_so="$dir/$libname$shrext.$ver"
9249                         fi
9250                       else
9251                         eval library_names=\"$acl_library_names_spec\"
9252                         for f in $library_names; do
9253                           if test -f "$dir/$f"; then
9254                             found_dir="$dir"
9255                             found_so="$dir/$f"
9256                             break
9257                           fi
9258                         done
9259                       fi
9260                     fi
9261                   fi
9262                                     if test "X$found_dir" = "X"; then
9263                     if test -f "$dir/$libname.$acl_libext"; then
9264                       found_dir="$dir"
9265                       found_a="$dir/$libname.$acl_libext"
9266                     fi
9267                   fi
9268                   if test "X$found_dir" != "X"; then
9269                     if test -f "$dir/$libname.la"; then
9270                       found_la="$dir/$libname.la"
9271                     fi
9272                   fi
9273                   ;;
9274               esac
9275               if test "X$found_dir" != "X"; then
9276                 break
9277               fi
9278             done
9279           fi
9280           if test "X$found_dir" != "X"; then
9281                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9282             if test "X$found_so" != "X"; then
9283                                                         if test "$enable_rpath" = no \
9284                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9285                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9286                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9287               else
9288                                                                                 haveit=
9289                 for x in $ltrpathdirs; do
9290                   if test "X$x" = "X$found_dir"; then
9291                     haveit=yes
9292                     break
9293                   fi
9294                 done
9295                 if test -z "$haveit"; then
9296                   ltrpathdirs="$ltrpathdirs $found_dir"
9297                 fi
9298                                 if test "$acl_hardcode_direct" = yes; then
9299                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9300                 else
9301                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9302                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9303                                                             haveit=
9304                     for x in $rpathdirs; do
9305                       if test "X$x" = "X$found_dir"; then
9306                         haveit=yes
9307                         break
9308                       fi
9309                     done
9310                     if test -z "$haveit"; then
9311                       rpathdirs="$rpathdirs $found_dir"
9312                     fi
9313                   else
9314                                                                                 haveit=
9315                     for x in $LDFLAGS $LIBINTL; do
9316
9317   acl_save_prefix="$prefix"
9318   prefix="$acl_final_prefix"
9319   acl_save_exec_prefix="$exec_prefix"
9320   exec_prefix="$acl_final_exec_prefix"
9321   eval x=\"$x\"
9322   exec_prefix="$acl_save_exec_prefix"
9323   prefix="$acl_save_prefix"
9324
9325                       if test "X$x" = "X-L$found_dir"; then
9326                         haveit=yes
9327                         break
9328                       fi
9329                     done
9330                     if test -z "$haveit"; then
9331                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9332                     fi
9333                     if test "$acl_hardcode_minus_L" != no; then
9334                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9335                     else
9336                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9337                     fi
9338                   fi
9339                 fi
9340               fi
9341             else
9342               if test "X$found_a" != "X"; then
9343                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9344               else
9345                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9346               fi
9347             fi
9348                         additional_includedir=
9349             case "$found_dir" in
9350               */$acl_libdirstem | */$acl_libdirstem/)
9351                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9352                 if test "$name" = 'intl'; then
9353                   LIBINTL_PREFIX="$basedir"
9354                 fi
9355                 additional_includedir="$basedir/include"
9356                 ;;
9357               */$acl_libdirstem2 | */$acl_libdirstem2/)
9358                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9359                 if test "$name" = 'intl'; then
9360                   LIBINTL_PREFIX="$basedir"
9361                 fi
9362                 additional_includedir="$basedir/include"
9363                 ;;
9364             esac
9365             if test "X$additional_includedir" != "X"; then
9366                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9367                 haveit=
9368                 if test "X$additional_includedir" = "X/usr/local/include"; then
9369                   if test -n "$GCC"; then
9370                     case $host_os in
9371                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9372                     esac
9373                   fi
9374                 fi
9375                 if test -z "$haveit"; then
9376                   for x in $CPPFLAGS $INCINTL; do
9377
9378   acl_save_prefix="$prefix"
9379   prefix="$acl_final_prefix"
9380   acl_save_exec_prefix="$exec_prefix"
9381   exec_prefix="$acl_final_exec_prefix"
9382   eval x=\"$x\"
9383   exec_prefix="$acl_save_exec_prefix"
9384   prefix="$acl_save_prefix"
9385
9386                     if test "X$x" = "X-I$additional_includedir"; then
9387                       haveit=yes
9388                       break
9389                     fi
9390                   done
9391                   if test -z "$haveit"; then
9392                     if test -d "$additional_includedir"; then
9393                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9394                     fi
9395                   fi
9396                 fi
9397               fi
9398             fi
9399                         if test -n "$found_la"; then
9400                                                         save_libdir="$libdir"
9401               case "$found_la" in
9402                 */* | *\\*) . "$found_la" ;;
9403                 *) . "./$found_la" ;;
9404               esac
9405               libdir="$save_libdir"
9406                             for dep in $dependency_libs; do
9407                 case "$dep" in
9408                   -L*)
9409                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9410                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9411                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9412                       haveit=
9413                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9414                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9415                         if test -n "$GCC"; then
9416                           case $host_os in
9417                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9418                           esac
9419                         fi
9420                       fi
9421                       if test -z "$haveit"; then
9422                         haveit=
9423                         for x in $LDFLAGS $LIBINTL; do
9424
9425   acl_save_prefix="$prefix"
9426   prefix="$acl_final_prefix"
9427   acl_save_exec_prefix="$exec_prefix"
9428   exec_prefix="$acl_final_exec_prefix"
9429   eval x=\"$x\"
9430   exec_prefix="$acl_save_exec_prefix"
9431   prefix="$acl_save_prefix"
9432
9433                           if test "X$x" = "X-L$additional_libdir"; then
9434                             haveit=yes
9435                             break
9436                           fi
9437                         done
9438                         if test -z "$haveit"; then
9439                           if test -d "$additional_libdir"; then
9440                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9441                           fi
9442                         fi
9443                         haveit=
9444                         for x in $LDFLAGS $LTLIBINTL; do
9445
9446   acl_save_prefix="$prefix"
9447   prefix="$acl_final_prefix"
9448   acl_save_exec_prefix="$exec_prefix"
9449   exec_prefix="$acl_final_exec_prefix"
9450   eval x=\"$x\"
9451   exec_prefix="$acl_save_exec_prefix"
9452   prefix="$acl_save_prefix"
9453
9454                           if test "X$x" = "X-L$additional_libdir"; then
9455                             haveit=yes
9456                             break
9457                           fi
9458                         done
9459                         if test -z "$haveit"; then
9460                           if test -d "$additional_libdir"; then
9461                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9462                           fi
9463                         fi
9464                       fi
9465                     fi
9466                     ;;
9467                   -R*)
9468                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9469                     if test "$enable_rpath" != no; then
9470                                                                   haveit=
9471                       for x in $rpathdirs; do
9472                         if test "X$x" = "X$dir"; then
9473                           haveit=yes
9474                           break
9475                         fi
9476                       done
9477                       if test -z "$haveit"; then
9478                         rpathdirs="$rpathdirs $dir"
9479                       fi
9480                                                                   haveit=
9481                       for x in $ltrpathdirs; do
9482                         if test "X$x" = "X$dir"; then
9483                           haveit=yes
9484                           break
9485                         fi
9486                       done
9487                       if test -z "$haveit"; then
9488                         ltrpathdirs="$ltrpathdirs $dir"
9489                       fi
9490                     fi
9491                     ;;
9492                   -l*)
9493                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9494                     ;;
9495                   *.la)
9496                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9497                     ;;
9498                   *)
9499                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9500                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9501                     ;;
9502                 esac
9503               done
9504             fi
9505           else
9506                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9507             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9508           fi
9509         fi
9510       fi
9511     done
9512   done
9513   if test "X$rpathdirs" != "X"; then
9514     if test -n "$acl_hardcode_libdir_separator"; then
9515                         alldirs=
9516       for found_dir in $rpathdirs; do
9517         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9518       done
9519             acl_save_libdir="$libdir"
9520       libdir="$alldirs"
9521       eval flag=\"$acl_hardcode_libdir_flag_spec\"
9522       libdir="$acl_save_libdir"
9523       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9524     else
9525             for found_dir in $rpathdirs; do
9526         acl_save_libdir="$libdir"
9527         libdir="$found_dir"
9528         eval flag=\"$acl_hardcode_libdir_flag_spec\"
9529         libdir="$acl_save_libdir"
9530         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9531       done
9532     fi
9533   fi
9534   if test "X$ltrpathdirs" != "X"; then
9535             for found_dir in $ltrpathdirs; do
9536       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9537     done
9538   fi
9539
9540
9541
9542
9543
9544
9545           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9546 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9547 if eval \${$gt_func_gnugettext_libintl+:} false; then :
9548   $as_echo_n "(cached) " >&6
9549 else
9550   gt_save_CPPFLAGS="$CPPFLAGS"
9551             CPPFLAGS="$CPPFLAGS $INCINTL"
9552             gt_save_LIBS="$LIBS"
9553             LIBS="$LIBS $LIBINTL"
9554                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h.  */
9556 #include <libintl.h>
9557 $gt_revision_test_code
9558 extern int _nl_msg_cat_cntr;
9559 extern
9560 #ifdef __cplusplus
9561 "C"
9562 #endif
9563 const char *_nl_expand_alias (const char *);
9564 int
9565 main ()
9566 {
9567 bindtextdomain ("", "");
9568 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9569   ;
9570   return 0;
9571 }
9572 _ACEOF
9573 if ac_fn_c_try_link "$LINENO"; then :
9574   eval "$gt_func_gnugettext_libintl=yes"
9575 else
9576   eval "$gt_func_gnugettext_libintl=no"
9577 fi
9578 rm -f core conftest.err conftest.$ac_objext \
9579     conftest$ac_exeext conftest.$ac_ext
9580                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
9581               LIBS="$LIBS $LIBICONV"
9582               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h.  */
9584 #include <libintl.h>
9585 $gt_revision_test_code
9586 extern int _nl_msg_cat_cntr;
9587 extern
9588 #ifdef __cplusplus
9589 "C"
9590 #endif
9591 const char *_nl_expand_alias (const char *);
9592 int
9593 main ()
9594 {
9595 bindtextdomain ("", "");
9596 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
9597   ;
9598   return 0;
9599 }
9600 _ACEOF
9601 if ac_fn_c_try_link "$LINENO"; then :
9602   LIBINTL="$LIBINTL $LIBICONV"
9603                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9604                 eval "$gt_func_gnugettext_libintl=yes"
9605
9606 fi
9607 rm -f core conftest.err conftest.$ac_objext \
9608     conftest$ac_exeext conftest.$ac_ext
9609             fi
9610             CPPFLAGS="$gt_save_CPPFLAGS"
9611             LIBS="$gt_save_LIBS"
9612 fi
9613 eval ac_res=\$$gt_func_gnugettext_libintl
9614                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9615 $as_echo "$ac_res" >&6; }
9616         fi
9617
9618                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9619            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
9620                 && test "$PACKAGE" != gettext-runtime \
9621                 && test "$PACKAGE" != gettext-tools; }; then
9622           gt_use_preinstalled_gnugettext=yes
9623         else
9624                     LIBINTL=
9625           LTLIBINTL=
9626           INCINTL=
9627         fi
9628
9629
9630         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9631                               nls_cv_use_gnu_gettext=yes
9632         fi
9633       fi
9634
9635       if test "$nls_cv_use_gnu_gettext" = "yes"; then
9636                 BUILD_INCLUDED_LIBINTL=yes
9637         USE_INCLUDED_LIBINTL=yes
9638         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
9639         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
9640         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9641       fi
9642
9643       CATOBJEXT=
9644       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9645          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9646                 CATOBJEXT=.gmo
9647       fi
9648
9649
9650     if test -n "$INTL_MACOSX_LIBS"; then
9651       if test "$gt_use_preinstalled_gnugettext" = "yes" \
9652          || test "$nls_cv_use_gnu_gettext" = "yes"; then
9653                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9654         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9655       fi
9656     fi
9657
9658     if test "$gt_use_preinstalled_gnugettext" = "yes" \
9659        || test "$nls_cv_use_gnu_gettext" = "yes"; then
9660
9661 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9662
9663     else
9664       USE_NLS=no
9665     fi
9666   fi
9667
9668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9669 $as_echo_n "checking whether to use NLS... " >&6; }
9670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9671 $as_echo "$USE_NLS" >&6; }
9672   if test "$USE_NLS" = "yes"; then
9673     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9674 $as_echo_n "checking where the gettext function comes from... " >&6; }
9675     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9676       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9677         gt_source="external libintl"
9678       else
9679         gt_source="libc"
9680       fi
9681     else
9682       gt_source="included intl directory"
9683     fi
9684     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9685 $as_echo "$gt_source" >&6; }
9686   fi
9687
9688   if test "$USE_NLS" = "yes"; then
9689
9690     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9691       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
9692         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9693 $as_echo_n "checking how to link with libintl... " >&6; }
9694         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9695 $as_echo "$LIBINTL" >&6; }
9696
9697   for element in $INCINTL; do
9698     haveit=
9699     for x in $CPPFLAGS; do
9700
9701   acl_save_prefix="$prefix"
9702   prefix="$acl_final_prefix"
9703   acl_save_exec_prefix="$exec_prefix"
9704   exec_prefix="$acl_final_exec_prefix"
9705   eval x=\"$x\"
9706   exec_prefix="$acl_save_exec_prefix"
9707   prefix="$acl_save_prefix"
9708
9709       if test "X$x" = "X$element"; then
9710         haveit=yes
9711         break
9712       fi
9713     done
9714     if test -z "$haveit"; then
9715       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9716     fi
9717   done
9718
9719       fi
9720
9721
9722 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9723
9724
9725 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9726
9727     fi
9728
9729         POSUB=po
9730   fi
9731
9732
9733             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9734       BUILD_INCLUDED_LIBINTL=yes
9735     fi
9736
9737
9738
9739
9740
9741         nls_cv_header_intl=
9742     nls_cv_header_libgt=
9743
9744         DATADIRNAME=share
9745
9746
9747         INSTOBJEXT=.mo
9748
9749
9750         GENCAT=gencat
9751
9752
9753         INTLOBJS=
9754     if test "$USE_INCLUDED_LIBINTL" = yes; then
9755       INTLOBJS="\$(GETTOBJS)"
9756     fi
9757
9758
9759         INTL_LIBTOOL_SUFFIX_PREFIX=
9760
9761
9762
9763     INTLLIBS="$LIBINTL"
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775         abook_localedir="$datadir/locale"
9776                         abook_localedir=`(      test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9777                 eval tmp_abook_prefix=\""$abook_localedir"\"
9778                 eval echo $tmp_abook_prefix
9779                 )`
9780
9781 localedir="\$(datadir)/locale"
9782
9783
9784 # Check whether --with-localedir was given.
9785 if test "${with_localedir+set}" = set; then :
9786   withval=$with_localedir;
9787 fi
9788
9789 if test "x$with_localedir" != "x"; then
9790         abook_localedir="$with_localedir"
9791         localedir="$with_localedir"
9792 fi
9793
9794
9795 cat >>confdefs.h <<_ACEOF
9796 #define LOCALEDIR "$abook_localedir"
9797 _ACEOF
9798
9799
9800
9801  if test x$USE_INCLUDED_LIBINTL = xyes; then
9802   USE_INCLUDED_INTL_H_TRUE=
9803   USE_INCLUDED_INTL_H_FALSE='#'
9804 else
9805   USE_INCLUDED_INTL_H_TRUE='#'
9806   USE_INCLUDED_INTL_H_FALSE=
9807 fi
9808
9809
9810
9811 ac_ext=c
9812 ac_cpp='$CPP $CPPFLAGS'
9813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9816 if test -n "$ac_tool_prefix"; then
9817   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9818 set dummy ${ac_tool_prefix}gcc; ac_word=$2
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9820 $as_echo_n "checking for $ac_word... " >&6; }
9821 if ${ac_cv_prog_CC+:} false; then :
9822   $as_echo_n "(cached) " >&6
9823 else
9824   if test -n "$CC"; then
9825   ac_cv_prog_CC="$CC" # Let the user override the test.
9826 else
9827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9828 for as_dir in $PATH
9829 do
9830   IFS=$as_save_IFS
9831   test -z "$as_dir" && as_dir=.
9832     for ac_exec_ext in '' $ac_executable_extensions; do
9833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9834     ac_cv_prog_CC="${ac_tool_prefix}gcc"
9835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9836     break 2
9837   fi
9838 done
9839   done
9840 IFS=$as_save_IFS
9841
9842 fi
9843 fi
9844 CC=$ac_cv_prog_CC
9845 if test -n "$CC"; then
9846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9847 $as_echo "$CC" >&6; }
9848 else
9849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9850 $as_echo "no" >&6; }
9851 fi
9852
9853
9854 fi
9855 if test -z "$ac_cv_prog_CC"; then
9856   ac_ct_CC=$CC
9857   # Extract the first word of "gcc", so it can be a program name with args.
9858 set dummy gcc; ac_word=$2
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9860 $as_echo_n "checking for $ac_word... " >&6; }
9861 if ${ac_cv_prog_ac_ct_CC+:} false; then :
9862   $as_echo_n "(cached) " >&6
9863 else
9864   if test -n "$ac_ct_CC"; then
9865   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9866 else
9867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9868 for as_dir in $PATH
9869 do
9870   IFS=$as_save_IFS
9871   test -z "$as_dir" && as_dir=.
9872     for ac_exec_ext in '' $ac_executable_extensions; do
9873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9874     ac_cv_prog_ac_ct_CC="gcc"
9875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9876     break 2
9877   fi
9878 done
9879   done
9880 IFS=$as_save_IFS
9881
9882 fi
9883 fi
9884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9885 if test -n "$ac_ct_CC"; then
9886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
9887 $as_echo "$ac_ct_CC" >&6; }
9888 else
9889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9890 $as_echo "no" >&6; }
9891 fi
9892
9893   if test "x$ac_ct_CC" = x; then
9894     CC=""
9895   else
9896     case $cross_compiling:$ac_tool_warned in
9897 yes:)
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9900 ac_tool_warned=yes ;;
9901 esac
9902     CC=$ac_ct_CC
9903   fi
9904 else
9905   CC="$ac_cv_prog_CC"
9906 fi
9907
9908 if test -z "$CC"; then
9909           if test -n "$ac_tool_prefix"; then
9910     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9911 set dummy ${ac_tool_prefix}cc; ac_word=$2
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9913 $as_echo_n "checking for $ac_word... " >&6; }
9914 if ${ac_cv_prog_CC+:} false; then :
9915   $as_echo_n "(cached) " >&6
9916 else
9917   if test -n "$CC"; then
9918   ac_cv_prog_CC="$CC" # Let the user override the test.
9919 else
9920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9921 for as_dir in $PATH
9922 do
9923   IFS=$as_save_IFS
9924   test -z "$as_dir" && as_dir=.
9925     for ac_exec_ext in '' $ac_executable_extensions; do
9926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9927     ac_cv_prog_CC="${ac_tool_prefix}cc"
9928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9929     break 2
9930   fi
9931 done
9932   done
9933 IFS=$as_save_IFS
9934
9935 fi
9936 fi
9937 CC=$ac_cv_prog_CC
9938 if test -n "$CC"; then
9939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9940 $as_echo "$CC" >&6; }
9941 else
9942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9943 $as_echo "no" >&6; }
9944 fi
9945
9946
9947   fi
9948 fi
9949 if test -z "$CC"; then
9950   # Extract the first word of "cc", so it can be a program name with args.
9951 set dummy cc; ac_word=$2
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9953 $as_echo_n "checking for $ac_word... " >&6; }
9954 if ${ac_cv_prog_CC+:} false; then :
9955   $as_echo_n "(cached) " >&6
9956 else
9957   if test -n "$CC"; then
9958   ac_cv_prog_CC="$CC" # Let the user override the test.
9959 else
9960   ac_prog_rejected=no
9961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9962 for as_dir in $PATH
9963 do
9964   IFS=$as_save_IFS
9965   test -z "$as_dir" && as_dir=.
9966     for ac_exec_ext in '' $ac_executable_extensions; do
9967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9968     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9969        ac_prog_rejected=yes
9970        continue
9971      fi
9972     ac_cv_prog_CC="cc"
9973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9974     break 2
9975   fi
9976 done
9977   done
9978 IFS=$as_save_IFS
9979
9980 if test $ac_prog_rejected = yes; then
9981   # We found a bogon in the path, so make sure we never use it.
9982   set dummy $ac_cv_prog_CC
9983   shift
9984   if test $# != 0; then
9985     # We chose a different compiler from the bogus one.
9986     # However, it has the same basename, so the bogon will be chosen
9987     # first if we set CC to just the basename; use the full file name.
9988     shift
9989     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9990   fi
9991 fi
9992 fi
9993 fi
9994 CC=$ac_cv_prog_CC
9995 if test -n "$CC"; then
9996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
9997 $as_echo "$CC" >&6; }
9998 else
9999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10000 $as_echo "no" >&6; }
10001 fi
10002
10003
10004 fi
10005 if test -z "$CC"; then
10006   if test -n "$ac_tool_prefix"; then
10007   for ac_prog in cl.exe
10008   do
10009     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10012 $as_echo_n "checking for $ac_word... " >&6; }
10013 if ${ac_cv_prog_CC+:} false; then :
10014   $as_echo_n "(cached) " >&6
10015 else
10016   if test -n "$CC"; then
10017   ac_cv_prog_CC="$CC" # Let the user override the test.
10018 else
10019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10020 for as_dir in $PATH
10021 do
10022   IFS=$as_save_IFS
10023   test -z "$as_dir" && as_dir=.
10024     for ac_exec_ext in '' $ac_executable_extensions; do
10025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10026     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10028     break 2
10029   fi
10030 done
10031   done
10032 IFS=$as_save_IFS
10033
10034 fi
10035 fi
10036 CC=$ac_cv_prog_CC
10037 if test -n "$CC"; then
10038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10039 $as_echo "$CC" >&6; }
10040 else
10041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10042 $as_echo "no" >&6; }
10043 fi
10044
10045
10046     test -n "$CC" && break
10047   done
10048 fi
10049 if test -z "$CC"; then
10050   ac_ct_CC=$CC
10051   for ac_prog in cl.exe
10052 do
10053   # Extract the first word of "$ac_prog", so it can be a program name with args.
10054 set dummy $ac_prog; ac_word=$2
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10056 $as_echo_n "checking for $ac_word... " >&6; }
10057 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10058   $as_echo_n "(cached) " >&6
10059 else
10060   if test -n "$ac_ct_CC"; then
10061   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10062 else
10063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10065 do
10066   IFS=$as_save_IFS
10067   test -z "$as_dir" && as_dir=.
10068     for ac_exec_ext in '' $ac_executable_extensions; do
10069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10070     ac_cv_prog_ac_ct_CC="$ac_prog"
10071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10072     break 2
10073   fi
10074 done
10075   done
10076 IFS=$as_save_IFS
10077
10078 fi
10079 fi
10080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10081 if test -n "$ac_ct_CC"; then
10082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10083 $as_echo "$ac_ct_CC" >&6; }
10084 else
10085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10086 $as_echo "no" >&6; }
10087 fi
10088
10089
10090   test -n "$ac_ct_CC" && break
10091 done
10092
10093   if test "x$ac_ct_CC" = x; then
10094     CC=""
10095   else
10096     case $cross_compiling:$ac_tool_warned in
10097 yes:)
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10100 ac_tool_warned=yes ;;
10101 esac
10102     CC=$ac_ct_CC
10103   fi
10104 fi
10105
10106 fi
10107
10108
10109 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10111 as_fn_error $? "no acceptable C compiler found in \$PATH
10112 See \`config.log' for more details" "$LINENO" 5; }
10113
10114 # Provide some information about the compiler.
10115 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10116 set X $ac_compile
10117 ac_compiler=$2
10118 for ac_option in --version -v -V -qversion; do
10119   { { ac_try="$ac_compiler $ac_option >&5"
10120 case "(($ac_try" in
10121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122   *) ac_try_echo=$ac_try;;
10123 esac
10124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10125 $as_echo "$ac_try_echo"; } >&5
10126   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10127   ac_status=$?
10128   if test -s conftest.err; then
10129     sed '10a\
10130 ... rest of stderr output deleted ...
10131          10q' conftest.err >conftest.er1
10132     cat conftest.er1 >&5
10133   fi
10134   rm -f conftest.er1 conftest.err
10135   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10136   test $ac_status = 0; }
10137 done
10138
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10140 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10141 if ${ac_cv_c_compiler_gnu+:} false; then :
10142   $as_echo_n "(cached) " >&6
10143 else
10144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145 /* end confdefs.h.  */
10146
10147 int
10148 main ()
10149 {
10150 #ifndef __GNUC__
10151        choke me
10152 #endif
10153
10154   ;
10155   return 0;
10156 }
10157 _ACEOF
10158 if ac_fn_c_try_compile "$LINENO"; then :
10159   ac_compiler_gnu=yes
10160 else
10161   ac_compiler_gnu=no
10162 fi
10163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10164 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10165
10166 fi
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10168 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
10169 if test $ac_compiler_gnu = yes; then
10170   GCC=yes
10171 else
10172   GCC=
10173 fi
10174 ac_test_CFLAGS=${CFLAGS+set}
10175 ac_save_CFLAGS=$CFLAGS
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10177 $as_echo_n "checking whether $CC accepts -g... " >&6; }
10178 if ${ac_cv_prog_cc_g+:} false; then :
10179   $as_echo_n "(cached) " >&6
10180 else
10181   ac_save_c_werror_flag=$ac_c_werror_flag
10182    ac_c_werror_flag=yes
10183    ac_cv_prog_cc_g=no
10184    CFLAGS="-g"
10185    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h.  */
10187
10188 int
10189 main ()
10190 {
10191
10192   ;
10193   return 0;
10194 }
10195 _ACEOF
10196 if ac_fn_c_try_compile "$LINENO"; then :
10197   ac_cv_prog_cc_g=yes
10198 else
10199   CFLAGS=""
10200       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10201 /* end confdefs.h.  */
10202
10203 int
10204 main ()
10205 {
10206
10207   ;
10208   return 0;
10209 }
10210 _ACEOF
10211 if ac_fn_c_try_compile "$LINENO"; then :
10212
10213 else
10214   ac_c_werror_flag=$ac_save_c_werror_flag
10215          CFLAGS="-g"
10216          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h.  */
10218
10219 int
10220 main ()
10221 {
10222
10223   ;
10224   return 0;
10225 }
10226 _ACEOF
10227 if ac_fn_c_try_compile "$LINENO"; then :
10228   ac_cv_prog_cc_g=yes
10229 fi
10230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10231 fi
10232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10233 fi
10234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10235    ac_c_werror_flag=$ac_save_c_werror_flag
10236 fi
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
10238 $as_echo "$ac_cv_prog_cc_g" >&6; }
10239 if test "$ac_test_CFLAGS" = set; then
10240   CFLAGS=$ac_save_CFLAGS
10241 elif test $ac_cv_prog_cc_g = yes; then
10242   if test "$GCC" = yes; then
10243     CFLAGS="-g -O2"
10244   else
10245     CFLAGS="-g"
10246   fi
10247 else
10248   if test "$GCC" = yes; then
10249     CFLAGS="-O2"
10250   else
10251     CFLAGS=
10252   fi
10253 fi
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
10255 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
10256 if ${ac_cv_prog_cc_c89+:} false; then :
10257   $as_echo_n "(cached) " >&6
10258 else
10259   ac_cv_prog_cc_c89=no
10260 ac_save_CC=$CC
10261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10262 /* end confdefs.h.  */
10263 #include <stdarg.h>
10264 #include <stdio.h>
10265 #include <sys/types.h>
10266 #include <sys/stat.h>
10267 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10268 struct buf { int x; };
10269 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10270 static char *e (p, i)
10271      char **p;
10272      int i;
10273 {
10274   return p[i];
10275 }
10276 static char *f (char * (*g) (char **, int), char **p, ...)
10277 {
10278   char *s;
10279   va_list v;
10280   va_start (v,p);
10281   s = g (p, va_arg (v,int));
10282   va_end (v);
10283   return s;
10284 }
10285
10286 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
10287    function prototypes and stuff, but not '\xHH' hex character constants.
10288    These don't provoke an error unfortunately, instead are silently treated
10289    as 'x'.  The following induces an error, until -std is added to get
10290    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
10291    array size at least.  It's necessary to write '\x00'==0 to get something
10292    that's true only with -std.  */
10293 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10294
10295 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
10296    inside strings and character constants.  */
10297 #define FOO(x) 'x'
10298 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
10299
10300 int test (int i, double x);
10301 struct s1 {int (*f) (int a);};
10302 struct s2 {int (*f) (double a);};
10303 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10304 int argc;
10305 char **argv;
10306 int
10307 main ()
10308 {
10309 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
10310   ;
10311   return 0;
10312 }
10313 _ACEOF
10314 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
10315         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10316 do
10317   CC="$ac_save_CC $ac_arg"
10318   if ac_fn_c_try_compile "$LINENO"; then :
10319   ac_cv_prog_cc_c89=$ac_arg
10320 fi
10321 rm -f core conftest.err conftest.$ac_objext
10322   test "x$ac_cv_prog_cc_c89" != "xno" && break
10323 done
10324 rm -f conftest.$ac_ext
10325 CC=$ac_save_CC
10326
10327 fi
10328 # AC_CACHE_VAL
10329 case "x$ac_cv_prog_cc_c89" in
10330   x)
10331     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10332 $as_echo "none needed" >&6; } ;;
10333   xno)
10334     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10335 $as_echo "unsupported" >&6; } ;;
10336   *)
10337     CC="$CC $ac_cv_prog_cc_c89"
10338     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
10339 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
10340 esac
10341 if test "x$ac_cv_prog_cc_c89" != xno; then :
10342
10343 fi
10344
10345 ac_ext=c
10346 ac_cpp='$CPP $CPPFLAGS'
10347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10350
10351 depcc="$CC"   am_compiler_list=
10352
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10354 $as_echo_n "checking dependency style of $depcc... " >&6; }
10355 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
10356   $as_echo_n "(cached) " >&6
10357 else
10358   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10359   # We make a subdir and do the tests there.  Otherwise we can end up
10360   # making bogus files that we don't know about and never remove.  For
10361   # instance it was reported that on HP-UX the gcc test will end up
10362   # making a dummy file named `D' -- because `-MD' means `put the output
10363   # in D'.
10364   rm -rf conftest.dir
10365   mkdir conftest.dir
10366   # Copy depcomp to subdir because otherwise we won't find it if we're
10367   # using a relative directory.
10368   cp "$am_depcomp" conftest.dir
10369   cd conftest.dir
10370   # We will build objects and dependencies in a subdirectory because
10371   # it helps to detect inapplicable dependency modes.  For instance
10372   # both Tru64's cc and ICC support -MD to output dependencies as a
10373   # side effect of compilation, but ICC will put the dependencies in
10374   # the current directory while Tru64 will put them in the object
10375   # directory.
10376   mkdir sub
10377
10378   am_cv_CC_dependencies_compiler_type=none
10379   if test "$am_compiler_list" = ""; then
10380      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10381   fi
10382   am__universal=false
10383   case " $depcc " in #(
10384      *\ -arch\ *\ -arch\ *) am__universal=true ;;
10385      esac
10386
10387   for depmode in $am_compiler_list; do
10388     # Setup a source with many dependencies, because some compilers
10389     # like to wrap large dependency lists on column 80 (with \), and
10390     # we should not choose a depcomp mode which is confused by this.
10391     #
10392     # We need to recreate these files for each test, as the compiler may
10393     # overwrite some of them when testing with obscure command lines.
10394     # This happens at least with the AIX C compiler.
10395     : > sub/conftest.c
10396     for i in 1 2 3 4 5 6; do
10397       echo '#include "conftst'$i'.h"' >> sub/conftest.c
10398       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10399       # Solaris 8's {/usr,}/bin/sh.
10400       touch sub/conftst$i.h
10401     done
10402     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10403
10404     # We check with `-c' and `-o' for the sake of the "dashmstdout"
10405     # mode.  It turns out that the SunPro C++ compiler does not properly
10406     # handle `-M -o', and we need to detect this.  Also, some Intel
10407     # versions had trouble with output in subdirs
10408     am__obj=sub/conftest.${OBJEXT-o}
10409     am__minus_obj="-o $am__obj"
10410     case $depmode in
10411     gcc)
10412       # This depmode causes a compiler race in universal mode.
10413       test "$am__universal" = false || continue
10414       ;;
10415     nosideeffect)
10416       # after this tag, mechanisms are not by side-effect, so they'll
10417       # only be used when explicitly requested
10418       if test "x$enable_dependency_tracking" = xyes; then
10419         continue
10420       else
10421         break
10422       fi
10423       ;;
10424     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
10425       # This compiler won't grok `-c -o', but also, the minuso test has
10426       # not run yet.  These depmodes are late enough in the game, and
10427       # so weak that their functioning should not be impacted.
10428       am__obj=conftest.${OBJEXT-o}
10429       am__minus_obj=
10430       ;;
10431     none) break ;;
10432     esac
10433     if depmode=$depmode \
10434        source=sub/conftest.c object=$am__obj \
10435        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10436        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10437          >/dev/null 2>conftest.err &&
10438        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10439        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10440        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10441        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10442       # icc doesn't choke on unknown options, it will just issue warnings
10443       # or remarks (even with -Werror).  So we grep stderr for any message
10444       # that says an option was ignored or not supported.
10445       # When given -MP, icc 7.0 and 7.1 complain thusly:
10446       #   icc: Command line warning: ignoring option '-M'; no argument required
10447       # The diagnosis changed in icc 8.0:
10448       #   icc: Command line remark: option '-MP' not supported
10449       if (grep 'ignoring option' conftest.err ||
10450           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10451         am_cv_CC_dependencies_compiler_type=$depmode
10452         break
10453       fi
10454     fi
10455   done
10456
10457   cd ..
10458   rm -rf conftest.dir
10459 else
10460   am_cv_CC_dependencies_compiler_type=none
10461 fi
10462
10463 fi
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10465 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10466 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10467
10468  if
10469   test "x$enable_dependency_tracking" != xno \
10470   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10471   am__fastdepCC_TRUE=
10472   am__fastdepCC_FALSE='#'
10473 else
10474   am__fastdepCC_TRUE='#'
10475   am__fastdepCC_FALSE=
10476 fi
10477
10478
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
10480 $as_echo_n "checking for library containing strerror... " >&6; }
10481 if ${ac_cv_search_strerror+:} false; then :
10482   $as_echo_n "(cached) " >&6
10483 else
10484   ac_func_search_save_LIBS=$LIBS
10485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486 /* end confdefs.h.  */
10487
10488 /* Override any GCC internal prototype to avoid an error.
10489    Use char because int might match the return type of a GCC
10490    builtin and then its argument prototype would still apply.  */
10491 #ifdef __cplusplus
10492 extern "C"
10493 #endif
10494 char strerror ();
10495 int
10496 main ()
10497 {
10498 return strerror ();
10499   ;
10500   return 0;
10501 }
10502 _ACEOF
10503 for ac_lib in '' cposix; do
10504   if test -z "$ac_lib"; then
10505     ac_res="none required"
10506   else
10507     ac_res=-l$ac_lib
10508     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10509   fi
10510   if ac_fn_c_try_link "$LINENO"; then :
10511   ac_cv_search_strerror=$ac_res
10512 fi
10513 rm -f core conftest.err conftest.$ac_objext \
10514     conftest$ac_exeext
10515   if ${ac_cv_search_strerror+:} false; then :
10516   break
10517 fi
10518 done
10519 if ${ac_cv_search_strerror+:} false; then :
10520
10521 else
10522   ac_cv_search_strerror=no
10523 fi
10524 rm conftest.$ac_ext
10525 LIBS=$ac_func_search_save_LIBS
10526 fi
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
10528 $as_echo "$ac_cv_search_strerror" >&6; }
10529 ac_res=$ac_cv_search_strerror
10530 if test "$ac_res" != no; then :
10531   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10532
10533 fi
10534
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
10536 $as_echo_n "checking for function prototypes... " >&6; }
10537 if test "$ac_cv_prog_cc_c89" != no; then
10538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10539 $as_echo "yes" >&6; }
10540
10541 $as_echo "#define PROTOTYPES 1" >>confdefs.h
10542
10543
10544 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
10545
10546 else
10547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548 $as_echo "no" >&6; }
10549 fi
10550
10551
10552
10553 if test "$ac_cv_prog_cc_stdc" != no; then
10554   U= ANSI2KNR=
10555 else
10556   U=_ ANSI2KNR=./ansi2knr
10557 fi
10558 # Ensure some checks needed by ansi2knr itself.
10559
10560 for ac_header in string.h
10561 do :
10562   ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
10563 if test "x$ac_cv_header_string_h" = xyes; then :
10564   cat >>confdefs.h <<_ACEOF
10565 #define HAVE_STRING_H 1
10566 _ACEOF
10567
10568 fi
10569
10570 done
10571
10572
10573 if test "x$U" != "x"; then
10574         as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
10575 fi
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10577 $as_echo_n "checking for inline... " >&6; }
10578 if ${ac_cv_c_inline+:} false; then :
10579   $as_echo_n "(cached) " >&6
10580 else
10581   ac_cv_c_inline=no
10582 for ac_kw in inline __inline__ __inline; do
10583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h.  */
10585 #ifndef __cplusplus
10586 typedef int foo_t;
10587 static $ac_kw foo_t static_foo () {return 0; }
10588 $ac_kw foo_t foo () {return 0; }
10589 #endif
10590
10591 _ACEOF
10592 if ac_fn_c_try_compile "$LINENO"; then :
10593   ac_cv_c_inline=$ac_kw
10594 fi
10595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10596   test "$ac_cv_c_inline" != no && break
10597 done
10598
10599 fi
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10601 $as_echo "$ac_cv_c_inline" >&6; }
10602
10603 case $ac_cv_c_inline in
10604   inline | yes) ;;
10605   *)
10606     case $ac_cv_c_inline in
10607       no) ac_val=;;
10608       *) ac_val=$ac_cv_c_inline;;
10609     esac
10610     cat >>confdefs.h <<_ACEOF
10611 #ifndef __cplusplus
10612 #define inline $ac_val
10613 #endif
10614 _ACEOF
10615     ;;
10616 esac
10617
10618
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10620 $as_echo_n "checking for ANSI C header files... " >&6; }
10621 if ${ac_cv_header_stdc+:} false; then :
10622   $as_echo_n "(cached) " >&6
10623 else
10624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h.  */
10626 #include <stdlib.h>
10627 #include <stdarg.h>
10628 #include <string.h>
10629 #include <float.h>
10630
10631 int
10632 main ()
10633 {
10634
10635   ;
10636   return 0;
10637 }
10638 _ACEOF
10639 if ac_fn_c_try_compile "$LINENO"; then :
10640   ac_cv_header_stdc=yes
10641 else
10642   ac_cv_header_stdc=no
10643 fi
10644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10645
10646 if test $ac_cv_header_stdc = yes; then
10647   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h.  */
10650 #include <string.h>
10651
10652 _ACEOF
10653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10654   $EGREP "memchr" >/dev/null 2>&1; then :
10655
10656 else
10657   ac_cv_header_stdc=no
10658 fi
10659 rm -f conftest*
10660
10661 fi
10662
10663 if test $ac_cv_header_stdc = yes; then
10664   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666 /* end confdefs.h.  */
10667 #include <stdlib.h>
10668
10669 _ACEOF
10670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10671   $EGREP "free" >/dev/null 2>&1; then :
10672
10673 else
10674   ac_cv_header_stdc=no
10675 fi
10676 rm -f conftest*
10677
10678 fi
10679
10680 if test $ac_cv_header_stdc = yes; then
10681   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10682   if test "$cross_compiling" = yes; then :
10683   :
10684 else
10685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10686 /* end confdefs.h.  */
10687 #include <ctype.h>
10688 #include <stdlib.h>
10689 #if ((' ' & 0x0FF) == 0x020)
10690 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10691 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10692 #else
10693 # define ISLOWER(c) \
10694                    (('a' <= (c) && (c) <= 'i') \
10695                      || ('j' <= (c) && (c) <= 'r') \
10696                      || ('s' <= (c) && (c) <= 'z'))
10697 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10698 #endif
10699
10700 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10701 int
10702 main ()
10703 {
10704   int i;
10705   for (i = 0; i < 256; i++)
10706     if (XOR (islower (i), ISLOWER (i))
10707         || toupper (i) != TOUPPER (i))
10708       return 2;
10709   return 0;
10710 }
10711 _ACEOF
10712 if ac_fn_c_try_run "$LINENO"; then :
10713
10714 else
10715   ac_cv_header_stdc=no
10716 fi
10717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10718   conftest.$ac_objext conftest.beam conftest.$ac_ext
10719 fi
10720
10721 fi
10722 fi
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10724 $as_echo "$ac_cv_header_stdc" >&6; }
10725 if test $ac_cv_header_stdc = yes; then
10726
10727 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10728
10729 fi
10730
10731 for ac_header in unistd.h locale.h sys/ioctl.h iconv.h
10732 do :
10733   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10734 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10735 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10736   cat >>confdefs.h <<_ACEOF
10737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10738 _ACEOF
10739
10740 fi
10741
10742 done
10743
10744 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
10745 if test "x$ac_cv_header_stdarg_h" = xyes; then :
10746
10747 $as_echo "#define HAVE_STDARG_H 1" >>confdefs.h
10748
10749 else
10750   as_fn_error $? "*** stdarg.h is missing on your system ***" "$LINENO" 5
10751 fi
10752
10753
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
10755 $as_echo_n "checking for working strcoll... " >&6; }
10756 if ${ac_cv_func_strcoll_works+:} false; then :
10757   $as_echo_n "(cached) " >&6
10758 else
10759   if test "$cross_compiling" = yes; then :
10760   ac_cv_func_strcoll_works=no
10761 else
10762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h.  */
10764 $ac_includes_default
10765 int
10766 main ()
10767 {
10768 return (strcoll ("abc", "def") >= 0 ||
10769          strcoll ("ABC", "DEF") >= 0 ||
10770          strcoll ("123", "456") >= 0)
10771   ;
10772   return 0;
10773 }
10774 _ACEOF
10775 if ac_fn_c_try_run "$LINENO"; then :
10776   ac_cv_func_strcoll_works=yes
10777 else
10778   ac_cv_func_strcoll_works=no
10779 fi
10780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10781   conftest.$ac_objext conftest.beam conftest.$ac_ext
10782 fi
10783
10784 fi
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
10786 $as_echo "$ac_cv_func_strcoll_works" >&6; }
10787 if test $ac_cv_func_strcoll_works = yes; then
10788
10789 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
10790
10791 fi
10792
10793 for ac_func in setlocale
10794 do :
10795   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
10796 if test "x$ac_cv_func_setlocale" = xyes; then :
10797   cat >>confdefs.h <<_ACEOF
10798 #define HAVE_SETLOCALE 1
10799 _ACEOF
10800
10801 fi
10802 done
10803
10804
10805 ac_widec_funcs=yes
10806 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
10807 if test "x$ac_cv_header_wchar_h" = xyes; then :
10808
10809         ac_have_wchar_h=yes
10810
10811 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
10812
10813 else
10814   ac_have_wchar_h=no
10815 fi
10816
10817
10818 for ac_func in mbtowc wcwidth mbrtowc mbsinit
10819 do :
10820   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10821 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10822 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10823   cat >>confdefs.h <<_ACEOF
10824 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10825 _ACEOF
10826
10827 else
10828   ac_widec_funcs=no
10829 fi
10830 done
10831
10832 ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "$ac_includes_default"
10833 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
10834   ac_have_decl=1
10835 else
10836   ac_have_decl=0
10837 fi
10838
10839 cat >>confdefs.h <<_ACEOF
10840 #define HAVE_DECL_WCWIDTH $ac_have_decl
10841 _ACEOF
10842
10843 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
10844 if test "x$ac_cv_type_wchar_t" = xyes; then :
10845
10846 else
10847   ac_widec_funcs=no
10848 fi
10849
10850
10851 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
10852         ac_widec_possible=yes
10853 else
10854         ac_widec_possible=no
10855 fi
10856
10857
10858 abook_cv_curses=/usr
10859
10860 # Check whether --with-curses was given.
10861 if test "${with_curses+set}" = set; then :
10862   withval=$with_curses; if test $withval != yes; then
10863                 abook_cv_curses=$withval
10864         fi
10865         if test x$abook_cv_curses != x/usr; then
10866                 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
10867                 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
10868         fi
10869 fi
10870
10871
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
10873 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
10874 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
10875   $as_echo_n "(cached) " >&6
10876 else
10877   ac_check_lib_save_LIBS=$LIBS
10878 LIBS="-lncursesw  $LIBS"
10879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880 /* end confdefs.h.  */
10881
10882 /* Override any GCC internal prototype to avoid an error.
10883    Use char because int might match the return type of a GCC
10884    builtin and then its argument prototype would still apply.  */
10885 #ifdef __cplusplus
10886 extern "C"
10887 #endif
10888 char initscr ();
10889 int
10890 main ()
10891 {
10892 return initscr ();
10893   ;
10894   return 0;
10895 }
10896 _ACEOF
10897 if ac_fn_c_try_link "$LINENO"; then :
10898   ac_cv_lib_ncursesw_initscr=yes
10899 else
10900   ac_cv_lib_ncursesw_initscr=no
10901 fi
10902 rm -f core conftest.err conftest.$ac_objext \
10903     conftest$ac_exeext conftest.$ac_ext
10904 LIBS=$ac_check_lib_save_LIBS
10905 fi
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
10907 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
10908 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
10909   LIBS="$LIBS -lncursesw"
10910         if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
10911                 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
10912         fi
10913         for ac_header in ncurses.h
10914 do :
10915   ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
10916 if test "x$ac_cv_header_ncurses_h" = xyes; then :
10917   cat >>confdefs.h <<_ACEOF
10918 #define HAVE_NCURSES_H 1
10919 _ACEOF
10920
10921 fi
10922
10923 done
10924
10925 else
10926
10927         ac_widec_possible=no
10928         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
10929 $as_echo_n "checking for initscr in -lncurses... " >&6; }
10930 if ${ac_cv_lib_ncurses_initscr+:} false; then :
10931   $as_echo_n "(cached) " >&6
10932 else
10933   ac_check_lib_save_LIBS=$LIBS
10934 LIBS="-lncurses  $LIBS"
10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h.  */
10937
10938 /* Override any GCC internal prototype to avoid an error.
10939    Use char because int might match the return type of a GCC
10940    builtin and then its argument prototype would still apply.  */
10941 #ifdef __cplusplus
10942 extern "C"
10943 #endif
10944 char initscr ();
10945 int
10946 main ()
10947 {
10948 return initscr ();
10949   ;
10950   return 0;
10951 }
10952 _ACEOF
10953 if ac_fn_c_try_link "$LINENO"; then :
10954   ac_cv_lib_ncurses_initscr=yes
10955 else
10956   ac_cv_lib_ncurses_initscr=no
10957 fi
10958 rm -f core conftest.err conftest.$ac_objext \
10959     conftest$ac_exeext conftest.$ac_ext
10960 LIBS=$ac_check_lib_save_LIBS
10961 fi
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
10963 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
10964 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
10965   LIBS="$LIBS -lncurses"
10966                 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
10967                         CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
10968                 fi
10969                 for ac_header in ncurses.h
10970 do :
10971   ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
10972 if test "x$ac_cv_header_ncurses_h" = xyes; then :
10973   cat >>confdefs.h <<_ACEOF
10974 #define HAVE_NCURSES_H 1
10975 _ACEOF
10976
10977 fi
10978
10979 done
10980
10981 else
10982
10983 ac_fn_c_check_func "$LINENO" "initscr" "ac_cv_func_initscr"
10984 if test "x$ac_cv_func_initscr" = xyes; then :
10985
10986 else
10987
10988 case $host_os in #(vi
10989 freebsd*) #(vi
10990         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -lmytinfo" >&5
10991 $as_echo_n "checking for tgoto in -lmytinfo... " >&6; }
10992 if ${ac_cv_lib_mytinfo_tgoto+:} false; then :
10993   $as_echo_n "(cached) " >&6
10994 else
10995   ac_check_lib_save_LIBS=$LIBS
10996 LIBS="-lmytinfo  $LIBS"
10997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h.  */
10999
11000 /* Override any GCC internal prototype to avoid an error.
11001    Use char because int might match the return type of a GCC
11002    builtin and then its argument prototype would still apply.  */
11003 #ifdef __cplusplus
11004 extern "C"
11005 #endif
11006 char tgoto ();
11007 int
11008 main ()
11009 {
11010 return tgoto ();
11011   ;
11012   return 0;
11013 }
11014 _ACEOF
11015 if ac_fn_c_try_link "$LINENO"; then :
11016   ac_cv_lib_mytinfo_tgoto=yes
11017 else
11018   ac_cv_lib_mytinfo_tgoto=no
11019 fi
11020 rm -f core conftest.err conftest.$ac_objext \
11021     conftest$ac_exeext conftest.$ac_ext
11022 LIBS=$ac_check_lib_save_LIBS
11023 fi
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mytinfo_tgoto" >&5
11025 $as_echo "$ac_cv_lib_mytinfo_tgoto" >&6; }
11026 if test "x$ac_cv_lib_mytinfo_tgoto" = xyes; then :
11027   LIBS="-lmytinfo $LIBS"
11028 fi
11029
11030         ;;
11031 hpux10.*|hpux11.*)
11032         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lcur_colr" >&5
11033 $as_echo_n "checking for initscr in -lcur_colr... " >&6; }
11034 if ${ac_cv_lib_cur_colr_initscr+:} false; then :
11035   $as_echo_n "(cached) " >&6
11036 else
11037   ac_check_lib_save_LIBS=$LIBS
11038 LIBS="-lcur_colr  $LIBS"
11039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h.  */
11041
11042 /* Override any GCC internal prototype to avoid an error.
11043    Use char because int might match the return type of a GCC
11044    builtin and then its argument prototype would still apply.  */
11045 #ifdef __cplusplus
11046 extern "C"
11047 #endif
11048 char initscr ();
11049 int
11050 main ()
11051 {
11052 return initscr ();
11053   ;
11054   return 0;
11055 }
11056 _ACEOF
11057 if ac_fn_c_try_link "$LINENO"; then :
11058   ac_cv_lib_cur_colr_initscr=yes
11059 else
11060   ac_cv_lib_cur_colr_initscr=no
11061 fi
11062 rm -f core conftest.err conftest.$ac_objext \
11063     conftest$ac_exeext conftest.$ac_ext
11064 LIBS=$ac_check_lib_save_LIBS
11065 fi
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cur_colr_initscr" >&5
11067 $as_echo "$ac_cv_lib_cur_colr_initscr" >&6; }
11068 if test "x$ac_cv_lib_cur_colr_initscr" = xyes; then :
11069
11070                 LIBS="-lcur_colr $LIBS"
11071                 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
11072                 ac_cv_func_initscr=yes
11073
11074 else
11075
11076         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lHcurses" >&5
11077 $as_echo_n "checking for initscr in -lHcurses... " >&6; }
11078 if ${ac_cv_lib_Hcurses_initscr+:} false; then :
11079   $as_echo_n "(cached) " >&6
11080 else
11081   ac_check_lib_save_LIBS=$LIBS
11082 LIBS="-lHcurses  $LIBS"
11083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11084 /* end confdefs.h.  */
11085
11086 /* Override any GCC internal prototype to avoid an error.
11087    Use char because int might match the return type of a GCC
11088    builtin and then its argument prototype would still apply.  */
11089 #ifdef __cplusplus
11090 extern "C"
11091 #endif
11092 char initscr ();
11093 int
11094 main ()
11095 {
11096 return initscr ();
11097   ;
11098   return 0;
11099 }
11100 _ACEOF
11101 if ac_fn_c_try_link "$LINENO"; then :
11102   ac_cv_lib_Hcurses_initscr=yes
11103 else
11104   ac_cv_lib_Hcurses_initscr=no
11105 fi
11106 rm -f core conftest.err conftest.$ac_objext \
11107     conftest$ac_exeext conftest.$ac_ext
11108 LIBS=$ac_check_lib_save_LIBS
11109 fi
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Hcurses_initscr" >&5
11111 $as_echo "$ac_cv_lib_Hcurses_initscr" >&6; }
11112 if test "x$ac_cv_lib_Hcurses_initscr" = xyes; then :
11113
11114                 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
11115                 LIBS="-lHcurses $LIBS"
11116                 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
11117                 ac_cv_func_initscr=yes
11118
11119 fi
11120
11121 fi
11122
11123         ;;
11124 linux*) # Suse Linux does not follow /usr/lib convention
11125         LIBS="$LIBS -L/lib"
11126         ;;
11127 esac
11128
11129 if test ".$With5lib" != ".no" ; then
11130 if test -d /usr/5lib ; then
11131         # SunOS 3.x or 4.x
11132         CPPFLAGS="$CPPFLAGS -I/usr/5include"
11133         LIBS="$LIBS -L/usr/5lib"
11134 fi
11135 fi
11136
11137 if test ".$ac_cv_func_initscr" != .yes ; then
11138         cf_save_LIBS="$LIBS"
11139         cf_term_lib=""
11140         cf_curs_lib=""
11141
11142         # Check for library containing tgoto.  Do this before curses library
11143         # because it may be needed to link the test-case for initscr.
11144         ac_fn_c_check_func "$LINENO" "tgoto" "ac_cv_func_tgoto"
11145 if test "x$ac_cv_func_tgoto" = xyes; then :
11146   cf_term_lib=predefined
11147 else
11148
11149                 for cf_term_lib in termcap termlib unknown
11150                 do
11151                         as_ac_Lib=`$as_echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgoto in -l$cf_term_lib" >&5
11153 $as_echo_n "checking for tgoto in -l$cf_term_lib... " >&6; }
11154 if eval \${$as_ac_Lib+:} false; then :
11155   $as_echo_n "(cached) " >&6
11156 else
11157   ac_check_lib_save_LIBS=$LIBS
11158 LIBS="-l$cf_term_lib  $LIBS"
11159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11160 /* end confdefs.h.  */
11161
11162 /* Override any GCC internal prototype to avoid an error.
11163    Use char because int might match the return type of a GCC
11164    builtin and then its argument prototype would still apply.  */
11165 #ifdef __cplusplus
11166 extern "C"
11167 #endif
11168 char tgoto ();
11169 int
11170 main ()
11171 {
11172 return tgoto ();
11173   ;
11174   return 0;
11175 }
11176 _ACEOF
11177 if ac_fn_c_try_link "$LINENO"; then :
11178   eval "$as_ac_Lib=yes"
11179 else
11180   eval "$as_ac_Lib=no"
11181 fi
11182 rm -f core conftest.err conftest.$ac_objext \
11183     conftest$ac_exeext conftest.$ac_ext
11184 LIBS=$ac_check_lib_save_LIBS
11185 fi
11186 eval ac_res=\$$as_ac_Lib
11187                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11188 $as_echo "$ac_res" >&6; }
11189 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11190   break
11191 fi
11192
11193                 done
11194
11195 fi
11196
11197
11198         # Check for library containing initscr
11199         test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
11200         for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
11201         do
11202                 as_ac_Lib=`$as_echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -l$cf_curs_lib" >&5
11204 $as_echo_n "checking for initscr in -l$cf_curs_lib... " >&6; }
11205 if eval \${$as_ac_Lib+:} false; then :
11206   $as_echo_n "(cached) " >&6
11207 else
11208   ac_check_lib_save_LIBS=$LIBS
11209 LIBS="-l$cf_curs_lib  $LIBS"
11210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11211 /* end confdefs.h.  */
11212
11213 /* Override any GCC internal prototype to avoid an error.
11214    Use char because int might match the return type of a GCC
11215    builtin and then its argument prototype would still apply.  */
11216 #ifdef __cplusplus
11217 extern "C"
11218 #endif
11219 char initscr ();
11220 int
11221 main ()
11222 {
11223 return initscr ();
11224   ;
11225   return 0;
11226 }
11227 _ACEOF
11228 if ac_fn_c_try_link "$LINENO"; then :
11229   eval "$as_ac_Lib=yes"
11230 else
11231   eval "$as_ac_Lib=no"
11232 fi
11233 rm -f core conftest.err conftest.$ac_objext \
11234     conftest$ac_exeext conftest.$ac_ext
11235 LIBS=$ac_check_lib_save_LIBS
11236 fi
11237 eval ac_res=\$$as_ac_Lib
11238                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11239 $as_echo "$ac_res" >&6; }
11240 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
11241   break
11242 fi
11243
11244         done
11245         test $cf_curs_lib = unknown && as_fn_error $? "no curses library found" "$LINENO" 5
11246
11247         LIBS="-l$cf_curs_lib $cf_save_LIBS"
11248         if test "$cf_term_lib" = unknown ; then
11249                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can link with $cf_curs_lib library" >&5
11250 $as_echo_n "checking if we can link with $cf_curs_lib library... " >&6; }
11251                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h.  */
11253 #include <${cf_cv_ncurses_header-curses.h}>
11254 int
11255 main ()
11256 {
11257 initscr()
11258   ;
11259   return 0;
11260 }
11261 _ACEOF
11262 if ac_fn_c_try_link "$LINENO"; then :
11263   cf_result=yes
11264 else
11265   cf_result=no
11266 fi
11267 rm -f core conftest.err conftest.$ac_objext \
11268     conftest$ac_exeext conftest.$ac_ext
11269                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
11270 $as_echo "$cf_result" >&6; }
11271                 test $cf_result = no && as_fn_error $? "Cannot link curses library" "$LINENO" 5
11272         elif test "$cf_term_lib" != predefined ; then
11273                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
11274 $as_echo_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries... " >&6; }
11275                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h.  */
11277 #include <${cf_cv_ncurses_header-curses.h}>
11278 int
11279 main ()
11280 {
11281 initscr(); tgoto((char *)0, 0, 0);
11282   ;
11283   return 0;
11284 }
11285 _ACEOF
11286 if ac_fn_c_try_link "$LINENO"; then :
11287   cf_result=no
11288 else
11289
11290                         LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
11291                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h.  */
11293 #include <${cf_cv_ncurses_header-curses.h}>
11294 int
11295 main ()
11296 {
11297 initscr()
11298   ;
11299   return 0;
11300 }
11301 _ACEOF
11302 if ac_fn_c_try_link "$LINENO"; then :
11303   cf_result=yes
11304 else
11305   cf_result=error
11306 fi
11307 rm -f core conftest.err conftest.$ac_objext \
11308     conftest$ac_exeext conftest.$ac_ext
11309
11310 fi
11311 rm -f core conftest.err conftest.$ac_objext \
11312     conftest$ac_exeext conftest.$ac_ext
11313                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_result" >&5
11314 $as_echo "$cf_result" >&6; }
11315         fi
11316 fi
11317
11318
11319 fi
11320
11321 fi
11322
11323
11324 fi
11325
11326
11327
11328
11329 abook_cv_readline=/usr
11330
11331 # Check whether --with-readline was given.
11332 if test "${with_readline+set}" = set; then :
11333   withval=$with_readline; if test $withval != yes; then
11334                 abook_cv_readline=$withval
11335         fi
11336         if test x$abook_cv_readline != x/usr; then
11337                 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
11338                 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
11339         fi
11340 fi
11341
11342
11343
11344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
11345 $as_echo_n "checking for a readline compatible library... " >&6; }
11346 if ${ac_cv_lib_readline+:} false; then :
11347   $as_echo_n "(cached) " >&6
11348 else
11349
11350     ORIG_LIBS="$LIBS"
11351     for readline_lib in readline edit editline; do
11352       for termcap_lib in "" termcap curses ncurses; do
11353         if test -z "$termcap_lib"; then
11354           TRY_LIB="-l$readline_lib"
11355         else
11356           TRY_LIB="-l$readline_lib -l$termcap_lib"
11357         fi
11358         LIBS="$ORIG_LIBS $TRY_LIB"
11359         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h.  */
11361
11362 /* Override any GCC internal prototype to avoid an error.
11363    Use char because int might match the return type of a GCC
11364    builtin and then its argument prototype would still apply.  */
11365 #ifdef __cplusplus
11366 extern "C"
11367 #endif
11368 char readline ();
11369 int
11370 main ()
11371 {
11372 return readline ();
11373   ;
11374   return 0;
11375 }
11376 _ACEOF
11377 if ac_fn_c_try_link "$LINENO"; then :
11378   ac_cv_lib_readline="$TRY_LIB"
11379 fi
11380 rm -f core conftest.err conftest.$ac_objext \
11381     conftest$ac_exeext conftest.$ac_ext
11382         if test -n "$ac_cv_lib_readline"; then
11383           break
11384         fi
11385       done
11386       if test -n "$ac_cv_lib_readline"; then
11387         break
11388       fi
11389     done
11390     if test -z "$ac_cv_lib_readline"; then
11391       ac_cv_lib_readline="no"
11392     fi
11393     LIBS="$ORIG_LIBS"
11394
11395 fi
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline" >&5
11397 $as_echo "$ac_cv_lib_readline" >&6; }
11398
11399   if test "$ac_cv_lib_readline" != "no"; then
11400     LIBS="$LIBS $ac_cv_lib_readline"
11401
11402 $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
11403
11404     for ac_header in readline.h readline/readline.h
11405 do :
11406   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11407 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11408 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11409   cat >>confdefs.h <<_ACEOF
11410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11411 _ACEOF
11412
11413 fi
11414
11415 done
11416
11417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
11418 $as_echo_n "checking whether readline supports history... " >&6; }
11419 if ${ac_cv_lib_readline_history+:} false; then :
11420   $as_echo_n "(cached) " >&6
11421 else
11422
11423       ac_cv_lib_readline_history="no"
11424       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11425 /* end confdefs.h.  */
11426
11427 /* Override any GCC internal prototype to avoid an error.
11428    Use char because int might match the return type of a GCC
11429    builtin and then its argument prototype would still apply.  */
11430 #ifdef __cplusplus
11431 extern "C"
11432 #endif
11433 char add_history ();
11434 int
11435 main ()
11436 {
11437 return add_history ();
11438   ;
11439   return 0;
11440 }
11441 _ACEOF
11442 if ac_fn_c_try_link "$LINENO"; then :
11443   ac_cv_lib_readline_history="yes"
11444 fi
11445 rm -f core conftest.err conftest.$ac_objext \
11446     conftest$ac_exeext conftest.$ac_ext
11447
11448 fi
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history" >&5
11450 $as_echo "$ac_cv_lib_readline_history" >&6; }
11451     if test "$ac_cv_lib_readline_history" = "yes"; then
11452
11453 $as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
11454
11455       for ac_header in history.h readline/history.h
11456 do :
11457   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11458 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11459 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11460   cat >>confdefs.h <<_ACEOF
11461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11462 _ACEOF
11463
11464 fi
11465
11466 done
11467
11468     fi
11469   fi
11470
11471
11472
11473 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
11474         as_fn_error $? "*** readline library not found or it doesn't support history ***" "$LINENO" 5
11475 fi
11476
11477
11478
11479 # Check whether --enable-vformat was given.
11480 if test "${enable_vformat+set}" = set; then :
11481   enableval=$enable_vformat; case "${enableval}" in
11482         yes) vformat=true ;;
11483         no) vformat=false ;;
11484         *) as_fn_error $? "bad value ${enableval} for --enable-vformat" "$LINENO" 5 ;;
11485         esac
11486 else
11487   vformat=false
11488 fi
11489
11490 VFORMAT="no"
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      VFORMAT="yes"
11535      LDFLAGS="-lvformat $LDFLAGS"
11536      CFLAGS="-DVFORMAT=1 $CFLAGS"
11537
11538 fi
11539
11540
11541 fi
11542
11543
11544 fi
11545
11546
11547
11548
11549 if test x$ac_widec_possible = xyes; then
11550
11551 $as_echo "#define HANDLE_MULTIBYTE 1" >>confdefs.h
11552
11553 fi
11554
11555 for ac_func in resizeterm
11556 do :
11557   ac_fn_c_check_func "$LINENO" "resizeterm" "ac_cv_func_resizeterm"
11558 if test "x$ac_cv_func_resizeterm" = xyes; then :
11559   cat >>confdefs.h <<_ACEOF
11560 #define HAVE_RESIZETERM 1
11561 _ACEOF
11562
11563 fi
11564 done
11565
11566
11567 for ac_func in snprintf vsnprintf
11568 do :
11569   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11570 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11571 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11572   cat >>confdefs.h <<_ACEOF
11573 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11574 _ACEOF
11575
11576 fi
11577 done
11578
11579
11580 for ac_func in strcasestr
11581 do :
11582   ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
11583 if test "x$ac_cv_func_strcasestr" = xyes; then :
11584   cat >>confdefs.h <<_ACEOF
11585 #define HAVE_STRCASESTR 1
11586 _ACEOF
11587  $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
11588
11589 fi
11590 done
11591
11592
11593 # Check whether --enable-debug was given.
11594 if test "${enable_debug+set}" = set; then :
11595   enableval=$enable_debug; case "${enableval}" in
11596         yes) debug=true ;;
11597         no) debug=false ;;
11598         *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
11599         esac
11600 else
11601   debug=false
11602 fi
11603
11604
11605 if test x$debug = xtrue; then
11606         CPPFLAGS="-DDEBUG=1 $CPPFLAGS"
11607         CFLAGS="-g $CFLAGS"
11608 fi
11609
11610 if test x$GCC = xyes; then
11611         CFLAGS="-Wall $CFLAGS"
11612 fi
11613
11614 ac_config_files="$ac_config_files Makefile abook.spec intl/Makefile po/Makefile.in"
11615
11616 cat >confcache <<\_ACEOF
11617 # This file is a shell script that caches the results of configure
11618 # tests run on this system so they can be shared between configure
11619 # scripts and configure runs, see configure's option --config-cache.
11620 # It is not useful on other systems.  If it contains results you don't
11621 # want to keep, you may remove or edit it.
11622 #
11623 # config.status only pays attention to the cache file if you give it
11624 # the --recheck option to rerun configure.
11625 #
11626 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11627 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11628 # following values.
11629
11630 _ACEOF
11631
11632 # The following way of writing the cache mishandles newlines in values,
11633 # but we know of no workaround that is simple, portable, and efficient.
11634 # So, we kill variables containing newlines.
11635 # Ultrix sh set writes to stderr and can't be redirected directly,
11636 # and sets the high bit in the cache file unless we assign to the vars.
11637 (
11638   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11639     eval ac_val=\$$ac_var
11640     case $ac_val in #(
11641     *${as_nl}*)
11642       case $ac_var in #(
11643       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11644 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11645       esac
11646       case $ac_var in #(
11647       _ | IFS | as_nl) ;; #(
11648       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11649       *) { eval $ac_var=; unset $ac_var;} ;;
11650       esac ;;
11651     esac
11652   done
11653
11654   (set) 2>&1 |
11655     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11656     *${as_nl}ac_space=\ *)
11657       # `set' does not quote correctly, so add quotes: double-quote
11658       # substitution turns \\\\ into \\, and sed turns \\ into \.
11659       sed -n \
11660         "s/'/'\\\\''/g;
11661           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11662       ;; #(
11663     *)
11664       # `set' quotes correctly as required by POSIX, so do not add quotes.
11665       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11666       ;;
11667     esac |
11668     sort
11669 ) |
11670   sed '
11671      /^ac_cv_env_/b end
11672      t clear
11673      :clear
11674      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11675      t end
11676      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11677      :end' >>confcache
11678 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11679   if test -w "$cache_file"; then
11680     if test "x$cache_file" != "x/dev/null"; then
11681       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11682 $as_echo "$as_me: updating cache $cache_file" >&6;}
11683       if test ! -f "$cache_file" || test -h "$cache_file"; then
11684         cat confcache >"$cache_file"
11685       else
11686         case $cache_file in #(
11687         */* | ?:*)
11688           mv -f confcache "$cache_file"$$ &&
11689           mv -f "$cache_file"$$ "$cache_file" ;; #(
11690         *)
11691           mv -f confcache "$cache_file" ;;
11692         esac
11693       fi
11694     fi
11695   else
11696     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11697 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11698   fi
11699 fi
11700 rm -f confcache
11701
11702 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11703 # Let make expand exec_prefix.
11704 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11705
11706 DEFS=-DHAVE_CONFIG_H
11707
11708 ac_libobjs=
11709 ac_ltlibobjs=
11710 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11711   # 1. Remove the extension, and $U if already installed.
11712   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11713   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11714   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11715   #    will be set to the directory where LIBOBJS objects are built.
11716   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11717   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11718 done
11719 LIBOBJS=$ac_libobjs
11720
11721 LTLIBOBJS=$ac_ltlibobjs
11722
11723
11724  if test -n "$EXEEXT"; then
11725   am__EXEEXT_TRUE=
11726   am__EXEEXT_FALSE='#'
11727 else
11728   am__EXEEXT_TRUE='#'
11729   am__EXEEXT_FALSE=
11730 fi
11731
11732 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11733   as_fn_error $? "conditional \"AMDEP\" was never defined.
11734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11735 fi
11736 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11737   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11739 fi
11740 if test -z "${USE_INCLUDED_INTL_H_TRUE}" && test -z "${USE_INCLUDED_INTL_H_FALSE}"; then
11741   as_fn_error $? "conditional \"USE_INCLUDED_INTL_H\" 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
11749 : "${CONFIG_STATUS=./config.status}"
11750 ac_write_fail=0
11751 ac_clean_files_save=$ac_clean_files
11752 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11754 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11755 as_write_fail=0
11756 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11757 #! $SHELL
11758 # Generated by $as_me.
11759 # Run this file to recreate the current configuration.
11760 # Compiler output produced by configure, useful for debugging
11761 # configure, is in config.log if it exists.
11762
11763 debug=false
11764 ac_cs_recheck=false
11765 ac_cs_silent=false
11766
11767 SHELL=\${CONFIG_SHELL-$SHELL}
11768 export SHELL
11769 _ASEOF
11770 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11771 ## -------------------- ##
11772 ## M4sh Initialization. ##
11773 ## -------------------- ##
11774
11775 # Be more Bourne compatible
11776 DUALCASE=1; export DUALCASE # for MKS sh
11777 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11778   emulate sh
11779   NULLCMD=:
11780   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11781   # is contrary to our usage.  Disable this feature.
11782   alias -g '${1+"$@"}'='"$@"'
11783   setopt NO_GLOB_SUBST
11784 else
11785   case `(set -o) 2>/dev/null` in #(
11786   *posix*) :
11787     set -o posix ;; #(
11788   *) :
11789      ;;
11790 esac
11791 fi
11792
11793
11794 as_nl='
11795 '
11796 export as_nl
11797 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11798 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11799 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11800 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11801 # Prefer a ksh shell builtin over an external printf program on Solaris,
11802 # but without wasting forks for bash or zsh.
11803 if test -z "$BASH_VERSION$ZSH_VERSION" \
11804     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11805   as_echo='print -r --'
11806   as_echo_n='print -rn --'
11807 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11808   as_echo='printf %s\n'
11809   as_echo_n='printf %s'
11810 else
11811   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11812     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11813     as_echo_n='/usr/ucb/echo -n'
11814   else
11815     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11816     as_echo_n_body='eval
11817       arg=$1;
11818       case $arg in #(
11819       *"$as_nl"*)
11820         expr "X$arg" : "X\\(.*\\)$as_nl";
11821         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11822       esac;
11823       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11824     '
11825     export as_echo_n_body
11826     as_echo_n='sh -c $as_echo_n_body as_echo'
11827   fi
11828   export as_echo_body
11829   as_echo='sh -c $as_echo_body as_echo'
11830 fi
11831
11832 # The user is always right.
11833 if test "${PATH_SEPARATOR+set}" != set; then
11834   PATH_SEPARATOR=:
11835   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11836     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11837       PATH_SEPARATOR=';'
11838   }
11839 fi
11840
11841
11842 # IFS
11843 # We need space, tab and new line, in precisely that order.  Quoting is
11844 # there to prevent editors from complaining about space-tab.
11845 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11846 # splitting by setting IFS to empty value.)
11847 IFS=" ""        $as_nl"
11848
11849 # Find who we are.  Look in the path if we contain no directory separator.
11850 as_myself=
11851 case $0 in #((
11852   *[\\/]* ) as_myself=$0 ;;
11853   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11854 for as_dir in $PATH
11855 do
11856   IFS=$as_save_IFS
11857   test -z "$as_dir" && as_dir=.
11858     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11859   done
11860 IFS=$as_save_IFS
11861
11862      ;;
11863 esac
11864 # We did not find ourselves, most probably we were run as `sh COMMAND'
11865 # in which case we are not to be found in the path.
11866 if test "x$as_myself" = x; then
11867   as_myself=$0
11868 fi
11869 if test ! -f "$as_myself"; then
11870   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11871   exit 1
11872 fi
11873
11874 # Unset variables that we do not need and which cause bugs (e.g. in
11875 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11876 # suppresses any "Segmentation fault" message there.  '((' could
11877 # trigger a bug in pdksh 5.2.14.
11878 for as_var in BASH_ENV ENV MAIL MAILPATH
11879 do eval test x\${$as_var+set} = xset \
11880   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11881 done
11882 PS1='$ '
11883 PS2='> '
11884 PS4='+ '
11885
11886 # NLS nuisances.
11887 LC_ALL=C
11888 export LC_ALL
11889 LANGUAGE=C
11890 export LANGUAGE
11891
11892 # CDPATH.
11893 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11894
11895
11896 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11897 # ----------------------------------------
11898 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11899 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11900 # script with STATUS, using 1 if that was 0.
11901 as_fn_error ()
11902 {
11903   as_status=$1; test $as_status -eq 0 && as_status=1
11904   if test "$4"; then
11905     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11906     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11907   fi
11908   $as_echo "$as_me: error: $2" >&2
11909   as_fn_exit $as_status
11910 } # as_fn_error
11911
11912
11913 # as_fn_set_status STATUS
11914 # -----------------------
11915 # Set $? to STATUS, without forking.
11916 as_fn_set_status ()
11917 {
11918   return $1
11919 } # as_fn_set_status
11920
11921 # as_fn_exit STATUS
11922 # -----------------
11923 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11924 as_fn_exit ()
11925 {
11926   set +e
11927   as_fn_set_status $1
11928   exit $1
11929 } # as_fn_exit
11930
11931 # as_fn_unset VAR
11932 # ---------------
11933 # Portably unset VAR.
11934 as_fn_unset ()
11935 {
11936   { eval $1=; unset $1;}
11937 }
11938 as_unset=as_fn_unset
11939 # as_fn_append VAR VALUE
11940 # ----------------------
11941 # Append the text in VALUE to the end of the definition contained in VAR. Take
11942 # advantage of any shell optimizations that allow amortized linear growth over
11943 # repeated appends, instead of the typical quadratic growth present in naive
11944 # implementations.
11945 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11946   eval 'as_fn_append ()
11947   {
11948     eval $1+=\$2
11949   }'
11950 else
11951   as_fn_append ()
11952   {
11953     eval $1=\$$1\$2
11954   }
11955 fi # as_fn_append
11956
11957 # as_fn_arith ARG...
11958 # ------------------
11959 # Perform arithmetic evaluation on the ARGs, and store the result in the
11960 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11961 # must be portable across $(()) and expr.
11962 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11963   eval 'as_fn_arith ()
11964   {
11965     as_val=$(( $* ))
11966   }'
11967 else
11968   as_fn_arith ()
11969   {
11970     as_val=`expr "$@" || test $? -eq 1`
11971   }
11972 fi # as_fn_arith
11973
11974
11975 if expr a : '\(a\)' >/dev/null 2>&1 &&
11976    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11977   as_expr=expr
11978 else
11979   as_expr=false
11980 fi
11981
11982 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11983   as_basename=basename
11984 else
11985   as_basename=false
11986 fi
11987
11988 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11989   as_dirname=dirname
11990 else
11991   as_dirname=false
11992 fi
11993
11994 as_me=`$as_basename -- "$0" ||
11995 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11996          X"$0" : 'X\(//\)$' \| \
11997          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11998 $as_echo X/"$0" |
11999     sed '/^.*\/\([^/][^/]*\)\/*$/{
12000             s//\1/
12001             q
12002           }
12003           /^X\/\(\/\/\)$/{
12004             s//\1/
12005             q
12006           }
12007           /^X\/\(\/\).*/{
12008             s//\1/
12009             q
12010           }
12011           s/.*/./; q'`
12012
12013 # Avoid depending upon Character Ranges.
12014 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12015 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12016 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12017 as_cr_digits='0123456789'
12018 as_cr_alnum=$as_cr_Letters$as_cr_digits
12019
12020 ECHO_C= ECHO_N= ECHO_T=
12021 case `echo -n x` in #(((((
12022 -n*)
12023   case `echo 'xy\c'` in
12024   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12025   xy)  ECHO_C='\c';;
12026   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12027        ECHO_T=' ';;
12028   esac;;
12029 *)
12030   ECHO_N='-n';;
12031 esac
12032
12033 rm -f conf$$ conf$$.exe conf$$.file
12034 if test -d conf$$.dir; then
12035   rm -f conf$$.dir/conf$$.file
12036 else
12037   rm -f conf$$.dir
12038   mkdir conf$$.dir 2>/dev/null
12039 fi
12040 if (echo >conf$$.file) 2>/dev/null; then
12041   if ln -s conf$$.file conf$$ 2>/dev/null; then
12042     as_ln_s='ln -s'
12043     # ... but there are two gotchas:
12044     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12045     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12046     # In both cases, we have to default to `cp -p'.
12047     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12048       as_ln_s='cp -p'
12049   elif ln conf$$.file conf$$ 2>/dev/null; then
12050     as_ln_s=ln
12051   else
12052     as_ln_s='cp -p'
12053   fi
12054 else
12055   as_ln_s='cp -p'
12056 fi
12057 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12058 rmdir conf$$.dir 2>/dev/null
12059
12060
12061 # as_fn_mkdir_p
12062 # -------------
12063 # Create "$as_dir" as a directory, including parents if necessary.
12064 as_fn_mkdir_p ()
12065 {
12066
12067   case $as_dir in #(
12068   -*) as_dir=./$as_dir;;
12069   esac
12070   test -d "$as_dir" || eval $as_mkdir_p || {
12071     as_dirs=
12072     while :; do
12073       case $as_dir in #(
12074       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12075       *) as_qdir=$as_dir;;
12076       esac
12077       as_dirs="'$as_qdir' $as_dirs"
12078       as_dir=`$as_dirname -- "$as_dir" ||
12079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12080          X"$as_dir" : 'X\(//\)[^/]' \| \
12081          X"$as_dir" : 'X\(//\)$' \| \
12082          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12083 $as_echo X"$as_dir" |
12084     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12085             s//\1/
12086             q
12087           }
12088           /^X\(\/\/\)[^/].*/{
12089             s//\1/
12090             q
12091           }
12092           /^X\(\/\/\)$/{
12093             s//\1/
12094             q
12095           }
12096           /^X\(\/\).*/{
12097             s//\1/
12098             q
12099           }
12100           s/.*/./; q'`
12101       test -d "$as_dir" && break
12102     done
12103     test -z "$as_dirs" || eval "mkdir $as_dirs"
12104   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12105
12106
12107 } # as_fn_mkdir_p
12108 if mkdir -p . 2>/dev/null; then
12109   as_mkdir_p='mkdir -p "$as_dir"'
12110 else
12111   test -d ./-p && rmdir ./-p
12112   as_mkdir_p=false
12113 fi
12114
12115 if test -x / >/dev/null 2>&1; then
12116   as_test_x='test -x'
12117 else
12118   if ls -dL / >/dev/null 2>&1; then
12119     as_ls_L_option=L
12120   else
12121     as_ls_L_option=
12122   fi
12123   as_test_x='
12124     eval sh -c '\''
12125       if test -d "$1"; then
12126         test -d "$1/.";
12127       else
12128         case $1 in #(
12129         -*)set "./$1";;
12130         esac;
12131         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12132         ???[sx]*):;;*)false;;esac;fi
12133     '\'' sh
12134   '
12135 fi
12136 as_executable_p=$as_test_x
12137
12138 # Sed expression to map a string onto a valid CPP name.
12139 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12140
12141 # Sed expression to map a string onto a valid variable name.
12142 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12143
12144
12145 exec 6>&1
12146 ## ----------------------------------- ##
12147 ## Main body of $CONFIG_STATUS script. ##
12148 ## ----------------------------------- ##
12149 _ASEOF
12150 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12151
12152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12153 # Save the log message, to keep $0 and so on meaningful, and to
12154 # report actual input values of CONFIG_FILES etc. instead of their
12155 # values after options handling.
12156 ac_log="
12157 This file was extended by $as_me, which was
12158 generated by GNU Autoconf 2.68.  Invocation command line was
12159
12160   CONFIG_FILES    = $CONFIG_FILES
12161   CONFIG_HEADERS  = $CONFIG_HEADERS
12162   CONFIG_LINKS    = $CONFIG_LINKS
12163   CONFIG_COMMANDS = $CONFIG_COMMANDS
12164   $ $0 $@
12165
12166 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12167 "
12168
12169 _ACEOF
12170
12171 case $ac_config_files in *"
12172 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12173 esac
12174
12175 case $ac_config_headers in *"
12176 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12177 esac
12178
12179
12180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12181 # Files that config.status was made for.
12182 config_files="$ac_config_files"
12183 config_headers="$ac_config_headers"
12184 config_commands="$ac_config_commands"
12185
12186 _ACEOF
12187
12188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12189 ac_cs_usage="\
12190 \`$as_me' instantiates files and other configuration actions
12191 from templates according to the current configuration.  Unless the files
12192 and actions are specified as TAGs, all are instantiated by default.
12193
12194 Usage: $0 [OPTION]... [TAG]...
12195
12196   -h, --help       print this help, then exit
12197   -V, --version    print version number and configuration settings, then exit
12198       --config     print configuration, then exit
12199   -q, --quiet, --silent
12200                    do not print progress messages
12201   -d, --debug      don't remove temporary files
12202       --recheck    update $as_me by reconfiguring in the same conditions
12203       --file=FILE[:TEMPLATE]
12204                    instantiate the configuration file FILE
12205       --header=FILE[:TEMPLATE]
12206                    instantiate the configuration header FILE
12207
12208 Configuration files:
12209 $config_files
12210
12211 Configuration headers:
12212 $config_headers
12213
12214 Configuration commands:
12215 $config_commands
12216
12217 Report bugs to the package provider."
12218
12219 _ACEOF
12220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12221 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12222 ac_cs_version="\\
12223 config.status
12224 configured by $0, generated by GNU Autoconf 2.68,
12225   with options \\"\$ac_cs_config\\"
12226
12227 Copyright (C) 2010 Free Software Foundation, Inc.
12228 This config.status script is free software; the Free Software Foundation
12229 gives unlimited permission to copy, distribute and modify it."
12230
12231 ac_pwd='$ac_pwd'
12232 srcdir='$srcdir'
12233 INSTALL='$INSTALL'
12234 MKDIR_P='$MKDIR_P'
12235 AWK='$AWK'
12236 test -n "\$AWK" || AWK=awk
12237 _ACEOF
12238
12239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12240 # The default lists apply if the user does not specify any file.
12241 ac_need_defaults=:
12242 while test $# != 0
12243 do
12244   case $1 in
12245   --*=?*)
12246     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12247     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12248     ac_shift=:
12249     ;;
12250   --*=)
12251     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12252     ac_optarg=
12253     ac_shift=:
12254     ;;
12255   *)
12256     ac_option=$1
12257     ac_optarg=$2
12258     ac_shift=shift
12259     ;;
12260   esac
12261
12262   case $ac_option in
12263   # Handling of the options.
12264   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12265     ac_cs_recheck=: ;;
12266   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12267     $as_echo "$ac_cs_version"; exit ;;
12268   --config | --confi | --conf | --con | --co | --c )
12269     $as_echo "$ac_cs_config"; exit ;;
12270   --debug | --debu | --deb | --de | --d | -d )
12271     debug=: ;;
12272   --file | --fil | --fi | --f )
12273     $ac_shift
12274     case $ac_optarg in
12275     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12276     '') as_fn_error $? "missing file argument" ;;
12277     esac
12278     as_fn_append CONFIG_FILES " '$ac_optarg'"
12279     ac_need_defaults=false;;
12280   --header | --heade | --head | --hea )
12281     $ac_shift
12282     case $ac_optarg in
12283     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12284     esac
12285     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12286     ac_need_defaults=false;;
12287   --he | --h)
12288     # Conflict between --help and --header
12289     as_fn_error $? "ambiguous option: \`$1'
12290 Try \`$0 --help' for more information.";;
12291   --help | --hel | -h )
12292     $as_echo "$ac_cs_usage"; exit ;;
12293   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12294   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12295     ac_cs_silent=: ;;
12296
12297   # This is an error.
12298   -*) as_fn_error $? "unrecognized option: \`$1'
12299 Try \`$0 --help' for more information." ;;
12300
12301   *) as_fn_append ac_config_targets " $1"
12302      ac_need_defaults=false ;;
12303
12304   esac
12305   shift
12306 done
12307
12308 ac_configure_extra_args=
12309
12310 if $ac_cs_silent; then
12311   exec 6>/dev/null
12312   ac_configure_extra_args="$ac_configure_extra_args --silent"
12313 fi
12314
12315 _ACEOF
12316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12317 if \$ac_cs_recheck; then
12318   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12319   shift
12320   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12321   CONFIG_SHELL='$SHELL'
12322   export CONFIG_SHELL
12323   exec "\$@"
12324 fi
12325
12326 _ACEOF
12327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12328 exec 5>>config.log
12329 {
12330   echo
12331   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12332 ## Running $as_me. ##
12333 _ASBOX
12334   $as_echo "$ac_log"
12335 } >&5
12336
12337 _ACEOF
12338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12339 #
12340 # INIT-COMMANDS
12341 #
12342 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12343 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12344     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12345     # from automake < 1.5.
12346     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12347     # Capture the value of LINGUAS because we need it to compute CATALOGS.
12348     LINGUAS="${LINGUAS-%UNSET%}"
12349
12350
12351 _ACEOF
12352
12353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12354
12355 # Handling of arguments.
12356 for ac_config_target in $ac_config_targets
12357 do
12358   case $ac_config_target in
12359     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12360     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12361     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
12362     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12363     "abook.spec") CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
12364     "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12365     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12366
12367   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12368   esac
12369 done
12370
12371
12372 # If the user did not use the arguments to specify the items to instantiate,
12373 # then the envvar interface is used.  Set only those that are not.
12374 # We use the long form for the default assignment because of an extremely
12375 # bizarre bug on SunOS 4.1.3.
12376 if $ac_need_defaults; then
12377   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12378   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12379   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12380 fi
12381
12382 # Have a temporary directory for convenience.  Make it in the build tree
12383 # simply because there is no reason against having it here, and in addition,
12384 # creating and moving files from /tmp can sometimes cause problems.
12385 # Hook for its removal unless debugging.
12386 # Note that there is a small window in which the directory will not be cleaned:
12387 # after its creation but before its name has been assigned to `$tmp'.
12388 $debug ||
12389 {
12390   tmp= ac_tmp=
12391   trap 'exit_status=$?
12392   : "${ac_tmp:=$tmp}"
12393   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12394 ' 0
12395   trap 'as_fn_exit 1' 1 2 13 15
12396 }
12397 # Create a (secure) tmp directory for tmp files.
12398
12399 {
12400   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12401   test -d "$tmp"
12402 }  ||
12403 {
12404   tmp=./conf$$-$RANDOM
12405   (umask 077 && mkdir "$tmp")
12406 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12407 ac_tmp=$tmp
12408
12409 # Set up the scripts for CONFIG_FILES section.
12410 # No need to generate them if there are no CONFIG_FILES.
12411 # This happens for instance with `./config.status config.h'.
12412 if test -n "$CONFIG_FILES"; then
12413
12414
12415 ac_cr=`echo X | tr X '\015'`
12416 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12417 # But we know of no other shell where ac_cr would be empty at this
12418 # point, so we can use a bashism as a fallback.
12419 if test "x$ac_cr" = x; then
12420   eval ac_cr=\$\'\\r\'
12421 fi
12422 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12423 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12424   ac_cs_awk_cr='\\r'
12425 else
12426   ac_cs_awk_cr=$ac_cr
12427 fi
12428
12429 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12430 _ACEOF
12431
12432
12433 {
12434   echo "cat >conf$$subs.awk <<_ACEOF" &&
12435   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12436   echo "_ACEOF"
12437 } >conf$$subs.sh ||
12438   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12439 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12440 ac_delim='%!_!# '
12441 for ac_last_try in false false false false false :; do
12442   . ./conf$$subs.sh ||
12443     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12444
12445   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12446   if test $ac_delim_n = $ac_delim_num; then
12447     break
12448   elif $ac_last_try; then
12449     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12450   else
12451     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12452   fi
12453 done
12454 rm -f conf$$subs.sh
12455
12456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12457 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12458 _ACEOF
12459 sed -n '
12460 h
12461 s/^/S["/; s/!.*/"]=/
12462 p
12463 g
12464 s/^[^!]*!//
12465 :repl
12466 t repl
12467 s/'"$ac_delim"'$//
12468 t delim
12469 :nl
12470 h
12471 s/\(.\{148\}\)..*/\1/
12472 t more1
12473 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12474 p
12475 n
12476 b repl
12477 :more1
12478 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12479 p
12480 g
12481 s/.\{148\}//
12482 t nl
12483 :delim
12484 h
12485 s/\(.\{148\}\)..*/\1/
12486 t more2
12487 s/["\\]/\\&/g; s/^/"/; s/$/"/
12488 p
12489 b
12490 :more2
12491 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12492 p
12493 g
12494 s/.\{148\}//
12495 t delim
12496 ' <conf$$subs.awk | sed '
12497 /^[^""]/{
12498   N
12499   s/\n//
12500 }
12501 ' >>$CONFIG_STATUS || ac_write_fail=1
12502 rm -f conf$$subs.awk
12503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12504 _ACAWK
12505 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12506   for (key in S) S_is_set[key] = 1
12507   FS = "\a"
12508
12509 }
12510 {
12511   line = $ 0
12512   nfields = split(line, field, "@")
12513   substed = 0
12514   len = length(field[1])
12515   for (i = 2; i < nfields; i++) {
12516     key = field[i]
12517     keylen = length(key)
12518     if (S_is_set[key]) {
12519       value = S[key]
12520       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12521       len += length(value) + length(field[++i])
12522       substed = 1
12523     } else
12524       len += 1 + keylen
12525   }
12526
12527   print line
12528 }
12529
12530 _ACAWK
12531 _ACEOF
12532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12533 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12534   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12535 else
12536   cat
12537 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12538   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12539 _ACEOF
12540
12541 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12542 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12543 # trailing colons and then remove the whole line if VPATH becomes empty
12544 # (actually we leave an empty line to preserve line numbers).
12545 if test "x$srcdir" = x.; then
12546   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12547 h
12548 s///
12549 s/^/:/
12550 s/[      ]*$/:/
12551 s/:\$(srcdir):/:/g
12552 s/:\${srcdir}:/:/g
12553 s/:@srcdir@:/:/g
12554 s/^:*//
12555 s/:*$//
12556 x
12557 s/\(=[   ]*\).*/\1/
12558 G
12559 s/\n//
12560 s/^[^=]*=[       ]*$//
12561 }'
12562 fi
12563
12564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12565 fi # test -n "$CONFIG_FILES"
12566
12567 # Set up the scripts for CONFIG_HEADERS section.
12568 # No need to generate them if there are no CONFIG_HEADERS.
12569 # This happens for instance with `./config.status Makefile'.
12570 if test -n "$CONFIG_HEADERS"; then
12571 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12572 BEGIN {
12573 _ACEOF
12574
12575 # Transform confdefs.h into an awk script `defines.awk', embedded as
12576 # here-document in config.status, that substitutes the proper values into
12577 # config.h.in to produce config.h.
12578
12579 # Create a delimiter string that does not exist in confdefs.h, to ease
12580 # handling of long lines.
12581 ac_delim='%!_!# '
12582 for ac_last_try in false false :; do
12583   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12584   if test -z "$ac_tt"; then
12585     break
12586   elif $ac_last_try; then
12587     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12588   else
12589     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12590   fi
12591 done
12592
12593 # For the awk script, D is an array of macro values keyed by name,
12594 # likewise P contains macro parameters if any.  Preserve backslash
12595 # newline sequences.
12596
12597 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12598 sed -n '
12599 s/.\{148\}/&'"$ac_delim"'/g
12600 t rset
12601 :rset
12602 s/^[     ]*#[    ]*define[       ][      ]*/ /
12603 t def
12604 d
12605 :def
12606 s/\\$//
12607 t bsnl
12608 s/["\\]/\\&/g
12609 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12610 D["\1"]=" \3"/p
12611 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12612 d
12613 :bsnl
12614 s/["\\]/\\&/g
12615 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12616 D["\1"]=" \3\\\\\\n"\\/p
12617 t cont
12618 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12619 t cont
12620 d
12621 :cont
12622 n
12623 s/.\{148\}/&'"$ac_delim"'/g
12624 t clear
12625 :clear
12626 s/\\$//
12627 t bsnlc
12628 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12629 d
12630 :bsnlc
12631 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12632 b cont
12633 ' <confdefs.h | sed '
12634 s/'"$ac_delim"'/"\\\
12635 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12636
12637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12638   for (key in D) D_is_set[key] = 1
12639   FS = "\a"
12640 }
12641 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12642   line = \$ 0
12643   split(line, arg, " ")
12644   if (arg[1] == "#") {
12645     defundef = arg[2]
12646     mac1 = arg[3]
12647   } else {
12648     defundef = substr(arg[1], 2)
12649     mac1 = arg[2]
12650   }
12651   split(mac1, mac2, "(") #)
12652   macro = mac2[1]
12653   prefix = substr(line, 1, index(line, defundef) - 1)
12654   if (D_is_set[macro]) {
12655     # Preserve the white space surrounding the "#".
12656     print prefix "define", macro P[macro] D[macro]
12657     next
12658   } else {
12659     # Replace #undef with comments.  This is necessary, for example,
12660     # in the case of _POSIX_SOURCE, which is predefined and required
12661     # on some systems where configure will not decide to define it.
12662     if (defundef == "undef") {
12663       print "/*", prefix defundef, macro, "*/"
12664       next
12665     }
12666   }
12667 }
12668 { print }
12669 _ACAWK
12670 _ACEOF
12671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12672   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12673 fi # test -n "$CONFIG_HEADERS"
12674
12675
12676 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12677 shift
12678 for ac_tag
12679 do
12680   case $ac_tag in
12681   :[FHLC]) ac_mode=$ac_tag; continue;;
12682   esac
12683   case $ac_mode$ac_tag in
12684   :[FHL]*:*);;
12685   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12686   :[FH]-) ac_tag=-:-;;
12687   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12688   esac
12689   ac_save_IFS=$IFS
12690   IFS=:
12691   set x $ac_tag
12692   IFS=$ac_save_IFS
12693   shift
12694   ac_file=$1
12695   shift
12696
12697   case $ac_mode in
12698   :L) ac_source=$1;;
12699   :[FH])
12700     ac_file_inputs=
12701     for ac_f
12702     do
12703       case $ac_f in
12704       -) ac_f="$ac_tmp/stdin";;
12705       *) # Look for the file first in the build tree, then in the source tree
12706          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12707          # because $ac_f cannot contain `:'.
12708          test -f "$ac_f" ||
12709            case $ac_f in
12710            [\\/$]*) false;;
12711            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12712            esac ||
12713            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12714       esac
12715       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12716       as_fn_append ac_file_inputs " '$ac_f'"
12717     done
12718
12719     # Let's still pretend it is `configure' which instantiates (i.e., don't
12720     # use $as_me), people would be surprised to read:
12721     #    /* config.h.  Generated by config.status.  */
12722     configure_input='Generated from '`
12723           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12724         `' by configure.'
12725     if test x"$ac_file" != x-; then
12726       configure_input="$ac_file.  $configure_input"
12727       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12728 $as_echo "$as_me: creating $ac_file" >&6;}
12729     fi
12730     # Neutralize special characters interpreted by sed in replacement strings.
12731     case $configure_input in #(
12732     *\&* | *\|* | *\\* )
12733        ac_sed_conf_input=`$as_echo "$configure_input" |
12734        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12735     *) ac_sed_conf_input=$configure_input;;
12736     esac
12737
12738     case $ac_tag in
12739     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12740       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12741     esac
12742     ;;
12743   esac
12744
12745   ac_dir=`$as_dirname -- "$ac_file" ||
12746 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12747          X"$ac_file" : 'X\(//\)[^/]' \| \
12748          X"$ac_file" : 'X\(//\)$' \| \
12749          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12750 $as_echo X"$ac_file" |
12751     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12752             s//\1/
12753             q
12754           }
12755           /^X\(\/\/\)[^/].*/{
12756             s//\1/
12757             q
12758           }
12759           /^X\(\/\/\)$/{
12760             s//\1/
12761             q
12762           }
12763           /^X\(\/\).*/{
12764             s//\1/
12765             q
12766           }
12767           s/.*/./; q'`
12768   as_dir="$ac_dir"; as_fn_mkdir_p
12769   ac_builddir=.
12770
12771 case "$ac_dir" in
12772 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12773 *)
12774   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12775   # A ".." for each directory in $ac_dir_suffix.
12776   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12777   case $ac_top_builddir_sub in
12778   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12779   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12780   esac ;;
12781 esac
12782 ac_abs_top_builddir=$ac_pwd
12783 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12784 # for backward compatibility:
12785 ac_top_builddir=$ac_top_build_prefix
12786
12787 case $srcdir in
12788   .)  # We are building in place.
12789     ac_srcdir=.
12790     ac_top_srcdir=$ac_top_builddir_sub
12791     ac_abs_top_srcdir=$ac_pwd ;;
12792   [\\/]* | ?:[\\/]* )  # Absolute name.
12793     ac_srcdir=$srcdir$ac_dir_suffix;
12794     ac_top_srcdir=$srcdir
12795     ac_abs_top_srcdir=$srcdir ;;
12796   *) # Relative name.
12797     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12798     ac_top_srcdir=$ac_top_build_prefix$srcdir
12799     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12800 esac
12801 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12802
12803
12804   case $ac_mode in
12805   :F)
12806   #
12807   # CONFIG_FILE
12808   #
12809
12810   case $INSTALL in
12811   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12812   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12813   esac
12814   ac_MKDIR_P=$MKDIR_P
12815   case $MKDIR_P in
12816   [\\/$]* | ?:[\\/]* ) ;;
12817   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12818   esac
12819 _ACEOF
12820
12821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12822 # If the template does not know about datarootdir, expand it.
12823 # FIXME: This hack should be removed a few years after 2.60.
12824 ac_datarootdir_hack=; ac_datarootdir_seen=
12825 ac_sed_dataroot='
12826 /datarootdir/ {
12827   p
12828   q
12829 }
12830 /@datadir@/p
12831 /@docdir@/p
12832 /@infodir@/p
12833 /@localedir@/p
12834 /@mandir@/p'
12835 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12836 *datarootdir*) ac_datarootdir_seen=yes;;
12837 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12838   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12839 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12840 _ACEOF
12841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12842   ac_datarootdir_hack='
12843   s&@datadir@&$datadir&g
12844   s&@docdir@&$docdir&g
12845   s&@infodir@&$infodir&g
12846   s&@localedir@&$localedir&g
12847   s&@mandir@&$mandir&g
12848   s&\\\${datarootdir}&$datarootdir&g' ;;
12849 esac
12850 _ACEOF
12851
12852 # Neutralize VPATH when `$srcdir' = `.'.
12853 # Shell code in configure.ac might set extrasub.
12854 # FIXME: do we really want to maintain this feature?
12855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12856 ac_sed_extra="$ac_vpsub
12857 $extrasub
12858 _ACEOF
12859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12860 :t
12861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12862 s|@configure_input@|$ac_sed_conf_input|;t t
12863 s&@top_builddir@&$ac_top_builddir_sub&;t t
12864 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12865 s&@srcdir@&$ac_srcdir&;t t
12866 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12867 s&@top_srcdir@&$ac_top_srcdir&;t t
12868 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12869 s&@builddir@&$ac_builddir&;t t
12870 s&@abs_builddir@&$ac_abs_builddir&;t t
12871 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12872 s&@INSTALL@&$ac_INSTALL&;t t
12873 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12874 $ac_datarootdir_hack
12875 "
12876 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12877   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12878
12879 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12880   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12881   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12882       "$ac_tmp/out"`; test -z "$ac_out"; } &&
12883   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12884 which seems to be undefined.  Please make sure it is defined" >&5
12885 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12886 which seems to be undefined.  Please make sure it is defined" >&2;}
12887
12888   rm -f "$ac_tmp/stdin"
12889   case $ac_file in
12890   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12891   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12892   esac \
12893   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12894  ;;
12895   :H)
12896   #
12897   # CONFIG_HEADER
12898   #
12899   if test x"$ac_file" != x-; then
12900     {
12901       $as_echo "/* $configure_input  */" \
12902       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12903     } >"$ac_tmp/config.h" \
12904       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12905     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12906       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12907 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12908     else
12909       rm -f "$ac_file"
12910       mv "$ac_tmp/config.h" "$ac_file" \
12911         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12912     fi
12913   else
12914     $as_echo "/* $configure_input  */" \
12915       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12916       || as_fn_error $? "could not create -" "$LINENO" 5
12917   fi
12918 # Compute "$ac_file"'s index in $config_headers.
12919 _am_arg="$ac_file"
12920 _am_stamp_count=1
12921 for _am_header in $config_headers :; do
12922   case $_am_header in
12923     $_am_arg | $_am_arg:* )
12924       break ;;
12925     * )
12926       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12927   esac
12928 done
12929 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12930 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12931          X"$_am_arg" : 'X\(//\)[^/]' \| \
12932          X"$_am_arg" : 'X\(//\)$' \| \
12933          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12934 $as_echo X"$_am_arg" |
12935     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12936             s//\1/
12937             q
12938           }
12939           /^X\(\/\/\)[^/].*/{
12940             s//\1/
12941             q
12942           }
12943           /^X\(\/\/\)$/{
12944             s//\1/
12945             q
12946           }
12947           /^X\(\/\).*/{
12948             s//\1/
12949             q
12950           }
12951           s/.*/./; q'`/stamp-h$_am_stamp_count
12952  ;;
12953
12954   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12955 $as_echo "$as_me: executing $ac_file commands" >&6;}
12956  ;;
12957   esac
12958
12959
12960   case $ac_file$ac_mode in
12961     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12962   # Autoconf 2.62 quotes --file arguments for eval, but not when files
12963   # are listed without --file.  Let's play safe and only enable the eval
12964   # if we detect the quoting.
12965   case $CONFIG_FILES in
12966   *\'*) eval set x "$CONFIG_FILES" ;;
12967   *)   set x $CONFIG_FILES ;;
12968   esac
12969   shift
12970   for mf
12971   do
12972     # Strip MF so we end up with the name of the file.
12973     mf=`echo "$mf" | sed -e 's/:.*$//'`
12974     # Check whether this is an Automake generated Makefile or not.
12975     # We used to match only the files named `Makefile.in', but
12976     # some people rename them; so instead we look at the file content.
12977     # Grep'ing the first line is not enough: some people post-process
12978     # each Makefile.in and add a new line on top of each file to say so.
12979     # Grep'ing the whole file is not good either: AIX grep has a line
12980     # limit of 2048, but all sed's we know have understand at least 4000.
12981     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12982       dirpart=`$as_dirname -- "$mf" ||
12983 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12984          X"$mf" : 'X\(//\)[^/]' \| \
12985          X"$mf" : 'X\(//\)$' \| \
12986          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12987 $as_echo X"$mf" |
12988     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12989             s//\1/
12990             q
12991           }
12992           /^X\(\/\/\)[^/].*/{
12993             s//\1/
12994             q
12995           }
12996           /^X\(\/\/\)$/{
12997             s//\1/
12998             q
12999           }
13000           /^X\(\/\).*/{
13001             s//\1/
13002             q
13003           }
13004           s/.*/./; q'`
13005     else
13006       continue
13007     fi
13008     # Extract the definition of DEPDIR, am__include, and am__quote
13009     # from the Makefile without running `make'.
13010     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13011     test -z "$DEPDIR" && continue
13012     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13013     test -z "am__include" && continue
13014     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13015     # When using ansi2knr, U may be empty or an underscore; expand it
13016     U=`sed -n 's/^U = //p' < "$mf"`
13017     # Find all dependency output files, they are included files with
13018     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13019     # simplest approach to changing $(DEPDIR) to its actual value in the
13020     # expansion.
13021     for file in `sed -n "
13022       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13023          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13024       # Make sure the directory exists.
13025       test -f "$dirpart/$file" && continue
13026       fdir=`$as_dirname -- "$file" ||
13027 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13028          X"$file" : 'X\(//\)[^/]' \| \
13029          X"$file" : 'X\(//\)$' \| \
13030          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13031 $as_echo X"$file" |
13032     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13033             s//\1/
13034             q
13035           }
13036           /^X\(\/\/\)[^/].*/{
13037             s//\1/
13038             q
13039           }
13040           /^X\(\/\/\)$/{
13041             s//\1/
13042             q
13043           }
13044           /^X\(\/\).*/{
13045             s//\1/
13046             q
13047           }
13048           s/.*/./; q'`
13049       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13050       # echo "creating $dirpart/$file"
13051       echo '# dummy' > "$dirpart/$file"
13052     done
13053   done
13054 }
13055  ;;
13056     "po-directories":C)
13057     for ac_file in $CONFIG_FILES; do
13058       # Support "outfile[:infile[:infile...]]"
13059       case "$ac_file" in
13060         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13061       esac
13062       # PO directories have a Makefile.in generated from Makefile.in.in.
13063       case "$ac_file" in */Makefile.in)
13064         # Adjust a relative srcdir.
13065         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13066         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13067         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13068         # In autoconf-2.13 it is called $ac_given_srcdir.
13069         # In autoconf-2.50 it is called $srcdir.
13070         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13071         case "$ac_given_srcdir" in
13072           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13073           /*) top_srcdir="$ac_given_srcdir" ;;
13074           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
13075         esac
13076         # Treat a directory as a PO directory if and only if it has a
13077         # POTFILES.in file. This allows packages to have multiple PO
13078         # directories under different names or in different locations.
13079         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13080           rm -f "$ac_dir/POTFILES"
13081           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13082           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13083           POMAKEFILEDEPS="POTFILES.in"
13084           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
13085           # on $ac_dir but don't depend on user-specified configuration
13086           # parameters.
13087           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13088             # The LINGUAS file contains the set of available languages.
13089             if test -n "$OBSOLETE_ALL_LINGUAS"; then
13090               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13091             fi
13092             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13093             # Hide the ALL_LINGUAS assigment from automake < 1.5.
13094             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13095             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13096           else
13097             # The set of available languages was given in configure.in.
13098             # Hide the ALL_LINGUAS assigment from automake < 1.5.
13099             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13100           fi
13101           # Compute POFILES
13102           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
13103           # Compute UPDATEPOFILES
13104           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
13105           # Compute DUMMYPOFILES
13106           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
13107           # Compute GMOFILES
13108           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
13109           case "$ac_given_srcdir" in
13110             .) srcdirpre= ;;
13111             *) srcdirpre='$(srcdir)/' ;;
13112           esac
13113           POFILES=
13114           UPDATEPOFILES=
13115           DUMMYPOFILES=
13116           GMOFILES=
13117           for lang in $ALL_LINGUAS; do
13118             POFILES="$POFILES $srcdirpre$lang.po"
13119             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13120             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13121             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13122           done
13123           # CATALOGS depends on both $ac_dir and the user's LINGUAS
13124           # environment variable.
13125           INST_LINGUAS=
13126           if test -n "$ALL_LINGUAS"; then
13127             for presentlang in $ALL_LINGUAS; do
13128               useit=no
13129               if test "%UNSET%" != "$LINGUAS"; then
13130                 desiredlanguages="$LINGUAS"
13131               else
13132                 desiredlanguages="$ALL_LINGUAS"
13133               fi
13134               for desiredlang in $desiredlanguages; do
13135                 # Use the presentlang catalog if desiredlang is
13136                 #   a. equal to presentlang, or
13137                 #   b. a variant of presentlang (because in this case,
13138                 #      presentlang can be used as a fallback for messages
13139                 #      which are not translated in the desiredlang catalog).
13140                 case "$desiredlang" in
13141                   "$presentlang"*) useit=yes;;
13142                 esac
13143               done
13144               if test $useit = yes; then
13145                 INST_LINGUAS="$INST_LINGUAS $presentlang"
13146               fi
13147             done
13148           fi
13149           CATALOGS=
13150           if test -n "$INST_LINGUAS"; then
13151             for lang in $INST_LINGUAS; do
13152               CATALOGS="$CATALOGS $lang.gmo"
13153             done
13154           fi
13155           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13156           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"
13157           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13158             if test -f "$f"; then
13159               case "$f" in
13160                 *.orig | *.bak | *~) ;;
13161                 *) cat "$f" >> "$ac_dir/Makefile" ;;
13162               esac
13163             fi
13164           done
13165         fi
13166         ;;
13167       esac
13168     done ;;
13169
13170   esac
13171 done # for ac_tag
13172
13173
13174 as_fn_exit 0
13175 _ACEOF
13176 ac_clean_files=$ac_clean_files_save
13177
13178 test $ac_write_fail = 0 ||
13179   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13180
13181
13182 # configure is writing to config.log, and then calls config.status.
13183 # config.status does its own redirection, appending to config.log.
13184 # Unfortunately, on DOS this fails, as config.log is still kept open
13185 # by configure, so config.status won't be able to write to it; its
13186 # output is simply discarded.  So we exec the FD to /dev/null,
13187 # effectively closing config.log, so it can be properly (re)opened and
13188 # appended to by config.status.  When coming back to configure, we
13189 # need to make the FD available again.
13190 if test "$no_create" != yes; then
13191   ac_cs_success=:
13192   ac_config_status_args=
13193   test "$silent" = yes &&
13194     ac_config_status_args="$ac_config_status_args --quiet"
13195   exec 5>/dev/null
13196   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13197   exec 5>>config.log
13198   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13199   # would make configure fail if this is the last instruction.
13200   $ac_cs_success || as_fn_exit 1
13201 fi
13202 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13203   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13204 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13205 fi
13206