Imported Upstream version 0.19.8.1
[platform/upstream/gettext.git] / gettext-runtime / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gettext-runtime 0.19.8.1.
4 #
5 # Report bugs to <bug-gnu-gettext@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software 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 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: bug-gnu-gettext@gnu.org about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='gettext-runtime'
592 PACKAGE_TARNAME='gettext-runtime'
593 PACKAGE_VERSION='0.19.8.1'
594 PACKAGE_STRING='gettext-runtime 0.19.8.1'
595 PACKAGE_BUGREPORT='bug-gnu-gettext@gnu.org'
596 PACKAGE_URL=''
597
598 ac_unique_file="intl/dcigettext.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 gl_use_threads_default=
636 gt_needs=
637 ac_header_list=
638 ac_func_list=
639 gl_getopt_required=POSIX
640 gl_getopt_required=POSIX
641 enable_option_checking=no
642 ac_subst_vars='gltests_LTLIBOBJS
643 gltests_LIBOBJS
644 gl_LTLIBOBJS
645 gl_LIBOBJS
646 am__EXEEXT_FALSE
647 am__EXEEXT_TRUE
648 LTLIBOBJS
649 LIBOBJS
650 subdirs
651 ENABLE_LIBASPRINTF_FALSE
652 ENABLE_LIBASPRINTF_TRUE
653 LIBSCHED
654 CROSS_COMPILING
655 PERL
656 INTL_EXPORTS_FLAGS
657 WOE32DLL_FALSE
658 WOE32DLL_TRUE
659 LIBGRT_LTLIBDEPS
660 LIBGRT_LIBDEPS
661 gltests_WITNESS
662 HAVE_FEATURES_H
663 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
664 NEXT_WCHAR_H
665 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
666 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
667 LIBUNISTRING_UNIWIDTH_H
668 LIBUNISTRING_UNITYPES_H
669 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE
670 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE
671 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE
672 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE
673 LIBUNISTRING_UNISTR_H
674 HAVE_UNISTD_H
675 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
676 NEXT_UNISTD_H
677 UNISTD_H_DEFINES_STRUCT_TIMESPEC
678 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
679 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
680 TIME_H_DEFINES_STRUCT_TIMESPEC
681 NEXT_AS_FIRST_DIRECTIVE_TIME_H
682 NEXT_TIME_H
683 REPLACE_LOCALTIME
684 REPLACE_GMTIME
685 REPLACE_TIMEGM
686 REPLACE_NANOSLEEP
687 REPLACE_MKTIME
688 REPLACE_LOCALTIME_R
689 HAVE_TIMEGM
690 HAVE_STRPTIME
691 HAVE_NANOSLEEP
692 HAVE_DECL_LOCALTIME_R
693 GNULIB_TIME_RZ
694 GNULIB_TIME_R
695 GNULIB_TIMEGM
696 GNULIB_STRPTIME
697 GNULIB_NANOSLEEP
698 GNULIB_MKTIME
699 WINDOWS_64_BIT_OFF_T
700 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
701 NEXT_SYS_TYPES_H
702 WINDOWS_64_BIT_ST_SIZE
703 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
704 NEXT_SYS_STAT_H
705 NEXT_AS_FIRST_DIRECTIVE_STRING_H
706 NEXT_STRING_H
707 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
708 NEXT_STDLIB_H
709 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
710 NEXT_STDIO_H
711 GL_GENERATE_STDINT_H_FALSE
712 GL_GENERATE_STDINT_H_TRUE
713 STDINT_H
714 WINT_T_SUFFIX
715 WCHAR_T_SUFFIX
716 SIG_ATOMIC_T_SUFFIX
717 SIZE_T_SUFFIX
718 PTRDIFF_T_SUFFIX
719 HAVE_SIGNED_WINT_T
720 HAVE_SIGNED_WCHAR_T
721 HAVE_SIGNED_SIG_ATOMIC_T
722 BITSIZEOF_WINT_T
723 BITSIZEOF_WCHAR_T
724 BITSIZEOF_SIG_ATOMIC_T
725 BITSIZEOF_SIZE_T
726 BITSIZEOF_PTRDIFF_T
727 HAVE_SYS_BITYPES_H
728 HAVE_SYS_INTTYPES_H
729 HAVE_STDINT_H
730 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
731 NEXT_STDINT_H
732 HAVE_SYS_TYPES_H
733 HAVE_INTTYPES_H
734 HAVE_WCHAR_H
735 HAVE_UNSIGNED_LONG_LONG_INT
736 HAVE_LONG_LONG_INT
737 HAVE__BOOL
738 GL_GENERATE_STDBOOL_H_FALSE
739 GL_GENERATE_STDBOOL_H_TRUE
740 STDBOOL_H
741 ASM_SYMBOL_PREFIX
742 REPLACE_VSPRINTF
743 REPLACE_VSNPRINTF
744 REPLACE_VPRINTF
745 REPLACE_VFPRINTF
746 REPLACE_VDPRINTF
747 REPLACE_VASPRINTF
748 REPLACE_TMPFILE
749 REPLACE_STDIO_WRITE_FUNCS
750 REPLACE_STDIO_READ_FUNCS
751 REPLACE_SPRINTF
752 REPLACE_SNPRINTF
753 REPLACE_RENAMEAT
754 REPLACE_RENAME
755 REPLACE_REMOVE
756 REPLACE_PRINTF
757 REPLACE_POPEN
758 REPLACE_PERROR
759 REPLACE_OBSTACK_PRINTF
760 REPLACE_GETLINE
761 REPLACE_GETDELIM
762 REPLACE_FTELLO
763 REPLACE_FTELL
764 REPLACE_FSEEKO
765 REPLACE_FSEEK
766 REPLACE_FREOPEN
767 REPLACE_FPURGE
768 REPLACE_FPRINTF
769 REPLACE_FOPEN
770 REPLACE_FFLUSH
771 REPLACE_FDOPEN
772 REPLACE_FCLOSE
773 REPLACE_DPRINTF
774 HAVE_VDPRINTF
775 HAVE_VASPRINTF
776 HAVE_RENAMEAT
777 HAVE_POPEN
778 HAVE_PCLOSE
779 HAVE_FTELLO
780 HAVE_FSEEKO
781 HAVE_DPRINTF
782 HAVE_DECL_VSNPRINTF
783 HAVE_DECL_SNPRINTF
784 HAVE_DECL_OBSTACK_PRINTF
785 HAVE_DECL_GETLINE
786 HAVE_DECL_GETDELIM
787 HAVE_DECL_FTELLO
788 HAVE_DECL_FSEEKO
789 HAVE_DECL_FPURGE
790 GNULIB_VSPRINTF_POSIX
791 GNULIB_VSNPRINTF
792 GNULIB_VPRINTF_POSIX
793 GNULIB_VPRINTF
794 GNULIB_VFPRINTF_POSIX
795 GNULIB_VFPRINTF
796 GNULIB_VDPRINTF
797 GNULIB_VSCANF
798 GNULIB_VFSCANF
799 GNULIB_VASPRINTF
800 GNULIB_TMPFILE
801 GNULIB_STDIO_H_SIGPIPE
802 GNULIB_STDIO_H_NONBLOCKING
803 GNULIB_SPRINTF_POSIX
804 GNULIB_SNPRINTF
805 GNULIB_SCANF
806 GNULIB_RENAMEAT
807 GNULIB_RENAME
808 GNULIB_REMOVE
809 GNULIB_PUTS
810 GNULIB_PUTCHAR
811 GNULIB_PUTC
812 GNULIB_PRINTF_POSIX
813 GNULIB_PRINTF
814 GNULIB_POPEN
815 GNULIB_PERROR
816 GNULIB_PCLOSE
817 GNULIB_OBSTACK_PRINTF_POSIX
818 GNULIB_OBSTACK_PRINTF
819 GNULIB_GETLINE
820 GNULIB_GETDELIM
821 GNULIB_GETCHAR
822 GNULIB_GETC
823 GNULIB_FWRITE
824 GNULIB_FTELLO
825 GNULIB_FTELL
826 GNULIB_FSEEKO
827 GNULIB_FSEEK
828 GNULIB_FSCANF
829 GNULIB_FREOPEN
830 GNULIB_FREAD
831 GNULIB_FPUTS
832 GNULIB_FPUTC
833 GNULIB_FPURGE
834 GNULIB_FPRINTF_POSIX
835 GNULIB_FPRINTF
836 GNULIB_FOPEN
837 GNULIB_FGETS
838 GNULIB_FGETC
839 GNULIB_FFLUSH
840 GNULIB_FDOPEN
841 GNULIB_FCLOSE
842 GNULIB_DPRINTF
843 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
844 NEXT_SIGNAL_H
845 RELOCATABLE_STRIP
846 RELOCATABLE_BUILD_DIR
847 RELOCATABLE_SRC_DIR
848 RELOCATABLE_CONFIG_H_DIR
849 RELOCATABLE_LIBRARY_PATH
850 RELOCATABLE_VIA_WRAPPER_FALSE
851 RELOCATABLE_VIA_WRAPPER_TRUE
852 RELOCATABLE_VIA_LD_FALSE
853 RELOCATABLE_VIA_LD_TRUE
854 INSTALL_PROGRAM_ENV
855 RELOCATABLE_LDFLAGS
856 RELOCATABLE
857 REPLACE_RAISE
858 REPLACE_PTHREAD_SIGMASK
859 HAVE_SIGHANDLER_T
860 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
861 HAVE_STRUCT_SIGACTION_SA_SIGACTION
862 HAVE_SIGACTION
863 HAVE_SIGINFO_T
864 HAVE_SIGSET_T
865 HAVE_RAISE
866 HAVE_PTHREAD_SIGMASK
867 HAVE_POSIX_SIGNALBLOCKING
868 GNULIB_SIGACTION
869 GNULIB_SIGPROCMASK
870 GNULIB_SIGNAL_H_SIGPIPE
871 GNULIB_RAISE
872 GNULIB_PTHREAD_SIGMASK
873 APPLE_UNIVERSAL_BUILD
874 HAVE_MSVC_INVALID_PARAMETER_HANDLER
875 UNDEFINE_STRTOK_R
876 REPLACE_STRTOK_R
877 REPLACE_STRSIGNAL
878 REPLACE_STRNLEN
879 REPLACE_STRNDUP
880 REPLACE_STRNCAT
881 REPLACE_STRERROR_R
882 REPLACE_STRERROR
883 REPLACE_STRCHRNUL
884 REPLACE_STRCASESTR
885 REPLACE_STRSTR
886 REPLACE_STRDUP
887 REPLACE_STPNCPY
888 REPLACE_MEMMEM
889 REPLACE_MEMCHR
890 HAVE_STRVERSCMP
891 HAVE_DECL_STRSIGNAL
892 HAVE_DECL_STRERROR_R
893 HAVE_DECL_STRTOK_R
894 HAVE_STRCASESTR
895 HAVE_STRSEP
896 HAVE_STRPBRK
897 HAVE_DECL_STRNLEN
898 HAVE_DECL_STRNDUP
899 HAVE_DECL_STRDUP
900 HAVE_STRCHRNUL
901 HAVE_STPNCPY
902 HAVE_STPCPY
903 HAVE_RAWMEMCHR
904 HAVE_DECL_MEMRCHR
905 HAVE_MEMPCPY
906 HAVE_DECL_MEMMEM
907 HAVE_MEMCHR
908 HAVE_FFSLL
909 HAVE_FFSL
910 HAVE_MBSLEN
911 GNULIB_STRVERSCMP
912 GNULIB_STRSIGNAL
913 GNULIB_STRERROR_R
914 GNULIB_STRERROR
915 GNULIB_MBSTOK_R
916 GNULIB_MBSSEP
917 GNULIB_MBSSPN
918 GNULIB_MBSPBRK
919 GNULIB_MBSCSPN
920 GNULIB_MBSCASESTR
921 GNULIB_MBSPCASECMP
922 GNULIB_MBSNCASECMP
923 GNULIB_MBSCASECMP
924 GNULIB_MBSSTR
925 GNULIB_MBSRCHR
926 GNULIB_MBSCHR
927 GNULIB_MBSNLEN
928 GNULIB_MBSLEN
929 GNULIB_STRTOK_R
930 GNULIB_STRCASESTR
931 GNULIB_STRSTR
932 GNULIB_STRSEP
933 GNULIB_STRPBRK
934 GNULIB_STRNLEN
935 GNULIB_STRNDUP
936 GNULIB_STRNCAT
937 GNULIB_STRDUP
938 GNULIB_STRCHRNUL
939 GNULIB_STPNCPY
940 GNULIB_STPCPY
941 GNULIB_RAWMEMCHR
942 GNULIB_MEMRCHR
943 GNULIB_MEMPCPY
944 GNULIB_MEMMEM
945 GNULIB_MEMCHR
946 GNULIB_FFSLL
947 GNULIB_FFSL
948 LOCALE_FR_UTF8
949 LOCALE_ZH_CN
950 LOCALE_JA
951 REPLACE_WCSWIDTH
952 REPLACE_WCWIDTH
953 REPLACE_WCSNRTOMBS
954 REPLACE_WCSRTOMBS
955 REPLACE_WCRTOMB
956 REPLACE_MBSNRTOWCS
957 REPLACE_MBSRTOWCS
958 REPLACE_MBRLEN
959 REPLACE_MBRTOWC
960 REPLACE_MBSINIT
961 REPLACE_WCTOB
962 REPLACE_BTOWC
963 REPLACE_MBSTATE_T
964 HAVE_DECL_WCWIDTH
965 HAVE_DECL_WCTOB
966 HAVE_WCSWIDTH
967 HAVE_WCSTOK
968 HAVE_WCSSTR
969 HAVE_WCSPBRK
970 HAVE_WCSSPN
971 HAVE_WCSCSPN
972 HAVE_WCSRCHR
973 HAVE_WCSCHR
974 HAVE_WCSDUP
975 HAVE_WCSXFRM
976 HAVE_WCSCOLL
977 HAVE_WCSNCASECMP
978 HAVE_WCSCASECMP
979 HAVE_WCSNCMP
980 HAVE_WCSCMP
981 HAVE_WCSNCAT
982 HAVE_WCSCAT
983 HAVE_WCPNCPY
984 HAVE_WCSNCPY
985 HAVE_WCPCPY
986 HAVE_WCSCPY
987 HAVE_WCSNLEN
988 HAVE_WCSLEN
989 HAVE_WMEMSET
990 HAVE_WMEMMOVE
991 HAVE_WMEMCPY
992 HAVE_WMEMCMP
993 HAVE_WMEMCHR
994 HAVE_WCSNRTOMBS
995 HAVE_WCSRTOMBS
996 HAVE_WCRTOMB
997 HAVE_MBSNRTOWCS
998 HAVE_MBSRTOWCS
999 HAVE_MBRLEN
1000 HAVE_MBRTOWC
1001 HAVE_MBSINIT
1002 HAVE_BTOWC
1003 GNULIB_WCSWIDTH
1004 GNULIB_WCSTOK
1005 GNULIB_WCSSTR
1006 GNULIB_WCSPBRK
1007 GNULIB_WCSSPN
1008 GNULIB_WCSCSPN
1009 GNULIB_WCSRCHR
1010 GNULIB_WCSCHR
1011 GNULIB_WCSDUP
1012 GNULIB_WCSXFRM
1013 GNULIB_WCSCOLL
1014 GNULIB_WCSNCASECMP
1015 GNULIB_WCSCASECMP
1016 GNULIB_WCSNCMP
1017 GNULIB_WCSCMP
1018 GNULIB_WCSNCAT
1019 GNULIB_WCSCAT
1020 GNULIB_WCPNCPY
1021 GNULIB_WCSNCPY
1022 GNULIB_WCPCPY
1023 GNULIB_WCSCPY
1024 GNULIB_WCSNLEN
1025 GNULIB_WCSLEN
1026 GNULIB_WMEMSET
1027 GNULIB_WMEMMOVE
1028 GNULIB_WMEMCPY
1029 GNULIB_WMEMCMP
1030 GNULIB_WMEMCHR
1031 GNULIB_WCWIDTH
1032 GNULIB_WCSNRTOMBS
1033 GNULIB_WCSRTOMBS
1034 GNULIB_WCRTOMB
1035 GNULIB_MBSNRTOWCS
1036 GNULIB_MBSRTOWCS
1037 GNULIB_MBRLEN
1038 GNULIB_MBRTOWC
1039 GNULIB_MBSINIT
1040 GNULIB_WCTOB
1041 GNULIB_BTOWC
1042 REPLACE_UTIMENSAT
1043 REPLACE_STAT
1044 REPLACE_MKNOD
1045 REPLACE_MKFIFO
1046 REPLACE_MKDIR
1047 REPLACE_LSTAT
1048 REPLACE_FUTIMENS
1049 REPLACE_FSTATAT
1050 REPLACE_FSTAT
1051 HAVE_UTIMENSAT
1052 HAVE_MKNODAT
1053 HAVE_MKNOD
1054 HAVE_MKFIFOAT
1055 HAVE_MKFIFO
1056 HAVE_MKDIRAT
1057 HAVE_LSTAT
1058 HAVE_LCHMOD
1059 HAVE_FUTIMENS
1060 HAVE_FSTATAT
1061 HAVE_FCHMODAT
1062 GNULIB_UTIMENSAT
1063 GNULIB_STAT
1064 GNULIB_MKNODAT
1065 GNULIB_MKNOD
1066 GNULIB_MKFIFOAT
1067 GNULIB_MKFIFO
1068 GNULIB_MKDIRAT
1069 GNULIB_LSTAT
1070 GNULIB_LCHMOD
1071 GNULIB_FUTIMENS
1072 GNULIB_FSTATAT
1073 GNULIB_FSTAT
1074 GNULIB_FCHMODAT
1075 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
1076 NEXT_LOCALE_H
1077 HAVE_XLOCALE_H
1078 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1079 NEXT_STDDEF_H
1080 GL_GENERATE_STDDEF_H_FALSE
1081 GL_GENERATE_STDDEF_H_TRUE
1082 STDDEF_H
1083 HAVE_WCHAR_T
1084 HAVE_MAX_ALIGN_T
1085 REPLACE_NULL
1086 REPLACE_STRUCT_LCONV
1087 REPLACE_DUPLOCALE
1088 REPLACE_SETLOCALE
1089 REPLACE_LOCALECONV
1090 HAVE_DUPLOCALE
1091 GNULIB_DUPLOCALE
1092 GNULIB_SETLOCALE
1093 GNULIB_LOCALECONV
1094 LOCALCHARSET_TESTS_ENVIRONMENT
1095 HAVE_LANGINFO_YESEXPR
1096 HAVE_LANGINFO_ERA
1097 HAVE_LANGINFO_T_FMT_AMPM
1098 HAVE_LANGINFO_CODESET
1099 HAVE_LANGINFO_H
1100 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
1101 NEXT_LANGINFO_H
1102 REPLACE_NL_LANGINFO
1103 HAVE_NL_LANGINFO
1104 GNULIB_NL_LANGINFO
1105 REPLACE_TOWLOWER
1106 REPLACE_ISWCNTRL
1107 HAVE_WCTYPE_H
1108 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
1109 NEXT_WCTYPE_H
1110 HAVE_WINT_T
1111 HAVE_ISWCNTRL
1112 REPLACE_ISWBLANK
1113 HAVE_WCTRANS_T
1114 HAVE_WCTYPE_T
1115 HAVE_ISWBLANK
1116 GNULIB_TOWCTRANS
1117 GNULIB_WCTRANS
1118 GNULIB_ISWCTYPE
1119 GNULIB_WCTYPE
1120 GNULIB_ISWBLANK
1121 NEXT_AS_FIRST_DIRECTIVE_ICONV_H
1122 NEXT_ICONV_H
1123 HAVE_WINSOCK2_H
1124 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1125 NEXT_SYS_TIME_H
1126 REPLACE_STRUCT_TIMEVAL
1127 REPLACE_GETTIMEOFDAY
1128 HAVE_TIMEZONE_T
1129 HAVE_SYS_TIME_H
1130 HAVE_STRUCT_TIMEVAL
1131 HAVE_GETTIMEOFDAY
1132 GNULIB_GETTIMEOFDAY
1133 GNULIB_GL_UNISTD_H_GETOPT
1134 GETOPT_H
1135 HAVE_GETOPT_H
1136 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1137 NEXT_GETOPT_H
1138 EOVERFLOW_VALUE
1139 EOVERFLOW_HIDDEN
1140 ENOLINK_VALUE
1141 ENOLINK_HIDDEN
1142 EMULTIHOP_VALUE
1143 EMULTIHOP_HIDDEN
1144 GL_GENERATE_ERRNO_H_FALSE
1145 GL_GENERATE_ERRNO_H_TRUE
1146 ERRNO_H
1147 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1148 NEXT_ERRNO_H
1149 PRAGMA_COLUMNS
1150 PRAGMA_SYSTEM_HEADER
1151 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1152 INCLUDE_NEXT
1153 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1154 UNISTD_H_HAVE_WINSOCK2_H
1155 REPLACE_WRITE
1156 REPLACE_USLEEP
1157 REPLACE_UNLINKAT
1158 REPLACE_UNLINK
1159 REPLACE_TTYNAME_R
1160 REPLACE_SYMLINKAT
1161 REPLACE_SYMLINK
1162 REPLACE_SLEEP
1163 REPLACE_RMDIR
1164 REPLACE_READLINKAT
1165 REPLACE_READLINK
1166 REPLACE_READ
1167 REPLACE_PWRITE
1168 REPLACE_PREAD
1169 REPLACE_LSEEK
1170 REPLACE_LINKAT
1171 REPLACE_LINK
1172 REPLACE_LCHOWN
1173 REPLACE_ISATTY
1174 REPLACE_GETPAGESIZE
1175 REPLACE_GETGROUPS
1176 REPLACE_GETLOGIN_R
1177 REPLACE_GETDTABLESIZE
1178 REPLACE_GETDOMAINNAME
1179 REPLACE_GETCWD
1180 REPLACE_FTRUNCATE
1181 REPLACE_FCHOWNAT
1182 REPLACE_DUP2
1183 REPLACE_DUP
1184 REPLACE_CLOSE
1185 REPLACE_CHOWN
1186 HAVE_SYS_PARAM_H
1187 HAVE_OS_H
1188 HAVE_DECL_TTYNAME_R
1189 HAVE_DECL_SETHOSTNAME
1190 HAVE_DECL_GETUSERSHELL
1191 HAVE_DECL_GETPAGESIZE
1192 HAVE_DECL_GETLOGIN_R
1193 HAVE_DECL_GETDOMAINNAME
1194 HAVE_DECL_FDATASYNC
1195 HAVE_DECL_FCHDIR
1196 HAVE_DECL_ENVIRON
1197 HAVE_USLEEP
1198 HAVE_UNLINKAT
1199 HAVE_SYMLINKAT
1200 HAVE_SYMLINK
1201 HAVE_SLEEP
1202 HAVE_SETHOSTNAME
1203 HAVE_READLINKAT
1204 HAVE_READLINK
1205 HAVE_PWRITE
1206 HAVE_PREAD
1207 HAVE_PIPE2
1208 HAVE_PIPE
1209 HAVE_LINKAT
1210 HAVE_LINK
1211 HAVE_LCHOWN
1212 HAVE_GROUP_MEMBER
1213 HAVE_GETPAGESIZE
1214 HAVE_GETLOGIN
1215 HAVE_GETHOSTNAME
1216 HAVE_GETGROUPS
1217 HAVE_GETDTABLESIZE
1218 HAVE_FTRUNCATE
1219 HAVE_FSYNC
1220 HAVE_FDATASYNC
1221 HAVE_FCHOWNAT
1222 HAVE_FCHDIR
1223 HAVE_FACCESSAT
1224 HAVE_EUIDACCESS
1225 HAVE_DUP3
1226 HAVE_DUP2
1227 HAVE_CHOWN
1228 GNULIB_WRITE
1229 GNULIB_USLEEP
1230 GNULIB_UNLINKAT
1231 GNULIB_UNLINK
1232 GNULIB_UNISTD_H_SIGPIPE
1233 GNULIB_UNISTD_H_NONBLOCKING
1234 GNULIB_TTYNAME_R
1235 GNULIB_SYMLINKAT
1236 GNULIB_SYMLINK
1237 GNULIB_SLEEP
1238 GNULIB_SETHOSTNAME
1239 GNULIB_RMDIR
1240 GNULIB_READLINKAT
1241 GNULIB_READLINK
1242 GNULIB_READ
1243 GNULIB_PWRITE
1244 GNULIB_PREAD
1245 GNULIB_PIPE2
1246 GNULIB_PIPE
1247 GNULIB_LSEEK
1248 GNULIB_LINKAT
1249 GNULIB_LINK
1250 GNULIB_LCHOWN
1251 GNULIB_ISATTY
1252 GNULIB_GROUP_MEMBER
1253 GNULIB_GETUSERSHELL
1254 GNULIB_GETPAGESIZE
1255 GNULIB_GETLOGIN_R
1256 GNULIB_GETLOGIN
1257 GNULIB_GETHOSTNAME
1258 GNULIB_GETGROUPS
1259 GNULIB_GETDTABLESIZE
1260 GNULIB_GETDOMAINNAME
1261 GNULIB_GETCWD
1262 GNULIB_FTRUNCATE
1263 GNULIB_FSYNC
1264 GNULIB_FDATASYNC
1265 GNULIB_FCHOWNAT
1266 GNULIB_FCHDIR
1267 GNULIB_FACCESSAT
1268 GNULIB_EUIDACCESS
1269 GNULIB_ENVIRON
1270 GNULIB_DUP3
1271 GNULIB_DUP2
1272 GNULIB_DUP
1273 GNULIB_CLOSE
1274 GNULIB_CHOWN
1275 GNULIB_CHDIR
1276 pkglibexecdir
1277 lispdir
1278 REPLACE_WCTOMB
1279 REPLACE_UNSETENV
1280 REPLACE_STRTOD
1281 REPLACE_SETENV
1282 REPLACE_REALPATH
1283 REPLACE_REALLOC
1284 REPLACE_RANDOM_R
1285 REPLACE_QSORT_R
1286 REPLACE_PUTENV
1287 REPLACE_PTSNAME_R
1288 REPLACE_PTSNAME
1289 REPLACE_MKSTEMP
1290 REPLACE_MBTOWC
1291 REPLACE_MALLOC
1292 REPLACE_CANONICALIZE_FILE_NAME
1293 REPLACE_CALLOC
1294 HAVE_DECL_UNSETENV
1295 HAVE_UNLOCKPT
1296 HAVE_SYS_LOADAVG_H
1297 HAVE_STRUCT_RANDOM_DATA
1298 HAVE_STRTOULL
1299 HAVE_STRTOLL
1300 HAVE_STRTOD
1301 HAVE_DECL_SETENV
1302 HAVE_SETENV
1303 HAVE_SECURE_GETENV
1304 HAVE_RPMATCH
1305 HAVE_REALPATH
1306 HAVE_RANDOM_R
1307 HAVE_RANDOM_H
1308 HAVE_RANDOM
1309 HAVE_PTSNAME_R
1310 HAVE_PTSNAME
1311 HAVE_POSIX_OPENPT
1312 HAVE_MKSTEMPS
1313 HAVE_MKSTEMP
1314 HAVE_MKOSTEMPS
1315 HAVE_MKOSTEMP
1316 HAVE_MKDTEMP
1317 HAVE_GRANTPT
1318 HAVE_GETSUBOPT
1319 HAVE_DECL_GETLOADAVG
1320 HAVE_CANONICALIZE_FILE_NAME
1321 HAVE_ATOLL
1322 HAVE__EXIT
1323 GNULIB_WCTOMB
1324 GNULIB_UNSETENV
1325 GNULIB_UNLOCKPT
1326 GNULIB_SYSTEM_POSIX
1327 GNULIB_STRTOULL
1328 GNULIB_STRTOLL
1329 GNULIB_STRTOD
1330 GNULIB_SETENV
1331 GNULIB_SECURE_GETENV
1332 GNULIB_RPMATCH
1333 GNULIB_REALPATH
1334 GNULIB_REALLOC_POSIX
1335 GNULIB_RANDOM_R
1336 GNULIB_RANDOM
1337 GNULIB_QSORT_R
1338 GNULIB_PUTENV
1339 GNULIB_PTSNAME_R
1340 GNULIB_PTSNAME
1341 GNULIB_POSIX_OPENPT
1342 GNULIB_MKSTEMPS
1343 GNULIB_MKSTEMP
1344 GNULIB_MKOSTEMPS
1345 GNULIB_MKOSTEMP
1346 GNULIB_MKDTEMP
1347 GNULIB_MBTOWC
1348 GNULIB_MALLOC_POSIX
1349 GNULIB_GRANTPT
1350 GNULIB_GETSUBOPT
1351 GNULIB_GETLOADAVG
1352 GNULIB_CANONICALIZE_FILE_NAME
1353 GNULIB_CALLOC_POSIX
1354 GNULIB_ATOLL
1355 GNULIB__EXIT
1356 am__fastdepCXX_FALSE
1357 am__fastdepCXX_TRUE
1358 CXXDEPMODE
1359 ANSICXX_FALSE
1360 ANSICXX_TRUE
1361 CXXFLAGS
1362 ac_ct_CXX
1363 CXX
1364 CXX_CHOICE
1365 GL_GENERATE_ALLOCA_H_FALSE
1366 GL_GENERATE_ALLOCA_H_TRUE
1367 ALLOCA_H
1368 GL_COND_LIBTOOL_FALSE
1369 GL_COND_LIBTOOL_TRUE
1370 POSUB
1371 LTLIBINTL
1372 LIBINTL
1373 INTLLIBS
1374 INTL_LIBTOOL_SUFFIX_PREFIX
1375 INTLOBJS
1376 GENCAT
1377 INSTOBJEXT
1378 DATADIRNAME
1379 CATOBJEXT
1380 USE_INCLUDED_LIBINTL
1381 BUILD_INCLUDED_LIBINTL
1382 LTLIBC
1383 WINDRES
1384 WOE32
1385 WOE32DLL
1386 HAVE_WPRINTF
1387 HAVE_NEWLOCALE
1388 HAVE_SNPRINTF
1389 HAVE_ASPRINTF
1390 HAVE_POSIX_PRINTF
1391 INTL_DEFAULT_VERBOSITY
1392 INTL_MACOSX_LIBS
1393 GLIBC21
1394 INTLBISON
1395 GL_GENERATE_ICONV_H_FALSE
1396 GL_GENERATE_ICONV_H_TRUE
1397 ICONV_H
1398 REPLACE_ICONV_UTF
1399 REPLACE_ICONV_OPEN
1400 REPLACE_ICONV
1401 ICONV_CONST
1402 GNULIB_ICONV
1403 LTLIBICONV
1404 LIBICONV
1405 LTLIBMULTITHREAD
1406 LIBMULTITHREAD
1407 LTLIBTHREAD
1408 LIBTHREAD
1409 LIBPTH_PREFIX
1410 LTLIBPTH
1411 LIBPTH
1412 PRI_MACROS_BROKEN
1413 ALLOCA
1414 HAVE_VISIBILITY
1415 CFLAG_VISIBILITY
1416 GLIBC2
1417 XGETTEXT_EXTRA_OPTIONS
1418 MSGMERGE
1419 XGETTEXT_015
1420 XGETTEXT
1421 GMSGFMT_015
1422 MSGFMT_015
1423 GMSGFMT
1424 MSGFMT
1425 GETTEXT_MACRO_VERSION
1426 USE_NLS
1427 WOE32_FALSE
1428 WOE32_TRUE
1429 RC
1430 LT_SYS_LIBRARY_PATH
1431 OTOOL64
1432 OTOOL
1433 LIPO
1434 NMEDIT
1435 DSYMUTIL
1436 MANIFEST_TOOL
1437 LN_S
1438 NM
1439 ac_ct_DUMPBIN
1440 DUMPBIN
1441 LD
1442 FGREP
1443 SED
1444 LIBTOOL
1445 OBJDUMP
1446 DLLTOOL
1447 AS
1448 RANLIB
1449 ARFLAGS
1450 ac_ct_AR
1451 AR
1452 host_os
1453 host_vendor
1454 host_cpu
1455 host
1456 build_os
1457 build_vendor
1458 build_cpu
1459 build
1460 BUILDCSHARP
1461 CSHARPCOMPFLAGS
1462 HAVE_CSC
1463 HAVE_MCS
1464 HAVE_CSCC
1465 HAVE_CSC_IN_PATH
1466 HAVE_MCS_IN_PATH
1467 HAVE_CSCC_IN_PATH
1468 CSHARP_CHOICE
1469 BUILDJAVA
1470 JAR
1471 HAVE_JIKES
1472 HAVE_JAVAC
1473 HAVE_GCJ_C
1474 HAVE_JAVAC_ENVVAR
1475 CLASSPATH_SEPARATOR
1476 CLASSPATH
1477 CONF_JAVAC
1478 HAVE_JIKES_IN_PATH
1479 HAVE_JAVAC_IN_PATH
1480 HAVE_GCJ_IN_PATH
1481 EGREP
1482 GREP
1483 CPP
1484 JAVA_CHOICE
1485 YFLAGS
1486 YACC
1487 am__fastdepCC_FALSE
1488 am__fastdepCC_TRUE
1489 CCDEPMODE
1490 am__nodep
1491 AMDEPBACKSLASH
1492 AMDEP_FALSE
1493 AMDEP_TRUE
1494 am__quote
1495 am__include
1496 DEPDIR
1497 OBJEXT
1498 EXEEXT
1499 ac_ct_CC
1500 CPPFLAGS
1501 LDFLAGS
1502 CFLAGS
1503 CC
1504 AM_BACKSLASH
1505 AM_DEFAULT_VERBOSITY
1506 AM_DEFAULT_V
1507 AM_V
1508 am__untar
1509 am__tar
1510 AMTAR
1511 am__leading_dot
1512 SET_MAKE
1513 AWK
1514 mkdir_p
1515 MKDIR_P
1516 INSTALL_STRIP_PROGRAM
1517 STRIP
1518 install_sh
1519 MAKEINFO
1520 AUTOHEADER
1521 AUTOMAKE
1522 AUTOCONF
1523 ACLOCAL
1524 VERSION
1525 PACKAGE
1526 CYGPATH_W
1527 am__isrc
1528 INSTALL_DATA
1529 INSTALL_SCRIPT
1530 INSTALL_PROGRAM
1531 target_alias
1532 host_alias
1533 build_alias
1534 LIBS
1535 ECHO_T
1536 ECHO_N
1537 ECHO_C
1538 DEFS
1539 mandir
1540 localedir
1541 libdir
1542 psdir
1543 pdfdir
1544 dvidir
1545 htmldir
1546 infodir
1547 docdir
1548 oldincludedir
1549 includedir
1550 runstatedir
1551 localstatedir
1552 sharedstatedir
1553 sysconfdir
1554 datadir
1555 datarootdir
1556 libexecdir
1557 sbindir
1558 bindir
1559 program_transform_name
1560 prefix
1561 exec_prefix
1562 PACKAGE_URL
1563 PACKAGE_BUGREPORT
1564 PACKAGE_STRING
1565 PACKAGE_VERSION
1566 PACKAGE_TARNAME
1567 PACKAGE_NAME
1568 PATH_SEPARATOR
1569 SHELL'
1570 ac_subst_files=''
1571 ac_user_opts='
1572 enable_option_checking
1573 enable_silent_rules
1574 enable_dependency_tracking
1575 enable_java
1576 enable_native_java
1577 enable_csharp
1578 enable_largefile
1579 enable_threads
1580 enable_shared
1581 enable_static
1582 with_pic
1583 enable_fast_install
1584 with_aix_soname
1585 with_gnu_ld
1586 with_sysroot
1587 enable_libtool_lock
1588 enable_nls
1589 enable_rpath
1590 with_libpth_prefix
1591 with_libiconv_prefix
1592 with_included_gettext
1593 with_libintl_prefix
1594 enable_c__
1595 enable_relocatable
1596 enable_libasprintf
1597 '
1598       ac_precious_vars='build_alias
1599 host_alias
1600 target_alias
1601 CC
1602 CFLAGS
1603 LDFLAGS
1604 LIBS
1605 CPPFLAGS
1606 YACC
1607 YFLAGS
1608 CPP
1609 LT_SYS_LIBRARY_PATH
1610 CXX
1611 CXXFLAGS'
1612 ac_subdirs_all='libasprintf'
1613
1614 # Initialize some variables set by options.
1615 ac_init_help=
1616 ac_init_version=false
1617 ac_unrecognized_opts=
1618 ac_unrecognized_sep=
1619 # The variables have the same names as the options, with
1620 # dashes changed to underlines.
1621 cache_file=/dev/null
1622 exec_prefix=NONE
1623 no_create=
1624 no_recursion=
1625 prefix=NONE
1626 program_prefix=NONE
1627 program_suffix=NONE
1628 program_transform_name=s,x,x,
1629 silent=
1630 site=
1631 srcdir=
1632 verbose=
1633 x_includes=NONE
1634 x_libraries=NONE
1635
1636 # Installation directory options.
1637 # These are left unexpanded so users can "make install exec_prefix=/foo"
1638 # and all the variables that are supposed to be based on exec_prefix
1639 # by default will actually change.
1640 # Use braces instead of parens because sh, perl, etc. also accept them.
1641 # (The list follows the same order as the GNU Coding Standards.)
1642 bindir='${exec_prefix}/bin'
1643 sbindir='${exec_prefix}/sbin'
1644 libexecdir='${exec_prefix}/libexec'
1645 datarootdir='${prefix}/share'
1646 datadir='${datarootdir}'
1647 sysconfdir='${prefix}/etc'
1648 sharedstatedir='${prefix}/com'
1649 localstatedir='${prefix}/var'
1650 runstatedir='${localstatedir}/run'
1651 includedir='${prefix}/include'
1652 oldincludedir='/usr/include'
1653 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1654 infodir='${datarootdir}/info'
1655 htmldir='${docdir}'
1656 dvidir='${docdir}'
1657 pdfdir='${docdir}'
1658 psdir='${docdir}'
1659 libdir='${exec_prefix}/lib'
1660 localedir='${datarootdir}/locale'
1661 mandir='${datarootdir}/man'
1662
1663 ac_prev=
1664 ac_dashdash=
1665 for ac_option
1666 do
1667   # If the previous option needs an argument, assign it.
1668   if test -n "$ac_prev"; then
1669     eval $ac_prev=\$ac_option
1670     ac_prev=
1671     continue
1672   fi
1673
1674   case $ac_option in
1675   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1676   *=)   ac_optarg= ;;
1677   *)    ac_optarg=yes ;;
1678   esac
1679
1680   # Accept the important Cygnus configure options, so we can diagnose typos.
1681
1682   case $ac_dashdash$ac_option in
1683   --)
1684     ac_dashdash=yes ;;
1685
1686   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1687     ac_prev=bindir ;;
1688   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1689     bindir=$ac_optarg ;;
1690
1691   -build | --build | --buil | --bui | --bu)
1692     ac_prev=build_alias ;;
1693   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1694     build_alias=$ac_optarg ;;
1695
1696   -cache-file | --cache-file | --cache-fil | --cache-fi \
1697   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1698     ac_prev=cache_file ;;
1699   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1700   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1701     cache_file=$ac_optarg ;;
1702
1703   --config-cache | -C)
1704     cache_file=config.cache ;;
1705
1706   -datadir | --datadir | --datadi | --datad)
1707     ac_prev=datadir ;;
1708   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1709     datadir=$ac_optarg ;;
1710
1711   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1712   | --dataroo | --dataro | --datar)
1713     ac_prev=datarootdir ;;
1714   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1715   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1716     datarootdir=$ac_optarg ;;
1717
1718   -disable-* | --disable-*)
1719     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1720     # Reject names that are not valid shell variable names.
1721     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1722       as_fn_error $? "invalid feature name: $ac_useropt"
1723     ac_useropt_orig=$ac_useropt
1724     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1725     case $ac_user_opts in
1726       *"
1727 "enable_$ac_useropt"
1728 "*) ;;
1729       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1730          ac_unrecognized_sep=', ';;
1731     esac
1732     eval enable_$ac_useropt=no ;;
1733
1734   -docdir | --docdir | --docdi | --doc | --do)
1735     ac_prev=docdir ;;
1736   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1737     docdir=$ac_optarg ;;
1738
1739   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1740     ac_prev=dvidir ;;
1741   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1742     dvidir=$ac_optarg ;;
1743
1744   -enable-* | --enable-*)
1745     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1746     # Reject names that are not valid shell variable names.
1747     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1748       as_fn_error $? "invalid feature name: $ac_useropt"
1749     ac_useropt_orig=$ac_useropt
1750     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1751     case $ac_user_opts in
1752       *"
1753 "enable_$ac_useropt"
1754 "*) ;;
1755       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1756          ac_unrecognized_sep=', ';;
1757     esac
1758     eval enable_$ac_useropt=\$ac_optarg ;;
1759
1760   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1761   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1762   | --exec | --exe | --ex)
1763     ac_prev=exec_prefix ;;
1764   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1765   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1766   | --exec=* | --exe=* | --ex=*)
1767     exec_prefix=$ac_optarg ;;
1768
1769   -gas | --gas | --ga | --g)
1770     # Obsolete; use --with-gas.
1771     with_gas=yes ;;
1772
1773   -help | --help | --hel | --he | -h)
1774     ac_init_help=long ;;
1775   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1776     ac_init_help=recursive ;;
1777   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1778     ac_init_help=short ;;
1779
1780   -host | --host | --hos | --ho)
1781     ac_prev=host_alias ;;
1782   -host=* | --host=* | --hos=* | --ho=*)
1783     host_alias=$ac_optarg ;;
1784
1785   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1786     ac_prev=htmldir ;;
1787   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1788   | --ht=*)
1789     htmldir=$ac_optarg ;;
1790
1791   -includedir | --includedir | --includedi | --included | --include \
1792   | --includ | --inclu | --incl | --inc)
1793     ac_prev=includedir ;;
1794   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1795   | --includ=* | --inclu=* | --incl=* | --inc=*)
1796     includedir=$ac_optarg ;;
1797
1798   -infodir | --infodir | --infodi | --infod | --info | --inf)
1799     ac_prev=infodir ;;
1800   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1801     infodir=$ac_optarg ;;
1802
1803   -libdir | --libdir | --libdi | --libd)
1804     ac_prev=libdir ;;
1805   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1806     libdir=$ac_optarg ;;
1807
1808   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1809   | --libexe | --libex | --libe)
1810     ac_prev=libexecdir ;;
1811   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1812   | --libexe=* | --libex=* | --libe=*)
1813     libexecdir=$ac_optarg ;;
1814
1815   -localedir | --localedir | --localedi | --localed | --locale)
1816     ac_prev=localedir ;;
1817   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1818     localedir=$ac_optarg ;;
1819
1820   -localstatedir | --localstatedir | --localstatedi | --localstated \
1821   | --localstate | --localstat | --localsta | --localst | --locals)
1822     ac_prev=localstatedir ;;
1823   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1824   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1825     localstatedir=$ac_optarg ;;
1826
1827   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1828     ac_prev=mandir ;;
1829   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1830     mandir=$ac_optarg ;;
1831
1832   -nfp | --nfp | --nf)
1833     # Obsolete; use --without-fp.
1834     with_fp=no ;;
1835
1836   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1837   | --no-cr | --no-c | -n)
1838     no_create=yes ;;
1839
1840   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1841   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1842     no_recursion=yes ;;
1843
1844   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1845   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1846   | --oldin | --oldi | --old | --ol | --o)
1847     ac_prev=oldincludedir ;;
1848   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1849   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1850   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1851     oldincludedir=$ac_optarg ;;
1852
1853   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1854     ac_prev=prefix ;;
1855   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1856     prefix=$ac_optarg ;;
1857
1858   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1859   | --program-pre | --program-pr | --program-p)
1860     ac_prev=program_prefix ;;
1861   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1862   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1863     program_prefix=$ac_optarg ;;
1864
1865   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1866   | --program-suf | --program-su | --program-s)
1867     ac_prev=program_suffix ;;
1868   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1869   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1870     program_suffix=$ac_optarg ;;
1871
1872   -program-transform-name | --program-transform-name \
1873   | --program-transform-nam | --program-transform-na \
1874   | --program-transform-n | --program-transform- \
1875   | --program-transform | --program-transfor \
1876   | --program-transfo | --program-transf \
1877   | --program-trans | --program-tran \
1878   | --progr-tra | --program-tr | --program-t)
1879     ac_prev=program_transform_name ;;
1880   -program-transform-name=* | --program-transform-name=* \
1881   | --program-transform-nam=* | --program-transform-na=* \
1882   | --program-transform-n=* | --program-transform-=* \
1883   | --program-transform=* | --program-transfor=* \
1884   | --program-transfo=* | --program-transf=* \
1885   | --program-trans=* | --program-tran=* \
1886   | --progr-tra=* | --program-tr=* | --program-t=*)
1887     program_transform_name=$ac_optarg ;;
1888
1889   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1890     ac_prev=pdfdir ;;
1891   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1892     pdfdir=$ac_optarg ;;
1893
1894   -psdir | --psdir | --psdi | --psd | --ps)
1895     ac_prev=psdir ;;
1896   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1897     psdir=$ac_optarg ;;
1898
1899   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1900   | -silent | --silent | --silen | --sile | --sil)
1901     silent=yes ;;
1902
1903   -runstatedir | --runstatedir | --runstatedi | --runstated \
1904   | --runstate | --runstat | --runsta | --runst | --runs \
1905   | --run | --ru | --r)
1906     ac_prev=runstatedir ;;
1907   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1908   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1909   | --run=* | --ru=* | --r=*)
1910     runstatedir=$ac_optarg ;;
1911
1912   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1913     ac_prev=sbindir ;;
1914   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1915   | --sbi=* | --sb=*)
1916     sbindir=$ac_optarg ;;
1917
1918   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1919   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1920   | --sharedst | --shareds | --shared | --share | --shar \
1921   | --sha | --sh)
1922     ac_prev=sharedstatedir ;;
1923   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1924   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1925   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1926   | --sha=* | --sh=*)
1927     sharedstatedir=$ac_optarg ;;
1928
1929   -site | --site | --sit)
1930     ac_prev=site ;;
1931   -site=* | --site=* | --sit=*)
1932     site=$ac_optarg ;;
1933
1934   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1935     ac_prev=srcdir ;;
1936   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1937     srcdir=$ac_optarg ;;
1938
1939   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1940   | --syscon | --sysco | --sysc | --sys | --sy)
1941     ac_prev=sysconfdir ;;
1942   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1943   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1944     sysconfdir=$ac_optarg ;;
1945
1946   -target | --target | --targe | --targ | --tar | --ta | --t)
1947     ac_prev=target_alias ;;
1948   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1949     target_alias=$ac_optarg ;;
1950
1951   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1952     verbose=yes ;;
1953
1954   -version | --version | --versio | --versi | --vers | -V)
1955     ac_init_version=: ;;
1956
1957   -with-* | --with-*)
1958     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1959     # Reject names that are not valid shell variable names.
1960     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1961       as_fn_error $? "invalid package name: $ac_useropt"
1962     ac_useropt_orig=$ac_useropt
1963     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1964     case $ac_user_opts in
1965       *"
1966 "with_$ac_useropt"
1967 "*) ;;
1968       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1969          ac_unrecognized_sep=', ';;
1970     esac
1971     eval with_$ac_useropt=\$ac_optarg ;;
1972
1973   -without-* | --without-*)
1974     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1975     # Reject names that are not valid shell variable names.
1976     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1977       as_fn_error $? "invalid package name: $ac_useropt"
1978     ac_useropt_orig=$ac_useropt
1979     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1980     case $ac_user_opts in
1981       *"
1982 "with_$ac_useropt"
1983 "*) ;;
1984       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1985          ac_unrecognized_sep=', ';;
1986     esac
1987     eval with_$ac_useropt=no ;;
1988
1989   --x)
1990     # Obsolete; use --with-x.
1991     with_x=yes ;;
1992
1993   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1994   | --x-incl | --x-inc | --x-in | --x-i)
1995     ac_prev=x_includes ;;
1996   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1997   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1998     x_includes=$ac_optarg ;;
1999
2000   -x-libraries | --x-libraries | --x-librarie | --x-librari \
2001   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2002     ac_prev=x_libraries ;;
2003   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2004   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2005     x_libraries=$ac_optarg ;;
2006
2007   -*) as_fn_error $? "unrecognized option: \`$ac_option'
2008 Try \`$0 --help' for more information"
2009     ;;
2010
2011   *=*)
2012     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2013     # Reject names that are not valid shell variable names.
2014     case $ac_envvar in #(
2015       '' | [0-9]* | *[!_$as_cr_alnum]* )
2016       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2017     esac
2018     eval $ac_envvar=\$ac_optarg
2019     export $ac_envvar ;;
2020
2021   *)
2022     # FIXME: should be removed in autoconf 3.0.
2023     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2024     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2025       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2026     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2027     ;;
2028
2029   esac
2030 done
2031
2032 if test -n "$ac_prev"; then
2033   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2034   as_fn_error $? "missing argument to $ac_option"
2035 fi
2036
2037 if test -n "$ac_unrecognized_opts"; then
2038   case $enable_option_checking in
2039     no) ;;
2040     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2041     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2042   esac
2043 fi
2044
2045 # Check all directory arguments for consistency.
2046 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
2047                 datadir sysconfdir sharedstatedir localstatedir includedir \
2048                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2049                 libdir localedir mandir runstatedir
2050 do
2051   eval ac_val=\$$ac_var
2052   # Remove trailing slashes.
2053   case $ac_val in
2054     */ )
2055       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2056       eval $ac_var=\$ac_val;;
2057   esac
2058   # Be sure to have absolute directory names.
2059   case $ac_val in
2060     [\\/$]* | ?:[\\/]* )  continue;;
2061     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2062   esac
2063   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2064 done
2065
2066 # There might be people who depend on the old broken behavior: `$host'
2067 # used to hold the argument of --host etc.
2068 # FIXME: To remove some day.
2069 build=$build_alias
2070 host=$host_alias
2071 target=$target_alias
2072
2073 # FIXME: To remove some day.
2074 if test "x$host_alias" != x; then
2075   if test "x$build_alias" = x; then
2076     cross_compiling=maybe
2077   elif test "x$build_alias" != "x$host_alias"; then
2078     cross_compiling=yes
2079   fi
2080 fi
2081
2082 ac_tool_prefix=
2083 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2084
2085 test "$silent" = yes && exec 6>/dev/null
2086
2087
2088 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2089 ac_ls_di=`ls -di .` &&
2090 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2091   as_fn_error $? "working directory cannot be determined"
2092 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2093   as_fn_error $? "pwd does not report name of working directory"
2094
2095
2096 # Find the source files, if location was not specified.
2097 if test -z "$srcdir"; then
2098   ac_srcdir_defaulted=yes
2099   # Try the directory containing this script, then the parent directory.
2100   ac_confdir=`$as_dirname -- "$as_myself" ||
2101 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2102          X"$as_myself" : 'X\(//\)[^/]' \| \
2103          X"$as_myself" : 'X\(//\)$' \| \
2104          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2105 $as_echo X"$as_myself" |
2106     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2107             s//\1/
2108             q
2109           }
2110           /^X\(\/\/\)[^/].*/{
2111             s//\1/
2112             q
2113           }
2114           /^X\(\/\/\)$/{
2115             s//\1/
2116             q
2117           }
2118           /^X\(\/\).*/{
2119             s//\1/
2120             q
2121           }
2122           s/.*/./; q'`
2123   srcdir=$ac_confdir
2124   if test ! -r "$srcdir/$ac_unique_file"; then
2125     srcdir=..
2126   fi
2127 else
2128   ac_srcdir_defaulted=no
2129 fi
2130 if test ! -r "$srcdir/$ac_unique_file"; then
2131   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2132   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2133 fi
2134 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2135 ac_abs_confdir=`(
2136         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2137         pwd)`
2138 # When building in place, set srcdir=.
2139 if test "$ac_abs_confdir" = "$ac_pwd"; then
2140   srcdir=.
2141 fi
2142 # Remove unnecessary trailing slashes from srcdir.
2143 # Double slashes in file names in object file debugging info
2144 # mess up M-x gdb in Emacs.
2145 case $srcdir in
2146 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2147 esac
2148 for ac_var in $ac_precious_vars; do
2149   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2150   eval ac_env_${ac_var}_value=\$${ac_var}
2151   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2152   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2153 done
2154
2155 #
2156 # Report the --help message.
2157 #
2158 if test "$ac_init_help" = "long"; then
2159   # Omit some internal or obsolete options to make the list less imposing.
2160   # This message is too long to be a string in the A/UX 3.1 sh.
2161   cat <<_ACEOF
2162 \`configure' configures gettext-runtime 0.19.8.1 to adapt to many kinds of systems.
2163
2164 Usage: $0 [OPTION]... [VAR=VALUE]...
2165
2166 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2167 VAR=VALUE.  See below for descriptions of some of the useful variables.
2168
2169 Defaults for the options are specified in brackets.
2170
2171 Configuration:
2172   -h, --help              display this help and exit
2173       --help=short        display options specific to this package
2174       --help=recursive    display the short help of all the included packages
2175   -V, --version           display version information and exit
2176   -q, --quiet, --silent   do not print \`checking ...' messages
2177       --cache-file=FILE   cache test results in FILE [disabled]
2178   -C, --config-cache      alias for \`--cache-file=config.cache'
2179   -n, --no-create         do not create output files
2180       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2181
2182 Installation directories:
2183   --prefix=PREFIX         install architecture-independent files in PREFIX
2184                           [$ac_default_prefix]
2185   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2186                           [PREFIX]
2187
2188 By default, \`make install' will install all the files in
2189 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2190 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2191 for instance \`--prefix=\$HOME'.
2192
2193 For better control, use the options below.
2194
2195 Fine tuning of the installation directories:
2196   --bindir=DIR            user executables [EPREFIX/bin]
2197   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2198   --libexecdir=DIR        program executables [EPREFIX/libexec]
2199   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2200   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2201   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2202   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
2203   --libdir=DIR            object code libraries [EPREFIX/lib]
2204   --includedir=DIR        C header files [PREFIX/include]
2205   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2206   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2207   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2208   --infodir=DIR           info documentation [DATAROOTDIR/info]
2209   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2210   --mandir=DIR            man documentation [DATAROOTDIR/man]
2211   --docdir=DIR            documentation root [DATAROOTDIR/doc/gettext-runtime]
2212   --htmldir=DIR           html documentation [DOCDIR]
2213   --dvidir=DIR            dvi documentation [DOCDIR]
2214   --pdfdir=DIR            pdf documentation [DOCDIR]
2215   --psdir=DIR             ps documentation [DOCDIR]
2216 _ACEOF
2217
2218   cat <<\_ACEOF
2219
2220 Program names:
2221   --program-prefix=PREFIX            prepend PREFIX to installed program names
2222   --program-suffix=SUFFIX            append SUFFIX to installed program names
2223   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2224
2225 System types:
2226   --build=BUILD     configure for building on BUILD [guessed]
2227   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2228 _ACEOF
2229 fi
2230
2231 if test -n "$ac_init_help"; then
2232   case $ac_init_help in
2233      short | recursive ) echo "Configuration of gettext-runtime 0.19.8.1:";;
2234    esac
2235   cat <<\_ACEOF
2236
2237 Optional Features:
2238   --disable-option-checking  ignore unrecognized --enable/--with options
2239   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2240   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2241   --enable-silent-rules   less verbose build output (undo: "make V=1")
2242   --disable-silent-rules  verbose build output (undo: "make V=0")
2243   --enable-dependency-tracking
2244                           do not reject slow dependency extractors
2245   --disable-dependency-tracking
2246                           speeds up one-time build
2247   --disable-java          do not build Java sources
2248   --disable-native-java   do not compile Java to native executables
2249   --enable-csharp[=IMPL]  choose preferred C# implementation (pnet or mono)
2250   --disable-largefile     omit support for large files
2251   --enable-threads={posix|solaris|pth|windows}
2252                           specify multithreading API
2253   --disable-threads       build without multithread safety
2254   --enable-shared[=PKGS]  build shared libraries [default=yes]
2255   --enable-static[=PKGS]  build static libraries [default=yes]
2256   --enable-fast-install[=PKGS]
2257                           optimize for fast installation [default=yes]
2258   --disable-libtool-lock  avoid locking (might break parallel builds)
2259   --disable-nls           do not use Native Language Support
2260   --disable-rpath         do not hardcode runtime library paths
2261   --disable-c++           do not build C++ sources
2262   --enable-relocatable    install a package that can be moved in the file
2263                           system
2264   --disable-libasprintf   do not build libasprintf
2265
2266 Optional Packages:
2267   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2268   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2269   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2270                           both]
2271   --with-aix-soname=aix|svr4|both
2272                           shared library versioning (aka "SONAME") variant to
2273                           provide on AIX, [default=aix].
2274   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2275   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2276                           compiler's sysroot if not specified).
2277   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2278   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2279   --without-libpth-prefix     don't search for libpth in includedir and libdir
2280   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2281   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2282   --with-included-gettext use the GNU gettext library included here
2283   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2284   --without-libintl-prefix     don't search for libintl in includedir and libdir
2285
2286 Some influential environment variables:
2287   CC          C compiler command
2288   CFLAGS      C compiler flags
2289   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2290               nonstandard directory <lib dir>
2291   LIBS        libraries to pass to the linker, e.g. -l<library>
2292   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2293               you have headers in a nonstandard directory <include dir>
2294   YACC        The `Yet Another Compiler Compiler' implementation to use.
2295               Defaults to the first program found out of: `bison -y', `byacc',
2296               `yacc'.
2297   YFLAGS      The list of arguments that will be passed by default to $YACC.
2298               This script will default YFLAGS to the empty string to avoid a
2299               default value of `-d' given by some make applications.
2300   CPP         C preprocessor
2301   LT_SYS_LIBRARY_PATH
2302               User-defined run-time library search path.
2303   CXX         C++ compiler command
2304   CXXFLAGS    C++ compiler flags
2305
2306 Use these variables to override the choices made by `configure' or to help
2307 it to find libraries and programs with nonstandard names/locations.
2308
2309 Report bugs to <bug-gnu-gettext@gnu.org>.
2310 _ACEOF
2311 ac_status=$?
2312 fi
2313
2314 if test "$ac_init_help" = "recursive"; then
2315   # If there are subdirs, report their specific --help.
2316   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2317     test -d "$ac_dir" ||
2318       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2319       continue
2320     ac_builddir=.
2321
2322 case "$ac_dir" in
2323 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2324 *)
2325   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2326   # A ".." for each directory in $ac_dir_suffix.
2327   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2328   case $ac_top_builddir_sub in
2329   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2330   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2331   esac ;;
2332 esac
2333 ac_abs_top_builddir=$ac_pwd
2334 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2335 # for backward compatibility:
2336 ac_top_builddir=$ac_top_build_prefix
2337
2338 case $srcdir in
2339   .)  # We are building in place.
2340     ac_srcdir=.
2341     ac_top_srcdir=$ac_top_builddir_sub
2342     ac_abs_top_srcdir=$ac_pwd ;;
2343   [\\/]* | ?:[\\/]* )  # Absolute name.
2344     ac_srcdir=$srcdir$ac_dir_suffix;
2345     ac_top_srcdir=$srcdir
2346     ac_abs_top_srcdir=$srcdir ;;
2347   *) # Relative name.
2348     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2349     ac_top_srcdir=$ac_top_build_prefix$srcdir
2350     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2351 esac
2352 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2353
2354     cd "$ac_dir" || { ac_status=$?; continue; }
2355     # Check for guested configure.
2356     if test -f "$ac_srcdir/configure.gnu"; then
2357       echo &&
2358       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2359     elif test -f "$ac_srcdir/configure"; then
2360       echo &&
2361       $SHELL "$ac_srcdir/configure" --help=recursive
2362     else
2363       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2364     fi || ac_status=$?
2365     cd "$ac_pwd" || { ac_status=$?; break; }
2366   done
2367 fi
2368
2369 test -n "$ac_init_help" && exit $ac_status
2370 if $ac_init_version; then
2371   cat <<\_ACEOF
2372 gettext-runtime configure 0.19.8.1
2373 generated by GNU Autoconf 2.69
2374
2375 Copyright (C) 2012 Free Software Foundation, Inc.
2376 This configure script is free software; the Free Software Foundation
2377 gives unlimited permission to copy, distribute and modify it.
2378 _ACEOF
2379   exit
2380 fi
2381
2382 ## ------------------------ ##
2383 ## Autoconf initialization. ##
2384 ## ------------------------ ##
2385
2386 # ac_fn_c_try_compile LINENO
2387 # --------------------------
2388 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2389 ac_fn_c_try_compile ()
2390 {
2391   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2392   rm -f conftest.$ac_objext
2393   if { { ac_try="$ac_compile"
2394 case "(($ac_try" in
2395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396   *) ac_try_echo=$ac_try;;
2397 esac
2398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2399 $as_echo "$ac_try_echo"; } >&5
2400   (eval "$ac_compile") 2>conftest.err
2401   ac_status=$?
2402   if test -s conftest.err; then
2403     grep -v '^ *+' conftest.err >conftest.er1
2404     cat conftest.er1 >&5
2405     mv -f conftest.er1 conftest.err
2406   fi
2407   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2408   test $ac_status = 0; } && {
2409          test -z "$ac_c_werror_flag" ||
2410          test ! -s conftest.err
2411        } && test -s conftest.$ac_objext; then :
2412   ac_retval=0
2413 else
2414   $as_echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2416
2417         ac_retval=1
2418 fi
2419   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2420   as_fn_set_status $ac_retval
2421
2422 } # ac_fn_c_try_compile
2423
2424 # ac_fn_c_try_cpp LINENO
2425 # ----------------------
2426 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2427 ac_fn_c_try_cpp ()
2428 {
2429   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2430   if { { ac_try="$ac_cpp conftest.$ac_ext"
2431 case "(($ac_try" in
2432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433   *) ac_try_echo=$ac_try;;
2434 esac
2435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2436 $as_echo "$ac_try_echo"; } >&5
2437   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2438   ac_status=$?
2439   if test -s conftest.err; then
2440     grep -v '^ *+' conftest.err >conftest.er1
2441     cat conftest.er1 >&5
2442     mv -f conftest.er1 conftest.err
2443   fi
2444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2445   test $ac_status = 0; } > conftest.i && {
2446          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2447          test ! -s conftest.err
2448        }; then :
2449   ac_retval=0
2450 else
2451   $as_echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2453
2454     ac_retval=1
2455 fi
2456   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2457   as_fn_set_status $ac_retval
2458
2459 } # ac_fn_c_try_cpp
2460
2461 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2462 # -------------------------------------------------------
2463 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2464 # the include files in INCLUDES and setting the cache variable VAR
2465 # accordingly.
2466 ac_fn_c_check_header_mongrel ()
2467 {
2468   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2469   if eval \${$3+:} false; then :
2470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2471 $as_echo_n "checking for $2... " >&6; }
2472 if eval \${$3+:} false; then :
2473   $as_echo_n "(cached) " >&6
2474 fi
2475 eval ac_res=\$$3
2476                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2477 $as_echo "$ac_res" >&6; }
2478 else
2479   # Is the header compilable?
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2481 $as_echo_n "checking $2 usability... " >&6; }
2482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2483 /* end confdefs.h.  */
2484 $4
2485 #include <$2>
2486 _ACEOF
2487 if ac_fn_c_try_compile "$LINENO"; then :
2488   ac_header_compiler=yes
2489 else
2490   ac_header_compiler=no
2491 fi
2492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2494 $as_echo "$ac_header_compiler" >&6; }
2495
2496 # Is the header present?
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2498 $as_echo_n "checking $2 presence... " >&6; }
2499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500 /* end confdefs.h.  */
2501 #include <$2>
2502 _ACEOF
2503 if ac_fn_c_try_cpp "$LINENO"; then :
2504   ac_header_preproc=yes
2505 else
2506   ac_header_preproc=no
2507 fi
2508 rm -f conftest.err conftest.i conftest.$ac_ext
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2510 $as_echo "$ac_header_preproc" >&6; }
2511
2512 # So?  What about this header?
2513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2514   yes:no: )
2515     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2516 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2517     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2518 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2519     ;;
2520   no:yes:* )
2521     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2522 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2523     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2524 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2525     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2526 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2527     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2528 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2529     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2530 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2531 ( $as_echo "## -------------------------------------- ##
2532 ## Report this to bug-gnu-gettext@gnu.org ##
2533 ## -------------------------------------- ##"
2534      ) | sed "s/^/$as_me: WARNING:     /" >&2
2535     ;;
2536 esac
2537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2538 $as_echo_n "checking for $2... " >&6; }
2539 if eval \${$3+:} false; then :
2540   $as_echo_n "(cached) " >&6
2541 else
2542   eval "$3=\$ac_header_compiler"
2543 fi
2544 eval ac_res=\$$3
2545                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2546 $as_echo "$ac_res" >&6; }
2547 fi
2548   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2549
2550 } # ac_fn_c_check_header_mongrel
2551
2552 # ac_fn_c_try_run LINENO
2553 # ----------------------
2554 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2555 # that executables *can* be run.
2556 ac_fn_c_try_run ()
2557 {
2558   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2559   if { { ac_try="$ac_link"
2560 case "(($ac_try" in
2561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562   *) ac_try_echo=$ac_try;;
2563 esac
2564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2565 $as_echo "$ac_try_echo"; } >&5
2566   (eval "$ac_link") 2>&5
2567   ac_status=$?
2568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2569   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2570   { { case "(($ac_try" in
2571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572   *) ac_try_echo=$ac_try;;
2573 esac
2574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2575 $as_echo "$ac_try_echo"; } >&5
2576   (eval "$ac_try") 2>&5
2577   ac_status=$?
2578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2579   test $ac_status = 0; }; }; then :
2580   ac_retval=0
2581 else
2582   $as_echo "$as_me: program exited with status $ac_status" >&5
2583        $as_echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2585
2586        ac_retval=$ac_status
2587 fi
2588   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2589   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2590   as_fn_set_status $ac_retval
2591
2592 } # ac_fn_c_try_run
2593
2594 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2595 # -------------------------------------------------------
2596 # Tests whether HEADER exists and can be compiled using the include files in
2597 # INCLUDES, setting the cache variable VAR accordingly.
2598 ac_fn_c_check_header_compile ()
2599 {
2600   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2602 $as_echo_n "checking for $2... " >&6; }
2603 if eval \${$3+:} false; then :
2604   $as_echo_n "(cached) " >&6
2605 else
2606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h.  */
2608 $4
2609 #include <$2>
2610 _ACEOF
2611 if ac_fn_c_try_compile "$LINENO"; then :
2612   eval "$3=yes"
2613 else
2614   eval "$3=no"
2615 fi
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2617 fi
2618 eval ac_res=\$$3
2619                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2620 $as_echo "$ac_res" >&6; }
2621   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2622
2623 } # ac_fn_c_check_header_compile
2624
2625 # ac_fn_c_try_link LINENO
2626 # -----------------------
2627 # Try to link conftest.$ac_ext, and return whether this succeeded.
2628 ac_fn_c_try_link ()
2629 {
2630   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2631   rm -f conftest.$ac_objext conftest$ac_exeext
2632   if { { ac_try="$ac_link"
2633 case "(($ac_try" in
2634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635   *) ac_try_echo=$ac_try;;
2636 esac
2637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2638 $as_echo "$ac_try_echo"; } >&5
2639   (eval "$ac_link") 2>conftest.err
2640   ac_status=$?
2641   if test -s conftest.err; then
2642     grep -v '^ *+' conftest.err >conftest.er1
2643     cat conftest.er1 >&5
2644     mv -f conftest.er1 conftest.err
2645   fi
2646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2647   test $ac_status = 0; } && {
2648          test -z "$ac_c_werror_flag" ||
2649          test ! -s conftest.err
2650        } && test -s conftest$ac_exeext && {
2651          test "$cross_compiling" = yes ||
2652          test -x conftest$ac_exeext
2653        }; then :
2654   ac_retval=0
2655 else
2656   $as_echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2658
2659         ac_retval=1
2660 fi
2661   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2662   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2663   # interfere with the next link command; also delete a directory that is
2664   # left behind by Apple's compiler.  We do this before executing the actions.
2665   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2666   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2667   as_fn_set_status $ac_retval
2668
2669 } # ac_fn_c_try_link
2670
2671 # ac_fn_c_check_func LINENO FUNC VAR
2672 # ----------------------------------
2673 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2674 ac_fn_c_check_func ()
2675 {
2676   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2678 $as_echo_n "checking for $2... " >&6; }
2679 if eval \${$3+:} false; then :
2680   $as_echo_n "(cached) " >&6
2681 else
2682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h.  */
2684 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2685    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2686 #define $2 innocuous_$2
2687
2688 /* System header to define __stub macros and hopefully few prototypes,
2689     which can conflict with char $2 (); below.
2690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2691     <limits.h> exists even on freestanding compilers.  */
2692
2693 #ifdef __STDC__
2694 # include <limits.h>
2695 #else
2696 # include <assert.h>
2697 #endif
2698
2699 #undef $2
2700
2701 /* Override any GCC internal prototype to avoid an error.
2702    Use char because int might match the return type of a GCC
2703    builtin and then its argument prototype would still apply.  */
2704 #ifdef __cplusplus
2705 extern "C"
2706 #endif
2707 char $2 ();
2708 /* The GNU C library defines this for functions which it implements
2709     to always fail with ENOSYS.  Some functions are actually named
2710     something starting with __ and the normal name is an alias.  */
2711 #if defined __stub_$2 || defined __stub___$2
2712 choke me
2713 #endif
2714
2715 int
2716 main ()
2717 {
2718 return $2 ();
2719   ;
2720   return 0;
2721 }
2722 _ACEOF
2723 if ac_fn_c_try_link "$LINENO"; then :
2724   eval "$3=yes"
2725 else
2726   eval "$3=no"
2727 fi
2728 rm -f core conftest.err conftest.$ac_objext \
2729     conftest$ac_exeext conftest.$ac_ext
2730 fi
2731 eval ac_res=\$$3
2732                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2733 $as_echo "$ac_res" >&6; }
2734   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2735
2736 } # ac_fn_c_check_func
2737
2738 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2739 # -------------------------------------------
2740 # Tests whether TYPE exists after having included INCLUDES, setting cache
2741 # variable VAR accordingly.
2742 ac_fn_c_check_type ()
2743 {
2744   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2746 $as_echo_n "checking for $2... " >&6; }
2747 if eval \${$3+:} false; then :
2748   $as_echo_n "(cached) " >&6
2749 else
2750   eval "$3=no"
2751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2752 /* end confdefs.h.  */
2753 $4
2754 int
2755 main ()
2756 {
2757 if (sizeof ($2))
2758          return 0;
2759   ;
2760   return 0;
2761 }
2762 _ACEOF
2763 if ac_fn_c_try_compile "$LINENO"; then :
2764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2765 /* end confdefs.h.  */
2766 $4
2767 int
2768 main ()
2769 {
2770 if (sizeof (($2)))
2771             return 0;
2772   ;
2773   return 0;
2774 }
2775 _ACEOF
2776 if ac_fn_c_try_compile "$LINENO"; then :
2777
2778 else
2779   eval "$3=yes"
2780 fi
2781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2782 fi
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784 fi
2785 eval ac_res=\$$3
2786                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2787 $as_echo "$ac_res" >&6; }
2788   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2789
2790 } # ac_fn_c_check_type
2791
2792 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2793 # ---------------------------------------------
2794 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2795 # accordingly.
2796 ac_fn_c_check_decl ()
2797 {
2798   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2799   as_decl_name=`echo $2|sed 's/ *(.*//'`
2800   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2802 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2803 if eval \${$3+:} false; then :
2804   $as_echo_n "(cached) " >&6
2805 else
2806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807 /* end confdefs.h.  */
2808 $4
2809 int
2810 main ()
2811 {
2812 #ifndef $as_decl_name
2813 #ifdef __cplusplus
2814   (void) $as_decl_use;
2815 #else
2816   (void) $as_decl_name;
2817 #endif
2818 #endif
2819
2820   ;
2821   return 0;
2822 }
2823 _ACEOF
2824 if ac_fn_c_try_compile "$LINENO"; then :
2825   eval "$3=yes"
2826 else
2827   eval "$3=no"
2828 fi
2829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2830 fi
2831 eval ac_res=\$$3
2832                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2833 $as_echo "$ac_res" >&6; }
2834   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2835
2836 } # ac_fn_c_check_decl
2837
2838 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2839 # --------------------------------------------
2840 # Tries to find the compile-time value of EXPR in a program that includes
2841 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2842 # computed
2843 ac_fn_c_compute_int ()
2844 {
2845   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2846   if test "$cross_compiling" = yes; then
2847     # Depending upon the size, compute the lo and hi bounds.
2848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2849 /* end confdefs.h.  */
2850 $4
2851 int
2852 main ()
2853 {
2854 static int test_array [1 - 2 * !(($2) >= 0)];
2855 test_array [0] = 0;
2856 return test_array [0];
2857
2858   ;
2859   return 0;
2860 }
2861 _ACEOF
2862 if ac_fn_c_try_compile "$LINENO"; then :
2863   ac_lo=0 ac_mid=0
2864   while :; do
2865     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h.  */
2867 $4
2868 int
2869 main ()
2870 {
2871 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2872 test_array [0] = 0;
2873 return test_array [0];
2874
2875   ;
2876   return 0;
2877 }
2878 _ACEOF
2879 if ac_fn_c_try_compile "$LINENO"; then :
2880   ac_hi=$ac_mid; break
2881 else
2882   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2883                         if test $ac_lo -le $ac_mid; then
2884                           ac_lo= ac_hi=
2885                           break
2886                         fi
2887                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2888 fi
2889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2890   done
2891 else
2892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893 /* end confdefs.h.  */
2894 $4
2895 int
2896 main ()
2897 {
2898 static int test_array [1 - 2 * !(($2) < 0)];
2899 test_array [0] = 0;
2900 return test_array [0];
2901
2902   ;
2903   return 0;
2904 }
2905 _ACEOF
2906 if ac_fn_c_try_compile "$LINENO"; then :
2907   ac_hi=-1 ac_mid=-1
2908   while :; do
2909     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2910 /* end confdefs.h.  */
2911 $4
2912 int
2913 main ()
2914 {
2915 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2916 test_array [0] = 0;
2917 return test_array [0];
2918
2919   ;
2920   return 0;
2921 }
2922 _ACEOF
2923 if ac_fn_c_try_compile "$LINENO"; then :
2924   ac_lo=$ac_mid; break
2925 else
2926   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2927                         if test $ac_mid -le $ac_hi; then
2928                           ac_lo= ac_hi=
2929                           break
2930                         fi
2931                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2932 fi
2933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2934   done
2935 else
2936   ac_lo= ac_hi=
2937 fi
2938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2939 fi
2940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2941 # Binary search between lo and hi bounds.
2942 while test "x$ac_lo" != "x$ac_hi"; do
2943   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2945 /* end confdefs.h.  */
2946 $4
2947 int
2948 main ()
2949 {
2950 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2951 test_array [0] = 0;
2952 return test_array [0];
2953
2954   ;
2955   return 0;
2956 }
2957 _ACEOF
2958 if ac_fn_c_try_compile "$LINENO"; then :
2959   ac_hi=$ac_mid
2960 else
2961   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2962 fi
2963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2964 done
2965 case $ac_lo in #((
2966 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2967 '') ac_retval=1 ;;
2968 esac
2969   else
2970     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2971 /* end confdefs.h.  */
2972 $4
2973 static long int longval () { return $2; }
2974 static unsigned long int ulongval () { return $2; }
2975 #include <stdio.h>
2976 #include <stdlib.h>
2977 int
2978 main ()
2979 {
2980
2981   FILE *f = fopen ("conftest.val", "w");
2982   if (! f)
2983     return 1;
2984   if (($2) < 0)
2985     {
2986       long int i = longval ();
2987       if (i != ($2))
2988         return 1;
2989       fprintf (f, "%ld", i);
2990     }
2991   else
2992     {
2993       unsigned long int i = ulongval ();
2994       if (i != ($2))
2995         return 1;
2996       fprintf (f, "%lu", i);
2997     }
2998   /* Do not output a trailing newline, as this causes \r\n confusion
2999      on some platforms.  */
3000   return ferror (f) || fclose (f) != 0;
3001
3002   ;
3003   return 0;
3004 }
3005 _ACEOF
3006 if ac_fn_c_try_run "$LINENO"; then :
3007   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3008 else
3009   ac_retval=1
3010 fi
3011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3012   conftest.$ac_objext conftest.beam conftest.$ac_ext
3013 rm -f conftest.val
3014
3015   fi
3016   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3017   as_fn_set_status $ac_retval
3018
3019 } # ac_fn_c_compute_int
3020 cat >config.log <<_ACEOF
3021 This file contains any messages produced by compilers while
3022 running configure, to aid debugging if configure makes a mistake.
3023
3024 It was created by gettext-runtime $as_me 0.19.8.1, which was
3025 generated by GNU Autoconf 2.69.  Invocation command line was
3026
3027   $ $0 $@
3028
3029 _ACEOF
3030 exec 5>>config.log
3031 {
3032 cat <<_ASUNAME
3033 ## --------- ##
3034 ## Platform. ##
3035 ## --------- ##
3036
3037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3042
3043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3044 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3045
3046 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3047 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3049 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3050 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3051 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3052 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3053
3054 _ASUNAME
3055
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3058 do
3059   IFS=$as_save_IFS
3060   test -z "$as_dir" && as_dir=.
3061     $as_echo "PATH: $as_dir"
3062   done
3063 IFS=$as_save_IFS
3064
3065 } >&5
3066
3067 cat >&5 <<_ACEOF
3068
3069
3070 ## ----------- ##
3071 ## Core tests. ##
3072 ## ----------- ##
3073
3074 _ACEOF
3075
3076
3077 # Keep a trace of the command line.
3078 # Strip out --no-create and --no-recursion so they do not pile up.
3079 # Strip out --silent because we don't want to record it for future runs.
3080 # Also quote any args containing shell meta-characters.
3081 # Make two passes to allow for proper duplicate-argument suppression.
3082 ac_configure_args=
3083 ac_configure_args0=
3084 ac_configure_args1=
3085 ac_must_keep_next=false
3086 for ac_pass in 1 2
3087 do
3088   for ac_arg
3089   do
3090     case $ac_arg in
3091     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3092     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3093     | -silent | --silent | --silen | --sile | --sil)
3094       continue ;;
3095     *\'*)
3096       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3097     esac
3098     case $ac_pass in
3099     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3100     2)
3101       as_fn_append ac_configure_args1 " '$ac_arg'"
3102       if test $ac_must_keep_next = true; then
3103         ac_must_keep_next=false # Got value, back to normal.
3104       else
3105         case $ac_arg in
3106           *=* | --config-cache | -C | -disable-* | --disable-* \
3107           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3108           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3109           | -with-* | --with-* | -without-* | --without-* | --x)
3110             case "$ac_configure_args0 " in
3111               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3112             esac
3113             ;;
3114           -* ) ac_must_keep_next=true ;;
3115         esac
3116       fi
3117       as_fn_append ac_configure_args " '$ac_arg'"
3118       ;;
3119     esac
3120   done
3121 done
3122 { ac_configure_args0=; unset ac_configure_args0;}
3123 { ac_configure_args1=; unset ac_configure_args1;}
3124
3125 # When interrupted or exit'd, cleanup temporary files, and complete
3126 # config.log.  We remove comments because anyway the quotes in there
3127 # would cause problems or look ugly.
3128 # WARNING: Use '\'' to represent an apostrophe within the trap.
3129 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3130 trap 'exit_status=$?
3131   # Save into config.log some information that might help in debugging.
3132   {
3133     echo
3134
3135     $as_echo "## ---------------- ##
3136 ## Cache variables. ##
3137 ## ---------------- ##"
3138     echo
3139     # The following way of writing the cache mishandles newlines in values,
3140 (
3141   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3142     eval ac_val=\$$ac_var
3143     case $ac_val in #(
3144     *${as_nl}*)
3145       case $ac_var in #(
3146       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3147 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3148       esac
3149       case $ac_var in #(
3150       _ | IFS | as_nl) ;; #(
3151       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3152       *) { eval $ac_var=; unset $ac_var;} ;;
3153       esac ;;
3154     esac
3155   done
3156   (set) 2>&1 |
3157     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3158     *${as_nl}ac_space=\ *)
3159       sed -n \
3160         "s/'\''/'\''\\\\'\'''\''/g;
3161           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3162       ;; #(
3163     *)
3164       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3165       ;;
3166     esac |
3167     sort
3168 )
3169     echo
3170
3171     $as_echo "## ----------------- ##
3172 ## Output variables. ##
3173 ## ----------------- ##"
3174     echo
3175     for ac_var in $ac_subst_vars
3176     do
3177       eval ac_val=\$$ac_var
3178       case $ac_val in
3179       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3180       esac
3181       $as_echo "$ac_var='\''$ac_val'\''"
3182     done | sort
3183     echo
3184
3185     if test -n "$ac_subst_files"; then
3186       $as_echo "## ------------------- ##
3187 ## File substitutions. ##
3188 ## ------------------- ##"
3189       echo
3190       for ac_var in $ac_subst_files
3191       do
3192         eval ac_val=\$$ac_var
3193         case $ac_val in
3194         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3195         esac
3196         $as_echo "$ac_var='\''$ac_val'\''"
3197       done | sort
3198       echo
3199     fi
3200
3201     if test -s confdefs.h; then
3202       $as_echo "## ----------- ##
3203 ## confdefs.h. ##
3204 ## ----------- ##"
3205       echo
3206       cat confdefs.h
3207       echo
3208     fi
3209     test "$ac_signal" != 0 &&
3210       $as_echo "$as_me: caught signal $ac_signal"
3211     $as_echo "$as_me: exit $exit_status"
3212   } >&5
3213   rm -f core *.core core.conftest.* &&
3214     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3215     exit $exit_status
3216 ' 0
3217 for ac_signal in 1 2 13 15; do
3218   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3219 done
3220 ac_signal=0
3221
3222 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3223 rm -f -r conftest* confdefs.h
3224
3225 $as_echo "/* confdefs.h */" > confdefs.h
3226
3227 # Predefined preprocessor variables.
3228
3229 cat >>confdefs.h <<_ACEOF
3230 #define PACKAGE_NAME "$PACKAGE_NAME"
3231 _ACEOF
3232
3233 cat >>confdefs.h <<_ACEOF
3234 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3235 _ACEOF
3236
3237 cat >>confdefs.h <<_ACEOF
3238 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3239 _ACEOF
3240
3241 cat >>confdefs.h <<_ACEOF
3242 #define PACKAGE_STRING "$PACKAGE_STRING"
3243 _ACEOF
3244
3245 cat >>confdefs.h <<_ACEOF
3246 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3247 _ACEOF
3248
3249 cat >>confdefs.h <<_ACEOF
3250 #define PACKAGE_URL "$PACKAGE_URL"
3251 _ACEOF
3252
3253
3254 # Let the site file select an alternate cache file if it wants to.
3255 # Prefer an explicitly selected file to automatically selected ones.
3256 ac_site_file1=NONE
3257 ac_site_file2=NONE
3258 if test -n "$CONFIG_SITE"; then
3259   # We do not want a PATH search for config.site.
3260   case $CONFIG_SITE in #((
3261     -*)  ac_site_file1=./$CONFIG_SITE;;
3262     */*) ac_site_file1=$CONFIG_SITE;;
3263     *)   ac_site_file1=./$CONFIG_SITE;;
3264   esac
3265 elif test "x$prefix" != xNONE; then
3266   ac_site_file1=$prefix/share/config.site
3267   ac_site_file2=$prefix/etc/config.site
3268 else
3269   ac_site_file1=$ac_default_prefix/share/config.site
3270   ac_site_file2=$ac_default_prefix/etc/config.site
3271 fi
3272 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3273 do
3274   test "x$ac_site_file" = xNONE && continue
3275   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3276     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3277 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3278     sed 's/^/| /' "$ac_site_file" >&5
3279     . "$ac_site_file" \
3280       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282 as_fn_error $? "failed to load site script $ac_site_file
3283 See \`config.log' for more details" "$LINENO" 5; }
3284   fi
3285 done
3286
3287 if test -r "$cache_file"; then
3288   # Some versions of bash will fail to source /dev/null (special files
3289   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3290   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3291     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3292 $as_echo "$as_me: loading cache $cache_file" >&6;}
3293     case $cache_file in
3294       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3295       *)                      . "./$cache_file";;
3296     esac
3297   fi
3298 else
3299   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3300 $as_echo "$as_me: creating cache $cache_file" >&6;}
3301   >$cache_file
3302 fi
3303
3304 gt_needs="$gt_needs need-ngettext"
3305 as_fn_append ac_header_list " stdlib.h"
3306 as_fn_append ac_header_list " unistd.h"
3307 as_fn_append ac_header_list " sys/param.h"
3308 as_fn_append ac_func_list " symlink"
3309 as_fn_append ac_header_list " string.h"
3310 as_fn_append ac_func_list " canonicalize_file_name"
3311 as_fn_append ac_func_list " getcwd"
3312 as_fn_append ac_func_list " readlink"
3313 as_fn_append ac_func_list " realpath"
3314 as_fn_append ac_func_list " readlinkat"
3315 gl_getopt_required=GNU
3316 as_fn_append ac_header_list " getopt.h"
3317 as_fn_append ac_header_list " sys/time.h"
3318 as_fn_append ac_header_list " sys/socket.h"
3319 as_fn_append ac_func_list " gettimeofday"
3320 as_fn_append ac_header_list " iconv.h"
3321 as_fn_append ac_func_list " iswcntrl"
3322 as_fn_append ac_header_list " wctype.h"
3323 as_fn_append ac_func_list " iswblank"
3324 as_fn_append ac_header_list " langinfo.h"
3325 as_fn_append ac_header_list " xlocale.h"
3326 as_fn_append ac_func_list " lstat"
3327 as_fn_append ac_func_list " mbsinit"
3328 as_fn_append ac_func_list " mbrtowc"
3329 as_fn_append ac_func_list " mbslen"
3330 as_fn_append ac_header_list " sys/mman.h"
3331 as_fn_append ac_func_list " mprotect"
3332 as_fn_append ac_func_list " _set_invalid_parameter_handler"
3333 as_fn_append ac_func_list " setenv"
3334 as_fn_append ac_header_list " wchar.h"
3335 as_fn_append ac_header_list " stdint.h"
3336 as_fn_append ac_header_list " sys/stat.h"
3337 as_fn_append ac_header_list " features.h"
3338 as_fn_append ac_func_list " wcwidth"
3339 # Check that the precious variables saved in the cache have kept the same
3340 # value.
3341 ac_cache_corrupted=false
3342 for ac_var in $ac_precious_vars; do
3343   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3344   eval ac_new_set=\$ac_env_${ac_var}_set
3345   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3346   eval ac_new_val=\$ac_env_${ac_var}_value
3347   case $ac_old_set,$ac_new_set in
3348     set,)
3349       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3350 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3351       ac_cache_corrupted=: ;;
3352     ,set)
3353       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3354 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3355       ac_cache_corrupted=: ;;
3356     ,);;
3357     *)
3358       if test "x$ac_old_val" != "x$ac_new_val"; then
3359         # differences in whitespace do not lead to failure.
3360         ac_old_val_w=`echo x $ac_old_val`
3361         ac_new_val_w=`echo x $ac_new_val`
3362         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3363           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3364 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3365           ac_cache_corrupted=:
3366         else
3367           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3368 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3369           eval $ac_var=\$ac_old_val
3370         fi
3371         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3372 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3373         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3374 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3375       fi;;
3376   esac
3377   # Pass precious variables to config.status.
3378   if test "$ac_new_set" = set; then
3379     case $ac_new_val in
3380     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3381     *) ac_arg=$ac_var=$ac_new_val ;;
3382     esac
3383     case " $ac_configure_args " in
3384       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3385       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3386     esac
3387   fi
3388 done
3389 if $ac_cache_corrupted; then
3390   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3393 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3394   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3395 fi
3396 ## -------------------- ##
3397 ## Main body of script. ##
3398 ## -------------------- ##
3399
3400 ac_ext=c
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405
3406
3407
3408 ac_aux_dir=
3409 for ac_dir in ../build-aux "$srcdir"/../build-aux; do
3410   if test -f "$ac_dir/install-sh"; then
3411     ac_aux_dir=$ac_dir
3412     ac_install_sh="$ac_aux_dir/install-sh -c"
3413     break
3414   elif test -f "$ac_dir/install.sh"; then
3415     ac_aux_dir=$ac_dir
3416     ac_install_sh="$ac_aux_dir/install.sh -c"
3417     break
3418   elif test -f "$ac_dir/shtool"; then
3419     ac_aux_dir=$ac_dir
3420     ac_install_sh="$ac_aux_dir/shtool install -c"
3421     break
3422   fi
3423 done
3424 if test -z "$ac_aux_dir"; then
3425   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../build-aux \"$srcdir\"/../build-aux" "$LINENO" 5
3426 fi
3427
3428 # These three variables are undocumented and unsupported,
3429 # and are intended to be withdrawn in a future Autoconf release.
3430 # They can cause serious problems if a builder's source tree is in a directory
3431 # whose full name contains unusual characters.
3432 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3433 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3434 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3435
3436
3437 am__api_version='1.15'
3438
3439 # Find a good install program.  We prefer a C program (faster),
3440 # so one script is as good as another.  But avoid the broken or
3441 # incompatible versions:
3442 # SysV /etc/install, /usr/sbin/install
3443 # SunOS /usr/etc/install
3444 # IRIX /sbin/install
3445 # AIX /bin/install
3446 # AmigaOS /C/install, which installs bootblocks on floppy discs
3447 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3448 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3449 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3450 # OS/2's system install, which has a completely different semantic
3451 # ./install, which can be erroneously created by make from ./install.sh.
3452 # Reject install programs that cannot install multiple files.
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3454 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3455 if test -z "$INSTALL"; then
3456 if ${ac_cv_path_install+:} false; then :
3457   $as_echo_n "(cached) " >&6
3458 else
3459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3461 do
3462   IFS=$as_save_IFS
3463   test -z "$as_dir" && as_dir=.
3464     # Account for people who put trailing slashes in PATH elements.
3465 case $as_dir/ in #((
3466   ./ | .// | /[cC]/* | \
3467   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3468   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3469   /usr/ucb/* ) ;;
3470   *)
3471     # OSF1 and SCO ODT 3.0 have their own names for install.
3472     # Don't use installbsd from OSF since it installs stuff as root
3473     # by default.
3474     for ac_prog in ginstall scoinst install; do
3475       for ac_exec_ext in '' $ac_executable_extensions; do
3476         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3477           if test $ac_prog = install &&
3478             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3479             # AIX install.  It has an incompatible calling convention.
3480             :
3481           elif test $ac_prog = install &&
3482             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3483             # program-specific install script used by HP pwplus--don't use.
3484             :
3485           else
3486             rm -rf conftest.one conftest.two conftest.dir
3487             echo one > conftest.one
3488             echo two > conftest.two
3489             mkdir conftest.dir
3490             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3491               test -s conftest.one && test -s conftest.two &&
3492               test -s conftest.dir/conftest.one &&
3493               test -s conftest.dir/conftest.two
3494             then
3495               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3496               break 3
3497             fi
3498           fi
3499         fi
3500       done
3501     done
3502     ;;
3503 esac
3504
3505   done
3506 IFS=$as_save_IFS
3507
3508 rm -rf conftest.one conftest.two conftest.dir
3509
3510 fi
3511   if test "${ac_cv_path_install+set}" = set; then
3512     INSTALL=$ac_cv_path_install
3513   else
3514     # As a last resort, use the slow shell script.  Don't cache a
3515     # value for INSTALL within a source directory, because that will
3516     # break other packages using the cache if that directory is
3517     # removed, or if the value is a relative name.
3518     INSTALL=$ac_install_sh
3519   fi
3520 fi
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3522 $as_echo "$INSTALL" >&6; }
3523
3524 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3525 # It thinks the first close brace ends the variable substitution.
3526 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3527
3528 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3529
3530 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3531
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3533 $as_echo_n "checking whether build environment is sane... " >&6; }
3534 # Reject unsafe characters in $srcdir or the absolute working directory
3535 # name.  Accept space and tab only in the latter.
3536 am_lf='
3537 '
3538 case `pwd` in
3539   *[\\\"\#\$\&\'\`$am_lf]*)
3540     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3541 esac
3542 case $srcdir in
3543   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3544     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3545 esac
3546
3547 # Do 'set' in a subshell so we don't clobber the current shell's
3548 # arguments.  Must try -L first in case configure is actually a
3549 # symlink; some systems play weird games with the mod time of symlinks
3550 # (eg FreeBSD returns the mod time of the symlink's containing
3551 # directory).
3552 if (
3553    am_has_slept=no
3554    for am_try in 1 2; do
3555      echo "timestamp, slept: $am_has_slept" > conftest.file
3556      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3557      if test "$*" = "X"; then
3558         # -L didn't work.
3559         set X `ls -t "$srcdir/configure" conftest.file`
3560      fi
3561      if test "$*" != "X $srcdir/configure conftest.file" \
3562         && test "$*" != "X conftest.file $srcdir/configure"; then
3563
3564         # If neither matched, then we have a broken ls.  This can happen
3565         # if, for instance, CONFIG_SHELL is bash and it inherits a
3566         # broken ls alias from the environment.  This has actually
3567         # happened.  Such a system could not be considered "sane".
3568         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3569   alias in your environment" "$LINENO" 5
3570      fi
3571      if test "$2" = conftest.file || test $am_try -eq 2; then
3572        break
3573      fi
3574      # Just in case.
3575      sleep 1
3576      am_has_slept=yes
3577    done
3578    test "$2" = conftest.file
3579    )
3580 then
3581    # Ok.
3582    :
3583 else
3584    as_fn_error $? "newly created file is older than distributed files!
3585 Check your system clock" "$LINENO" 5
3586 fi
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3588 $as_echo "yes" >&6; }
3589 # If we didn't sleep, we still need to ensure time stamps of config.status and
3590 # generated files are strictly newer.
3591 am_sleep_pid=
3592 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3593   ( sleep 1 ) &
3594   am_sleep_pid=$!
3595 fi
3596
3597 rm -f conftest.file
3598
3599 test "$program_prefix" != NONE &&
3600   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3601 # Use a double $ so make ignores it.
3602 test "$program_suffix" != NONE &&
3603   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3604 # Double any \ or $.
3605 # By default was `s,x,x', remove it if useless.
3606 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3607 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3608
3609 # Expand $ac_aux_dir to an absolute path.
3610 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3611
3612 if test x"${MISSING+set}" != xset; then
3613   case $am_aux_dir in
3614   *\ * | *\     *)
3615     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3616   *)
3617     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3618   esac
3619 fi
3620 # Use eval to expand $SHELL
3621 if eval "$MISSING --is-lightweight"; then
3622   am_missing_run="$MISSING "
3623 else
3624   am_missing_run=
3625   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3626 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3627 fi
3628
3629 if test x"${install_sh+set}" != xset; then
3630   case $am_aux_dir in
3631   *\ * | *\     *)
3632     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3633   *)
3634     install_sh="\${SHELL} $am_aux_dir/install-sh"
3635   esac
3636 fi
3637
3638 # Installed binaries are usually stripped using 'strip' when the user
3639 # run "make install-strip".  However 'strip' might not be the right
3640 # tool to use in cross-compilation environments, therefore Automake
3641 # will honor the 'STRIP' environment variable to overrule this program.
3642 if test "$cross_compiling" != no; then
3643   if test -n "$ac_tool_prefix"; then
3644   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3645 set dummy ${ac_tool_prefix}strip; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if ${ac_cv_prog_STRIP+:} false; then :
3649   $as_echo_n "(cached) " >&6
3650 else
3651   if test -n "$STRIP"; then
3652   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3656 do
3657   IFS=$as_save_IFS
3658   test -z "$as_dir" && as_dir=.
3659     for ac_exec_ext in '' $ac_executable_extensions; do
3660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3661     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663     break 2
3664   fi
3665 done
3666   done
3667 IFS=$as_save_IFS
3668
3669 fi
3670 fi
3671 STRIP=$ac_cv_prog_STRIP
3672 if test -n "$STRIP"; then
3673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3674 $as_echo "$STRIP" >&6; }
3675 else
3676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3678 fi
3679
3680
3681 fi
3682 if test -z "$ac_cv_prog_STRIP"; then
3683   ac_ct_STRIP=$STRIP
3684   # Extract the first word of "strip", so it can be a program name with args.
3685 set dummy strip; ac_word=$2
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687 $as_echo_n "checking for $ac_word... " >&6; }
3688 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3689   $as_echo_n "(cached) " >&6
3690 else
3691   if test -n "$ac_ct_STRIP"; then
3692   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3693 else
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 for as_dir in $PATH
3696 do
3697   IFS=$as_save_IFS
3698   test -z "$as_dir" && as_dir=.
3699     for ac_exec_ext in '' $ac_executable_extensions; do
3700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3701     ac_cv_prog_ac_ct_STRIP="strip"
3702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703     break 2
3704   fi
3705 done
3706   done
3707 IFS=$as_save_IFS
3708
3709 fi
3710 fi
3711 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3712 if test -n "$ac_ct_STRIP"; then
3713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3714 $as_echo "$ac_ct_STRIP" >&6; }
3715 else
3716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3718 fi
3719
3720   if test "x$ac_ct_STRIP" = x; then
3721     STRIP=":"
3722   else
3723     case $cross_compiling:$ac_tool_warned in
3724 yes:)
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3727 ac_tool_warned=yes ;;
3728 esac
3729     STRIP=$ac_ct_STRIP
3730   fi
3731 else
3732   STRIP="$ac_cv_prog_STRIP"
3733 fi
3734
3735 fi
3736 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3737
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3739 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3740 if test -z "$MKDIR_P"; then
3741   if ${ac_cv_path_mkdir+:} false; then :
3742   $as_echo_n "(cached) " >&6
3743 else
3744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3746 do
3747   IFS=$as_save_IFS
3748   test -z "$as_dir" && as_dir=.
3749     for ac_prog in mkdir gmkdir; do
3750          for ac_exec_ext in '' $ac_executable_extensions; do
3751            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3752            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3753              'mkdir (GNU coreutils) '* | \
3754              'mkdir (coreutils) '* | \
3755              'mkdir (fileutils) '4.1*)
3756                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3757                break 3;;
3758            esac
3759          done
3760        done
3761   done
3762 IFS=$as_save_IFS
3763
3764 fi
3765
3766   test -d ./--version && rmdir ./--version
3767   if test "${ac_cv_path_mkdir+set}" = set; then
3768     MKDIR_P="$ac_cv_path_mkdir -p"
3769   else
3770     # As a last resort, use the slow shell script.  Don't cache a
3771     # value for MKDIR_P within a source directory, because that will
3772     # break other packages using the cache if that directory is
3773     # removed, or if the value is a relative name.
3774     MKDIR_P="$ac_install_sh -d"
3775   fi
3776 fi
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3778 $as_echo "$MKDIR_P" >&6; }
3779
3780 for ac_prog in gawk mawk nawk awk
3781 do
3782   # Extract the first word of "$ac_prog", so it can be a program name with args.
3783 set dummy $ac_prog; ac_word=$2
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785 $as_echo_n "checking for $ac_word... " >&6; }
3786 if ${ac_cv_prog_AWK+:} false; then :
3787   $as_echo_n "(cached) " >&6
3788 else
3789   if test -n "$AWK"; then
3790   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3791 else
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 for as_dir in $PATH
3794 do
3795   IFS=$as_save_IFS
3796   test -z "$as_dir" && as_dir=.
3797     for ac_exec_ext in '' $ac_executable_extensions; do
3798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799     ac_cv_prog_AWK="$ac_prog"
3800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3801     break 2
3802   fi
3803 done
3804   done
3805 IFS=$as_save_IFS
3806
3807 fi
3808 fi
3809 AWK=$ac_cv_prog_AWK
3810 if test -n "$AWK"; then
3811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3812 $as_echo "$AWK" >&6; }
3813 else
3814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815 $as_echo "no" >&6; }
3816 fi
3817
3818
3819   test -n "$AWK" && break
3820 done
3821
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3823 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3824 set x ${MAKE-make}
3825 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3826 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3827   $as_echo_n "(cached) " >&6
3828 else
3829   cat >conftest.make <<\_ACEOF
3830 SHELL = /bin/sh
3831 all:
3832         @echo '@@@%%%=$(MAKE)=@@@%%%'
3833 _ACEOF
3834 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3835 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3836   *@@@%%%=?*=@@@%%%*)
3837     eval ac_cv_prog_make_${ac_make}_set=yes;;
3838   *)
3839     eval ac_cv_prog_make_${ac_make}_set=no;;
3840 esac
3841 rm -f conftest.make
3842 fi
3843 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3845 $as_echo "yes" >&6; }
3846   SET_MAKE=
3847 else
3848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849 $as_echo "no" >&6; }
3850   SET_MAKE="MAKE=${MAKE-make}"
3851 fi
3852
3853 rm -rf .tst 2>/dev/null
3854 mkdir .tst 2>/dev/null
3855 if test -d .tst; then
3856   am__leading_dot=.
3857 else
3858   am__leading_dot=_
3859 fi
3860 rmdir .tst 2>/dev/null
3861
3862 # Check whether --enable-silent-rules was given.
3863 if test "${enable_silent_rules+set}" = set; then :
3864   enableval=$enable_silent_rules;
3865 fi
3866
3867 case $enable_silent_rules in # (((
3868   yes) AM_DEFAULT_VERBOSITY=0;;
3869    no) AM_DEFAULT_VERBOSITY=1;;
3870     *) AM_DEFAULT_VERBOSITY=1;;
3871 esac
3872 am_make=${MAKE-make}
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3874 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3875 if ${am_cv_make_support_nested_variables+:} false; then :
3876   $as_echo_n "(cached) " >&6
3877 else
3878   if $as_echo 'TRUE=$(BAR$(V))
3879 BAR0=false
3880 BAR1=true
3881 V=1
3882 am__doit:
3883         @$(TRUE)
3884 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3885   am_cv_make_support_nested_variables=yes
3886 else
3887   am_cv_make_support_nested_variables=no
3888 fi
3889 fi
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3891 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3892 if test $am_cv_make_support_nested_variables = yes; then
3893     AM_V='$(V)'
3894   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3895 else
3896   AM_V=$AM_DEFAULT_VERBOSITY
3897   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3898 fi
3899 AM_BACKSLASH='\'
3900
3901 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3902   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3903   # is not polluted with repeated "-I."
3904   am__isrc=' -I$(srcdir)'
3905   # test to see if srcdir already configured
3906   if test -f $srcdir/config.status; then
3907     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3908   fi
3909 fi
3910
3911 # test whether we have cygpath
3912 if test -z "$CYGPATH_W"; then
3913   if (cygpath --version) >/dev/null 2>/dev/null; then
3914     CYGPATH_W='cygpath -w'
3915   else
3916     CYGPATH_W=echo
3917   fi
3918 fi
3919
3920
3921 # Define the identity of the package.
3922  PACKAGE='gettext-runtime'
3923  VERSION='0.19.8.1'
3924
3925
3926 cat >>confdefs.h <<_ACEOF
3927 #define PACKAGE "$PACKAGE"
3928 _ACEOF
3929
3930
3931 cat >>confdefs.h <<_ACEOF
3932 #define VERSION "$VERSION"
3933 _ACEOF
3934
3935 # Some tools Automake needs.
3936
3937 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3938
3939
3940 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3941
3942
3943 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3944
3945
3946 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3947
3948
3949 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3950
3951 # For better backward compatibility.  To be removed once Automake 1.9.x
3952 # dies out for good.  For more background, see:
3953 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3954 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3955 mkdir_p='$(MKDIR_P)'
3956
3957 # We need awk for the "check" target (and possibly the TAP driver).  The
3958 # system "awk" is bad on some platforms.
3959 # Always define AMTAR for backward compatibility.  Yes, it's still used
3960 # in the wild :-(  We should find a proper way to deprecate it ...
3961 AMTAR='$${TAR-tar}'
3962
3963
3964 # We'll loop over all known methods to create a tar archive until one works.
3965 _am_tools='gnutar  pax cpio none'
3966
3967 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3968
3969
3970
3971
3972
3973
3974 # POSIX will say in a future version that running "rm -f" with no argument
3975 # is OK; and we want to be able to make that assumption in our Makefile
3976 # recipes.  So use an aggressive probe to check that the usage we want is
3977 # actually supported "in the wild" to an acceptable degree.
3978 # See automake bug#10828.
3979 # To make any issue more visible, cause the running configure to be aborted
3980 # by default if the 'rm' program in use doesn't match our expectations; the
3981 # user can still override this though.
3982 if rm -f && rm -fr && rm -rf; then : OK; else
3983   cat >&2 <<'END'
3984 Oops!
3985
3986 Your 'rm' program seems unable to run without file operands specified
3987 on the command line, even when the '-f' option is present.  This is contrary
3988 to the behaviour of most rm programs out there, and not conforming with
3989 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3990
3991 Please tell bug-automake@gnu.org about your system, including the value
3992 of your $PATH and any error possibly output before this message.  This
3993 can help us improve future automake versions.
3994
3995 END
3996   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3997     echo 'Configuration will proceed anyway, since you have set the' >&2
3998     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3999     echo >&2
4000   else
4001     cat >&2 <<'END'
4002 Aborting the configuration process, to ensure you take notice of the issue.
4003
4004 You can download and install GNU coreutils to get an 'rm' implementation
4005 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4006
4007 If you want to complete the configuration process using your problematic
4008 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4009 to "yes", and re-run configure.
4010
4011 END
4012     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4013   fi
4014 fi
4015
4016 ac_config_headers="$ac_config_headers config.h"
4017
4018
4019 test "$docdir" != '${datarootdir}/doc/${PACKAGE_TARNAME}' || docdir='${datarootdir}/doc/gettext'
4020
4021 ac_ext=c
4022 ac_cpp='$CPP $CPPFLAGS'
4023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4026 if test -n "$ac_tool_prefix"; then
4027   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4028 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4030 $as_echo_n "checking for $ac_word... " >&6; }
4031 if ${ac_cv_prog_CC+:} false; then :
4032   $as_echo_n "(cached) " >&6
4033 else
4034   if test -n "$CC"; then
4035   ac_cv_prog_CC="$CC" # Let the user override the test.
4036 else
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 for as_dir in $PATH
4039 do
4040   IFS=$as_save_IFS
4041   test -z "$as_dir" && as_dir=.
4042     for ac_exec_ext in '' $ac_executable_extensions; do
4043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4044     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4046     break 2
4047   fi
4048 done
4049   done
4050 IFS=$as_save_IFS
4051
4052 fi
4053 fi
4054 CC=$ac_cv_prog_CC
4055 if test -n "$CC"; then
4056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4057 $as_echo "$CC" >&6; }
4058 else
4059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060 $as_echo "no" >&6; }
4061 fi
4062
4063
4064 fi
4065 if test -z "$ac_cv_prog_CC"; then
4066   ac_ct_CC=$CC
4067   # Extract the first word of "gcc", so it can be a program name with args.
4068 set dummy gcc; ac_word=$2
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4070 $as_echo_n "checking for $ac_word... " >&6; }
4071 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4072   $as_echo_n "(cached) " >&6
4073 else
4074   if test -n "$ac_ct_CC"; then
4075   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4076 else
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH
4079 do
4080   IFS=$as_save_IFS
4081   test -z "$as_dir" && as_dir=.
4082     for ac_exec_ext in '' $ac_executable_extensions; do
4083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084     ac_cv_prog_ac_ct_CC="gcc"
4085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4086     break 2
4087   fi
4088 done
4089   done
4090 IFS=$as_save_IFS
4091
4092 fi
4093 fi
4094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4095 if test -n "$ac_ct_CC"; then
4096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4097 $as_echo "$ac_ct_CC" >&6; }
4098 else
4099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100 $as_echo "no" >&6; }
4101 fi
4102
4103   if test "x$ac_ct_CC" = x; then
4104     CC=""
4105   else
4106     case $cross_compiling:$ac_tool_warned in
4107 yes:)
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4110 ac_tool_warned=yes ;;
4111 esac
4112     CC=$ac_ct_CC
4113   fi
4114 else
4115   CC="$ac_cv_prog_CC"
4116 fi
4117
4118 if test -z "$CC"; then
4119           if test -n "$ac_tool_prefix"; then
4120     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4121 set dummy ${ac_tool_prefix}cc; ac_word=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if ${ac_cv_prog_CC+:} false; then :
4125   $as_echo_n "(cached) " >&6
4126 else
4127   if test -n "$CC"; then
4128   ac_cv_prog_CC="$CC" # Let the user override the test.
4129 else
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4132 do
4133   IFS=$as_save_IFS
4134   test -z "$as_dir" && as_dir=.
4135     for ac_exec_ext in '' $ac_executable_extensions; do
4136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4137     ac_cv_prog_CC="${ac_tool_prefix}cc"
4138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4139     break 2
4140   fi
4141 done
4142   done
4143 IFS=$as_save_IFS
4144
4145 fi
4146 fi
4147 CC=$ac_cv_prog_CC
4148 if test -n "$CC"; then
4149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4150 $as_echo "$CC" >&6; }
4151 else
4152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 $as_echo "no" >&6; }
4154 fi
4155
4156
4157   fi
4158 fi
4159 if test -z "$CC"; then
4160   # Extract the first word of "cc", so it can be a program name with args.
4161 set dummy cc; ac_word=$2
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163 $as_echo_n "checking for $ac_word... " >&6; }
4164 if ${ac_cv_prog_CC+:} false; then :
4165   $as_echo_n "(cached) " >&6
4166 else
4167   if test -n "$CC"; then
4168   ac_cv_prog_CC="$CC" # Let the user override the test.
4169 else
4170   ac_prog_rejected=no
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 for as_dir in $PATH
4173 do
4174   IFS=$as_save_IFS
4175   test -z "$as_dir" && as_dir=.
4176     for ac_exec_ext in '' $ac_executable_extensions; do
4177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4179        ac_prog_rejected=yes
4180        continue
4181      fi
4182     ac_cv_prog_CC="cc"
4183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184     break 2
4185   fi
4186 done
4187   done
4188 IFS=$as_save_IFS
4189
4190 if test $ac_prog_rejected = yes; then
4191   # We found a bogon in the path, so make sure we never use it.
4192   set dummy $ac_cv_prog_CC
4193   shift
4194   if test $# != 0; then
4195     # We chose a different compiler from the bogus one.
4196     # However, it has the same basename, so the bogon will be chosen
4197     # first if we set CC to just the basename; use the full file name.
4198     shift
4199     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4200   fi
4201 fi
4202 fi
4203 fi
4204 CC=$ac_cv_prog_CC
4205 if test -n "$CC"; then
4206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4207 $as_echo "$CC" >&6; }
4208 else
4209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4210 $as_echo "no" >&6; }
4211 fi
4212
4213
4214 fi
4215 if test -z "$CC"; then
4216   if test -n "$ac_tool_prefix"; then
4217   for ac_prog in cl.exe
4218   do
4219     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 $as_echo_n "checking for $ac_word... " >&6; }
4223 if ${ac_cv_prog_CC+:} false; then :
4224   $as_echo_n "(cached) " >&6
4225 else
4226   if test -n "$CC"; then
4227   ac_cv_prog_CC="$CC" # Let the user override the test.
4228 else
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4231 do
4232   IFS=$as_save_IFS
4233   test -z "$as_dir" && as_dir=.
4234     for ac_exec_ext in '' $ac_executable_extensions; do
4235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4236     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238     break 2
4239   fi
4240 done
4241   done
4242 IFS=$as_save_IFS
4243
4244 fi
4245 fi
4246 CC=$ac_cv_prog_CC
4247 if test -n "$CC"; then
4248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4249 $as_echo "$CC" >&6; }
4250 else
4251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4253 fi
4254
4255
4256     test -n "$CC" && break
4257   done
4258 fi
4259 if test -z "$CC"; then
4260   ac_ct_CC=$CC
4261   for ac_prog in cl.exe
4262 do
4263   # Extract the first word of "$ac_prog", so it can be a program name with args.
4264 set dummy $ac_prog; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4268   $as_echo_n "(cached) " >&6
4269 else
4270   if test -n "$ac_ct_CC"; then
4271   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4272 else
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4275 do
4276   IFS=$as_save_IFS
4277   test -z "$as_dir" && as_dir=.
4278     for ac_exec_ext in '' $ac_executable_extensions; do
4279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4280     ac_cv_prog_ac_ct_CC="$ac_prog"
4281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282     break 2
4283   fi
4284 done
4285   done
4286 IFS=$as_save_IFS
4287
4288 fi
4289 fi
4290 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4291 if test -n "$ac_ct_CC"; then
4292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4293 $as_echo "$ac_ct_CC" >&6; }
4294 else
4295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4297 fi
4298
4299
4300   test -n "$ac_ct_CC" && break
4301 done
4302
4303   if test "x$ac_ct_CC" = x; then
4304     CC=""
4305   else
4306     case $cross_compiling:$ac_tool_warned in
4307 yes:)
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4310 ac_tool_warned=yes ;;
4311 esac
4312     CC=$ac_ct_CC
4313   fi
4314 fi
4315
4316 fi
4317
4318
4319 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4321 as_fn_error $? "no acceptable C compiler found in \$PATH
4322 See \`config.log' for more details" "$LINENO" 5; }
4323
4324 # Provide some information about the compiler.
4325 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4326 set X $ac_compile
4327 ac_compiler=$2
4328 for ac_option in --version -v -V -qversion; do
4329   { { ac_try="$ac_compiler $ac_option >&5"
4330 case "(($ac_try" in
4331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332   *) ac_try_echo=$ac_try;;
4333 esac
4334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335 $as_echo "$ac_try_echo"; } >&5
4336   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4337   ac_status=$?
4338   if test -s conftest.err; then
4339     sed '10a\
4340 ... rest of stderr output deleted ...
4341          10q' conftest.err >conftest.er1
4342     cat conftest.er1 >&5
4343   fi
4344   rm -f conftest.er1 conftest.err
4345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4346   test $ac_status = 0; }
4347 done
4348
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h.  */
4351
4352 int
4353 main ()
4354 {
4355
4356   ;
4357   return 0;
4358 }
4359 _ACEOF
4360 ac_clean_files_save=$ac_clean_files
4361 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4362 # Try to create an executable without -o first, disregard a.out.
4363 # It will help us diagnose broken compilers, and finding out an intuition
4364 # of exeext.
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4366 $as_echo_n "checking whether the C compiler works... " >&6; }
4367 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4368
4369 # The possible output files:
4370 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4371
4372 ac_rmfiles=
4373 for ac_file in $ac_files
4374 do
4375   case $ac_file in
4376     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4377     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4378   esac
4379 done
4380 rm -f $ac_rmfiles
4381
4382 if { { ac_try="$ac_link_default"
4383 case "(($ac_try" in
4384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385   *) ac_try_echo=$ac_try;;
4386 esac
4387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4388 $as_echo "$ac_try_echo"; } >&5
4389   (eval "$ac_link_default") 2>&5
4390   ac_status=$?
4391   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4392   test $ac_status = 0; }; then :
4393   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4394 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4395 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4396 # so that the user can short-circuit this test for compilers unknown to
4397 # Autoconf.
4398 for ac_file in $ac_files ''
4399 do
4400   test -f "$ac_file" || continue
4401   case $ac_file in
4402     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4403         ;;
4404     [ab].out )
4405         # We found the default executable, but exeext='' is most
4406         # certainly right.
4407         break;;
4408     *.* )
4409         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4410         then :; else
4411            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4412         fi
4413         # We set ac_cv_exeext here because the later test for it is not
4414         # safe: cross compilers may not add the suffix if given an `-o'
4415         # argument, so we may need to know it at that point already.
4416         # Even if this section looks crufty: it has the advantage of
4417         # actually working.
4418         break;;
4419     * )
4420         break;;
4421   esac
4422 done
4423 test "$ac_cv_exeext" = no && ac_cv_exeext=
4424
4425 else
4426   ac_file=''
4427 fi
4428 if test -z "$ac_file"; then :
4429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4431 $as_echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4433
4434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4436 as_fn_error 77 "C compiler cannot create executables
4437 See \`config.log' for more details" "$LINENO" 5; }
4438 else
4439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4440 $as_echo "yes" >&6; }
4441 fi
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4443 $as_echo_n "checking for C compiler default output file name... " >&6; }
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4445 $as_echo "$ac_file" >&6; }
4446 ac_exeext=$ac_cv_exeext
4447
4448 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4449 ac_clean_files=$ac_clean_files_save
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4451 $as_echo_n "checking for suffix of executables... " >&6; }
4452 if { { ac_try="$ac_link"
4453 case "(($ac_try" in
4454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455   *) ac_try_echo=$ac_try;;
4456 esac
4457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4458 $as_echo "$ac_try_echo"; } >&5
4459   (eval "$ac_link") 2>&5
4460   ac_status=$?
4461   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4462   test $ac_status = 0; }; then :
4463   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4464 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4465 # work properly (i.e., refer to `conftest.exe'), while it won't with
4466 # `rm'.
4467 for ac_file in conftest.exe conftest conftest.*; do
4468   test -f "$ac_file" || continue
4469   case $ac_file in
4470     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4471     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4472           break;;
4473     * ) break;;
4474   esac
4475 done
4476 else
4477   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4479 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4480 See \`config.log' for more details" "$LINENO" 5; }
4481 fi
4482 rm -f conftest conftest$ac_cv_exeext
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4484 $as_echo "$ac_cv_exeext" >&6; }
4485
4486 rm -f conftest.$ac_ext
4487 EXEEXT=$ac_cv_exeext
4488 ac_exeext=$EXEEXT
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h.  */
4491 #include <stdio.h>
4492 int
4493 main ()
4494 {
4495 FILE *f = fopen ("conftest.out", "w");
4496  return ferror (f) || fclose (f) != 0;
4497
4498   ;
4499   return 0;
4500 }
4501 _ACEOF
4502 ac_clean_files="$ac_clean_files conftest.out"
4503 # Check that the compiler produces executables we can run.  If not, either
4504 # the compiler is broken, or we cross compile.
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4506 $as_echo_n "checking whether we are cross compiling... " >&6; }
4507 if test "$cross_compiling" != yes; then
4508   { { ac_try="$ac_link"
4509 case "(($ac_try" in
4510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4511   *) ac_try_echo=$ac_try;;
4512 esac
4513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4514 $as_echo "$ac_try_echo"; } >&5
4515   (eval "$ac_link") 2>&5
4516   ac_status=$?
4517   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4518   test $ac_status = 0; }
4519   if { ac_try='./conftest$ac_cv_exeext'
4520   { { case "(($ac_try" in
4521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522   *) ac_try_echo=$ac_try;;
4523 esac
4524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4525 $as_echo "$ac_try_echo"; } >&5
4526   (eval "$ac_try") 2>&5
4527   ac_status=$?
4528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4529   test $ac_status = 0; }; }; then
4530     cross_compiling=no
4531   else
4532     if test "$cross_compiling" = maybe; then
4533         cross_compiling=yes
4534     else
4535         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4537 as_fn_error $? "cannot run C compiled programs.
4538 If you meant to cross compile, use \`--host'.
4539 See \`config.log' for more details" "$LINENO" 5; }
4540     fi
4541   fi
4542 fi
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4544 $as_echo "$cross_compiling" >&6; }
4545
4546 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4547 ac_clean_files=$ac_clean_files_save
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4549 $as_echo_n "checking for suffix of object files... " >&6; }
4550 if ${ac_cv_objext+:} false; then :
4551   $as_echo_n "(cached) " >&6
4552 else
4553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h.  */
4555
4556 int
4557 main ()
4558 {
4559
4560   ;
4561   return 0;
4562 }
4563 _ACEOF
4564 rm -f conftest.o conftest.obj
4565 if { { ac_try="$ac_compile"
4566 case "(($ac_try" in
4567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568   *) ac_try_echo=$ac_try;;
4569 esac
4570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4571 $as_echo "$ac_try_echo"; } >&5
4572   (eval "$ac_compile") 2>&5
4573   ac_status=$?
4574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4575   test $ac_status = 0; }; then :
4576   for ac_file in conftest.o conftest.obj conftest.*; do
4577   test -f "$ac_file" || continue;
4578   case $ac_file in
4579     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4580     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4581        break;;
4582   esac
4583 done
4584 else
4585   $as_echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4587
4588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4590 as_fn_error $? "cannot compute suffix of object files: cannot compile
4591 See \`config.log' for more details" "$LINENO" 5; }
4592 fi
4593 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4594 fi
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4596 $as_echo "$ac_cv_objext" >&6; }
4597 OBJEXT=$ac_cv_objext
4598 ac_objext=$OBJEXT
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4600 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4601 if ${ac_cv_c_compiler_gnu+:} false; then :
4602   $as_echo_n "(cached) " >&6
4603 else
4604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h.  */
4606
4607 int
4608 main ()
4609 {
4610 #ifndef __GNUC__
4611        choke me
4612 #endif
4613
4614   ;
4615   return 0;
4616 }
4617 _ACEOF
4618 if ac_fn_c_try_compile "$LINENO"; then :
4619   ac_compiler_gnu=yes
4620 else
4621   ac_compiler_gnu=no
4622 fi
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4625
4626 fi
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4628 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4629 if test $ac_compiler_gnu = yes; then
4630   GCC=yes
4631 else
4632   GCC=
4633 fi
4634 ac_test_CFLAGS=${CFLAGS+set}
4635 ac_save_CFLAGS=$CFLAGS
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4637 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4638 if ${ac_cv_prog_cc_g+:} false; then :
4639   $as_echo_n "(cached) " >&6
4640 else
4641   ac_save_c_werror_flag=$ac_c_werror_flag
4642    ac_c_werror_flag=yes
4643    ac_cv_prog_cc_g=no
4644    CFLAGS="-g"
4645    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h.  */
4647
4648 int
4649 main ()
4650 {
4651
4652   ;
4653   return 0;
4654 }
4655 _ACEOF
4656 if ac_fn_c_try_compile "$LINENO"; then :
4657   ac_cv_prog_cc_g=yes
4658 else
4659   CFLAGS=""
4660       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h.  */
4662
4663 int
4664 main ()
4665 {
4666
4667   ;
4668   return 0;
4669 }
4670 _ACEOF
4671 if ac_fn_c_try_compile "$LINENO"; then :
4672
4673 else
4674   ac_c_werror_flag=$ac_save_c_werror_flag
4675          CFLAGS="-g"
4676          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h.  */
4678
4679 int
4680 main ()
4681 {
4682
4683   ;
4684   return 0;
4685 }
4686 _ACEOF
4687 if ac_fn_c_try_compile "$LINENO"; then :
4688   ac_cv_prog_cc_g=yes
4689 fi
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 fi
4692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693 fi
4694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695    ac_c_werror_flag=$ac_save_c_werror_flag
4696 fi
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4698 $as_echo "$ac_cv_prog_cc_g" >&6; }
4699 if test "$ac_test_CFLAGS" = set; then
4700   CFLAGS=$ac_save_CFLAGS
4701 elif test $ac_cv_prog_cc_g = yes; then
4702   if test "$GCC" = yes; then
4703     CFLAGS="-g -O2"
4704   else
4705     CFLAGS="-g"
4706   fi
4707 else
4708   if test "$GCC" = yes; then
4709     CFLAGS="-O2"
4710   else
4711     CFLAGS=
4712   fi
4713 fi
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4715 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4716 if ${ac_cv_prog_cc_c89+:} false; then :
4717   $as_echo_n "(cached) " >&6
4718 else
4719   ac_cv_prog_cc_c89=no
4720 ac_save_CC=$CC
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h.  */
4723 #include <stdarg.h>
4724 #include <stdio.h>
4725 struct stat;
4726 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4727 struct buf { int x; };
4728 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4729 static char *e (p, i)
4730      char **p;
4731      int i;
4732 {
4733   return p[i];
4734 }
4735 static char *f (char * (*g) (char **, int), char **p, ...)
4736 {
4737   char *s;
4738   va_list v;
4739   va_start (v,p);
4740   s = g (p, va_arg (v,int));
4741   va_end (v);
4742   return s;
4743 }
4744
4745 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4746    function prototypes and stuff, but not '\xHH' hex character constants.
4747    These don't provoke an error unfortunately, instead are silently treated
4748    as 'x'.  The following induces an error, until -std is added to get
4749    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4750    array size at least.  It's necessary to write '\x00'==0 to get something
4751    that's true only with -std.  */
4752 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4753
4754 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4755    inside strings and character constants.  */
4756 #define FOO(x) 'x'
4757 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4758
4759 int test (int i, double x);
4760 struct s1 {int (*f) (int a);};
4761 struct s2 {int (*f) (double a);};
4762 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4763 int argc;
4764 char **argv;
4765 int
4766 main ()
4767 {
4768 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4769   ;
4770   return 0;
4771 }
4772 _ACEOF
4773 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4774         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4775 do
4776   CC="$ac_save_CC $ac_arg"
4777   if ac_fn_c_try_compile "$LINENO"; then :
4778   ac_cv_prog_cc_c89=$ac_arg
4779 fi
4780 rm -f core conftest.err conftest.$ac_objext
4781   test "x$ac_cv_prog_cc_c89" != "xno" && break
4782 done
4783 rm -f conftest.$ac_ext
4784 CC=$ac_save_CC
4785
4786 fi
4787 # AC_CACHE_VAL
4788 case "x$ac_cv_prog_cc_c89" in
4789   x)
4790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4791 $as_echo "none needed" >&6; } ;;
4792   xno)
4793     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4794 $as_echo "unsupported" >&6; } ;;
4795   *)
4796     CC="$CC $ac_cv_prog_cc_c89"
4797     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4798 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4799 esac
4800 if test "x$ac_cv_prog_cc_c89" != xno; then :
4801
4802 fi
4803
4804 ac_ext=c
4805 ac_cpp='$CPP $CPPFLAGS'
4806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4809
4810 ac_ext=c
4811 ac_cpp='$CPP $CPPFLAGS'
4812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4816 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4817 if ${am_cv_prog_cc_c_o+:} false; then :
4818   $as_echo_n "(cached) " >&6
4819 else
4820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h.  */
4822
4823 int
4824 main ()
4825 {
4826
4827   ;
4828   return 0;
4829 }
4830 _ACEOF
4831   # Make sure it works both with $CC and with simple cc.
4832   # Following AC_PROG_CC_C_O, we do the test twice because some
4833   # compilers refuse to overwrite an existing .o file with -o,
4834   # though they will create one.
4835   am_cv_prog_cc_c_o=yes
4836   for am_i in 1 2; do
4837     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4838    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4839    ac_status=$?
4840    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841    (exit $ac_status); } \
4842          && test -f conftest2.$ac_objext; then
4843       : OK
4844     else
4845       am_cv_prog_cc_c_o=no
4846       break
4847     fi
4848   done
4849   rm -f core conftest*
4850   unset am_i
4851 fi
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4853 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4854 if test "$am_cv_prog_cc_c_o" != yes; then
4855    # Losing compiler, so override with the script.
4856    # FIXME: It is wrong to rewrite CC.
4857    # But if we don't then we get into trouble of one sort or another.
4858    # A longer-term fix would be to have automake use am__CC in this case,
4859    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4860    CC="$am_aux_dir/compile $CC"
4861 fi
4862 ac_ext=c
4863 ac_cpp='$CPP $CPPFLAGS'
4864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4867
4868 DEPDIR="${am__leading_dot}deps"
4869
4870 ac_config_commands="$ac_config_commands depfiles"
4871
4872
4873 am_make=${MAKE-make}
4874 cat > confinc << 'END'
4875 am__doit:
4876         @echo this is the am__doit target
4877 .PHONY: am__doit
4878 END
4879 # If we don't find an include directive, just comment out the code.
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4881 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4882 am__include="#"
4883 am__quote=
4884 _am_result=none
4885 # First try GNU make style include.
4886 echo "include confinc" > confmf
4887 # Ignore all kinds of additional output from 'make'.
4888 case `$am_make -s -f confmf 2> /dev/null` in #(
4889 *the\ am__doit\ target*)
4890   am__include=include
4891   am__quote=
4892   _am_result=GNU
4893   ;;
4894 esac
4895 # Now try BSD make style include.
4896 if test "$am__include" = "#"; then
4897    echo '.include "confinc"' > confmf
4898    case `$am_make -s -f confmf 2> /dev/null` in #(
4899    *the\ am__doit\ target*)
4900      am__include=.include
4901      am__quote="\""
4902      _am_result=BSD
4903      ;;
4904    esac
4905 fi
4906
4907
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4909 $as_echo "$_am_result" >&6; }
4910 rm -f confinc confmf
4911
4912 # Check whether --enable-dependency-tracking was given.
4913 if test "${enable_dependency_tracking+set}" = set; then :
4914   enableval=$enable_dependency_tracking;
4915 fi
4916
4917 if test "x$enable_dependency_tracking" != xno; then
4918   am_depcomp="$ac_aux_dir/depcomp"
4919   AMDEPBACKSLASH='\'
4920   am__nodep='_no'
4921 fi
4922  if test "x$enable_dependency_tracking" != xno; then
4923   AMDEP_TRUE=
4924   AMDEP_FALSE='#'
4925 else
4926   AMDEP_TRUE='#'
4927   AMDEP_FALSE=
4928 fi
4929
4930
4931
4932 depcc="$CC"   am_compiler_list=
4933
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4935 $as_echo_n "checking dependency style of $depcc... " >&6; }
4936 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4937   $as_echo_n "(cached) " >&6
4938 else
4939   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4940   # We make a subdir and do the tests there.  Otherwise we can end up
4941   # making bogus files that we don't know about and never remove.  For
4942   # instance it was reported that on HP-UX the gcc test will end up
4943   # making a dummy file named 'D' -- because '-MD' means "put the output
4944   # in D".
4945   rm -rf conftest.dir
4946   mkdir conftest.dir
4947   # Copy depcomp to subdir because otherwise we won't find it if we're
4948   # using a relative directory.
4949   cp "$am_depcomp" conftest.dir
4950   cd conftest.dir
4951   # We will build objects and dependencies in a subdirectory because
4952   # it helps to detect inapplicable dependency modes.  For instance
4953   # both Tru64's cc and ICC support -MD to output dependencies as a
4954   # side effect of compilation, but ICC will put the dependencies in
4955   # the current directory while Tru64 will put them in the object
4956   # directory.
4957   mkdir sub
4958
4959   am_cv_CC_dependencies_compiler_type=none
4960   if test "$am_compiler_list" = ""; then
4961      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4962   fi
4963   am__universal=false
4964   case " $depcc " in #(
4965      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4966      esac
4967
4968   for depmode in $am_compiler_list; do
4969     # Setup a source with many dependencies, because some compilers
4970     # like to wrap large dependency lists on column 80 (with \), and
4971     # we should not choose a depcomp mode which is confused by this.
4972     #
4973     # We need to recreate these files for each test, as the compiler may
4974     # overwrite some of them when testing with obscure command lines.
4975     # This happens at least with the AIX C compiler.
4976     : > sub/conftest.c
4977     for i in 1 2 3 4 5 6; do
4978       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4979       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4980       # Solaris 10 /bin/sh.
4981       echo '/* dummy */' > sub/conftst$i.h
4982     done
4983     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4984
4985     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4986     # mode.  It turns out that the SunPro C++ compiler does not properly
4987     # handle '-M -o', and we need to detect this.  Also, some Intel
4988     # versions had trouble with output in subdirs.
4989     am__obj=sub/conftest.${OBJEXT-o}
4990     am__minus_obj="-o $am__obj"
4991     case $depmode in
4992     gcc)
4993       # This depmode causes a compiler race in universal mode.
4994       test "$am__universal" = false || continue
4995       ;;
4996     nosideeffect)
4997       # After this tag, mechanisms are not by side-effect, so they'll
4998       # only be used when explicitly requested.
4999       if test "x$enable_dependency_tracking" = xyes; then
5000         continue
5001       else
5002         break
5003       fi
5004       ;;
5005     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5006       # This compiler won't grok '-c -o', but also, the minuso test has
5007       # not run yet.  These depmodes are late enough in the game, and
5008       # so weak that their functioning should not be impacted.
5009       am__obj=conftest.${OBJEXT-o}
5010       am__minus_obj=
5011       ;;
5012     none) break ;;
5013     esac
5014     if depmode=$depmode \
5015        source=sub/conftest.c object=$am__obj \
5016        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5017        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5018          >/dev/null 2>conftest.err &&
5019        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5020        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5021        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5022        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5023       # icc doesn't choke on unknown options, it will just issue warnings
5024       # or remarks (even with -Werror).  So we grep stderr for any message
5025       # that says an option was ignored or not supported.
5026       # When given -MP, icc 7.0 and 7.1 complain thusly:
5027       #   icc: Command line warning: ignoring option '-M'; no argument required
5028       # The diagnosis changed in icc 8.0:
5029       #   icc: Command line remark: option '-MP' not supported
5030       if (grep 'ignoring option' conftest.err ||
5031           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5032         am_cv_CC_dependencies_compiler_type=$depmode
5033         break
5034       fi
5035     fi
5036   done
5037
5038   cd ..
5039   rm -rf conftest.dir
5040 else
5041   am_cv_CC_dependencies_compiler_type=none
5042 fi
5043
5044 fi
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5046 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5047 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5048
5049  if
5050   test "x$enable_dependency_tracking" != xno \
5051   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5052   am__fastdepCC_TRUE=
5053   am__fastdepCC_FALSE='#'
5054 else
5055   am__fastdepCC_TRUE='#'
5056   am__fastdepCC_FALSE=
5057 fi
5058
5059
5060
5061 for ac_prog in 'bison -y' byacc
5062 do
5063   # Extract the first word of "$ac_prog", so it can be a program name with args.
5064 set dummy $ac_prog; ac_word=$2
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066 $as_echo_n "checking for $ac_word... " >&6; }
5067 if ${ac_cv_prog_YACC+:} false; then :
5068   $as_echo_n "(cached) " >&6
5069 else
5070   if test -n "$YACC"; then
5071   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5072 else
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5075 do
5076   IFS=$as_save_IFS
5077   test -z "$as_dir" && as_dir=.
5078     for ac_exec_ext in '' $ac_executable_extensions; do
5079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080     ac_cv_prog_YACC="$ac_prog"
5081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082     break 2
5083   fi
5084 done
5085   done
5086 IFS=$as_save_IFS
5087
5088 fi
5089 fi
5090 YACC=$ac_cv_prog_YACC
5091 if test -n "$YACC"; then
5092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5093 $as_echo "$YACC" >&6; }
5094 else
5095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5097 fi
5098
5099
5100   test -n "$YACC" && break
5101 done
5102 test -n "$YACC" || YACC="yacc"
5103
5104
5105
5106   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5
5107 $as_echo_n "checking whether to use Java... " >&6; }
5108   # Check whether --enable-java was given.
5109 if test "${enable_java+set}" = set; then :
5110   enableval=$enable_java; JAVA_CHOICE="$enableval"
5111 else
5112   JAVA_CHOICE=yes
5113 fi
5114
5115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5
5116 $as_echo "$JAVA_CHOICE" >&6; }
5117   if test "$JAVA_CHOICE" = yes; then
5118     # Check whether --enable-native-java was given.
5119 if test "${enable_native_java+set}" = set; then :
5120   enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
5121 fi
5122
5123   fi
5124
5125
5126
5127
5128 ac_ext=c
5129 ac_cpp='$CPP $CPPFLAGS'
5130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5134 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5135 # On Suns, sometimes $CPP names a directory.
5136 if test -n "$CPP" && test -d "$CPP"; then
5137   CPP=
5138 fi
5139 if test -z "$CPP"; then
5140   if ${ac_cv_prog_CPP+:} false; then :
5141   $as_echo_n "(cached) " >&6
5142 else
5143       # Double quotes because CPP needs to be expanded
5144     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5145     do
5146       ac_preproc_ok=false
5147 for ac_c_preproc_warn_flag in '' yes
5148 do
5149   # Use a header file that comes with gcc, so configuring glibc
5150   # with a fresh cross-compiler works.
5151   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5152   # <limits.h> exists even on freestanding compilers.
5153   # On the NeXT, cc -E runs the code through the compiler's parser,
5154   # not just through cpp. "Syntax error" is here to catch this case.
5155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h.  */
5157 #ifdef __STDC__
5158 # include <limits.h>
5159 #else
5160 # include <assert.h>
5161 #endif
5162                      Syntax error
5163 _ACEOF
5164 if ac_fn_c_try_cpp "$LINENO"; then :
5165
5166 else
5167   # Broken: fails on valid input.
5168 continue
5169 fi
5170 rm -f conftest.err conftest.i conftest.$ac_ext
5171
5172   # OK, works on sane cases.  Now check whether nonexistent headers
5173   # can be detected and how.
5174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h.  */
5176 #include <ac_nonexistent.h>
5177 _ACEOF
5178 if ac_fn_c_try_cpp "$LINENO"; then :
5179   # Broken: success on invalid input.
5180 continue
5181 else
5182   # Passes both tests.
5183 ac_preproc_ok=:
5184 break
5185 fi
5186 rm -f conftest.err conftest.i conftest.$ac_ext
5187
5188 done
5189 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5190 rm -f conftest.i conftest.err conftest.$ac_ext
5191 if $ac_preproc_ok; then :
5192   break
5193 fi
5194
5195     done
5196     ac_cv_prog_CPP=$CPP
5197
5198 fi
5199   CPP=$ac_cv_prog_CPP
5200 else
5201   ac_cv_prog_CPP=$CPP
5202 fi
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5204 $as_echo "$CPP" >&6; }
5205 ac_preproc_ok=false
5206 for ac_c_preproc_warn_flag in '' yes
5207 do
5208   # Use a header file that comes with gcc, so configuring glibc
5209   # with a fresh cross-compiler works.
5210   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5211   # <limits.h> exists even on freestanding compilers.
5212   # On the NeXT, cc -E runs the code through the compiler's parser,
5213   # not just through cpp. "Syntax error" is here to catch this case.
5214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h.  */
5216 #ifdef __STDC__
5217 # include <limits.h>
5218 #else
5219 # include <assert.h>
5220 #endif
5221                      Syntax error
5222 _ACEOF
5223 if ac_fn_c_try_cpp "$LINENO"; then :
5224
5225 else
5226   # Broken: fails on valid input.
5227 continue
5228 fi
5229 rm -f conftest.err conftest.i conftest.$ac_ext
5230
5231   # OK, works on sane cases.  Now check whether nonexistent headers
5232   # can be detected and how.
5233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h.  */
5235 #include <ac_nonexistent.h>
5236 _ACEOF
5237 if ac_fn_c_try_cpp "$LINENO"; then :
5238   # Broken: success on invalid input.
5239 continue
5240 else
5241   # Passes both tests.
5242 ac_preproc_ok=:
5243 break
5244 fi
5245 rm -f conftest.err conftest.i conftest.$ac_ext
5246
5247 done
5248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5249 rm -f conftest.i conftest.err conftest.$ac_ext
5250 if $ac_preproc_ok; then :
5251
5252 else
5253   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5255 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5256 See \`config.log' for more details" "$LINENO" 5; }
5257 fi
5258
5259 ac_ext=c
5260 ac_cpp='$CPP $CPPFLAGS'
5261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5264
5265
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5267 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5268 if ${ac_cv_path_GREP+:} false; then :
5269   $as_echo_n "(cached) " >&6
5270 else
5271   if test -z "$GREP"; then
5272   ac_path_GREP_found=false
5273   # Loop through the user's path and test for each of PROGNAME-LIST
5274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5276 do
5277   IFS=$as_save_IFS
5278   test -z "$as_dir" && as_dir=.
5279     for ac_prog in grep ggrep; do
5280     for ac_exec_ext in '' $ac_executable_extensions; do
5281       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5282       as_fn_executable_p "$ac_path_GREP" || continue
5283 # Check for GNU ac_path_GREP and select it if it is found.
5284   # Check for GNU $ac_path_GREP
5285 case `"$ac_path_GREP" --version 2>&1` in
5286 *GNU*)
5287   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5288 *)
5289   ac_count=0
5290   $as_echo_n 0123456789 >"conftest.in"
5291   while :
5292   do
5293     cat "conftest.in" "conftest.in" >"conftest.tmp"
5294     mv "conftest.tmp" "conftest.in"
5295     cp "conftest.in" "conftest.nl"
5296     $as_echo 'GREP' >> "conftest.nl"
5297     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5298     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5299     as_fn_arith $ac_count + 1 && ac_count=$as_val
5300     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5301       # Best one so far, save it but keep looking for a better one
5302       ac_cv_path_GREP="$ac_path_GREP"
5303       ac_path_GREP_max=$ac_count
5304     fi
5305     # 10*(2^10) chars as input seems more than enough
5306     test $ac_count -gt 10 && break
5307   done
5308   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5309 esac
5310
5311       $ac_path_GREP_found && break 3
5312     done
5313   done
5314   done
5315 IFS=$as_save_IFS
5316   if test -z "$ac_cv_path_GREP"; then
5317     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5318   fi
5319 else
5320   ac_cv_path_GREP=$GREP
5321 fi
5322
5323 fi
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5325 $as_echo "$ac_cv_path_GREP" >&6; }
5326  GREP="$ac_cv_path_GREP"
5327
5328
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5330 $as_echo_n "checking for egrep... " >&6; }
5331 if ${ac_cv_path_EGREP+:} false; then :
5332   $as_echo_n "(cached) " >&6
5333 else
5334   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5335    then ac_cv_path_EGREP="$GREP -E"
5336    else
5337      if test -z "$EGREP"; then
5338   ac_path_EGREP_found=false
5339   # Loop through the user's path and test for each of PROGNAME-LIST
5340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5342 do
5343   IFS=$as_save_IFS
5344   test -z "$as_dir" && as_dir=.
5345     for ac_prog in egrep; do
5346     for ac_exec_ext in '' $ac_executable_extensions; do
5347       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5348       as_fn_executable_p "$ac_path_EGREP" || continue
5349 # Check for GNU ac_path_EGREP and select it if it is found.
5350   # Check for GNU $ac_path_EGREP
5351 case `"$ac_path_EGREP" --version 2>&1` in
5352 *GNU*)
5353   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5354 *)
5355   ac_count=0
5356   $as_echo_n 0123456789 >"conftest.in"
5357   while :
5358   do
5359     cat "conftest.in" "conftest.in" >"conftest.tmp"
5360     mv "conftest.tmp" "conftest.in"
5361     cp "conftest.in" "conftest.nl"
5362     $as_echo 'EGREP' >> "conftest.nl"
5363     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5364     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5365     as_fn_arith $ac_count + 1 && ac_count=$as_val
5366     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5367       # Best one so far, save it but keep looking for a better one
5368       ac_cv_path_EGREP="$ac_path_EGREP"
5369       ac_path_EGREP_max=$ac_count
5370     fi
5371     # 10*(2^10) chars as input seems more than enough
5372     test $ac_count -gt 10 && break
5373   done
5374   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5375 esac
5376
5377       $ac_path_EGREP_found && break 3
5378     done
5379   done
5380   done
5381 IFS=$as_save_IFS
5382   if test -z "$ac_cv_path_EGREP"; then
5383     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5384   fi
5385 else
5386   ac_cv_path_EGREP=$EGREP
5387 fi
5388
5389    fi
5390 fi
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5392 $as_echo "$ac_cv_path_EGREP" >&6; }
5393  EGREP="$ac_cv_path_EGREP"
5394
5395
5396
5397
5398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h.  */
5400
5401 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
5402   yes
5403 #endif
5404
5405 _ACEOF
5406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5407   $EGREP "yes" >/dev/null 2>&1; then :
5408   CLASSPATH_SEPARATOR=';'
5409 else
5410   CLASSPATH_SEPARATOR=':'
5411 fi
5412 rm -f conftest*
5413
5414   source_version=1.3
5415   test -n "$source_version" || {
5416     as_fn_error $? "missing source-version argument to gt_JAVACOMP" "$LINENO" 5
5417   }
5418   target_version=1.1
5419   case "$source_version" in
5420     1.3) goodcode='class conftest {}'
5421          failcode='class conftestfail { static { assert(true); } }' ;;
5422     1.4) goodcode='class conftest     { static { assert(true); } }'
5423          failcode='class conftestfail<T> { T foo() { return null; } }' ;;
5424     1.5) goodcode='class conftest<T>     { T foo() { return null; } }'
5425          failcode='class conftestfail syntax error' ;;
5426     *) as_fn_error $? "invalid source-version argument to gt_JAVACOMP: $source_version" "$LINENO" 5 ;;
5427   esac
5428   case "$target_version" in
5429     1.1) cfversion=45 ;;
5430     1.2) cfversion=46 ;;
5431     1.3) cfversion=47 ;;
5432     1.4) cfversion=48 ;;
5433     1.5) cfversion=49 ;;
5434     1.6) cfversion=50 ;;
5435     *) as_fn_error $? "invalid target-version argument to gt_JAVACOMP: $target_version" "$LINENO" 5 ;;
5436   esac
5437   # Function to output the classfile version of a file (8th byte) in decimal.
5438   if od -A x < /dev/null >/dev/null 2>/dev/null; then
5439     # Use POSIX od.
5440     func_classfile_version ()
5441     {
5442       od -A n -t d1 -j 7 -N 1 "$1"
5443     }
5444   else
5445     # Use BSD hexdump.
5446     func_classfile_version ()
5447     {
5448       dd if="$1" bs=1 count=1 skip=7 2>/dev/null | hexdump -e '1/1 "%3d "'
5449       echo
5450     }
5451   fi
5452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java compiler" >&5
5453 $as_echo_n "checking for Java compiler... " >&6; }
5454                                                                                         CONF_JAVAC=
5455   HAVE_JAVAC_ENVVAR=
5456   HAVE_GCJ_C=
5457   HAVE_JAVAC=
5458   HAVE_JIKES=
5459   HAVE_JAVACOMP=
5460   cat > conftestlib.java <<EOF
5461 public class conftestlib {
5462   public static void main (String[] args) {
5463   }
5464 }
5465 EOF
5466   echo "$goodcode" > conftest.java
5467   echo "$failcode" > conftestfail.java
5468         if test -n "$JAVAC"; then
5469         if $JAVAC --version 2>/dev/null | sed -e 1q | grep gcj > /dev/null; then
5470             if $JAVAC --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
5471                         rm -f conftest.class
5472         if { echo "$as_me:5472: $JAVAC -d . conftest.java" >&5
5473              $JAVAC -d . conftest.java >&5 2>&1
5474            } \
5475            && test -f conftest.class \
5476            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5477                     rm -f conftest.class
5478           rm -f conftestfail.class
5479           if { echo "$as_me:5479: $JAVAC -fsource=$source_version -d . conftest.java" >&5
5480                $JAVAC -fsource="$source_version" -d . conftest.java >&5 2>&1
5481              } \
5482              && test -f conftest.class \
5483              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5484              && { echo "$as_me:5484: $JAVAC -d . conftestfail.java" >&5
5485                   $JAVAC -d . conftestfail.java >&5 2>&1
5486                 } \
5487              && test -f conftestfail.class \
5488              && ! { echo "$as_me:5488: $JAVAC -fsource=$source_version -d . conftestfail.java" >&5
5489                     $JAVAC -fsource="$source_version" -d . conftestfail.java >&5 2>&1
5490                   }; then
5491             CONF_JAVAC="$JAVAC -fsource=$source_version"
5492             HAVE_JAVAC_ENVVAR=1
5493             HAVE_JAVACOMP=1
5494           else
5495             CONF_JAVAC="$JAVAC"
5496             HAVE_JAVAC_ENVVAR=1
5497             HAVE_JAVACOMP=1
5498           fi
5499         else
5500                     rm -f conftest.class
5501           rm -f conftestfail.class
5502           if { echo "$as_me:5502: $JAVAC -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
5503                $JAVAC -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
5504              } \
5505              && test -f conftest.class \
5506              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5507             CONF_JAVAC="$JAVAC -fsource=$source_version -ftarget=$target_version"
5508             HAVE_JAVAC_ENVVAR=1
5509             HAVE_JAVACOMP=1
5510           fi
5511         fi
5512       else
5513                 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
5514                     rm -f conftest.class
5515           if { echo "$as_me:5515: $JAVAC -d . conftest.java" >&5
5516                $JAVAC -d . conftest.java >&5 2>&1
5517              } \
5518              && test -f conftest.class; then
5519             CONF_JAVAC="$JAVAC"
5520             HAVE_JAVAC_ENVVAR=1
5521             HAVE_JAVACOMP=1
5522           fi
5523         else
5524           if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
5525                                     javac_works=
5526             rm -f conftest.class
5527             if { echo "$as_me:5527: $JAVAC -d . conftest.java" >&5
5528                  $JAVAC -d . conftest.java >&5 2>&1
5529                } \
5530                && test -f conftest.class; then
5531               javac_works=1
5532             fi
5533             javac_noassert_works=
5534             rm -f conftest.class
5535             if { echo "$as_me:5535: $JAVAC -fno-assert -d . conftest.java" >&5
5536                  $JAVAC -fno-assert -d . conftest.java >&5 2>&1
5537                } \
5538                && test -f conftest.class; then
5539               javac_noassert_works=1
5540             fi
5541             if test -n "$javac_works" && test -n "$javac_noassert_works"; then
5542               rm -f conftestfail.class
5543               if { echo "$as_me:5543: $JAVAC -d . conftestfail.java" >&5
5544                    $JAVAC -d . conftestfail.java >&5 2>&1
5545                  } \
5546                  && test -f conftestfail.class \
5547                  && ! { echo "$as_me:5547: $JAVAC -fno-assert -d . conftestfail.java" >&5
5548                         $JAVAC -fno-assert -d . conftestfail.java >&5 2>&1
5549                       }; then
5550                                 javac_works=
5551               fi
5552             fi
5553             if test -n "$javac_works"; then
5554               CONF_JAVAC="$JAVAC"
5555               HAVE_JAVAC_ENVVAR=1
5556               HAVE_JAVACOMP=1
5557             else
5558               if test -n "$javac_noassert_works"; then
5559                 CONF_JAVAC="$JAVAC -fno-assert"
5560                 HAVE_JAVAC_ENVVAR=1
5561                 HAVE_JAVACOMP=1
5562               fi
5563             fi
5564           fi
5565         fi
5566       fi
5567     else
5568                   rm -f conftest.class
5569       if { echo "$as_me:5569: $JAVAC -d . conftest.java" >&5
5570            $JAVAC -d . conftest.java >&5 2>&1
5571          } \
5572          && test -f conftest.class \
5573          && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5574                 rm -f conftest.class
5575         rm -f conftestfail.class
5576         if { echo "$as_me:5576: $JAVAC -source $source_version -d . conftest.java" >&5
5577              $JAVAC -source "$source_version" -d . conftest.java >&5 2>&1
5578            } \
5579            && test -f conftest.class \
5580            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5581            && { echo "$as_me:5581: $JAVAC -d . conftestfail.java" >&5
5582                 $JAVAC -d . conftestfail.java >&5 2>&1
5583               } \
5584            && test -f conftestfail.class \
5585            && ! { echo "$as_me:5585: $JAVAC -source $source_version -d . conftestfail.java" >&5
5586                   $JAVAC -source "$source_version" -d . conftestfail.java >&5 2>&1
5587                 }; then
5588           CONF_JAVAC="$JAVAC -source $source_version"
5589           HAVE_JAVAC_ENVVAR=1
5590           HAVE_JAVACOMP=1
5591         else
5592           CONF_JAVAC="$JAVAC"
5593           HAVE_JAVAC_ENVVAR=1
5594           HAVE_JAVACOMP=1
5595         fi
5596       else
5597                         rm -f conftest.class
5598         if { echo "$as_me:5598: $JAVAC -target $target_version -d . conftest.java" >&5
5599              $JAVAC -target "$target_version" -d . conftest.java >&5 2>&1
5600            } \
5601            && test -f conftest.class \
5602            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5603                     rm -f conftest.class
5604           rm -f conftestfail.class
5605           if { echo "$as_me:5605: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
5606                $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
5607              } \
5608              && test -f conftest.class \
5609              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5610              && { echo "$as_me:5610: $JAVAC -target $target_version -d . conftestfail.java" >&5
5611                   $JAVAC -target "$target_version" -d . conftestfail.java >&5 2>&1
5612                 } \
5613              && test -f conftestfail.class \
5614              && ! { echo "$as_me:5614: $JAVAC -target $target_version -source $source_version -d . conftestfail.java" >&5
5615                     $JAVAC -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
5616                   }; then
5617             CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
5618             HAVE_JAVAC_ENVVAR=1
5619             HAVE_JAVACOMP=1
5620           else
5621             CONF_JAVAC="$JAVAC -target $target_version"
5622             HAVE_JAVAC_ENVVAR=1
5623             HAVE_JAVACOMP=1
5624           fi
5625         else
5626                                         rm -f conftest.class
5627           if { echo "$as_me:5627: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
5628                $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
5629              } \
5630              && test -f conftest.class \
5631              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5632             CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
5633             HAVE_JAVAC_ENVVAR=1
5634             HAVE_JAVACOMP=1
5635           fi
5636         fi
5637       fi
5638     fi
5639   fi
5640   if test -z "$HAVE_JAVACOMP"; then
5641                 # Extract the first word of "gcj", so it can be a program name with args.
5642 set dummy gcj; ac_word=$2
5643 :
5644 if ${ac_cv_prog_HAVE_GCJ_IN_PATH+:} false; then :
5645   $as_echo_n "(cached) " >&6
5646 else
5647   if test -n "$HAVE_GCJ_IN_PATH"; then
5648   ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the test.
5649 else
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 for as_dir in $PATH
5652 do
5653   IFS=$as_save_IFS
5654   test -z "$as_dir" && as_dir=.
5655     for ac_exec_ext in '' $ac_executable_extensions; do
5656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5657     ac_cv_prog_HAVE_GCJ_IN_PATH="yes"
5658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5659     break 2
5660   fi
5661 done
5662   done
5663 IFS=$as_save_IFS
5664
5665 fi
5666 fi
5667 HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH
5668 if test -n "$HAVE_GCJ_IN_PATH"; then
5669   :
5670 else
5671   :
5672 fi
5673
5674
5675     # Extract the first word of "javac", so it can be a program name with args.
5676 set dummy javac; ac_word=$2
5677 :
5678 if ${ac_cv_prog_HAVE_JAVAC_IN_PATH+:} false; then :
5679   $as_echo_n "(cached) " >&6
5680 else
5681   if test -n "$HAVE_JAVAC_IN_PATH"; then
5682   ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override the test.
5683 else
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5686 do
5687   IFS=$as_save_IFS
5688   test -z "$as_dir" && as_dir=.
5689     for ac_exec_ext in '' $ac_executable_extensions; do
5690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691     ac_cv_prog_HAVE_JAVAC_IN_PATH="yes"
5692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693     break 2
5694   fi
5695 done
5696   done
5697 IFS=$as_save_IFS
5698
5699 fi
5700 fi
5701 HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH
5702 if test -n "$HAVE_JAVAC_IN_PATH"; then
5703   :
5704 else
5705   :
5706 fi
5707
5708
5709     # Extract the first word of "jikes", so it can be a program name with args.
5710 set dummy jikes; ac_word=$2
5711 :
5712 if ${ac_cv_prog_HAVE_JIKES_IN_PATH+:} false; then :
5713   $as_echo_n "(cached) " >&6
5714 else
5715   if test -n "$HAVE_JIKES_IN_PATH"; then
5716   ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override the test.
5717 else
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 for as_dir in $PATH
5720 do
5721   IFS=$as_save_IFS
5722   test -z "$as_dir" && as_dir=.
5723     for ac_exec_ext in '' $ac_executable_extensions; do
5724   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5725     ac_cv_prog_HAVE_JIKES_IN_PATH="yes"
5726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727     break 2
5728   fi
5729 done
5730   done
5731 IFS=$as_save_IFS
5732
5733 fi
5734 fi
5735 HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH
5736 if test -n "$HAVE_JIKES_IN_PATH"; then
5737   :
5738 else
5739   :
5740 fi
5741
5742
5743                 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_GCJ_IN_PATH"; then
5744             if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[01]/d' | grep '^[3-9]' >/dev/null; then
5745                 if { echo "$as_me:5745: gcj -C -d . conftestlib.java" >&5
5746              gcj -C -d . conftestlib.java >&5 2>&1
5747            }; then
5748                     if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
5749                                     rm -f conftest.class
5750             if { echo "$as_me:5750: gcj -C -d . conftest.java" >&5
5751                  gcj -C -d . conftest.java >&5 2>&1
5752                } \
5753                && test -f conftest.class \
5754                && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5755                             rm -f conftest.class
5756               rm -f conftestfail.class
5757               if { echo "$as_me:5757: gcj -C -fsource=$source_version -d . conftest.java" >&5
5758                    gcj -C -fsource="$source_version" -d . conftest.java >&5 2>&1
5759                  } \
5760                  && test -f conftest.class \
5761                  && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5762                  && { echo "$as_me:5762: gcj -C -d . conftestfail.java" >&5
5763                       gcj -C -d . conftestfail.java >&5 2>&1
5764                     } \
5765                  && test -f conftestfail.class \
5766                  && ! { echo "$as_me:5766: gcj -C -fsource=$source_version -d . conftestfail.java" >&5
5767                         gcj -C -fsource="$source_version" -d . conftestfail.java >&5 2>&1
5768                       }; then
5769                 CONF_JAVAC="gcj -C -fsource=$source_version"
5770                 HAVE_JAVAC_ENVVAR=1
5771                 HAVE_JAVACOMP=1
5772               else
5773                 CONF_JAVAC="gcj -C"
5774                 HAVE_JAVAC_ENVVAR=1
5775                 HAVE_JAVACOMP=1
5776               fi
5777             else
5778                             rm -f conftest.class
5779               rm -f conftestfail.class
5780               if { echo "$as_me:5780: gcj -C -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
5781                    gcj -C -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
5782                  } \
5783                  && test -f conftest.class \
5784                  && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5785                 CONF_JAVAC="gcj -C -fsource=$source_version -ftarget=$target_version"
5786                 HAVE_JAVAC_ENVVAR=1
5787                 HAVE_JAVACOMP=1
5788               fi
5789             fi
5790           else
5791                                                 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
5792               rm -f conftest.class
5793               if { echo "$as_me:5793: gcj -C -d . conftest.java" >&5
5794                    gcj -C -d . conftest.java >&5 2>&1
5795                  } \
5796                  && test -f conftest.class; then
5797                 CONF_JAVAC="gcj -C"
5798                 HAVE_GCJ_C=1
5799                 HAVE_JAVACOMP=1
5800               fi
5801             else
5802               if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
5803                                                 rm -f conftest.class
5804                 if { echo "$as_me:5804: gcj -C -fno-assert -d . conftest.java" >&5
5805                      gcj -C -fno-assert -d . conftest.java >&5 2>&1
5806                    } \
5807                    && test -f conftest.class; then
5808                   CONF_JAVAC="gcj -C -fno-assert"
5809                   HAVE_GCJ_C=1
5810                   HAVE_JAVACOMP=1
5811                 else
5812                   rm -f conftest.class
5813                   if { echo "$as_me:5813: gcj -C -d . conftest.java" >&5
5814                        gcj -C -d . conftest.java >&5 2>&1
5815                      } \
5816                      && test -f conftest.class; then
5817                     CONF_JAVAC="gcj -C"
5818                     HAVE_GCJ_C=1
5819                     HAVE_JAVACOMP=1
5820                   fi
5821                 fi
5822               fi
5823             fi
5824           fi
5825         fi
5826       fi
5827     fi
5828     if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JAVAC_IN_PATH"; then
5829             if { javac -version >/dev/null 2>/dev/null || test $? -le 2; } \
5830          && ( if javac -help 2>&1 >/dev/null | grep at.dms.kjc.Main >/dev/null && javac -help 2>/dev/null | grep 'released.*2000' >/dev/null ; then exit 1; else exit 0; fi ); then
5831                                 rm -f conftest.class
5832         if { echo "$as_me:5832: javac -d . conftest.java" >&5
5833              javac -d . conftest.java >&5 2>&1
5834            } \
5835            && test -f conftest.class \
5836            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5837                     rm -f conftest.class
5838           rm -f conftestfail.class
5839           if { echo "$as_me:5839: javac -source $source_version -d . conftest.java" >&5
5840                javac -source "$source_version" -d . conftest.java >&5 2>&1
5841              } \
5842              && test -f conftest.class \
5843              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5844              && { echo "$as_me:5844: javac -d . conftestfail.java" >&5
5845                   javac -d . conftestfail.java >&5 2>&1
5846                 } \
5847              && test -f conftestfail.class \
5848              && ! { echo "$as_me:5848: javac -source $source_version -d . conftestfail.java" >&5
5849                     javac -source "$source_version" -d . conftestfail.java >&5 2>&1
5850                   }; then
5851             CONF_JAVAC="javac -source $source_version"
5852             HAVE_JAVAC=1
5853             HAVE_JAVACOMP=1
5854           else
5855             CONF_JAVAC="javac"
5856             HAVE_JAVAC=1
5857             HAVE_JAVACOMP=1
5858           fi
5859         else
5860                               rm -f conftest.class
5861           if { echo "$as_me:5861: javac -target $target_version -d . conftest.java" >&5
5862                javac -target "$target_version" -d . conftest.java >&5 2>&1
5863              } \
5864              && test -f conftest.class \
5865              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5866                         rm -f conftest.class
5867             rm -f conftestfail.class
5868             if { echo "$as_me:5868: javac -target $target_version -source $source_version -d . conftest.java" >&5
5869                  javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
5870                } \
5871                && test -f conftest.class \
5872                && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5873                && { echo "$as_me:5873: javac -target $target_version -d . conftestfail.java" >&5
5874                     javac -target "$target_version" -d . conftestfail.java >&5 2>&1
5875                   } \
5876                && test -f conftestfail.class \
5877                && ! { echo "$as_me:5877: javac -target $target_version -source $source_version -d . conftestfail.java" >&5
5878                       javac -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
5879                     }; then
5880               CONF_JAVAC="javac -target $target_version -source $source_version"
5881               HAVE_JAVAC=1
5882               HAVE_JAVACOMP=1
5883             else
5884               CONF_JAVAC="javac -target $target_version"
5885               HAVE_JAVAC=1
5886               HAVE_JAVACOMP=1
5887             fi
5888           else
5889                                                 rm -f conftest.class
5890             if { echo "$as_me:5890: javac -target $target_version -source $source_version -d . conftest.java" >&5
5891                  javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
5892                } \
5893                && test -f conftest.class \
5894                && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5895               CONF_JAVAC="javac -target $target_version -source $source_version"
5896               HAVE_JAVAC=1
5897               HAVE_JAVACOMP=1
5898             fi
5899           fi
5900         fi
5901       fi
5902     fi
5903     if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JIKES_IN_PATH"; then
5904             if { jikes >/dev/null 2>/dev/null || test $? = 1; } \
5905          && (
5906               # See if the existing CLASSPATH is sufficient to make jikes work.
5907               unset JAVA_HOME
5908               jikes conftestlib.java >&5 2>&1
5909               error=$?
5910               rm -f conftestlib.class
5911               exit $error
5912             ); then
5913                                 if test "$source_version" = 1.3; then
5914           CONF_JAVAC="jikes"
5915           HAVE_JIKES=1
5916           HAVE_JAVACOMP=1
5917         fi
5918       fi
5919     fi
5920   fi
5921   rm -f conftest*.java conftest*.class
5922   if test -n "$HAVE_JAVACOMP"; then
5923     ac_result="$CONF_JAVAC"
5924   else
5925     ac_result="no"
5926   fi
5927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
5928 $as_echo "$ac_result" >&6; }
5929
5930
5931
5932
5933
5934
5935
5936
5937 # Extract the first word of "jar", so it can be a program name with args.
5938 set dummy jar; ac_word=$2
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940 $as_echo_n "checking for $ac_word... " >&6; }
5941 if ${ac_cv_prog_JAR+:} false; then :
5942   $as_echo_n "(cached) " >&6
5943 else
5944   if test -n "$JAR"; then
5945   ac_cv_prog_JAR="$JAR" # Let the user override the test.
5946 else
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH
5949 do
5950   IFS=$as_save_IFS
5951   test -z "$as_dir" && as_dir=.
5952     for ac_exec_ext in '' $ac_executable_extensions; do
5953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5954     ac_cv_prog_JAR="jar"
5955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5956     break 2
5957   fi
5958 done
5959   done
5960 IFS=$as_save_IFS
5961
5962 fi
5963 fi
5964 JAR=$ac_cv_prog_JAR
5965 if test -n "$JAR"; then
5966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5967 $as_echo "$JAR" >&6; }
5968 else
5969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5971 fi
5972
5973
5974 if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then
5975   BUILDJAVA=yes
5976 else
5977   BUILDJAVA=no
5978 fi
5979
5980
5981
5982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred C# implementation" >&5
5983 $as_echo_n "checking for preferred C# implementation... " >&6; }
5984   # Check whether --enable-csharp was given.
5985 if test "${enable_csharp+set}" = set; then :
5986   enableval=$enable_csharp; CSHARP_CHOICE="$enableval"
5987 else
5988   CSHARP_CHOICE=any
5989 fi
5990
5991
5992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARP_CHOICE" >&5
5993 $as_echo "$CSHARP_CHOICE" >&6; }
5994   case "$CSHARP_CHOICE" in
5995     pnet)
5996
5997 $as_echo "#define CSHARP_CHOICE_PNET 1" >>confdefs.h
5998
5999       ;;
6000     mono)
6001
6002 $as_echo "#define CSHARP_CHOICE_MONO 1" >>confdefs.h
6003
6004       ;;
6005   esac
6006
6007
6008
6009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# compiler" >&5
6010 $as_echo_n "checking for C# compiler... " >&6; }
6011   HAVE_CSHARPCOMP=1
6012         # Extract the first word of "cscc", so it can be a program name with args.
6013 set dummy cscc; ac_word=$2
6014 :
6015 if ${ac_cv_prog_HAVE_CSCC_IN_PATH+:} false; then :
6016   $as_echo_n "(cached) " >&6
6017 else
6018   if test -n "$HAVE_CSCC_IN_PATH"; then
6019   ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test.
6020 else
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 for as_dir in $PATH
6023 do
6024   IFS=$as_save_IFS
6025   test -z "$as_dir" && as_dir=.
6026     for ac_exec_ext in '' $ac_executable_extensions; do
6027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028     ac_cv_prog_HAVE_CSCC_IN_PATH="yes"
6029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030     break 2
6031   fi
6032 done
6033   done
6034 IFS=$as_save_IFS
6035
6036 fi
6037 fi
6038 HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH
6039 if test -n "$HAVE_CSCC_IN_PATH"; then
6040   :
6041 else
6042   :
6043 fi
6044
6045
6046   # Extract the first word of "mcs", so it can be a program name with args.
6047 set dummy mcs; ac_word=$2
6048 :
6049 if ${ac_cv_prog_HAVE_MCS_IN_PATH+:} false; then :
6050   $as_echo_n "(cached) " >&6
6051 else
6052   if test -n "$HAVE_MCS_IN_PATH"; then
6053   ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test.
6054 else
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058   IFS=$as_save_IFS
6059   test -z "$as_dir" && as_dir=.
6060     for ac_exec_ext in '' $ac_executable_extensions; do
6061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6062     ac_cv_prog_HAVE_MCS_IN_PATH="yes"
6063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6064     break 2
6065   fi
6066 done
6067   done
6068 IFS=$as_save_IFS
6069
6070 fi
6071 fi
6072 HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH
6073 if test -n "$HAVE_MCS_IN_PATH"; then
6074   :
6075 else
6076   :
6077 fi
6078
6079
6080   # Extract the first word of "csc", so it can be a program name with args.
6081 set dummy csc; ac_word=$2
6082 :
6083 if ${ac_cv_prog_HAVE_CSC_IN_PATH+:} false; then :
6084   $as_echo_n "(cached) " >&6
6085 else
6086   if test -n "$HAVE_CSC_IN_PATH"; then
6087   ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test.
6088 else
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6091 do
6092   IFS=$as_save_IFS
6093   test -z "$as_dir" && as_dir=.
6094     for ac_exec_ext in '' $ac_executable_extensions; do
6095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6096     ac_cv_prog_HAVE_CSC_IN_PATH="yes"
6097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098     break 2
6099   fi
6100 done
6101   done
6102 IFS=$as_save_IFS
6103
6104 fi
6105 fi
6106 HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH
6107 if test -n "$HAVE_CSC_IN_PATH"; then
6108   :
6109 else
6110   :
6111 fi
6112
6113
6114         for impl in "$CSHARP_CHOICE" pnet mono sscli no; do
6115     case "$impl" in
6116       pnet)
6117         if test -n "$HAVE_CSCC_IN_PATH" \
6118            && cscc --version >/dev/null 2>/dev/null \
6119            && (
6120              # See if pnetlib is well installed.
6121              echo 'class ConfTest { static void Main() { } }' > conftest.cs
6122              cscc -o conftest.exe conftest.cs 2>/dev/null
6123              error=$?
6124              rm -f conftest.cs conftest.exe
6125              exit $error
6126             ); then
6127           HAVE_CSCC=1
6128           ac_result="cscc"
6129           break
6130         fi
6131         ;;
6132       mono)
6133         if test -n "$HAVE_MCS_IN_PATH" \
6134            && mcs --version >/dev/null 2>/dev/null \
6135            && mcs --version 2>/dev/null | grep Mono >/dev/null; then
6136           HAVE_MCS=1
6137           ac_result="mcs"
6138           break
6139         fi
6140         ;;
6141       sscli)
6142         if test -n "$HAVE_CSC_IN_PATH" \
6143            && csc -help >/dev/null 2>/dev/null \
6144            && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then
6145           HAVE_CSC=1
6146           ac_result="csc"
6147           break
6148         fi
6149         ;;
6150       no)
6151         HAVE_CSHARPCOMP=
6152         ac_result="no"
6153         break
6154         ;;
6155     esac
6156   done
6157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
6158 $as_echo "$ac_result" >&6; }
6159
6160
6161
6162     if test -z "${CSHARPCOMPFLAGS+set}"; then
6163     CSHARPCOMPFLAGS="-O -g"
6164   fi
6165
6166
6167 if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then
6168   BUILDCSHARP=yes
6169 else
6170   BUILDCSHARP=no
6171 fi
6172
6173
6174 # Make sure we can run config.sub.
6175 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6176   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6177
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6179 $as_echo_n "checking build system type... " >&6; }
6180 if ${ac_cv_build+:} false; then :
6181   $as_echo_n "(cached) " >&6
6182 else
6183   ac_build_alias=$build_alias
6184 test "x$ac_build_alias" = x &&
6185   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6186 test "x$ac_build_alias" = x &&
6187   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6188 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6189   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6190
6191 fi
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6193 $as_echo "$ac_cv_build" >&6; }
6194 case $ac_cv_build in
6195 *-*-*) ;;
6196 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6197 esac
6198 build=$ac_cv_build
6199 ac_save_IFS=$IFS; IFS='-'
6200 set x $ac_cv_build
6201 shift
6202 build_cpu=$1
6203 build_vendor=$2
6204 shift; shift
6205 # Remember, the first character of IFS is used to create $*,
6206 # except with old shells:
6207 build_os=$*
6208 IFS=$ac_save_IFS
6209 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6210
6211
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6213 $as_echo_n "checking host system type... " >&6; }
6214 if ${ac_cv_host+:} false; then :
6215   $as_echo_n "(cached) " >&6
6216 else
6217   if test "x$host_alias" = x; then
6218   ac_cv_host=$ac_cv_build
6219 else
6220   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6221     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6222 fi
6223
6224 fi
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6226 $as_echo "$ac_cv_host" >&6; }
6227 case $ac_cv_host in
6228 *-*-*) ;;
6229 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6230 esac
6231 host=$ac_cv_host
6232 ac_save_IFS=$IFS; IFS='-'
6233 set x $ac_cv_host
6234 shift
6235 host_cpu=$1
6236 host_vendor=$2
6237 shift; shift
6238 # Remember, the first character of IFS is used to create $*,
6239 # except with old shells:
6240 host_os=$*
6241 IFS=$ac_save_IFS
6242 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6243
6244
6245
6246
6247
6248
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6250 $as_echo_n "checking for ANSI C header files... " >&6; }
6251 if ${ac_cv_header_stdc+:} false; then :
6252   $as_echo_n "(cached) " >&6
6253 else
6254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h.  */
6256 #include <stdlib.h>
6257 #include <stdarg.h>
6258 #include <string.h>
6259 #include <float.h>
6260
6261 int
6262 main ()
6263 {
6264
6265   ;
6266   return 0;
6267 }
6268 _ACEOF
6269 if ac_fn_c_try_compile "$LINENO"; then :
6270   ac_cv_header_stdc=yes
6271 else
6272   ac_cv_header_stdc=no
6273 fi
6274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6275
6276 if test $ac_cv_header_stdc = yes; then
6277   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h.  */
6280 #include <string.h>
6281
6282 _ACEOF
6283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6284   $EGREP "memchr" >/dev/null 2>&1; then :
6285
6286 else
6287   ac_cv_header_stdc=no
6288 fi
6289 rm -f conftest*
6290
6291 fi
6292
6293 if test $ac_cv_header_stdc = yes; then
6294   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h.  */
6297 #include <stdlib.h>
6298
6299 _ACEOF
6300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6301   $EGREP "free" >/dev/null 2>&1; then :
6302
6303 else
6304   ac_cv_header_stdc=no
6305 fi
6306 rm -f conftest*
6307
6308 fi
6309
6310 if test $ac_cv_header_stdc = yes; then
6311   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6312   if test "$cross_compiling" = yes; then :
6313   :
6314 else
6315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h.  */
6317 #include <ctype.h>
6318 #include <stdlib.h>
6319 #if ((' ' & 0x0FF) == 0x020)
6320 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6321 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6322 #else
6323 # define ISLOWER(c) \
6324                    (('a' <= (c) && (c) <= 'i') \
6325                      || ('j' <= (c) && (c) <= 'r') \
6326                      || ('s' <= (c) && (c) <= 'z'))
6327 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6328 #endif
6329
6330 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6331 int
6332 main ()
6333 {
6334   int i;
6335   for (i = 0; i < 256; i++)
6336     if (XOR (islower (i), ISLOWER (i))
6337         || toupper (i) != TOUPPER (i))
6338       return 2;
6339   return 0;
6340 }
6341 _ACEOF
6342 if ac_fn_c_try_run "$LINENO"; then :
6343
6344 else
6345   ac_cv_header_stdc=no
6346 fi
6347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6348   conftest.$ac_objext conftest.beam conftest.$ac_ext
6349 fi
6350
6351 fi
6352 fi
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6354 $as_echo "$ac_cv_header_stdc" >&6; }
6355 if test $ac_cv_header_stdc = yes; then
6356
6357 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6358
6359 fi
6360
6361 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6362 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6363                   inttypes.h stdint.h unistd.h
6364 do :
6365   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6366 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6367 "
6368 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6369   cat >>confdefs.h <<_ACEOF
6370 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6371 _ACEOF
6372
6373 fi
6374
6375 done
6376
6377
6378
6379   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6380 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6381   MINIX=yes
6382 else
6383   MINIX=
6384 fi
6385
6386
6387   if test "$MINIX" = yes; then
6388
6389 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6390
6391
6392 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6393
6394
6395 $as_echo "#define _MINIX 1" >>confdefs.h
6396
6397
6398 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6399
6400   fi
6401
6402
6403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6404 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6405 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6406   $as_echo_n "(cached) " >&6
6407 else
6408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h.  */
6410
6411 #         define __EXTENSIONS__ 1
6412           $ac_includes_default
6413 int
6414 main ()
6415 {
6416
6417   ;
6418   return 0;
6419 }
6420 _ACEOF
6421 if ac_fn_c_try_compile "$LINENO"; then :
6422   ac_cv_safe_to_define___extensions__=yes
6423 else
6424   ac_cv_safe_to_define___extensions__=no
6425 fi
6426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6427 fi
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6429 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6430   test $ac_cv_safe_to_define___extensions__ = yes &&
6431     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6432
6433   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6434
6435   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6436
6437   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6438
6439   $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
6440
6441   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6442
6443   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6444
6445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6446 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6447 if ${ac_cv_should_define__xopen_source+:} false; then :
6448   $as_echo_n "(cached) " >&6
6449 else
6450   ac_cv_should_define__xopen_source=no
6451      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h.  */
6453
6454           #include <wchar.h>
6455           mbstate_t x;
6456 int
6457 main ()
6458 {
6459
6460   ;
6461   return 0;
6462 }
6463 _ACEOF
6464 if ac_fn_c_try_compile "$LINENO"; then :
6465
6466 else
6467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h.  */
6469
6470              #define _XOPEN_SOURCE 500
6471              #include <wchar.h>
6472              mbstate_t x;
6473 int
6474 main ()
6475 {
6476
6477   ;
6478   return 0;
6479 }
6480 _ACEOF
6481 if ac_fn_c_try_compile "$LINENO"; then :
6482   ac_cv_should_define__xopen_source=yes
6483 fi
6484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485 fi
6486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6487 fi
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6489 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6490   test $ac_cv_should_define__xopen_source = yes &&
6491     $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6504 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6505 if ${gl_cv_c_amsterdam_compiler+:} false; then :
6506   $as_echo_n "(cached) " >&6
6507 else
6508
6509       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510 /* end confdefs.h.  */
6511
6512 #ifdef __ACK__
6513 Amsterdam
6514 #endif
6515
6516 _ACEOF
6517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6518   $EGREP "Amsterdam" >/dev/null 2>&1; then :
6519   gl_cv_c_amsterdam_compiler=yes
6520 else
6521   gl_cv_c_amsterdam_compiler=no
6522 fi
6523 rm -f conftest*
6524
6525
6526 fi
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6528 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6529
6530       if test $gl_cv_c_amsterdam_compiler = yes; then
6531     if test -z "$AR"; then
6532       AR='cc -c.a'
6533     fi
6534     if test -z "$ARFLAGS"; then
6535       ARFLAGS='-o'
6536     fi
6537   else
6538                                         if test -n "$ac_tool_prefix"; then
6539   for ac_prog in ar lib "link -lib"
6540   do
6541     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if ${ac_cv_prog_AR+:} false; then :
6546   $as_echo_n "(cached) " >&6
6547 else
6548   if test -n "$AR"; then
6549   ac_cv_prog_AR="$AR" # Let the user override the test.
6550 else
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH
6553 do
6554   IFS=$as_save_IFS
6555   test -z "$as_dir" && as_dir=.
6556     for ac_exec_ext in '' $ac_executable_extensions; do
6557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6558     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6560     break 2
6561   fi
6562 done
6563   done
6564 IFS=$as_save_IFS
6565
6566 fi
6567 fi
6568 AR=$ac_cv_prog_AR
6569 if test -n "$AR"; then
6570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6571 $as_echo "$AR" >&6; }
6572 else
6573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6575 fi
6576
6577
6578     test -n "$AR" && break
6579   done
6580 fi
6581 if test -z "$AR"; then
6582   ac_ct_AR=$AR
6583   for ac_prog in ar lib "link -lib"
6584 do
6585   # Extract the first word of "$ac_prog", so it can be a program name with args.
6586 set dummy $ac_prog; ac_word=$2
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6590   $as_echo_n "(cached) " >&6
6591 else
6592   if test -n "$ac_ct_AR"; then
6593   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6594 else
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598   IFS=$as_save_IFS
6599   test -z "$as_dir" && as_dir=.
6600     for ac_exec_ext in '' $ac_executable_extensions; do
6601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6602     ac_cv_prog_ac_ct_AR="$ac_prog"
6603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604     break 2
6605   fi
6606 done
6607   done
6608 IFS=$as_save_IFS
6609
6610 fi
6611 fi
6612 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6613 if test -n "$ac_ct_AR"; then
6614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6615 $as_echo "$ac_ct_AR" >&6; }
6616 else
6617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 $as_echo "no" >&6; }
6619 fi
6620
6621
6622   test -n "$ac_ct_AR" && break
6623 done
6624
6625   if test "x$ac_ct_AR" = x; then
6626     AR="false"
6627   else
6628     case $cross_compiling:$ac_tool_warned in
6629 yes:)
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6632 ac_tool_warned=yes ;;
6633 esac
6634     AR=$ac_ct_AR
6635   fi
6636 fi
6637
6638 : ${AR=ar}
6639
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6641 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
6642 if ${am_cv_ar_interface+:} false; then :
6643   $as_echo_n "(cached) " >&6
6644 else
6645   ac_ext=c
6646 ac_cpp='$CPP $CPPFLAGS'
6647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6650
6651    am_cv_ar_interface=ar
6652    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h.  */
6654 int some_variable = 0;
6655 _ACEOF
6656 if ac_fn_c_try_compile "$LINENO"; then :
6657   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6658       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6659   (eval $am_ar_try) 2>&5
6660   ac_status=$?
6661   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6662   test $ac_status = 0; }
6663       if test "$ac_status" -eq 0; then
6664         am_cv_ar_interface=ar
6665       else
6666         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6667         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6668   (eval $am_ar_try) 2>&5
6669   ac_status=$?
6670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6671   test $ac_status = 0; }
6672         if test "$ac_status" -eq 0; then
6673           am_cv_ar_interface=lib
6674         else
6675           am_cv_ar_interface=unknown
6676         fi
6677       fi
6678       rm -f conftest.lib libconftest.a
6679
6680 fi
6681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6682    ac_ext=c
6683 ac_cpp='$CPP $CPPFLAGS'
6684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6687
6688 fi
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6690 $as_echo "$am_cv_ar_interface" >&6; }
6691
6692 case $am_cv_ar_interface in
6693 ar)
6694   ;;
6695 lib)
6696   # Microsoft lib, so override with the ar-lib wrapper script.
6697   # FIXME: It is wrong to rewrite AR.
6698   # But if we don't then we get into trouble of one sort or another.
6699   # A longer-term fix would be to have automake use am__AR in this case,
6700   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6701   # similar.
6702   AR="$am_aux_dir/ar-lib $AR"
6703   ;;
6704 unknown)
6705   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6706   ;;
6707 esac
6708
6709   fi
6710
6711         if test -n "$ac_tool_prefix"; then
6712   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6713 set dummy ${ac_tool_prefix}ar; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if ${ac_cv_prog_AR+:} false; then :
6717   $as_echo_n "(cached) " >&6
6718 else
6719   if test -n "$AR"; then
6720   ac_cv_prog_AR="$AR" # Let the user override the test.
6721 else
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6724 do
6725   IFS=$as_save_IFS
6726   test -z "$as_dir" && as_dir=.
6727     for ac_exec_ext in '' $ac_executable_extensions; do
6728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729     ac_cv_prog_AR="${ac_tool_prefix}ar"
6730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6731     break 2
6732   fi
6733 done
6734   done
6735 IFS=$as_save_IFS
6736
6737 fi
6738 fi
6739 AR=$ac_cv_prog_AR
6740 if test -n "$AR"; then
6741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6742 $as_echo "$AR" >&6; }
6743 else
6744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6746 fi
6747
6748
6749 fi
6750 if test -z "$ac_cv_prog_AR"; then
6751   ac_ct_AR=$AR
6752   # Extract the first word of "ar", so it can be a program name with args.
6753 set dummy ar; ac_word=$2
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 $as_echo_n "checking for $ac_word... " >&6; }
6756 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6757   $as_echo_n "(cached) " >&6
6758 else
6759   if test -n "$ac_ct_AR"; then
6760   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6761 else
6762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 for as_dir in $PATH
6764 do
6765   IFS=$as_save_IFS
6766   test -z "$as_dir" && as_dir=.
6767     for ac_exec_ext in '' $ac_executable_extensions; do
6768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769     ac_cv_prog_ac_ct_AR="ar"
6770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771     break 2
6772   fi
6773 done
6774   done
6775 IFS=$as_save_IFS
6776
6777 fi
6778 fi
6779 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6780 if test -n "$ac_ct_AR"; then
6781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6782 $as_echo "$ac_ct_AR" >&6; }
6783 else
6784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785 $as_echo "no" >&6; }
6786 fi
6787
6788   if test "x$ac_ct_AR" = x; then
6789     AR="ar"
6790   else
6791     case $cross_compiling:$ac_tool_warned in
6792 yes:)
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6795 ac_tool_warned=yes ;;
6796 esac
6797     AR=$ac_ct_AR
6798   fi
6799 else
6800   AR="$ac_cv_prog_AR"
6801 fi
6802
6803   if test -z "$ARFLAGS"; then
6804     ARFLAGS='cr'
6805   fi
6806
6807
6808
6809   if test -z "$RANLIB"; then
6810     if test $gl_cv_c_amsterdam_compiler = yes; then
6811       RANLIB=':'
6812     else
6813             if test -n "$ac_tool_prefix"; then
6814   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6815 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 $as_echo_n "checking for $ac_word... " >&6; }
6818 if ${ac_cv_prog_RANLIB+:} false; then :
6819   $as_echo_n "(cached) " >&6
6820 else
6821   if test -n "$RANLIB"; then
6822   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827   IFS=$as_save_IFS
6828   test -z "$as_dir" && as_dir=.
6829     for ac_exec_ext in '' $ac_executable_extensions; do
6830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6831     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833     break 2
6834   fi
6835 done
6836   done
6837 IFS=$as_save_IFS
6838
6839 fi
6840 fi
6841 RANLIB=$ac_cv_prog_RANLIB
6842 if test -n "$RANLIB"; then
6843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6844 $as_echo "$RANLIB" >&6; }
6845 else
6846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6848 fi
6849
6850
6851 fi
6852 if test -z "$ac_cv_prog_RANLIB"; then
6853   ac_ct_RANLIB=$RANLIB
6854   # Extract the first word of "ranlib", so it can be a program name with args.
6855 set dummy ranlib; ac_word=$2
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857 $as_echo_n "checking for $ac_word... " >&6; }
6858 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6859   $as_echo_n "(cached) " >&6
6860 else
6861   if test -n "$ac_ct_RANLIB"; then
6862   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6866 do
6867   IFS=$as_save_IFS
6868   test -z "$as_dir" && as_dir=.
6869     for ac_exec_ext in '' $ac_executable_extensions; do
6870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6871     ac_cv_prog_ac_ct_RANLIB="ranlib"
6872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6873     break 2
6874   fi
6875 done
6876   done
6877 IFS=$as_save_IFS
6878
6879 fi
6880 fi
6881 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6882 if test -n "$ac_ct_RANLIB"; then
6883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6884 $as_echo "$ac_ct_RANLIB" >&6; }
6885 else
6886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 $as_echo "no" >&6; }
6888 fi
6889
6890   if test "x$ac_ct_RANLIB" = x; then
6891     RANLIB=":"
6892   else
6893     case $cross_compiling:$ac_tool_warned in
6894 yes:)
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6897 ac_tool_warned=yes ;;
6898 esac
6899     RANLIB=$ac_ct_RANLIB
6900   fi
6901 else
6902   RANLIB="$ac_cv_prog_RANLIB"
6903 fi
6904
6905     fi
6906   fi
6907
6908
6909
6910 # Check whether --enable-largefile was given.
6911 if test "${enable_largefile+set}" = set; then :
6912   enableval=$enable_largefile;
6913 fi
6914
6915 if test "$enable_largefile" != no; then
6916
6917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6918 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6919 if ${ac_cv_sys_largefile_CC+:} false; then :
6920   $as_echo_n "(cached) " >&6
6921 else
6922   ac_cv_sys_largefile_CC=no
6923      if test "$GCC" != yes; then
6924        ac_save_CC=$CC
6925        while :; do
6926          # IRIX 6.2 and later do not support large files by default,
6927          # so use the C compiler's -n32 option if that helps.
6928          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h.  */
6930 #include <sys/types.h>
6931  /* Check that off_t can represent 2**63 - 1 correctly.
6932     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6933     since some C++ compilers masquerading as C compilers
6934     incorrectly reject 9223372036854775807.  */
6935 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6936   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6937                        && LARGE_OFF_T % 2147483647 == 1)
6938                       ? 1 : -1];
6939 int
6940 main ()
6941 {
6942
6943   ;
6944   return 0;
6945 }
6946 _ACEOF
6947          if ac_fn_c_try_compile "$LINENO"; then :
6948   break
6949 fi
6950 rm -f core conftest.err conftest.$ac_objext
6951          CC="$CC -n32"
6952          if ac_fn_c_try_compile "$LINENO"; then :
6953   ac_cv_sys_largefile_CC=' -n32'; break
6954 fi
6955 rm -f core conftest.err conftest.$ac_objext
6956          break
6957        done
6958        CC=$ac_save_CC
6959        rm -f conftest.$ac_ext
6960     fi
6961 fi
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6963 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6964   if test "$ac_cv_sys_largefile_CC" != no; then
6965     CC=$CC$ac_cv_sys_largefile_CC
6966   fi
6967
6968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6969 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6970 if ${ac_cv_sys_file_offset_bits+:} false; then :
6971   $as_echo_n "(cached) " >&6
6972 else
6973   while :; do
6974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h.  */
6976 #include <sys/types.h>
6977  /* Check that off_t can represent 2**63 - 1 correctly.
6978     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6979     since some C++ compilers masquerading as C compilers
6980     incorrectly reject 9223372036854775807.  */
6981 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6982   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6983                        && LARGE_OFF_T % 2147483647 == 1)
6984                       ? 1 : -1];
6985 int
6986 main ()
6987 {
6988
6989   ;
6990   return 0;
6991 }
6992 _ACEOF
6993 if ac_fn_c_try_compile "$LINENO"; then :
6994   ac_cv_sys_file_offset_bits=no; break
6995 fi
6996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h.  */
6999 #define _FILE_OFFSET_BITS 64
7000 #include <sys/types.h>
7001  /* Check that off_t can represent 2**63 - 1 correctly.
7002     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7003     since some C++ compilers masquerading as C compilers
7004     incorrectly reject 9223372036854775807.  */
7005 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7006   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7007                        && LARGE_OFF_T % 2147483647 == 1)
7008                       ? 1 : -1];
7009 int
7010 main ()
7011 {
7012
7013   ;
7014   return 0;
7015 }
7016 _ACEOF
7017 if ac_fn_c_try_compile "$LINENO"; then :
7018   ac_cv_sys_file_offset_bits=64; break
7019 fi
7020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7021   ac_cv_sys_file_offset_bits=unknown
7022   break
7023 done
7024 fi
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7026 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7027 case $ac_cv_sys_file_offset_bits in #(
7028   no | unknown) ;;
7029   *)
7030 cat >>confdefs.h <<_ACEOF
7031 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7032 _ACEOF
7033 ;;
7034 esac
7035 rm -rf conftest*
7036   if test $ac_cv_sys_file_offset_bits = unknown; then
7037     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7038 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7039 if ${ac_cv_sys_large_files+:} false; then :
7040   $as_echo_n "(cached) " >&6
7041 else
7042   while :; do
7043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044 /* end confdefs.h.  */
7045 #include <sys/types.h>
7046  /* Check that off_t can represent 2**63 - 1 correctly.
7047     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7048     since some C++ compilers masquerading as C compilers
7049     incorrectly reject 9223372036854775807.  */
7050 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7051   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7052                        && LARGE_OFF_T % 2147483647 == 1)
7053                       ? 1 : -1];
7054 int
7055 main ()
7056 {
7057
7058   ;
7059   return 0;
7060 }
7061 _ACEOF
7062 if ac_fn_c_try_compile "$LINENO"; then :
7063   ac_cv_sys_large_files=no; break
7064 fi
7065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h.  */
7068 #define _LARGE_FILES 1
7069 #include <sys/types.h>
7070  /* Check that off_t can represent 2**63 - 1 correctly.
7071     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7072     since some C++ compilers masquerading as C compilers
7073     incorrectly reject 9223372036854775807.  */
7074 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7075   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7076                        && LARGE_OFF_T % 2147483647 == 1)
7077                       ? 1 : -1];
7078 int
7079 main ()
7080 {
7081
7082   ;
7083   return 0;
7084 }
7085 _ACEOF
7086 if ac_fn_c_try_compile "$LINENO"; then :
7087   ac_cv_sys_large_files=1; break
7088 fi
7089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090   ac_cv_sys_large_files=unknown
7091   break
7092 done
7093 fi
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7095 $as_echo "$ac_cv_sys_large_files" >&6; }
7096 case $ac_cv_sys_large_files in #(
7097   no | unknown) ;;
7098   *)
7099 cat >>confdefs.h <<_ACEOF
7100 #define _LARGE_FILES $ac_cv_sys_large_files
7101 _ACEOF
7102 ;;
7103 esac
7104 rm -rf conftest*
7105   fi
7106
7107
7108 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
7109
7110 fi
7111
7112
7113
7114
7115
7116
7117   # Check whether --enable-threads was given.
7118 if test "${enable_threads+set}" = set; then :
7119   enableval=$enable_threads; gl_use_threads=$enableval
7120 else
7121   if test -n "$gl_use_threads_default"; then
7122        gl_use_threads="$gl_use_threads_default"
7123      else
7124        case "$host_os" in
7125                                                                osf*) gl_use_threads=no ;;
7126          cygwin*)
7127                case `uname -r` in
7128                  1.[0-5].*) gl_use_threads=no ;;
7129                  *)         gl_use_threads=yes ;;
7130                esac
7131                ;;
7132          *)    gl_use_threads=yes ;;
7133        esac
7134      fi
7135
7136 fi
7137
7138   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7139     # For using <pthread.h>:
7140     case "$host_os" in
7141       osf*)
7142         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7143         # groks <pthread.h>. cc also understands the flag -pthread, but
7144         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7145         # 2. putting a flag into CPPFLAGS that has an effect on the linker
7146         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7147         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7148         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7149         ;;
7150     esac
7151     # Some systems optimize for single-threaded programs by default, and
7152     # need special flags to disable these optimizations. For example, the
7153     # definition of 'errno' in <errno.h>.
7154     case "$host_os" in
7155       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7156       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7157     esac
7158   fi
7159
7160
7161
7162   # Pre-early section.
7163
7164
7165
7166
7167   # Code from module absolute-header:
7168   # Code from module alloca-opt:
7169   # Code from module allocator:
7170   # Code from module ansi-c++-opt:
7171   # Code from module areadlink:
7172   # Code from module atexit:
7173   # Code from module basename:
7174   # Code from module c-ctype:
7175   # Code from module c-strcase:
7176   # Code from module canonicalize-lgpl:
7177   # Code from module careadlinkat:
7178   # Code from module closeout:
7179   # Code from module configmake:
7180   # Code from module csharpcomp-script:
7181   # Code from module dosname:
7182   # Code from module double-slash-root:
7183   # Code from module environ:
7184   # Code from module errno:
7185   # Code from module error:
7186   # Code from module extensions:
7187   # Code from module extern-inline:
7188   # Code from module fwriteerror:
7189   # Code from module getopt-gnu:
7190   # Code from module getopt-posix:
7191   # Code from module gettext-h:
7192   # Code from module gettext-runtime-misc:
7193   # Code from module gettimeofday:
7194   # Code from module gperf:
7195   # Code from module hard-locale:
7196   # Code from module havelib:
7197   # Code from module iconv:
7198   # Code from module iconv-h:
7199   # Code from module iconv_open:
7200   # Code from module include_next:
7201   # Code from module inline:
7202   # Code from module intprops:
7203   # Code from module iswblank:
7204   # Code from module java:
7205   # Code from module javacomp-script:
7206   # Code from module langinfo:
7207   # Code from module largefile:
7208
7209   # Code from module localcharset:
7210   # Code from module locale:
7211   # Code from module localename:
7212   # Code from module lock:
7213   # Code from module lstat:
7214   # Code from module malloca:
7215   # Code from module mbchar:
7216   # Code from module mbiter:
7217   # Code from module mbrtowc:
7218   # Code from module mbsinit:
7219   # Code from module mbslen:
7220   # Code from module mbsstr:
7221   # Code from module mbuiter:
7222   # Code from module memchr:
7223   # Code from module memmove:
7224   # Code from module msvc-inval:
7225   # Code from module msvc-nothrow:
7226   # Code from module multiarch:
7227   # Code from module nocrash:
7228   # Code from module pathmax:
7229   # Code from module progname:
7230   # Code from module propername:
7231   # Code from module raise:
7232   # Code from module readlink:
7233   # Code from module relocatable-prog:
7234   # Code from module relocatable-prog-wrapper:
7235   # Code from module setlocale:
7236   # Code from module signal-h:
7237   # Code from module sigpipe:
7238   # Code from module sigprocmask:
7239   # Code from module snippet/_Noreturn:
7240   # Code from module snippet/arg-nonnull:
7241   # Code from module snippet/c++defs:
7242   # Code from module snippet/unused-parameter:
7243   # Code from module snippet/warn-on-use:
7244   # Code from module ssize_t:
7245   # Code from module stat:
7246   # Code from module stdbool:
7247   # Code from module stddef:
7248   # Code from module stdint:
7249   # Code from module stdio:
7250   # Code from module stdlib:
7251   # Code from module streq:
7252   # Code from module strerror:
7253   # Code from module strerror-override:
7254   # Code from module striconv:
7255   # Code from module string:
7256   # Code from module strnlen:
7257   # Code from module strnlen1:
7258   # Code from module strtoul:
7259   # Code from module sys_stat:
7260   # Code from module sys_time:
7261   # Code from module sys_types:
7262   # Code from module threadlib:
7263
7264
7265
7266   # Code from module time:
7267   # Code from module trim:
7268   # Code from module unistd:
7269   # Code from module unistr/base:
7270   # Code from module unistr/u8-mbtoucr:
7271   # Code from module unistr/u8-uctomb:
7272   # Code from module unitypes:
7273   # Code from module uniwidth/base:
7274   # Code from module uniwidth/width:
7275   # Code from module unlocked-io:
7276   # Code from module verify:
7277   # Code from module wchar:
7278   # Code from module wctype-h:
7279   # Code from module wcwidth:
7280   # Code from module xalloc:
7281   # Code from module xreadlink:
7282   # Code from module xstriconv:
7283
7284
7285
7286
7287
7288
7289   case "$host_os" in
7290     mingw* | cygwin*)
7291       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for auto-import of symbols" >&5
7292 $as_echo_n "checking for auto-import of symbols... " >&6; }
7293       if ${gl_cv_ld_autoimport+:} false; then :
7294   $as_echo_n "(cached) " >&6
7295 else
7296
7297         gl_save_LDFLAGS="$LDFLAGS"
7298         LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
7299         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h.  */
7301
7302 int
7303 main ()
7304 {
7305
7306   ;
7307   return 0;
7308 }
7309 _ACEOF
7310 if ac_fn_c_try_link "$LINENO"; then :
7311   gl_cv_ld_autoimport=yes
7312 else
7313   gl_cv_ld_autoimport=no
7314 fi
7315 rm -f core conftest.err conftest.$ac_objext \
7316     conftest$ac_exeext conftest.$ac_ext
7317         LDFLAGS="$gl_save_LDFLAGS"
7318 fi
7319
7320       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_autoimport" >&5
7321 $as_echo "$gl_cv_ld_autoimport" >&6; }
7322       if test $gl_cv_ld_autoimport = yes; then
7323         LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
7324       fi
7325       ;;
7326   esac
7327
7328
7329 case `pwd` in
7330   *\ * | *\     *)
7331     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7332 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7333 esac
7334
7335
7336
7337 macro_version='2.4.6'
7338 macro_revision='2.4.6'
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352 ltmain=$ac_aux_dir/ltmain.sh
7353
7354 # Backslashify metacharacters that are still active within
7355 # double-quoted strings.
7356 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7357
7358 # Same as above, but do not quote variable references.
7359 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7360
7361 # Sed substitution to delay expansion of an escaped shell variable in a
7362 # double_quote_subst'ed string.
7363 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7364
7365 # Sed substitution to delay expansion of an escaped single quote.
7366 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7367
7368 # Sed substitution to avoid accidental globbing in evaled expressions
7369 no_glob_subst='s/\*/\\\*/g'
7370
7371 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7372 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7373 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7374
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7376 $as_echo_n "checking how to print strings... " >&6; }
7377 # Test print first, because it will be a builtin if present.
7378 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7379    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7380   ECHO='print -r --'
7381 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7382   ECHO='printf %s\n'
7383 else
7384   # Use this function as a fallback that always works.
7385   func_fallback_echo ()
7386   {
7387     eval 'cat <<_LTECHO_EOF
7388 $1
7389 _LTECHO_EOF'
7390   }
7391   ECHO='func_fallback_echo'
7392 fi
7393
7394 # func_echo_all arg...
7395 # Invoke $ECHO with all args, space-separated.
7396 func_echo_all ()
7397 {
7398     $ECHO ""
7399 }
7400
7401 case $ECHO in
7402   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7403 $as_echo "printf" >&6; } ;;
7404   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7405 $as_echo "print -r" >&6; } ;;
7406   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7407 $as_echo "cat" >&6; } ;;
7408 esac
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7424 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7425 if ${ac_cv_path_SED+:} false; then :
7426   $as_echo_n "(cached) " >&6
7427 else
7428             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7429      for ac_i in 1 2 3 4 5 6 7; do
7430        ac_script="$ac_script$as_nl$ac_script"
7431      done
7432      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7433      { ac_script=; unset ac_script;}
7434      if test -z "$SED"; then
7435   ac_path_SED_found=false
7436   # Loop through the user's path and test for each of PROGNAME-LIST
7437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 for as_dir in $PATH
7439 do
7440   IFS=$as_save_IFS
7441   test -z "$as_dir" && as_dir=.
7442     for ac_prog in sed gsed; do
7443     for ac_exec_ext in '' $ac_executable_extensions; do
7444       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7445       as_fn_executable_p "$ac_path_SED" || continue
7446 # Check for GNU ac_path_SED and select it if it is found.
7447   # Check for GNU $ac_path_SED
7448 case `"$ac_path_SED" --version 2>&1` in
7449 *GNU*)
7450   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7451 *)
7452   ac_count=0
7453   $as_echo_n 0123456789 >"conftest.in"
7454   while :
7455   do
7456     cat "conftest.in" "conftest.in" >"conftest.tmp"
7457     mv "conftest.tmp" "conftest.in"
7458     cp "conftest.in" "conftest.nl"
7459     $as_echo '' >> "conftest.nl"
7460     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7461     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7462     as_fn_arith $ac_count + 1 && ac_count=$as_val
7463     if test $ac_count -gt ${ac_path_SED_max-0}; then
7464       # Best one so far, save it but keep looking for a better one
7465       ac_cv_path_SED="$ac_path_SED"
7466       ac_path_SED_max=$ac_count
7467     fi
7468     # 10*(2^10) chars as input seems more than enough
7469     test $ac_count -gt 10 && break
7470   done
7471   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7472 esac
7473
7474       $ac_path_SED_found && break 3
7475     done
7476   done
7477   done
7478 IFS=$as_save_IFS
7479   if test -z "$ac_cv_path_SED"; then
7480     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7481   fi
7482 else
7483   ac_cv_path_SED=$SED
7484 fi
7485
7486 fi
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7488 $as_echo "$ac_cv_path_SED" >&6; }
7489  SED="$ac_cv_path_SED"
7490   rm -f conftest.sed
7491
7492 test -z "$SED" && SED=sed
7493 Xsed="$SED -e 1s/^X//"
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7506 $as_echo_n "checking for fgrep... " >&6; }
7507 if ${ac_cv_path_FGREP+:} false; then :
7508   $as_echo_n "(cached) " >&6
7509 else
7510   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7511    then ac_cv_path_FGREP="$GREP -F"
7512    else
7513      if test -z "$FGREP"; then
7514   ac_path_FGREP_found=false
7515   # Loop through the user's path and test for each of PROGNAME-LIST
7516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7518 do
7519   IFS=$as_save_IFS
7520   test -z "$as_dir" && as_dir=.
7521     for ac_prog in fgrep; do
7522     for ac_exec_ext in '' $ac_executable_extensions; do
7523       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7524       as_fn_executable_p "$ac_path_FGREP" || continue
7525 # Check for GNU ac_path_FGREP and select it if it is found.
7526   # Check for GNU $ac_path_FGREP
7527 case `"$ac_path_FGREP" --version 2>&1` in
7528 *GNU*)
7529   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7530 *)
7531   ac_count=0
7532   $as_echo_n 0123456789 >"conftest.in"
7533   while :
7534   do
7535     cat "conftest.in" "conftest.in" >"conftest.tmp"
7536     mv "conftest.tmp" "conftest.in"
7537     cp "conftest.in" "conftest.nl"
7538     $as_echo 'FGREP' >> "conftest.nl"
7539     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7540     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7541     as_fn_arith $ac_count + 1 && ac_count=$as_val
7542     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7543       # Best one so far, save it but keep looking for a better one
7544       ac_cv_path_FGREP="$ac_path_FGREP"
7545       ac_path_FGREP_max=$ac_count
7546     fi
7547     # 10*(2^10) chars as input seems more than enough
7548     test $ac_count -gt 10 && break
7549   done
7550   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7551 esac
7552
7553       $ac_path_FGREP_found && break 3
7554     done
7555   done
7556   done
7557 IFS=$as_save_IFS
7558   if test -z "$ac_cv_path_FGREP"; then
7559     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7560   fi
7561 else
7562   ac_cv_path_FGREP=$FGREP
7563 fi
7564
7565    fi
7566 fi
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7568 $as_echo "$ac_cv_path_FGREP" >&6; }
7569  FGREP="$ac_cv_path_FGREP"
7570
7571
7572 test -z "$GREP" && GREP=grep
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592 # Check whether --with-gnu-ld was given.
7593 if test "${with_gnu_ld+set}" = set; then :
7594   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7595 else
7596   with_gnu_ld=no
7597 fi
7598
7599 ac_prog=ld
7600 if test yes = "$GCC"; then
7601   # Check if gcc -print-prog-name=ld gives a path.
7602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7603 $as_echo_n "checking for ld used by $CC... " >&6; }
7604   case $host in
7605   *-*-mingw*)
7606     # gcc leaves a trailing carriage return, which upsets mingw
7607     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7608   *)
7609     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7610   esac
7611   case $ac_prog in
7612     # Accept absolute paths.
7613     [\\/]* | ?:[\\/]*)
7614       re_direlt='/[^/][^/]*/\.\./'
7615       # Canonicalize the pathname of ld
7616       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7617       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7618         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7619       done
7620       test -z "$LD" && LD=$ac_prog
7621       ;;
7622   "")
7623     # If it fails, then pretend we aren't using GCC.
7624     ac_prog=ld
7625     ;;
7626   *)
7627     # If it is relative, then search for the first ld in PATH.
7628     with_gnu_ld=unknown
7629     ;;
7630   esac
7631 elif test yes = "$with_gnu_ld"; then
7632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7633 $as_echo_n "checking for GNU ld... " >&6; }
7634 else
7635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7636 $as_echo_n "checking for non-GNU ld... " >&6; }
7637 fi
7638 if ${lt_cv_path_LD+:} false; then :
7639   $as_echo_n "(cached) " >&6
7640 else
7641   if test -z "$LD"; then
7642   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7643   for ac_dir in $PATH; do
7644     IFS=$lt_save_ifs
7645     test -z "$ac_dir" && ac_dir=.
7646     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7647       lt_cv_path_LD=$ac_dir/$ac_prog
7648       # Check to see if the program is GNU ld.  I'd rather use --version,
7649       # but apparently some variants of GNU ld only accept -v.
7650       # Break only if it was the GNU/non-GNU ld that we prefer.
7651       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7652       *GNU* | *'with BFD'*)
7653         test no != "$with_gnu_ld" && break
7654         ;;
7655       *)
7656         test yes != "$with_gnu_ld" && break
7657         ;;
7658       esac
7659     fi
7660   done
7661   IFS=$lt_save_ifs
7662 else
7663   lt_cv_path_LD=$LD # Let the user override the test with a path.
7664 fi
7665 fi
7666
7667 LD=$lt_cv_path_LD
7668 if test -n "$LD"; then
7669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7670 $as_echo "$LD" >&6; }
7671 else
7672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 $as_echo "no" >&6; }
7674 fi
7675 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7677 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7678 if ${lt_cv_prog_gnu_ld+:} false; then :
7679   $as_echo_n "(cached) " >&6
7680 else
7681   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7682 case `$LD -v 2>&1 </dev/null` in
7683 *GNU* | *'with BFD'*)
7684   lt_cv_prog_gnu_ld=yes
7685   ;;
7686 *)
7687   lt_cv_prog_gnu_ld=no
7688   ;;
7689 esac
7690 fi
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7692 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7693 with_gnu_ld=$lt_cv_prog_gnu_ld
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7704 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7705 if ${lt_cv_path_NM+:} false; then :
7706   $as_echo_n "(cached) " >&6
7707 else
7708   if test -n "$NM"; then
7709   # Let the user override the test.
7710   lt_cv_path_NM=$NM
7711 else
7712   lt_nm_to_check=${ac_tool_prefix}nm
7713   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7714     lt_nm_to_check="$lt_nm_to_check nm"
7715   fi
7716   for lt_tmp_nm in $lt_nm_to_check; do
7717     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7718     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7719       IFS=$lt_save_ifs
7720       test -z "$ac_dir" && ac_dir=.
7721       tmp_nm=$ac_dir/$lt_tmp_nm
7722       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7723         # Check to see if the nm accepts a BSD-compat flag.
7724         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7725         #   nm: unknown option "B" ignored
7726         # Tru64's nm complains that /dev/null is an invalid object file
7727         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7728         case $build_os in
7729         mingw*) lt_bad_file=conftest.nm/nofile ;;
7730         *) lt_bad_file=/dev/null ;;
7731         esac
7732         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7733         *$lt_bad_file* | *'Invalid file or object type'*)
7734           lt_cv_path_NM="$tmp_nm -B"
7735           break 2
7736           ;;
7737         *)
7738           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7739           */dev/null*)
7740             lt_cv_path_NM="$tmp_nm -p"
7741             break 2
7742             ;;
7743           *)
7744             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7745             continue # so that we can try to find one that supports BSD flags
7746             ;;
7747           esac
7748           ;;
7749         esac
7750       fi
7751     done
7752     IFS=$lt_save_ifs
7753   done
7754   : ${lt_cv_path_NM=no}
7755 fi
7756 fi
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7758 $as_echo "$lt_cv_path_NM" >&6; }
7759 if test no != "$lt_cv_path_NM"; then
7760   NM=$lt_cv_path_NM
7761 else
7762   # Didn't find any BSD compatible name lister, look for dumpbin.
7763   if test -n "$DUMPBIN"; then :
7764     # Let the user override the test.
7765   else
7766     if test -n "$ac_tool_prefix"; then
7767   for ac_prog in dumpbin "link -dump"
7768   do
7769     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if ${ac_cv_prog_DUMPBIN+:} false; then :
7774   $as_echo_n "(cached) " >&6
7775 else
7776   if test -n "$DUMPBIN"; then
7777   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7778 else
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 for as_dir in $PATH
7781 do
7782   IFS=$as_save_IFS
7783   test -z "$as_dir" && as_dir=.
7784     for ac_exec_ext in '' $ac_executable_extensions; do
7785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7786     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788     break 2
7789   fi
7790 done
7791   done
7792 IFS=$as_save_IFS
7793
7794 fi
7795 fi
7796 DUMPBIN=$ac_cv_prog_DUMPBIN
7797 if test -n "$DUMPBIN"; then
7798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7799 $as_echo "$DUMPBIN" >&6; }
7800 else
7801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7803 fi
7804
7805
7806     test -n "$DUMPBIN" && break
7807   done
7808 fi
7809 if test -z "$DUMPBIN"; then
7810   ac_ct_DUMPBIN=$DUMPBIN
7811   for ac_prog in dumpbin "link -dump"
7812 do
7813   # Extract the first word of "$ac_prog", so it can be a program name with args.
7814 set dummy $ac_prog; ac_word=$2
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7816 $as_echo_n "checking for $ac_word... " >&6; }
7817 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7818   $as_echo_n "(cached) " >&6
7819 else
7820   if test -n "$ac_ct_DUMPBIN"; then
7821   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7822 else
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 for as_dir in $PATH
7825 do
7826   IFS=$as_save_IFS
7827   test -z "$as_dir" && as_dir=.
7828     for ac_exec_ext in '' $ac_executable_extensions; do
7829   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7830     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7832     break 2
7833   fi
7834 done
7835   done
7836 IFS=$as_save_IFS
7837
7838 fi
7839 fi
7840 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7841 if test -n "$ac_ct_DUMPBIN"; then
7842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7843 $as_echo "$ac_ct_DUMPBIN" >&6; }
7844 else
7845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7847 fi
7848
7849
7850   test -n "$ac_ct_DUMPBIN" && break
7851 done
7852
7853   if test "x$ac_ct_DUMPBIN" = x; then
7854     DUMPBIN=":"
7855   else
7856     case $cross_compiling:$ac_tool_warned in
7857 yes:)
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7860 ac_tool_warned=yes ;;
7861 esac
7862     DUMPBIN=$ac_ct_DUMPBIN
7863   fi
7864 fi
7865
7866     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7867     *COFF*)
7868       DUMPBIN="$DUMPBIN -symbols -headers"
7869       ;;
7870     *)
7871       DUMPBIN=:
7872       ;;
7873     esac
7874   fi
7875
7876   if test : != "$DUMPBIN"; then
7877     NM=$DUMPBIN
7878   fi
7879 fi
7880 test -z "$NM" && NM=nm
7881
7882
7883
7884
7885
7886
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7888 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7889 if ${lt_cv_nm_interface+:} false; then :
7890   $as_echo_n "(cached) " >&6
7891 else
7892   lt_cv_nm_interface="BSD nm"
7893   echo "int some_variable = 0;" > conftest.$ac_ext
7894   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7895   (eval "$ac_compile" 2>conftest.err)
7896   cat conftest.err >&5
7897   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7898   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7899   cat conftest.err >&5
7900   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7901   cat conftest.out >&5
7902   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7903     lt_cv_nm_interface="MS dumpbin"
7904   fi
7905   rm -f conftest*
7906 fi
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7908 $as_echo "$lt_cv_nm_interface" >&6; }
7909
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7911 $as_echo_n "checking whether ln -s works... " >&6; }
7912 LN_S=$as_ln_s
7913 if test "$LN_S" = "ln -s"; then
7914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7915 $as_echo "yes" >&6; }
7916 else
7917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7918 $as_echo "no, using $LN_S" >&6; }
7919 fi
7920
7921 # find the maximum length of command line arguments
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7923 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7924 if ${lt_cv_sys_max_cmd_len+:} false; then :
7925   $as_echo_n "(cached) " >&6
7926 else
7927     i=0
7928   teststring=ABCD
7929
7930   case $build_os in
7931   msdosdjgpp*)
7932     # On DJGPP, this test can blow up pretty badly due to problems in libc
7933     # (any single argument exceeding 2000 bytes causes a buffer overrun
7934     # during glob expansion).  Even if it were fixed, the result of this
7935     # check would be larger than it should be.
7936     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7937     ;;
7938
7939   gnu*)
7940     # Under GNU Hurd, this test is not required because there is
7941     # no limit to the length of command line arguments.
7942     # Libtool will interpret -1 as no limit whatsoever
7943     lt_cv_sys_max_cmd_len=-1;
7944     ;;
7945
7946   cygwin* | mingw* | cegcc*)
7947     # On Win9x/ME, this test blows up -- it succeeds, but takes
7948     # about 5 minutes as the teststring grows exponentially.
7949     # Worse, since 9x/ME are not pre-emptively multitasking,
7950     # you end up with a "frozen" computer, even though with patience
7951     # the test eventually succeeds (with a max line length of 256k).
7952     # Instead, let's just punt: use the minimum linelength reported by
7953     # all of the supported platforms: 8192 (on NT/2K/XP).
7954     lt_cv_sys_max_cmd_len=8192;
7955     ;;
7956
7957   mint*)
7958     # On MiNT this can take a long time and run out of memory.
7959     lt_cv_sys_max_cmd_len=8192;
7960     ;;
7961
7962   amigaos*)
7963     # On AmigaOS with pdksh, this test takes hours, literally.
7964     # So we just punt and use a minimum line length of 8192.
7965     lt_cv_sys_max_cmd_len=8192;
7966     ;;
7967
7968   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7969     # This has been around since 386BSD, at least.  Likely further.
7970     if test -x /sbin/sysctl; then
7971       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7972     elif test -x /usr/sbin/sysctl; then
7973       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7974     else
7975       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7976     fi
7977     # And add a safety zone
7978     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7979     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7980     ;;
7981
7982   interix*)
7983     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7984     lt_cv_sys_max_cmd_len=196608
7985     ;;
7986
7987   os2*)
7988     # The test takes a long time on OS/2.
7989     lt_cv_sys_max_cmd_len=8192
7990     ;;
7991
7992   osf*)
7993     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7994     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7995     # nice to cause kernel panics so lets avoid the loop below.
7996     # First set a reasonable default.
7997     lt_cv_sys_max_cmd_len=16384
7998     #
7999     if test -x /sbin/sysconfig; then
8000       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8001         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8002       esac
8003     fi
8004     ;;
8005   sco3.2v5*)
8006     lt_cv_sys_max_cmd_len=102400
8007     ;;
8008   sysv5* | sco5v6* | sysv4.2uw2*)
8009     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8010     if test -n "$kargmax"; then
8011       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8012     else
8013       lt_cv_sys_max_cmd_len=32768
8014     fi
8015     ;;
8016   *)
8017     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8018     if test -n "$lt_cv_sys_max_cmd_len" && \
8019        test undefined != "$lt_cv_sys_max_cmd_len"; then
8020       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8021       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8022     else
8023       # Make teststring a little bigger before we do anything with it.
8024       # a 1K string should be a reasonable start.
8025       for i in 1 2 3 4 5 6 7 8; do
8026         teststring=$teststring$teststring
8027       done
8028       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8029       # If test is not a shell built-in, we'll probably end up computing a
8030       # maximum length that is only half of the actual maximum length, but
8031       # we can't tell.
8032       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8033                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8034               test 17 != "$i" # 1/2 MB should be enough
8035       do
8036         i=`expr $i + 1`
8037         teststring=$teststring$teststring
8038       done
8039       # Only check the string length outside the loop.
8040       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8041       teststring=
8042       # Add a significant safety factor because C++ compilers can tack on
8043       # massive amounts of additional arguments before passing them to the
8044       # linker.  It appears as though 1/2 is a usable value.
8045       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8046     fi
8047     ;;
8048   esac
8049
8050 fi
8051
8052 if test -n "$lt_cv_sys_max_cmd_len"; then
8053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8054 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8055 else
8056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8057 $as_echo "none" >&6; }
8058 fi
8059 max_cmd_len=$lt_cv_sys_max_cmd_len
8060
8061
8062
8063
8064
8065
8066 : ${CP="cp -f"}
8067 : ${MV="mv -f"}
8068 : ${RM="rm -f"}
8069
8070 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8071   lt_unset=unset
8072 else
8073   lt_unset=false
8074 fi
8075
8076
8077
8078
8079
8080 # test EBCDIC or ASCII
8081 case `echo X|tr X '\101'` in
8082  A) # ASCII based system
8083     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8084   lt_SP2NL='tr \040 \012'
8085   lt_NL2SP='tr \015\012 \040\040'
8086   ;;
8087  *) # EBCDIC based system
8088   lt_SP2NL='tr \100 \n'
8089   lt_NL2SP='tr \r\n \100\100'
8090   ;;
8091 esac
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8102 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8103 if ${lt_cv_to_host_file_cmd+:} false; then :
8104   $as_echo_n "(cached) " >&6
8105 else
8106   case $host in
8107   *-*-mingw* )
8108     case $build in
8109       *-*-mingw* ) # actually msys
8110         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8111         ;;
8112       *-*-cygwin* )
8113         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8114         ;;
8115       * ) # otherwise, assume *nix
8116         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8117         ;;
8118     esac
8119     ;;
8120   *-*-cygwin* )
8121     case $build in
8122       *-*-mingw* ) # actually msys
8123         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8124         ;;
8125       *-*-cygwin* )
8126         lt_cv_to_host_file_cmd=func_convert_file_noop
8127         ;;
8128       * ) # otherwise, assume *nix
8129         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8130         ;;
8131     esac
8132     ;;
8133   * ) # unhandled hosts (and "normal" native builds)
8134     lt_cv_to_host_file_cmd=func_convert_file_noop
8135     ;;
8136 esac
8137
8138 fi
8139
8140 to_host_file_cmd=$lt_cv_to_host_file_cmd
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8142 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8143
8144
8145
8146
8147
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8149 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8150 if ${lt_cv_to_tool_file_cmd+:} false; then :
8151   $as_echo_n "(cached) " >&6
8152 else
8153   #assume ordinary cross tools, or native build.
8154 lt_cv_to_tool_file_cmd=func_convert_file_noop
8155 case $host in
8156   *-*-mingw* )
8157     case $build in
8158       *-*-mingw* ) # actually msys
8159         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8160         ;;
8161     esac
8162     ;;
8163 esac
8164
8165 fi
8166
8167 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8169 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8170
8171
8172
8173
8174
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8176 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8177 if ${lt_cv_ld_reload_flag+:} false; then :
8178   $as_echo_n "(cached) " >&6
8179 else
8180   lt_cv_ld_reload_flag='-r'
8181 fi
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8183 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8184 reload_flag=$lt_cv_ld_reload_flag
8185 case $reload_flag in
8186 "" | " "*) ;;
8187 *) reload_flag=" $reload_flag" ;;
8188 esac
8189 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8190 case $host_os in
8191   cygwin* | mingw* | pw32* | cegcc*)
8192     if test yes != "$GCC"; then
8193       reload_cmds=false
8194     fi
8195     ;;
8196   darwin*)
8197     if test yes = "$GCC"; then
8198       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8199     else
8200       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8201     fi
8202     ;;
8203 esac
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213 if test -n "$ac_tool_prefix"; then
8214   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8215 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217 $as_echo_n "checking for $ac_word... " >&6; }
8218 if ${ac_cv_prog_OBJDUMP+:} false; then :
8219   $as_echo_n "(cached) " >&6
8220 else
8221   if test -n "$OBJDUMP"; then
8222   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8223 else
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 for as_dir in $PATH
8226 do
8227   IFS=$as_save_IFS
8228   test -z "$as_dir" && as_dir=.
8229     for ac_exec_ext in '' $ac_executable_extensions; do
8230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8231     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8233     break 2
8234   fi
8235 done
8236   done
8237 IFS=$as_save_IFS
8238
8239 fi
8240 fi
8241 OBJDUMP=$ac_cv_prog_OBJDUMP
8242 if test -n "$OBJDUMP"; then
8243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8244 $as_echo "$OBJDUMP" >&6; }
8245 else
8246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247 $as_echo "no" >&6; }
8248 fi
8249
8250
8251 fi
8252 if test -z "$ac_cv_prog_OBJDUMP"; then
8253   ac_ct_OBJDUMP=$OBJDUMP
8254   # Extract the first word of "objdump", so it can be a program name with args.
8255 set dummy objdump; ac_word=$2
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257 $as_echo_n "checking for $ac_word... " >&6; }
8258 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8259   $as_echo_n "(cached) " >&6
8260 else
8261   if test -n "$ac_ct_OBJDUMP"; then
8262   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8263 else
8264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265 for as_dir in $PATH
8266 do
8267   IFS=$as_save_IFS
8268   test -z "$as_dir" && as_dir=.
8269     for ac_exec_ext in '' $ac_executable_extensions; do
8270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8271     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8273     break 2
8274   fi
8275 done
8276   done
8277 IFS=$as_save_IFS
8278
8279 fi
8280 fi
8281 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8282 if test -n "$ac_ct_OBJDUMP"; then
8283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8284 $as_echo "$ac_ct_OBJDUMP" >&6; }
8285 else
8286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287 $as_echo "no" >&6; }
8288 fi
8289
8290   if test "x$ac_ct_OBJDUMP" = x; then
8291     OBJDUMP="false"
8292   else
8293     case $cross_compiling:$ac_tool_warned in
8294 yes:)
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8297 ac_tool_warned=yes ;;
8298 esac
8299     OBJDUMP=$ac_ct_OBJDUMP
8300   fi
8301 else
8302   OBJDUMP="$ac_cv_prog_OBJDUMP"
8303 fi
8304
8305 test -z "$OBJDUMP" && OBJDUMP=objdump
8306
8307
8308
8309
8310
8311
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8313 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8314 if ${lt_cv_deplibs_check_method+:} false; then :
8315   $as_echo_n "(cached) " >&6
8316 else
8317   lt_cv_file_magic_cmd='$MAGIC_CMD'
8318 lt_cv_file_magic_test_file=
8319 lt_cv_deplibs_check_method='unknown'
8320 # Need to set the preceding variable on all platforms that support
8321 # interlibrary dependencies.
8322 # 'none' -- dependencies not supported.
8323 # 'unknown' -- same as none, but documents that we really don't know.
8324 # 'pass_all' -- all dependencies passed with no checks.
8325 # 'test_compile' -- check by making test program.
8326 # 'file_magic [[regex]]' -- check by looking for files in library path
8327 # that responds to the $file_magic_cmd with a given extended regex.
8328 # If you have 'file' or equivalent on your system and you're not sure
8329 # whether 'pass_all' will *always* work, you probably want this one.
8330
8331 case $host_os in
8332 aix[4-9]*)
8333   lt_cv_deplibs_check_method=pass_all
8334   ;;
8335
8336 beos*)
8337   lt_cv_deplibs_check_method=pass_all
8338   ;;
8339
8340 bsdi[45]*)
8341   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8342   lt_cv_file_magic_cmd='/usr/bin/file -L'
8343   lt_cv_file_magic_test_file=/shlib/libc.so
8344   ;;
8345
8346 cygwin*)
8347   # func_win32_libid is a shell function defined in ltmain.sh
8348   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8349   lt_cv_file_magic_cmd='func_win32_libid'
8350   ;;
8351
8352 mingw* | pw32*)
8353   # Base MSYS/MinGW do not provide the 'file' command needed by
8354   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8355   # unless we find 'file', for example because we are cross-compiling.
8356   if ( file / ) >/dev/null 2>&1; then
8357     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8358     lt_cv_file_magic_cmd='func_win32_libid'
8359   else
8360     # Keep this pattern in sync with the one in func_win32_libid.
8361     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8362     lt_cv_file_magic_cmd='$OBJDUMP -f'
8363   fi
8364   ;;
8365
8366 cegcc*)
8367   # use the weaker test based on 'objdump'. See mingw*.
8368   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8369   lt_cv_file_magic_cmd='$OBJDUMP -f'
8370   ;;
8371
8372 darwin* | rhapsody*)
8373   lt_cv_deplibs_check_method=pass_all
8374   ;;
8375
8376 freebsd* | dragonfly*)
8377   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8378     case $host_cpu in
8379     i*86 )
8380       # Not sure whether the presence of OpenBSD here was a mistake.
8381       # Let's accept both of them until this is cleared up.
8382       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8383       lt_cv_file_magic_cmd=/usr/bin/file
8384       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8385       ;;
8386     esac
8387   else
8388     lt_cv_deplibs_check_method=pass_all
8389   fi
8390   ;;
8391
8392 haiku*)
8393   lt_cv_deplibs_check_method=pass_all
8394   ;;
8395
8396 hpux10.20* | hpux11*)
8397   lt_cv_file_magic_cmd=/usr/bin/file
8398   case $host_cpu in
8399   ia64*)
8400     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8401     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8402     ;;
8403   hppa*64*)
8404     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8405     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8406     ;;
8407   *)
8408     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8409     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8410     ;;
8411   esac
8412   ;;
8413
8414 interix[3-9]*)
8415   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8416   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8417   ;;
8418
8419 irix5* | irix6* | nonstopux*)
8420   case $LD in
8421   *-32|*"-32 ") libmagic=32-bit;;
8422   *-n32|*"-n32 ") libmagic=N32;;
8423   *-64|*"-64 ") libmagic=64-bit;;
8424   *) libmagic=never-match;;
8425   esac
8426   lt_cv_deplibs_check_method=pass_all
8427   ;;
8428
8429 # This must be glibc/ELF.
8430 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8431   lt_cv_deplibs_check_method=pass_all
8432   ;;
8433
8434 netbsd*)
8435   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8436     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8437   else
8438     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8439   fi
8440   ;;
8441
8442 newos6*)
8443   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8444   lt_cv_file_magic_cmd=/usr/bin/file
8445   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8446   ;;
8447
8448 *nto* | *qnx*)
8449   lt_cv_deplibs_check_method=pass_all
8450   ;;
8451
8452 openbsd* | bitrig*)
8453   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8454     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8455   else
8456     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8457   fi
8458   ;;
8459
8460 osf3* | osf4* | osf5*)
8461   lt_cv_deplibs_check_method=pass_all
8462   ;;
8463
8464 rdos*)
8465   lt_cv_deplibs_check_method=pass_all
8466   ;;
8467
8468 solaris*)
8469   lt_cv_deplibs_check_method=pass_all
8470   ;;
8471
8472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8473   lt_cv_deplibs_check_method=pass_all
8474   ;;
8475
8476 sysv4 | sysv4.3*)
8477   case $host_vendor in
8478   motorola)
8479     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
8480     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8481     ;;
8482   ncr)
8483     lt_cv_deplibs_check_method=pass_all
8484     ;;
8485   sequent)
8486     lt_cv_file_magic_cmd='/bin/file'
8487     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8488     ;;
8489   sni)
8490     lt_cv_file_magic_cmd='/bin/file'
8491     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8492     lt_cv_file_magic_test_file=/lib/libc.so
8493     ;;
8494   siemens)
8495     lt_cv_deplibs_check_method=pass_all
8496     ;;
8497   pc)
8498     lt_cv_deplibs_check_method=pass_all
8499     ;;
8500   esac
8501   ;;
8502
8503 tpf*)
8504   lt_cv_deplibs_check_method=pass_all
8505   ;;
8506 os2*)
8507   lt_cv_deplibs_check_method=pass_all
8508   ;;
8509 esac
8510
8511 fi
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8513 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8514
8515 file_magic_glob=
8516 want_nocaseglob=no
8517 if test "$build" = "$host"; then
8518   case $host_os in
8519   mingw* | pw32*)
8520     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8521       want_nocaseglob=yes
8522     else
8523       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8524     fi
8525     ;;
8526   esac
8527 fi
8528
8529 file_magic_cmd=$lt_cv_file_magic_cmd
8530 deplibs_check_method=$lt_cv_deplibs_check_method
8531 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554 if test -n "$ac_tool_prefix"; then
8555   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8556 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558 $as_echo_n "checking for $ac_word... " >&6; }
8559 if ${ac_cv_prog_DLLTOOL+:} false; then :
8560   $as_echo_n "(cached) " >&6
8561 else
8562   if test -n "$DLLTOOL"; then
8563   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8564 else
8565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566 for as_dir in $PATH
8567 do
8568   IFS=$as_save_IFS
8569   test -z "$as_dir" && as_dir=.
8570     for ac_exec_ext in '' $ac_executable_extensions; do
8571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8572     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8574     break 2
8575   fi
8576 done
8577   done
8578 IFS=$as_save_IFS
8579
8580 fi
8581 fi
8582 DLLTOOL=$ac_cv_prog_DLLTOOL
8583 if test -n "$DLLTOOL"; then
8584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8585 $as_echo "$DLLTOOL" >&6; }
8586 else
8587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588 $as_echo "no" >&6; }
8589 fi
8590
8591
8592 fi
8593 if test -z "$ac_cv_prog_DLLTOOL"; then
8594   ac_ct_DLLTOOL=$DLLTOOL
8595   # Extract the first word of "dlltool", so it can be a program name with args.
8596 set dummy dlltool; ac_word=$2
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8598 $as_echo_n "checking for $ac_word... " >&6; }
8599 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8600   $as_echo_n "(cached) " >&6
8601 else
8602   if test -n "$ac_ct_DLLTOOL"; then
8603   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8604 else
8605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606 for as_dir in $PATH
8607 do
8608   IFS=$as_save_IFS
8609   test -z "$as_dir" && as_dir=.
8610     for ac_exec_ext in '' $ac_executable_extensions; do
8611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8612     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8614     break 2
8615   fi
8616 done
8617   done
8618 IFS=$as_save_IFS
8619
8620 fi
8621 fi
8622 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8623 if test -n "$ac_ct_DLLTOOL"; then
8624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8625 $as_echo "$ac_ct_DLLTOOL" >&6; }
8626 else
8627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628 $as_echo "no" >&6; }
8629 fi
8630
8631   if test "x$ac_ct_DLLTOOL" = x; then
8632     DLLTOOL="false"
8633   else
8634     case $cross_compiling:$ac_tool_warned in
8635 yes:)
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8638 ac_tool_warned=yes ;;
8639 esac
8640     DLLTOOL=$ac_ct_DLLTOOL
8641   fi
8642 else
8643   DLLTOOL="$ac_cv_prog_DLLTOOL"
8644 fi
8645
8646 test -z "$DLLTOOL" && DLLTOOL=dlltool
8647
8648
8649
8650
8651
8652
8653
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8655 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8656 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8657   $as_echo_n "(cached) " >&6
8658 else
8659   lt_cv_sharedlib_from_linklib_cmd='unknown'
8660
8661 case $host_os in
8662 cygwin* | mingw* | pw32* | cegcc*)
8663   # two different shell functions defined in ltmain.sh;
8664   # decide which one to use based on capabilities of $DLLTOOL
8665   case `$DLLTOOL --help 2>&1` in
8666   *--identify-strict*)
8667     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8668     ;;
8669   *)
8670     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8671     ;;
8672   esac
8673   ;;
8674 *)
8675   # fallback: assume linklib IS sharedlib
8676   lt_cv_sharedlib_from_linklib_cmd=$ECHO
8677   ;;
8678 esac
8679
8680 fi
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8682 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8683 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8684 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8685
8686
8687
8688
8689
8690
8691
8692 if test -n "$ac_tool_prefix"; then
8693   for ac_prog in ar
8694   do
8695     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8698 $as_echo_n "checking for $ac_word... " >&6; }
8699 if ${ac_cv_prog_AR+:} false; then :
8700   $as_echo_n "(cached) " >&6
8701 else
8702   if test -n "$AR"; then
8703   ac_cv_prog_AR="$AR" # Let the user override the test.
8704 else
8705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8706 for as_dir in $PATH
8707 do
8708   IFS=$as_save_IFS
8709   test -z "$as_dir" && as_dir=.
8710     for ac_exec_ext in '' $ac_executable_extensions; do
8711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8712     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8714     break 2
8715   fi
8716 done
8717   done
8718 IFS=$as_save_IFS
8719
8720 fi
8721 fi
8722 AR=$ac_cv_prog_AR
8723 if test -n "$AR"; then
8724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8725 $as_echo "$AR" >&6; }
8726 else
8727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8728 $as_echo "no" >&6; }
8729 fi
8730
8731
8732     test -n "$AR" && break
8733   done
8734 fi
8735 if test -z "$AR"; then
8736   ac_ct_AR=$AR
8737   for ac_prog in ar
8738 do
8739   # Extract the first word of "$ac_prog", so it can be a program name with args.
8740 set dummy $ac_prog; ac_word=$2
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8742 $as_echo_n "checking for $ac_word... " >&6; }
8743 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8744   $as_echo_n "(cached) " >&6
8745 else
8746   if test -n "$ac_ct_AR"; then
8747   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8748 else
8749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8750 for as_dir in $PATH
8751 do
8752   IFS=$as_save_IFS
8753   test -z "$as_dir" && as_dir=.
8754     for ac_exec_ext in '' $ac_executable_extensions; do
8755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8756     ac_cv_prog_ac_ct_AR="$ac_prog"
8757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8758     break 2
8759   fi
8760 done
8761   done
8762 IFS=$as_save_IFS
8763
8764 fi
8765 fi
8766 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8767 if test -n "$ac_ct_AR"; then
8768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8769 $as_echo "$ac_ct_AR" >&6; }
8770 else
8771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8772 $as_echo "no" >&6; }
8773 fi
8774
8775
8776   test -n "$ac_ct_AR" && break
8777 done
8778
8779   if test "x$ac_ct_AR" = x; then
8780     AR="false"
8781   else
8782     case $cross_compiling:$ac_tool_warned in
8783 yes:)
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8786 ac_tool_warned=yes ;;
8787 esac
8788     AR=$ac_ct_AR
8789   fi
8790 fi
8791
8792 : ${AR=ar}
8793 : ${AR_FLAGS=cru}
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8806 $as_echo_n "checking for archiver @FILE support... " >&6; }
8807 if ${lt_cv_ar_at_file+:} false; then :
8808   $as_echo_n "(cached) " >&6
8809 else
8810   lt_cv_ar_at_file=no
8811    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h.  */
8813
8814 int
8815 main ()
8816 {
8817
8818   ;
8819   return 0;
8820 }
8821 _ACEOF
8822 if ac_fn_c_try_compile "$LINENO"; then :
8823   echo conftest.$ac_objext > conftest.lst
8824       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8825       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8826   (eval $lt_ar_try) 2>&5
8827   ac_status=$?
8828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8829   test $ac_status = 0; }
8830       if test 0 -eq "$ac_status"; then
8831         # Ensure the archiver fails upon bogus file names.
8832         rm -f conftest.$ac_objext libconftest.a
8833         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8834   (eval $lt_ar_try) 2>&5
8835   ac_status=$?
8836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8837   test $ac_status = 0; }
8838         if test 0 -ne "$ac_status"; then
8839           lt_cv_ar_at_file=@
8840         fi
8841       fi
8842       rm -f conftest.* libconftest.a
8843
8844 fi
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846
8847 fi
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8849 $as_echo "$lt_cv_ar_at_file" >&6; }
8850
8851 if test no = "$lt_cv_ar_at_file"; then
8852   archiver_list_spec=
8853 else
8854   archiver_list_spec=$lt_cv_ar_at_file
8855 fi
8856
8857
8858
8859
8860
8861
8862
8863 if test -n "$ac_tool_prefix"; then
8864   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8865 set dummy ${ac_tool_prefix}strip; ac_word=$2
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867 $as_echo_n "checking for $ac_word... " >&6; }
8868 if ${ac_cv_prog_STRIP+:} false; then :
8869   $as_echo_n "(cached) " >&6
8870 else
8871   if test -n "$STRIP"; then
8872   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8873 else
8874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8875 for as_dir in $PATH
8876 do
8877   IFS=$as_save_IFS
8878   test -z "$as_dir" && as_dir=.
8879     for ac_exec_ext in '' $ac_executable_extensions; do
8880   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8881     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8883     break 2
8884   fi
8885 done
8886   done
8887 IFS=$as_save_IFS
8888
8889 fi
8890 fi
8891 STRIP=$ac_cv_prog_STRIP
8892 if test -n "$STRIP"; then
8893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8894 $as_echo "$STRIP" >&6; }
8895 else
8896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897 $as_echo "no" >&6; }
8898 fi
8899
8900
8901 fi
8902 if test -z "$ac_cv_prog_STRIP"; then
8903   ac_ct_STRIP=$STRIP
8904   # Extract the first word of "strip", so it can be a program name with args.
8905 set dummy strip; ac_word=$2
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8907 $as_echo_n "checking for $ac_word... " >&6; }
8908 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8909   $as_echo_n "(cached) " >&6
8910 else
8911   if test -n "$ac_ct_STRIP"; then
8912   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8913 else
8914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8915 for as_dir in $PATH
8916 do
8917   IFS=$as_save_IFS
8918   test -z "$as_dir" && as_dir=.
8919     for ac_exec_ext in '' $ac_executable_extensions; do
8920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8921     ac_cv_prog_ac_ct_STRIP="strip"
8922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8923     break 2
8924   fi
8925 done
8926   done
8927 IFS=$as_save_IFS
8928
8929 fi
8930 fi
8931 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8932 if test -n "$ac_ct_STRIP"; then
8933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8934 $as_echo "$ac_ct_STRIP" >&6; }
8935 else
8936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8937 $as_echo "no" >&6; }
8938 fi
8939
8940   if test "x$ac_ct_STRIP" = x; then
8941     STRIP=":"
8942   else
8943     case $cross_compiling:$ac_tool_warned in
8944 yes:)
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8947 ac_tool_warned=yes ;;
8948 esac
8949     STRIP=$ac_ct_STRIP
8950   fi
8951 else
8952   STRIP="$ac_cv_prog_STRIP"
8953 fi
8954
8955 test -z "$STRIP" && STRIP=:
8956
8957
8958
8959
8960
8961
8962 if test -n "$ac_tool_prefix"; then
8963   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8964 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8966 $as_echo_n "checking for $ac_word... " >&6; }
8967 if ${ac_cv_prog_RANLIB+:} false; then :
8968   $as_echo_n "(cached) " >&6
8969 else
8970   if test -n "$RANLIB"; then
8971   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8972 else
8973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8974 for as_dir in $PATH
8975 do
8976   IFS=$as_save_IFS
8977   test -z "$as_dir" && as_dir=.
8978     for ac_exec_ext in '' $ac_executable_extensions; do
8979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8980     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8982     break 2
8983   fi
8984 done
8985   done
8986 IFS=$as_save_IFS
8987
8988 fi
8989 fi
8990 RANLIB=$ac_cv_prog_RANLIB
8991 if test -n "$RANLIB"; then
8992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8993 $as_echo "$RANLIB" >&6; }
8994 else
8995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8996 $as_echo "no" >&6; }
8997 fi
8998
8999
9000 fi
9001 if test -z "$ac_cv_prog_RANLIB"; then
9002   ac_ct_RANLIB=$RANLIB
9003   # Extract the first word of "ranlib", so it can be a program name with args.
9004 set dummy ranlib; ac_word=$2
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9006 $as_echo_n "checking for $ac_word... " >&6; }
9007 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9008   $as_echo_n "(cached) " >&6
9009 else
9010   if test -n "$ac_ct_RANLIB"; then
9011   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9012 else
9013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9014 for as_dir in $PATH
9015 do
9016   IFS=$as_save_IFS
9017   test -z "$as_dir" && as_dir=.
9018     for ac_exec_ext in '' $ac_executable_extensions; do
9019   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9020     ac_cv_prog_ac_ct_RANLIB="ranlib"
9021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9022     break 2
9023   fi
9024 done
9025   done
9026 IFS=$as_save_IFS
9027
9028 fi
9029 fi
9030 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9031 if test -n "$ac_ct_RANLIB"; then
9032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9033 $as_echo "$ac_ct_RANLIB" >&6; }
9034 else
9035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036 $as_echo "no" >&6; }
9037 fi
9038
9039   if test "x$ac_ct_RANLIB" = x; then
9040     RANLIB=":"
9041   else
9042     case $cross_compiling:$ac_tool_warned in
9043 yes:)
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9046 ac_tool_warned=yes ;;
9047 esac
9048     RANLIB=$ac_ct_RANLIB
9049   fi
9050 else
9051   RANLIB="$ac_cv_prog_RANLIB"
9052 fi
9053
9054 test -z "$RANLIB" && RANLIB=:
9055
9056
9057
9058
9059
9060
9061 # Determine commands to create old-style static archives.
9062 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9063 old_postinstall_cmds='chmod 644 $oldlib'
9064 old_postuninstall_cmds=
9065
9066 if test -n "$RANLIB"; then
9067   case $host_os in
9068   bitrig* | openbsd*)
9069     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9070     ;;
9071   *)
9072     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9073     ;;
9074   esac
9075   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9076 fi
9077
9078 case $host_os in
9079   darwin*)
9080     lock_old_archive_extraction=yes ;;
9081   *)
9082     lock_old_archive_extraction=no ;;
9083 esac
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123 # If no C compiler was specified, use CC.
9124 LTCC=${LTCC-"$CC"}
9125
9126 # If no C compiler flags were specified, use CFLAGS.
9127 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9128
9129 # Allow CC to be a program name with arguments.
9130 compiler=$CC
9131
9132
9133 # Check for command to grab the raw symbol name followed by C symbol from nm.
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9135 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9136 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9137   $as_echo_n "(cached) " >&6
9138 else
9139
9140 # These are sane defaults that work on at least a few old systems.
9141 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9142
9143 # Character class describing NM global symbol codes.
9144 symcode='[BCDEGRST]'
9145
9146 # Regexp to match symbols that can be accessed directly from C.
9147 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9148
9149 # Define system-specific variables.
9150 case $host_os in
9151 aix*)
9152   symcode='[BCDT]'
9153   ;;
9154 cygwin* | mingw* | pw32* | cegcc*)
9155   symcode='[ABCDGISTW]'
9156   ;;
9157 hpux*)
9158   if test ia64 = "$host_cpu"; then
9159     symcode='[ABCDEGRST]'
9160   fi
9161   ;;
9162 irix* | nonstopux*)
9163   symcode='[BCDEGRST]'
9164   ;;
9165 osf*)
9166   symcode='[BCDEGQRST]'
9167   ;;
9168 solaris*)
9169   symcode='[BDRT]'
9170   ;;
9171 sco3.2v5*)
9172   symcode='[DT]'
9173   ;;
9174 sysv4.2uw2*)
9175   symcode='[DT]'
9176   ;;
9177 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9178   symcode='[ABDT]'
9179   ;;
9180 sysv4)
9181   symcode='[DFNSTU]'
9182   ;;
9183 esac
9184
9185 # If we're using GNU nm, then use its standard symbol codes.
9186 case `$NM -V 2>&1` in
9187 *GNU* | *'with BFD'*)
9188   symcode='[ABCDGIRSTW]' ;;
9189 esac
9190
9191 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9192   # Gets list of data symbols to import.
9193   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9194   # Adjust the below global symbol transforms to fixup imported variables.
9195   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9196   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9197   lt_c_name_lib_hook="\
9198   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9199   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9200 else
9201   # Disable hooks by default.
9202   lt_cv_sys_global_symbol_to_import=
9203   lt_cdecl_hook=
9204   lt_c_name_hook=
9205   lt_c_name_lib_hook=
9206 fi
9207
9208 # Transform an extracted symbol line into a proper C declaration.
9209 # Some systems (esp. on ia64) link data and code symbols differently,
9210 # so use this general approach.
9211 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9212 $lt_cdecl_hook\
9213 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9214 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9215
9216 # Transform an extracted symbol line into symbol name and symbol address
9217 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9218 $lt_c_name_hook\
9219 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9220 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9221
9222 # Transform an extracted symbol line into symbol name with lib prefix and
9223 # symbol address.
9224 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9225 $lt_c_name_lib_hook\
9226 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9227 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9228 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9229
9230 # Handle CRLF in mingw tool chain
9231 opt_cr=
9232 case $build_os in
9233 mingw*)
9234   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9235   ;;
9236 esac
9237
9238 # Try without a prefix underscore, then with it.
9239 for ac_symprfx in "" "_"; do
9240
9241   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9242   symxfrm="\\1 $ac_symprfx\\2 \\2"
9243
9244   # Write the raw and C identifiers.
9245   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9246     # Fake it for dumpbin and say T for any non-static function,
9247     # D for any global variable and I for any imported variable.
9248     # Also find C++ and __fastcall symbols from MSVC++,
9249     # which start with @ or ?.
9250     lt_cv_sys_global_symbol_pipe="$AWK '"\
9251 "     {last_section=section; section=\$ 3};"\
9252 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9253 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9254 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9255 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9256 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9257 "     \$ 0!~/External *\|/{next};"\
9258 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9259 "     {if(hide[section]) next};"\
9260 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9261 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9262 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9263 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9264 "     ' prfx=^$ac_symprfx"
9265   else
9266     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9267   fi
9268   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9269
9270   # Check to see that the pipe works correctly.
9271   pipe_works=no
9272
9273   rm -f conftest*
9274   cat > conftest.$ac_ext <<_LT_EOF
9275 #ifdef __cplusplus
9276 extern "C" {
9277 #endif
9278 char nm_test_var;
9279 void nm_test_func(void);
9280 void nm_test_func(void){}
9281 #ifdef __cplusplus
9282 }
9283 #endif
9284 int main(){nm_test_var='a';nm_test_func();return(0);}
9285 _LT_EOF
9286
9287   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9288   (eval $ac_compile) 2>&5
9289   ac_status=$?
9290   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9291   test $ac_status = 0; }; then
9292     # Now try to grab the symbols.
9293     nlist=conftest.nm
9294     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9295   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9296   ac_status=$?
9297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9298   test $ac_status = 0; } && test -s "$nlist"; then
9299       # Try sorting and uniquifying the output.
9300       if sort "$nlist" | uniq > "$nlist"T; then
9301         mv -f "$nlist"T "$nlist"
9302       else
9303         rm -f "$nlist"T
9304       fi
9305
9306       # Make sure that we snagged all the symbols we need.
9307       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9308         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9309           cat <<_LT_EOF > conftest.$ac_ext
9310 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9311 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9312 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9313    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9314 # define LT_DLSYM_CONST
9315 #elif defined __osf__
9316 /* This system does not cope well with relocations in const data.  */
9317 # define LT_DLSYM_CONST
9318 #else
9319 # define LT_DLSYM_CONST const
9320 #endif
9321
9322 #ifdef __cplusplus
9323 extern "C" {
9324 #endif
9325
9326 _LT_EOF
9327           # Now generate the symbol file.
9328           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9329
9330           cat <<_LT_EOF >> conftest.$ac_ext
9331
9332 /* The mapping between symbol names and symbols.  */
9333 LT_DLSYM_CONST struct {
9334   const char *name;
9335   void       *address;
9336 }
9337 lt__PROGRAM__LTX_preloaded_symbols[] =
9338 {
9339   { "@PROGRAM@", (void *) 0 },
9340 _LT_EOF
9341           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9342           cat <<\_LT_EOF >> conftest.$ac_ext
9343   {0, (void *) 0}
9344 };
9345
9346 /* This works around a problem in FreeBSD linker */
9347 #ifdef FREEBSD_WORKAROUND
9348 static const void *lt_preloaded_setup() {
9349   return lt__PROGRAM__LTX_preloaded_symbols;
9350 }
9351 #endif
9352
9353 #ifdef __cplusplus
9354 }
9355 #endif
9356 _LT_EOF
9357           # Now try linking the two files.
9358           mv conftest.$ac_objext conftstm.$ac_objext
9359           lt_globsym_save_LIBS=$LIBS
9360           lt_globsym_save_CFLAGS=$CFLAGS
9361           LIBS=conftstm.$ac_objext
9362           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9363           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9364   (eval $ac_link) 2>&5
9365   ac_status=$?
9366   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9367   test $ac_status = 0; } && test -s conftest$ac_exeext; then
9368             pipe_works=yes
9369           fi
9370           LIBS=$lt_globsym_save_LIBS
9371           CFLAGS=$lt_globsym_save_CFLAGS
9372         else
9373           echo "cannot find nm_test_func in $nlist" >&5
9374         fi
9375       else
9376         echo "cannot find nm_test_var in $nlist" >&5
9377       fi
9378     else
9379       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9380     fi
9381   else
9382     echo "$progname: failed program was:" >&5
9383     cat conftest.$ac_ext >&5
9384   fi
9385   rm -rf conftest* conftst*
9386
9387   # Do not use the global_symbol_pipe unless it works.
9388   if test yes = "$pipe_works"; then
9389     break
9390   else
9391     lt_cv_sys_global_symbol_pipe=
9392   fi
9393 done
9394
9395 fi
9396
9397 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9398   lt_cv_sys_global_symbol_to_cdecl=
9399 fi
9400 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9402 $as_echo "failed" >&6; }
9403 else
9404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9405 $as_echo "ok" >&6; }
9406 fi
9407
9408 # Response file support.
9409 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9410   nm_file_list_spec='@'
9411 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9412   nm_file_list_spec='@'
9413 fi
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9452 $as_echo_n "checking for sysroot... " >&6; }
9453
9454 # Check whether --with-sysroot was given.
9455 if test "${with_sysroot+set}" = set; then :
9456   withval=$with_sysroot;
9457 else
9458   with_sysroot=no
9459 fi
9460
9461
9462 lt_sysroot=
9463 case $with_sysroot in #(
9464  yes)
9465    if test yes = "$GCC"; then
9466      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9467    fi
9468    ;; #(
9469  /*)
9470    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9471    ;; #(
9472  no|'')
9473    ;; #(
9474  *)
9475    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9476 $as_echo "$with_sysroot" >&6; }
9477    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9478    ;;
9479 esac
9480
9481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9482 $as_echo "${lt_sysroot:-no}" >&6; }
9483
9484
9485
9486
9487
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9489 $as_echo_n "checking for a working dd... " >&6; }
9490 if ${ac_cv_path_lt_DD+:} false; then :
9491   $as_echo_n "(cached) " >&6
9492 else
9493   printf 0123456789abcdef0123456789abcdef >conftest.i
9494 cat conftest.i conftest.i >conftest2.i
9495 : ${lt_DD:=$DD}
9496 if test -z "$lt_DD"; then
9497   ac_path_lt_DD_found=false
9498   # Loop through the user's path and test for each of PROGNAME-LIST
9499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500 for as_dir in $PATH
9501 do
9502   IFS=$as_save_IFS
9503   test -z "$as_dir" && as_dir=.
9504     for ac_prog in dd; do
9505     for ac_exec_ext in '' $ac_executable_extensions; do
9506       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9507       as_fn_executable_p "$ac_path_lt_DD" || continue
9508 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9509   cmp -s conftest.i conftest.out \
9510   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9511 fi
9512       $ac_path_lt_DD_found && break 3
9513     done
9514   done
9515   done
9516 IFS=$as_save_IFS
9517   if test -z "$ac_cv_path_lt_DD"; then
9518     :
9519   fi
9520 else
9521   ac_cv_path_lt_DD=$lt_DD
9522 fi
9523
9524 rm -f conftest.i conftest2.i conftest.out
9525 fi
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9527 $as_echo "$ac_cv_path_lt_DD" >&6; }
9528
9529
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9531 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9532 if ${lt_cv_truncate_bin+:} false; then :
9533   $as_echo_n "(cached) " >&6
9534 else
9535   printf 0123456789abcdef0123456789abcdef >conftest.i
9536 cat conftest.i conftest.i >conftest2.i
9537 lt_cv_truncate_bin=
9538 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9539   cmp -s conftest.i conftest.out \
9540   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9541 fi
9542 rm -f conftest.i conftest2.i conftest.out
9543 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9544 fi
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9546 $as_echo "$lt_cv_truncate_bin" >&6; }
9547
9548
9549
9550
9551
9552
9553
9554 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9555 func_cc_basename ()
9556 {
9557     for cc_temp in $*""; do
9558       case $cc_temp in
9559         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9560         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9561         \-*) ;;
9562         *) break;;
9563       esac
9564     done
9565     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9566 }
9567
9568 # Check whether --enable-libtool-lock was given.
9569 if test "${enable_libtool_lock+set}" = set; then :
9570   enableval=$enable_libtool_lock;
9571 fi
9572
9573 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9574
9575 # Some flags need to be propagated to the compiler or linker for good
9576 # libtool support.
9577 case $host in
9578 ia64-*-hpux*)
9579   # Find out what ABI is being produced by ac_compile, and set mode
9580   # options accordingly.
9581   echo 'int i;' > conftest.$ac_ext
9582   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9583   (eval $ac_compile) 2>&5
9584   ac_status=$?
9585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9586   test $ac_status = 0; }; then
9587     case `/usr/bin/file conftest.$ac_objext` in
9588       *ELF-32*)
9589         HPUX_IA64_MODE=32
9590         ;;
9591       *ELF-64*)
9592         HPUX_IA64_MODE=64
9593         ;;
9594     esac
9595   fi
9596   rm -rf conftest*
9597   ;;
9598 *-*-irix6*)
9599   # Find out what ABI is being produced by ac_compile, and set linker
9600   # options accordingly.
9601   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9602   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9603   (eval $ac_compile) 2>&5
9604   ac_status=$?
9605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9606   test $ac_status = 0; }; then
9607     if test yes = "$lt_cv_prog_gnu_ld"; then
9608       case `/usr/bin/file conftest.$ac_objext` in
9609         *32-bit*)
9610           LD="${LD-ld} -melf32bsmip"
9611           ;;
9612         *N32*)
9613           LD="${LD-ld} -melf32bmipn32"
9614           ;;
9615         *64-bit*)
9616           LD="${LD-ld} -melf64bmip"
9617         ;;
9618       esac
9619     else
9620       case `/usr/bin/file conftest.$ac_objext` in
9621         *32-bit*)
9622           LD="${LD-ld} -32"
9623           ;;
9624         *N32*)
9625           LD="${LD-ld} -n32"
9626           ;;
9627         *64-bit*)
9628           LD="${LD-ld} -64"
9629           ;;
9630       esac
9631     fi
9632   fi
9633   rm -rf conftest*
9634   ;;
9635
9636 mips64*-*linux*)
9637   # Find out what ABI is being produced by ac_compile, and set linker
9638   # options accordingly.
9639   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9640   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9641   (eval $ac_compile) 2>&5
9642   ac_status=$?
9643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9644   test $ac_status = 0; }; then
9645     emul=elf
9646     case `/usr/bin/file conftest.$ac_objext` in
9647       *32-bit*)
9648         emul="${emul}32"
9649         ;;
9650       *64-bit*)
9651         emul="${emul}64"
9652         ;;
9653     esac
9654     case `/usr/bin/file conftest.$ac_objext` in
9655       *MSB*)
9656         emul="${emul}btsmip"
9657         ;;
9658       *LSB*)
9659         emul="${emul}ltsmip"
9660         ;;
9661     esac
9662     case `/usr/bin/file conftest.$ac_objext` in
9663       *N32*)
9664         emul="${emul}n32"
9665         ;;
9666     esac
9667     LD="${LD-ld} -m $emul"
9668   fi
9669   rm -rf conftest*
9670   ;;
9671
9672 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9673 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9674   # Find out what ABI is being produced by ac_compile, and set linker
9675   # options accordingly.  Note that the listed cases only cover the
9676   # situations where additional linker options are needed (such as when
9677   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9678   # vice versa); the common cases where no linker options are needed do
9679   # not appear in the list.
9680   echo 'int i;' > conftest.$ac_ext
9681   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9682   (eval $ac_compile) 2>&5
9683   ac_status=$?
9684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9685   test $ac_status = 0; }; then
9686     case `/usr/bin/file conftest.o` in
9687       *32-bit*)
9688         case $host in
9689           x86_64-*kfreebsd*-gnu)
9690             LD="${LD-ld} -m elf_i386_fbsd"
9691             ;;
9692           x86_64-*linux*)
9693             case `/usr/bin/file conftest.o` in
9694               *x86-64*)
9695                 LD="${LD-ld} -m elf32_x86_64"
9696                 ;;
9697               *)
9698                 LD="${LD-ld} -m elf_i386"
9699                 ;;
9700             esac
9701             ;;
9702           powerpc64le-*linux*)
9703             LD="${LD-ld} -m elf32lppclinux"
9704             ;;
9705           powerpc64-*linux*)
9706             LD="${LD-ld} -m elf32ppclinux"
9707             ;;
9708           s390x-*linux*)
9709             LD="${LD-ld} -m elf_s390"
9710             ;;
9711           sparc64-*linux*)
9712             LD="${LD-ld} -m elf32_sparc"
9713             ;;
9714         esac
9715         ;;
9716       *64-bit*)
9717         case $host in
9718           x86_64-*kfreebsd*-gnu)
9719             LD="${LD-ld} -m elf_x86_64_fbsd"
9720             ;;
9721           x86_64-*linux*)
9722             LD="${LD-ld} -m elf_x86_64"
9723             ;;
9724           powerpcle-*linux*)
9725             LD="${LD-ld} -m elf64lppc"
9726             ;;
9727           powerpc-*linux*)
9728             LD="${LD-ld} -m elf64ppc"
9729             ;;
9730           s390*-*linux*|s390*-*tpf*)
9731             LD="${LD-ld} -m elf64_s390"
9732             ;;
9733           sparc*-*linux*)
9734             LD="${LD-ld} -m elf64_sparc"
9735             ;;
9736         esac
9737         ;;
9738     esac
9739   fi
9740   rm -rf conftest*
9741   ;;
9742
9743 *-*-sco3.2v5*)
9744   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9745   SAVE_CFLAGS=$CFLAGS
9746   CFLAGS="$CFLAGS -belf"
9747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9748 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9749 if ${lt_cv_cc_needs_belf+:} false; then :
9750   $as_echo_n "(cached) " >&6
9751 else
9752   ac_ext=c
9753 ac_cpp='$CPP $CPPFLAGS'
9754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9757
9758      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759 /* end confdefs.h.  */
9760
9761 int
9762 main ()
9763 {
9764
9765   ;
9766   return 0;
9767 }
9768 _ACEOF
9769 if ac_fn_c_try_link "$LINENO"; then :
9770   lt_cv_cc_needs_belf=yes
9771 else
9772   lt_cv_cc_needs_belf=no
9773 fi
9774 rm -f core conftest.err conftest.$ac_objext \
9775     conftest$ac_exeext conftest.$ac_ext
9776      ac_ext=c
9777 ac_cpp='$CPP $CPPFLAGS'
9778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9781
9782 fi
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9784 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9785   if test yes != "$lt_cv_cc_needs_belf"; then
9786     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9787     CFLAGS=$SAVE_CFLAGS
9788   fi
9789   ;;
9790 *-*solaris*)
9791   # Find out what ABI is being produced by ac_compile, and set linker
9792   # options accordingly.
9793   echo 'int i;' > conftest.$ac_ext
9794   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9795   (eval $ac_compile) 2>&5
9796   ac_status=$?
9797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9798   test $ac_status = 0; }; then
9799     case `/usr/bin/file conftest.o` in
9800     *64-bit*)
9801       case $lt_cv_prog_gnu_ld in
9802       yes*)
9803         case $host in
9804         i?86-*-solaris*|x86_64-*-solaris*)
9805           LD="${LD-ld} -m elf_x86_64"
9806           ;;
9807         sparc*-*-solaris*)
9808           LD="${LD-ld} -m elf64_sparc"
9809           ;;
9810         esac
9811         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9812         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9813           LD=${LD-ld}_sol2
9814         fi
9815         ;;
9816       *)
9817         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9818           LD="${LD-ld} -64"
9819         fi
9820         ;;
9821       esac
9822       ;;
9823     esac
9824   fi
9825   rm -rf conftest*
9826   ;;
9827 esac
9828
9829 need_locks=$enable_libtool_lock
9830
9831 if test -n "$ac_tool_prefix"; then
9832   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9833 set dummy ${ac_tool_prefix}mt; ac_word=$2
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9835 $as_echo_n "checking for $ac_word... " >&6; }
9836 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9837   $as_echo_n "(cached) " >&6
9838 else
9839   if test -n "$MANIFEST_TOOL"; then
9840   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9841 else
9842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9843 for as_dir in $PATH
9844 do
9845   IFS=$as_save_IFS
9846   test -z "$as_dir" && as_dir=.
9847     for ac_exec_ext in '' $ac_executable_extensions; do
9848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9849     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9851     break 2
9852   fi
9853 done
9854   done
9855 IFS=$as_save_IFS
9856
9857 fi
9858 fi
9859 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9860 if test -n "$MANIFEST_TOOL"; then
9861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9862 $as_echo "$MANIFEST_TOOL" >&6; }
9863 else
9864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9865 $as_echo "no" >&6; }
9866 fi
9867
9868
9869 fi
9870 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9871   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9872   # Extract the first word of "mt", so it can be a program name with args.
9873 set dummy mt; ac_word=$2
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9875 $as_echo_n "checking for $ac_word... " >&6; }
9876 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9877   $as_echo_n "(cached) " >&6
9878 else
9879   if test -n "$ac_ct_MANIFEST_TOOL"; then
9880   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9881 else
9882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9883 for as_dir in $PATH
9884 do
9885   IFS=$as_save_IFS
9886   test -z "$as_dir" && as_dir=.
9887     for ac_exec_ext in '' $ac_executable_extensions; do
9888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9889     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9891     break 2
9892   fi
9893 done
9894   done
9895 IFS=$as_save_IFS
9896
9897 fi
9898 fi
9899 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9900 if test -n "$ac_ct_MANIFEST_TOOL"; then
9901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9902 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9903 else
9904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9905 $as_echo "no" >&6; }
9906 fi
9907
9908   if test "x$ac_ct_MANIFEST_TOOL" = x; then
9909     MANIFEST_TOOL=":"
9910   else
9911     case $cross_compiling:$ac_tool_warned in
9912 yes:)
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9915 ac_tool_warned=yes ;;
9916 esac
9917     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9918   fi
9919 else
9920   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9921 fi
9922
9923 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9925 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9926 if ${lt_cv_path_mainfest_tool+:} false; then :
9927   $as_echo_n "(cached) " >&6
9928 else
9929   lt_cv_path_mainfest_tool=no
9930   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9931   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9932   cat conftest.err >&5
9933   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9934     lt_cv_path_mainfest_tool=yes
9935   fi
9936   rm -f conftest*
9937 fi
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9939 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9940 if test yes != "$lt_cv_path_mainfest_tool"; then
9941   MANIFEST_TOOL=:
9942 fi
9943
9944
9945
9946
9947
9948
9949   case $host_os in
9950     rhapsody* | darwin*)
9951     if test -n "$ac_tool_prefix"; then
9952   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9953 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9955 $as_echo_n "checking for $ac_word... " >&6; }
9956 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9957   $as_echo_n "(cached) " >&6
9958 else
9959   if test -n "$DSYMUTIL"; then
9960   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9961 else
9962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9963 for as_dir in $PATH
9964 do
9965   IFS=$as_save_IFS
9966   test -z "$as_dir" && as_dir=.
9967     for ac_exec_ext in '' $ac_executable_extensions; do
9968   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9969     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9971     break 2
9972   fi
9973 done
9974   done
9975 IFS=$as_save_IFS
9976
9977 fi
9978 fi
9979 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9980 if test -n "$DSYMUTIL"; then
9981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9982 $as_echo "$DSYMUTIL" >&6; }
9983 else
9984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9985 $as_echo "no" >&6; }
9986 fi
9987
9988
9989 fi
9990 if test -z "$ac_cv_prog_DSYMUTIL"; then
9991   ac_ct_DSYMUTIL=$DSYMUTIL
9992   # Extract the first word of "dsymutil", so it can be a program name with args.
9993 set dummy dsymutil; ac_word=$2
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9995 $as_echo_n "checking for $ac_word... " >&6; }
9996 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9997   $as_echo_n "(cached) " >&6
9998 else
9999   if test -n "$ac_ct_DSYMUTIL"; then
10000   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10001 else
10002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10003 for as_dir in $PATH
10004 do
10005   IFS=$as_save_IFS
10006   test -z "$as_dir" && as_dir=.
10007     for ac_exec_ext in '' $ac_executable_extensions; do
10008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10009     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10011     break 2
10012   fi
10013 done
10014   done
10015 IFS=$as_save_IFS
10016
10017 fi
10018 fi
10019 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10020 if test -n "$ac_ct_DSYMUTIL"; then
10021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10022 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10023 else
10024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10025 $as_echo "no" >&6; }
10026 fi
10027
10028   if test "x$ac_ct_DSYMUTIL" = x; then
10029     DSYMUTIL=":"
10030   else
10031     case $cross_compiling:$ac_tool_warned in
10032 yes:)
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10035 ac_tool_warned=yes ;;
10036 esac
10037     DSYMUTIL=$ac_ct_DSYMUTIL
10038   fi
10039 else
10040   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10041 fi
10042
10043     if test -n "$ac_tool_prefix"; then
10044   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10045 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10047 $as_echo_n "checking for $ac_word... " >&6; }
10048 if ${ac_cv_prog_NMEDIT+:} false; then :
10049   $as_echo_n "(cached) " >&6
10050 else
10051   if test -n "$NMEDIT"; then
10052   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10053 else
10054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10055 for as_dir in $PATH
10056 do
10057   IFS=$as_save_IFS
10058   test -z "$as_dir" && as_dir=.
10059     for ac_exec_ext in '' $ac_executable_extensions; do
10060   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10061     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10063     break 2
10064   fi
10065 done
10066   done
10067 IFS=$as_save_IFS
10068
10069 fi
10070 fi
10071 NMEDIT=$ac_cv_prog_NMEDIT
10072 if test -n "$NMEDIT"; then
10073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10074 $as_echo "$NMEDIT" >&6; }
10075 else
10076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077 $as_echo "no" >&6; }
10078 fi
10079
10080
10081 fi
10082 if test -z "$ac_cv_prog_NMEDIT"; then
10083   ac_ct_NMEDIT=$NMEDIT
10084   # Extract the first word of "nmedit", so it can be a program name with args.
10085 set dummy nmedit; ac_word=$2
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10087 $as_echo_n "checking for $ac_word... " >&6; }
10088 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10089   $as_echo_n "(cached) " >&6
10090 else
10091   if test -n "$ac_ct_NMEDIT"; then
10092   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10093 else
10094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10095 for as_dir in $PATH
10096 do
10097   IFS=$as_save_IFS
10098   test -z "$as_dir" && as_dir=.
10099     for ac_exec_ext in '' $ac_executable_extensions; do
10100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10101     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10103     break 2
10104   fi
10105 done
10106   done
10107 IFS=$as_save_IFS
10108
10109 fi
10110 fi
10111 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10112 if test -n "$ac_ct_NMEDIT"; then
10113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10114 $as_echo "$ac_ct_NMEDIT" >&6; }
10115 else
10116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10117 $as_echo "no" >&6; }
10118 fi
10119
10120   if test "x$ac_ct_NMEDIT" = x; then
10121     NMEDIT=":"
10122   else
10123     case $cross_compiling:$ac_tool_warned in
10124 yes:)
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10127 ac_tool_warned=yes ;;
10128 esac
10129     NMEDIT=$ac_ct_NMEDIT
10130   fi
10131 else
10132   NMEDIT="$ac_cv_prog_NMEDIT"
10133 fi
10134
10135     if test -n "$ac_tool_prefix"; then
10136   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10137 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10139 $as_echo_n "checking for $ac_word... " >&6; }
10140 if ${ac_cv_prog_LIPO+:} false; then :
10141   $as_echo_n "(cached) " >&6
10142 else
10143   if test -n "$LIPO"; then
10144   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10145 else
10146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147 for as_dir in $PATH
10148 do
10149   IFS=$as_save_IFS
10150   test -z "$as_dir" && as_dir=.
10151     for ac_exec_ext in '' $ac_executable_extensions; do
10152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10153     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10155     break 2
10156   fi
10157 done
10158   done
10159 IFS=$as_save_IFS
10160
10161 fi
10162 fi
10163 LIPO=$ac_cv_prog_LIPO
10164 if test -n "$LIPO"; then
10165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10166 $as_echo "$LIPO" >&6; }
10167 else
10168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169 $as_echo "no" >&6; }
10170 fi
10171
10172
10173 fi
10174 if test -z "$ac_cv_prog_LIPO"; then
10175   ac_ct_LIPO=$LIPO
10176   # Extract the first word of "lipo", so it can be a program name with args.
10177 set dummy lipo; ac_word=$2
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10179 $as_echo_n "checking for $ac_word... " >&6; }
10180 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10181   $as_echo_n "(cached) " >&6
10182 else
10183   if test -n "$ac_ct_LIPO"; then
10184   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10185 else
10186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10187 for as_dir in $PATH
10188 do
10189   IFS=$as_save_IFS
10190   test -z "$as_dir" && as_dir=.
10191     for ac_exec_ext in '' $ac_executable_extensions; do
10192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10193     ac_cv_prog_ac_ct_LIPO="lipo"
10194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10195     break 2
10196   fi
10197 done
10198   done
10199 IFS=$as_save_IFS
10200
10201 fi
10202 fi
10203 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10204 if test -n "$ac_ct_LIPO"; then
10205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10206 $as_echo "$ac_ct_LIPO" >&6; }
10207 else
10208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10209 $as_echo "no" >&6; }
10210 fi
10211
10212   if test "x$ac_ct_LIPO" = x; then
10213     LIPO=":"
10214   else
10215     case $cross_compiling:$ac_tool_warned in
10216 yes:)
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10219 ac_tool_warned=yes ;;
10220 esac
10221     LIPO=$ac_ct_LIPO
10222   fi
10223 else
10224   LIPO="$ac_cv_prog_LIPO"
10225 fi
10226
10227     if test -n "$ac_tool_prefix"; then
10228   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10229 set dummy ${ac_tool_prefix}otool; ac_word=$2
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10231 $as_echo_n "checking for $ac_word... " >&6; }
10232 if ${ac_cv_prog_OTOOL+:} false; then :
10233   $as_echo_n "(cached) " >&6
10234 else
10235   if test -n "$OTOOL"; then
10236   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10237 else
10238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10239 for as_dir in $PATH
10240 do
10241   IFS=$as_save_IFS
10242   test -z "$as_dir" && as_dir=.
10243     for ac_exec_ext in '' $ac_executable_extensions; do
10244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10245     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10247     break 2
10248   fi
10249 done
10250   done
10251 IFS=$as_save_IFS
10252
10253 fi
10254 fi
10255 OTOOL=$ac_cv_prog_OTOOL
10256 if test -n "$OTOOL"; then
10257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10258 $as_echo "$OTOOL" >&6; }
10259 else
10260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10261 $as_echo "no" >&6; }
10262 fi
10263
10264
10265 fi
10266 if test -z "$ac_cv_prog_OTOOL"; then
10267   ac_ct_OTOOL=$OTOOL
10268   # Extract the first word of "otool", so it can be a program name with args.
10269 set dummy otool; ac_word=$2
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10271 $as_echo_n "checking for $ac_word... " >&6; }
10272 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10273   $as_echo_n "(cached) " >&6
10274 else
10275   if test -n "$ac_ct_OTOOL"; then
10276   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10277 else
10278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279 for as_dir in $PATH
10280 do
10281   IFS=$as_save_IFS
10282   test -z "$as_dir" && as_dir=.
10283     for ac_exec_ext in '' $ac_executable_extensions; do
10284   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10285     ac_cv_prog_ac_ct_OTOOL="otool"
10286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10287     break 2
10288   fi
10289 done
10290   done
10291 IFS=$as_save_IFS
10292
10293 fi
10294 fi
10295 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10296 if test -n "$ac_ct_OTOOL"; then
10297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10298 $as_echo "$ac_ct_OTOOL" >&6; }
10299 else
10300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10301 $as_echo "no" >&6; }
10302 fi
10303
10304   if test "x$ac_ct_OTOOL" = x; then
10305     OTOOL=":"
10306   else
10307     case $cross_compiling:$ac_tool_warned in
10308 yes:)
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10311 ac_tool_warned=yes ;;
10312 esac
10313     OTOOL=$ac_ct_OTOOL
10314   fi
10315 else
10316   OTOOL="$ac_cv_prog_OTOOL"
10317 fi
10318
10319     if test -n "$ac_tool_prefix"; then
10320   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10321 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10323 $as_echo_n "checking for $ac_word... " >&6; }
10324 if ${ac_cv_prog_OTOOL64+:} false; then :
10325   $as_echo_n "(cached) " >&6
10326 else
10327   if test -n "$OTOOL64"; then
10328   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10329 else
10330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10331 for as_dir in $PATH
10332 do
10333   IFS=$as_save_IFS
10334   test -z "$as_dir" && as_dir=.
10335     for ac_exec_ext in '' $ac_executable_extensions; do
10336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10337     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10339     break 2
10340   fi
10341 done
10342   done
10343 IFS=$as_save_IFS
10344
10345 fi
10346 fi
10347 OTOOL64=$ac_cv_prog_OTOOL64
10348 if test -n "$OTOOL64"; then
10349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10350 $as_echo "$OTOOL64" >&6; }
10351 else
10352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353 $as_echo "no" >&6; }
10354 fi
10355
10356
10357 fi
10358 if test -z "$ac_cv_prog_OTOOL64"; then
10359   ac_ct_OTOOL64=$OTOOL64
10360   # Extract the first word of "otool64", so it can be a program name with args.
10361 set dummy otool64; ac_word=$2
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363 $as_echo_n "checking for $ac_word... " >&6; }
10364 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10365   $as_echo_n "(cached) " >&6
10366 else
10367   if test -n "$ac_ct_OTOOL64"; then
10368   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10369 else
10370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371 for as_dir in $PATH
10372 do
10373   IFS=$as_save_IFS
10374   test -z "$as_dir" && as_dir=.
10375     for ac_exec_ext in '' $ac_executable_extensions; do
10376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10377     ac_cv_prog_ac_ct_OTOOL64="otool64"
10378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10379     break 2
10380   fi
10381 done
10382   done
10383 IFS=$as_save_IFS
10384
10385 fi
10386 fi
10387 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10388 if test -n "$ac_ct_OTOOL64"; then
10389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10390 $as_echo "$ac_ct_OTOOL64" >&6; }
10391 else
10392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393 $as_echo "no" >&6; }
10394 fi
10395
10396   if test "x$ac_ct_OTOOL64" = x; then
10397     OTOOL64=":"
10398   else
10399     case $cross_compiling:$ac_tool_warned in
10400 yes:)
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10403 ac_tool_warned=yes ;;
10404 esac
10405     OTOOL64=$ac_ct_OTOOL64
10406   fi
10407 else
10408   OTOOL64="$ac_cv_prog_OTOOL64"
10409 fi
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10438 $as_echo_n "checking for -single_module linker flag... " >&6; }
10439 if ${lt_cv_apple_cc_single_mod+:} false; then :
10440   $as_echo_n "(cached) " >&6
10441 else
10442   lt_cv_apple_cc_single_mod=no
10443       if test -z "$LT_MULTI_MODULE"; then
10444         # By default we will add the -single_module flag. You can override
10445         # by either setting the environment variable LT_MULTI_MODULE
10446         # non-empty at configure time, or by adding -multi_module to the
10447         # link flags.
10448         rm -rf libconftest.dylib*
10449         echo "int foo(void){return 1;}" > conftest.c
10450         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10451 -dynamiclib -Wl,-single_module conftest.c" >&5
10452         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10453           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10454         _lt_result=$?
10455         # If there is a non-empty error log, and "single_module"
10456         # appears in it, assume the flag caused a linker warning
10457         if test -s conftest.err && $GREP single_module conftest.err; then
10458           cat conftest.err >&5
10459         # Otherwise, if the output was created with a 0 exit code from
10460         # the compiler, it worked.
10461         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10462           lt_cv_apple_cc_single_mod=yes
10463         else
10464           cat conftest.err >&5
10465         fi
10466         rm -rf libconftest.dylib*
10467         rm -f conftest.*
10468       fi
10469 fi
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10471 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10472
10473     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10474 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10475 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10476   $as_echo_n "(cached) " >&6
10477 else
10478   lt_cv_ld_exported_symbols_list=no
10479       save_LDFLAGS=$LDFLAGS
10480       echo "_main" > conftest.sym
10481       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10482       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483 /* end confdefs.h.  */
10484
10485 int
10486 main ()
10487 {
10488
10489   ;
10490   return 0;
10491 }
10492 _ACEOF
10493 if ac_fn_c_try_link "$LINENO"; then :
10494   lt_cv_ld_exported_symbols_list=yes
10495 else
10496   lt_cv_ld_exported_symbols_list=no
10497 fi
10498 rm -f core conftest.err conftest.$ac_objext \
10499     conftest$ac_exeext conftest.$ac_ext
10500         LDFLAGS=$save_LDFLAGS
10501
10502 fi
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10504 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10505
10506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10507 $as_echo_n "checking for -force_load linker flag... " >&6; }
10508 if ${lt_cv_ld_force_load+:} false; then :
10509   $as_echo_n "(cached) " >&6
10510 else
10511   lt_cv_ld_force_load=no
10512       cat > conftest.c << _LT_EOF
10513 int forced_loaded() { return 2;}
10514 _LT_EOF
10515       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10516       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10517       echo "$AR cru libconftest.a conftest.o" >&5
10518       $AR cru libconftest.a conftest.o 2>&5
10519       echo "$RANLIB libconftest.a" >&5
10520       $RANLIB libconftest.a 2>&5
10521       cat > conftest.c << _LT_EOF
10522 int main() { return 0;}
10523 _LT_EOF
10524       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10525       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10526       _lt_result=$?
10527       if test -s conftest.err && $GREP force_load conftest.err; then
10528         cat conftest.err >&5
10529       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10530         lt_cv_ld_force_load=yes
10531       else
10532         cat conftest.err >&5
10533       fi
10534         rm -f conftest.err libconftest.a conftest conftest.c
10535         rm -rf conftest.dSYM
10536
10537 fi
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10539 $as_echo "$lt_cv_ld_force_load" >&6; }
10540     case $host_os in
10541     rhapsody* | darwin1.[012])
10542       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10543     darwin1.*)
10544       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10545     darwin*) # darwin 5.x on
10546       # if running on 10.5 or later, the deployment target defaults
10547       # to the OS version, if on x86, and 10.4, the deployment
10548       # target defaults to 10.4. Don't you love it?
10549       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10550         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10551           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10552         10.[012][,.]*)
10553           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10554         10.*)
10555           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10556       esac
10557     ;;
10558   esac
10559     if test yes = "$lt_cv_apple_cc_single_mod"; then
10560       _lt_dar_single_mod='$single_module'
10561     fi
10562     if test yes = "$lt_cv_ld_exported_symbols_list"; then
10563       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10564     else
10565       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10566     fi
10567     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10568       _lt_dsymutil='~$DSYMUTIL $lib || :'
10569     else
10570       _lt_dsymutil=
10571     fi
10572     ;;
10573   esac
10574
10575 # func_munge_path_list VARIABLE PATH
10576 # -----------------------------------
10577 # VARIABLE is name of variable containing _space_ separated list of
10578 # directories to be munged by the contents of PATH, which is string
10579 # having a format:
10580 # "DIR[:DIR]:"
10581 #       string "DIR[ DIR]" will be prepended to VARIABLE
10582 # ":DIR[:DIR]"
10583 #       string "DIR[ DIR]" will be appended to VARIABLE
10584 # "DIRP[:DIRP]::[DIRA:]DIRA"
10585 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10586 #       "DIRA[ DIRA]" will be appended to VARIABLE
10587 # "DIR[:DIR]"
10588 #       VARIABLE will be replaced by "DIR[ DIR]"
10589 func_munge_path_list ()
10590 {
10591     case x$2 in
10592     x)
10593         ;;
10594     *:)
10595         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10596         ;;
10597     x:*)
10598         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10599         ;;
10600     *::*)
10601         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10602         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10603         ;;
10604     *)
10605         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10606         ;;
10607     esac
10608 }
10609
10610 for ac_header in dlfcn.h
10611 do :
10612   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10613 "
10614 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10615   cat >>confdefs.h <<_ACEOF
10616 #define HAVE_DLFCN_H 1
10617 _ACEOF
10618
10619 fi
10620
10621 done
10622
10623
10624
10625
10626
10627 # Set options
10628 enable_win32_dll=yes
10629
10630 case $host in
10631 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10632   if test -n "$ac_tool_prefix"; then
10633   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10634 set dummy ${ac_tool_prefix}as; ac_word=$2
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10636 $as_echo_n "checking for $ac_word... " >&6; }
10637 if ${ac_cv_prog_AS+:} false; then :
10638   $as_echo_n "(cached) " >&6
10639 else
10640   if test -n "$AS"; then
10641   ac_cv_prog_AS="$AS" # Let the user override the test.
10642 else
10643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10644 for as_dir in $PATH
10645 do
10646   IFS=$as_save_IFS
10647   test -z "$as_dir" && as_dir=.
10648     for ac_exec_ext in '' $ac_executable_extensions; do
10649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10650     ac_cv_prog_AS="${ac_tool_prefix}as"
10651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10652     break 2
10653   fi
10654 done
10655   done
10656 IFS=$as_save_IFS
10657
10658 fi
10659 fi
10660 AS=$ac_cv_prog_AS
10661 if test -n "$AS"; then
10662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10663 $as_echo "$AS" >&6; }
10664 else
10665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666 $as_echo "no" >&6; }
10667 fi
10668
10669
10670 fi
10671 if test -z "$ac_cv_prog_AS"; then
10672   ac_ct_AS=$AS
10673   # Extract the first word of "as", so it can be a program name with args.
10674 set dummy as; ac_word=$2
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10676 $as_echo_n "checking for $ac_word... " >&6; }
10677 if ${ac_cv_prog_ac_ct_AS+:} false; then :
10678   $as_echo_n "(cached) " >&6
10679 else
10680   if test -n "$ac_ct_AS"; then
10681   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10682 else
10683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684 for as_dir in $PATH
10685 do
10686   IFS=$as_save_IFS
10687   test -z "$as_dir" && as_dir=.
10688     for ac_exec_ext in '' $ac_executable_extensions; do
10689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10690     ac_cv_prog_ac_ct_AS="as"
10691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10692     break 2
10693   fi
10694 done
10695   done
10696 IFS=$as_save_IFS
10697
10698 fi
10699 fi
10700 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10701 if test -n "$ac_ct_AS"; then
10702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10703 $as_echo "$ac_ct_AS" >&6; }
10704 else
10705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706 $as_echo "no" >&6; }
10707 fi
10708
10709   if test "x$ac_ct_AS" = x; then
10710     AS="false"
10711   else
10712     case $cross_compiling:$ac_tool_warned in
10713 yes:)
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10716 ac_tool_warned=yes ;;
10717 esac
10718     AS=$ac_ct_AS
10719   fi
10720 else
10721   AS="$ac_cv_prog_AS"
10722 fi
10723
10724   if test -n "$ac_tool_prefix"; then
10725   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10726 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10728 $as_echo_n "checking for $ac_word... " >&6; }
10729 if ${ac_cv_prog_DLLTOOL+:} false; then :
10730   $as_echo_n "(cached) " >&6
10731 else
10732   if test -n "$DLLTOOL"; then
10733   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10734 else
10735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10736 for as_dir in $PATH
10737 do
10738   IFS=$as_save_IFS
10739   test -z "$as_dir" && as_dir=.
10740     for ac_exec_ext in '' $ac_executable_extensions; do
10741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10742     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10744     break 2
10745   fi
10746 done
10747   done
10748 IFS=$as_save_IFS
10749
10750 fi
10751 fi
10752 DLLTOOL=$ac_cv_prog_DLLTOOL
10753 if test -n "$DLLTOOL"; then
10754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10755 $as_echo "$DLLTOOL" >&6; }
10756 else
10757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10758 $as_echo "no" >&6; }
10759 fi
10760
10761
10762 fi
10763 if test -z "$ac_cv_prog_DLLTOOL"; then
10764   ac_ct_DLLTOOL=$DLLTOOL
10765   # Extract the first word of "dlltool", so it can be a program name with args.
10766 set dummy dlltool; ac_word=$2
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10768 $as_echo_n "checking for $ac_word... " >&6; }
10769 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10770   $as_echo_n "(cached) " >&6
10771 else
10772   if test -n "$ac_ct_DLLTOOL"; then
10773   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10774 else
10775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10776 for as_dir in $PATH
10777 do
10778   IFS=$as_save_IFS
10779   test -z "$as_dir" && as_dir=.
10780     for ac_exec_ext in '' $ac_executable_extensions; do
10781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10782     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10784     break 2
10785   fi
10786 done
10787   done
10788 IFS=$as_save_IFS
10789
10790 fi
10791 fi
10792 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10793 if test -n "$ac_ct_DLLTOOL"; then
10794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10795 $as_echo "$ac_ct_DLLTOOL" >&6; }
10796 else
10797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10798 $as_echo "no" >&6; }
10799 fi
10800
10801   if test "x$ac_ct_DLLTOOL" = x; then
10802     DLLTOOL="false"
10803   else
10804     case $cross_compiling:$ac_tool_warned in
10805 yes:)
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10808 ac_tool_warned=yes ;;
10809 esac
10810     DLLTOOL=$ac_ct_DLLTOOL
10811   fi
10812 else
10813   DLLTOOL="$ac_cv_prog_DLLTOOL"
10814 fi
10815
10816   if test -n "$ac_tool_prefix"; then
10817   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10818 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10820 $as_echo_n "checking for $ac_word... " >&6; }
10821 if ${ac_cv_prog_OBJDUMP+:} false; then :
10822   $as_echo_n "(cached) " >&6
10823 else
10824   if test -n "$OBJDUMP"; then
10825   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10826 else
10827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10828 for as_dir in $PATH
10829 do
10830   IFS=$as_save_IFS
10831   test -z "$as_dir" && as_dir=.
10832     for ac_exec_ext in '' $ac_executable_extensions; do
10833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10834     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10836     break 2
10837   fi
10838 done
10839   done
10840 IFS=$as_save_IFS
10841
10842 fi
10843 fi
10844 OBJDUMP=$ac_cv_prog_OBJDUMP
10845 if test -n "$OBJDUMP"; then
10846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10847 $as_echo "$OBJDUMP" >&6; }
10848 else
10849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10850 $as_echo "no" >&6; }
10851 fi
10852
10853
10854 fi
10855 if test -z "$ac_cv_prog_OBJDUMP"; then
10856   ac_ct_OBJDUMP=$OBJDUMP
10857   # Extract the first word of "objdump", so it can be a program name with args.
10858 set dummy objdump; ac_word=$2
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10860 $as_echo_n "checking for $ac_word... " >&6; }
10861 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10862   $as_echo_n "(cached) " >&6
10863 else
10864   if test -n "$ac_ct_OBJDUMP"; then
10865   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10866 else
10867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10868 for as_dir in $PATH
10869 do
10870   IFS=$as_save_IFS
10871   test -z "$as_dir" && as_dir=.
10872     for ac_exec_ext in '' $ac_executable_extensions; do
10873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10874     ac_cv_prog_ac_ct_OBJDUMP="objdump"
10875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10876     break 2
10877   fi
10878 done
10879   done
10880 IFS=$as_save_IFS
10881
10882 fi
10883 fi
10884 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10885 if test -n "$ac_ct_OBJDUMP"; then
10886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10887 $as_echo "$ac_ct_OBJDUMP" >&6; }
10888 else
10889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890 $as_echo "no" >&6; }
10891 fi
10892
10893   if test "x$ac_ct_OBJDUMP" = x; then
10894     OBJDUMP="false"
10895   else
10896     case $cross_compiling:$ac_tool_warned in
10897 yes:)
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10900 ac_tool_warned=yes ;;
10901 esac
10902     OBJDUMP=$ac_ct_OBJDUMP
10903   fi
10904 else
10905   OBJDUMP="$ac_cv_prog_OBJDUMP"
10906 fi
10907
10908   ;;
10909 esac
10910
10911 test -z "$AS" && AS=as
10912
10913
10914
10915
10916
10917 test -z "$DLLTOOL" && DLLTOOL=dlltool
10918
10919
10920
10921
10922
10923 test -z "$OBJDUMP" && OBJDUMP=objdump
10924
10925
10926
10927
10928
10929
10930
10931         enable_dlopen=no
10932
10933
10934
10935             # Check whether --enable-shared was given.
10936 if test "${enable_shared+set}" = set; then :
10937   enableval=$enable_shared; p=${PACKAGE-default}
10938     case $enableval in
10939     yes) enable_shared=yes ;;
10940     no) enable_shared=no ;;
10941     *)
10942       enable_shared=no
10943       # Look at the argument we got.  We use all the common list separators.
10944       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10945       for pkg in $enableval; do
10946         IFS=$lt_save_ifs
10947         if test "X$pkg" = "X$p"; then
10948           enable_shared=yes
10949         fi
10950       done
10951       IFS=$lt_save_ifs
10952       ;;
10953     esac
10954 else
10955   enable_shared=yes
10956 fi
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966   # Check whether --enable-static was given.
10967 if test "${enable_static+set}" = set; then :
10968   enableval=$enable_static; p=${PACKAGE-default}
10969     case $enableval in
10970     yes) enable_static=yes ;;
10971     no) enable_static=no ;;
10972     *)
10973      enable_static=no
10974       # Look at the argument we got.  We use all the common list separators.
10975       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10976       for pkg in $enableval; do
10977         IFS=$lt_save_ifs
10978         if test "X$pkg" = "X$p"; then
10979           enable_static=yes
10980         fi
10981       done
10982       IFS=$lt_save_ifs
10983       ;;
10984     esac
10985 else
10986   enable_static=yes
10987 fi
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998 # Check whether --with-pic was given.
10999 if test "${with_pic+set}" = set; then :
11000   withval=$with_pic; lt_p=${PACKAGE-default}
11001     case $withval in
11002     yes|no) pic_mode=$withval ;;
11003     *)
11004       pic_mode=default
11005       # Look at the argument we got.  We use all the common list separators.
11006       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11007       for lt_pkg in $withval; do
11008         IFS=$lt_save_ifs
11009         if test "X$lt_pkg" = "X$lt_p"; then
11010           pic_mode=yes
11011         fi
11012       done
11013       IFS=$lt_save_ifs
11014       ;;
11015     esac
11016 else
11017   pic_mode=default
11018 fi
11019
11020
11021
11022
11023
11024
11025
11026
11027   # Check whether --enable-fast-install was given.
11028 if test "${enable_fast_install+set}" = set; then :
11029   enableval=$enable_fast_install; p=${PACKAGE-default}
11030     case $enableval in
11031     yes) enable_fast_install=yes ;;
11032     no) enable_fast_install=no ;;
11033     *)
11034       enable_fast_install=no
11035       # Look at the argument we got.  We use all the common list separators.
11036       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11037       for pkg in $enableval; do
11038         IFS=$lt_save_ifs
11039         if test "X$pkg" = "X$p"; then
11040           enable_fast_install=yes
11041         fi
11042       done
11043       IFS=$lt_save_ifs
11044       ;;
11045     esac
11046 else
11047   enable_fast_install=yes
11048 fi
11049
11050
11051
11052
11053
11054
11055
11056
11057   shared_archive_member_spec=
11058 case $host,$enable_shared in
11059 power*-*-aix[5-9]*,yes)
11060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11061 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11062
11063 # Check whether --with-aix-soname was given.
11064 if test "${with_aix_soname+set}" = set; then :
11065   withval=$with_aix_soname; case $withval in
11066     aix|svr4|both)
11067       ;;
11068     *)
11069       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11070       ;;
11071     esac
11072     lt_cv_with_aix_soname=$with_aix_soname
11073 else
11074   if ${lt_cv_with_aix_soname+:} false; then :
11075   $as_echo_n "(cached) " >&6
11076 else
11077   lt_cv_with_aix_soname=aix
11078 fi
11079
11080     with_aix_soname=$lt_cv_with_aix_soname
11081 fi
11082
11083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11084 $as_echo "$with_aix_soname" >&6; }
11085   if test aix != "$with_aix_soname"; then
11086     # For the AIX way of multilib, we name the shared archive member
11087     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11088     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11089     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11090     # the AIX toolchain works better with OBJECT_MODE set (default 32).
11091     if test 64 = "${OBJECT_MODE-32}"; then
11092       shared_archive_member_spec=shr_64
11093     else
11094       shared_archive_member_spec=shr
11095     fi
11096   fi
11097   ;;
11098 *)
11099   with_aix_soname=aix
11100   ;;
11101 esac
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112 # This can be used to rebuild libtool when needed
11113 LIBTOOL_DEPS=$ltmain
11114
11115 # Always use our own libtool.
11116 LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147 test -z "$LN_S" && LN_S="ln -s"
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162 if test -n "${ZSH_VERSION+set}"; then
11163    setopt NO_GLOB_SUBST
11164 fi
11165
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11167 $as_echo_n "checking for objdir... " >&6; }
11168 if ${lt_cv_objdir+:} false; then :
11169   $as_echo_n "(cached) " >&6
11170 else
11171   rm -f .libs 2>/dev/null
11172 mkdir .libs 2>/dev/null
11173 if test -d .libs; then
11174   lt_cv_objdir=.libs
11175 else
11176   # MS-DOS does not allow filenames that begin with a dot.
11177   lt_cv_objdir=_libs
11178 fi
11179 rmdir .libs 2>/dev/null
11180 fi
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11182 $as_echo "$lt_cv_objdir" >&6; }
11183 objdir=$lt_cv_objdir
11184
11185
11186
11187
11188
11189 cat >>confdefs.h <<_ACEOF
11190 #define LT_OBJDIR "$lt_cv_objdir/"
11191 _ACEOF
11192
11193
11194
11195
11196 case $host_os in
11197 aix3*)
11198   # AIX sometimes has problems with the GCC collect2 program.  For some
11199   # reason, if we set the COLLECT_NAMES environment variable, the problems
11200   # vanish in a puff of smoke.
11201   if test set != "${COLLECT_NAMES+set}"; then
11202     COLLECT_NAMES=
11203     export COLLECT_NAMES
11204   fi
11205   ;;
11206 esac
11207
11208 # Global variables:
11209 ofile=libtool
11210 can_build_shared=yes
11211
11212 # All known linkers require a '.a' archive for static linking (except MSVC,
11213 # which needs '.lib').
11214 libext=a
11215
11216 with_gnu_ld=$lt_cv_prog_gnu_ld
11217
11218 old_CC=$CC
11219 old_CFLAGS=$CFLAGS
11220
11221 # Set sane defaults for various variables
11222 test -z "$CC" && CC=cc
11223 test -z "$LTCC" && LTCC=$CC
11224 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11225 test -z "$LD" && LD=ld
11226 test -z "$ac_objext" && ac_objext=o
11227
11228 func_cc_basename $compiler
11229 cc_basename=$func_cc_basename_result
11230
11231
11232 # Only perform the check for file, if the check method requires it
11233 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11234 case $deplibs_check_method in
11235 file_magic*)
11236   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11237     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11238 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11239 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11240   $as_echo_n "(cached) " >&6
11241 else
11242   case $MAGIC_CMD in
11243 [\\/*] |  ?:[\\/]*)
11244   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11245   ;;
11246 *)
11247   lt_save_MAGIC_CMD=$MAGIC_CMD
11248   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11249   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11250   for ac_dir in $ac_dummy; do
11251     IFS=$lt_save_ifs
11252     test -z "$ac_dir" && ac_dir=.
11253     if test -f "$ac_dir/${ac_tool_prefix}file"; then
11254       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11255       if test -n "$file_magic_test_file"; then
11256         case $deplibs_check_method in
11257         "file_magic "*)
11258           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11259           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11260           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11261             $EGREP "$file_magic_regex" > /dev/null; then
11262             :
11263           else
11264             cat <<_LT_EOF 1>&2
11265
11266 *** Warning: the command libtool uses to detect shared libraries,
11267 *** $file_magic_cmd, produces output that libtool cannot recognize.
11268 *** The result is that libtool may fail to recognize shared libraries
11269 *** as such.  This will affect the creation of libtool libraries that
11270 *** depend on shared libraries, but programs linked with such libtool
11271 *** libraries will work regardless of this problem.  Nevertheless, you
11272 *** may want to report the problem to your system manager and/or to
11273 *** bug-libtool@gnu.org
11274
11275 _LT_EOF
11276           fi ;;
11277         esac
11278       fi
11279       break
11280     fi
11281   done
11282   IFS=$lt_save_ifs
11283   MAGIC_CMD=$lt_save_MAGIC_CMD
11284   ;;
11285 esac
11286 fi
11287
11288 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11289 if test -n "$MAGIC_CMD"; then
11290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11291 $as_echo "$MAGIC_CMD" >&6; }
11292 else
11293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11294 $as_echo "no" >&6; }
11295 fi
11296
11297
11298
11299
11300
11301 if test -z "$lt_cv_path_MAGIC_CMD"; then
11302   if test -n "$ac_tool_prefix"; then
11303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11304 $as_echo_n "checking for file... " >&6; }
11305 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11306   $as_echo_n "(cached) " >&6
11307 else
11308   case $MAGIC_CMD in
11309 [\\/*] |  ?:[\\/]*)
11310   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11311   ;;
11312 *)
11313   lt_save_MAGIC_CMD=$MAGIC_CMD
11314   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11315   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11316   for ac_dir in $ac_dummy; do
11317     IFS=$lt_save_ifs
11318     test -z "$ac_dir" && ac_dir=.
11319     if test -f "$ac_dir/file"; then
11320       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11321       if test -n "$file_magic_test_file"; then
11322         case $deplibs_check_method in
11323         "file_magic "*)
11324           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11325           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11326           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11327             $EGREP "$file_magic_regex" > /dev/null; then
11328             :
11329           else
11330             cat <<_LT_EOF 1>&2
11331
11332 *** Warning: the command libtool uses to detect shared libraries,
11333 *** $file_magic_cmd, produces output that libtool cannot recognize.
11334 *** The result is that libtool may fail to recognize shared libraries
11335 *** as such.  This will affect the creation of libtool libraries that
11336 *** depend on shared libraries, but programs linked with such libtool
11337 *** libraries will work regardless of this problem.  Nevertheless, you
11338 *** may want to report the problem to your system manager and/or to
11339 *** bug-libtool@gnu.org
11340
11341 _LT_EOF
11342           fi ;;
11343         esac
11344       fi
11345       break
11346     fi
11347   done
11348   IFS=$lt_save_ifs
11349   MAGIC_CMD=$lt_save_MAGIC_CMD
11350   ;;
11351 esac
11352 fi
11353
11354 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11355 if test -n "$MAGIC_CMD"; then
11356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11357 $as_echo "$MAGIC_CMD" >&6; }
11358 else
11359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11360 $as_echo "no" >&6; }
11361 fi
11362
11363
11364   else
11365     MAGIC_CMD=:
11366   fi
11367 fi
11368
11369   fi
11370   ;;
11371 esac
11372
11373 # Use C for the default configuration in the libtool script
11374
11375 lt_save_CC=$CC
11376 ac_ext=c
11377 ac_cpp='$CPP $CPPFLAGS'
11378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11381
11382
11383 # Source file extension for C test sources.
11384 ac_ext=c
11385
11386 # Object file extension for compiled C test sources.
11387 objext=o
11388 objext=$objext
11389
11390 # Code to be used in simple compile tests
11391 lt_simple_compile_test_code="int some_variable = 0;"
11392
11393 # Code to be used in simple link tests
11394 lt_simple_link_test_code='int main(){return(0);}'
11395
11396
11397
11398
11399
11400
11401
11402 # If no C compiler was specified, use CC.
11403 LTCC=${LTCC-"$CC"}
11404
11405 # If no C compiler flags were specified, use CFLAGS.
11406 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11407
11408 # Allow CC to be a program name with arguments.
11409 compiler=$CC
11410
11411 # Save the default compiler, since it gets overwritten when the other
11412 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11413 compiler_DEFAULT=$CC
11414
11415 # save warnings/boilerplate of simple test code
11416 ac_outfile=conftest.$ac_objext
11417 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11418 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11419 _lt_compiler_boilerplate=`cat conftest.err`
11420 $RM conftest*
11421
11422 ac_outfile=conftest.$ac_objext
11423 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11424 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11425 _lt_linker_boilerplate=`cat conftest.err`
11426 $RM -r conftest*
11427
11428
11429 ## CAVEAT EMPTOR:
11430 ## There is no encapsulation within the following macros, do not change
11431 ## the running order or otherwise move them around unless you know exactly
11432 ## what you are doing...
11433 if test -n "$compiler"; then
11434
11435 lt_prog_compiler_no_builtin_flag=
11436
11437 if test yes = "$GCC"; then
11438   case $cc_basename in
11439   nvcc*)
11440     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11441   *)
11442     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11443   esac
11444
11445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11446 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11447 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11448   $as_echo_n "(cached) " >&6
11449 else
11450   lt_cv_prog_compiler_rtti_exceptions=no
11451    ac_outfile=conftest.$ac_objext
11452    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11453    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11454    # Insert the option either (1) after the last *FLAGS variable, or
11455    # (2) before a word containing "conftest.", or (3) at the end.
11456    # Note that $ac_compile itself does not contain backslashes and begins
11457    # with a dollar sign (not a hyphen), so the echo should work correctly.
11458    # The option is referenced via a variable to avoid confusing sed.
11459    lt_compile=`echo "$ac_compile" | $SED \
11460    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11461    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11462    -e 's:$: $lt_compiler_flag:'`
11463    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11464    (eval "$lt_compile" 2>conftest.err)
11465    ac_status=$?
11466    cat conftest.err >&5
11467    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468    if (exit $ac_status) && test -s "$ac_outfile"; then
11469      # The compiler can only warn and ignore the option if not recognized
11470      # So say no if there are warnings other than the usual output.
11471      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11472      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11473      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11474        lt_cv_prog_compiler_rtti_exceptions=yes
11475      fi
11476    fi
11477    $RM conftest*
11478
11479 fi
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11481 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11482
11483 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11484     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11485 else
11486     :
11487 fi
11488
11489 fi
11490
11491
11492
11493
11494
11495
11496   lt_prog_compiler_wl=
11497 lt_prog_compiler_pic=
11498 lt_prog_compiler_static=
11499
11500
11501   if test yes = "$GCC"; then
11502     lt_prog_compiler_wl='-Wl,'
11503     lt_prog_compiler_static='-static'
11504
11505     case $host_os in
11506       aix*)
11507       # All AIX code is PIC.
11508       if test ia64 = "$host_cpu"; then
11509         # AIX 5 now supports IA64 processor
11510         lt_prog_compiler_static='-Bstatic'
11511       fi
11512       lt_prog_compiler_pic='-fPIC'
11513       ;;
11514
11515     amigaos*)
11516       case $host_cpu in
11517       powerpc)
11518             # see comment about AmigaOS4 .so support
11519             lt_prog_compiler_pic='-fPIC'
11520         ;;
11521       m68k)
11522             # FIXME: we need at least 68020 code to build shared libraries, but
11523             # adding the '-m68020' flag to GCC prevents building anything better,
11524             # like '-m68040'.
11525             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11526         ;;
11527       esac
11528       ;;
11529
11530     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11531       # PIC is the default for these OSes.
11532       ;;
11533
11534     mingw* | cygwin* | pw32* | os2* | cegcc*)
11535       # This hack is so that the source file can tell whether it is being
11536       # built for inclusion in a dll (and should export symbols for example).
11537       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11538       # (--disable-auto-import) libraries
11539       lt_prog_compiler_pic='-DDLL_EXPORT'
11540       case $host_os in
11541       os2*)
11542         lt_prog_compiler_static='$wl-static'
11543         ;;
11544       esac
11545       ;;
11546
11547     darwin* | rhapsody*)
11548       # PIC is the default on this platform
11549       # Common symbols not allowed in MH_DYLIB files
11550       lt_prog_compiler_pic='-fno-common'
11551       ;;
11552
11553     haiku*)
11554       # PIC is the default for Haiku.
11555       # The "-static" flag exists, but is broken.
11556       lt_prog_compiler_static=
11557       ;;
11558
11559     hpux*)
11560       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11561       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11562       # sets the default TLS model and affects inlining.
11563       case $host_cpu in
11564       hppa*64*)
11565         # +Z the default
11566         ;;
11567       *)
11568         lt_prog_compiler_pic='-fPIC'
11569         ;;
11570       esac
11571       ;;
11572
11573     interix[3-9]*)
11574       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11575       # Instead, we relocate shared libraries at runtime.
11576       ;;
11577
11578     msdosdjgpp*)
11579       # Just because we use GCC doesn't mean we suddenly get shared libraries
11580       # on systems that don't support them.
11581       lt_prog_compiler_can_build_shared=no
11582       enable_shared=no
11583       ;;
11584
11585     *nto* | *qnx*)
11586       # QNX uses GNU C++, but need to define -shared option too, otherwise
11587       # it will coredump.
11588       lt_prog_compiler_pic='-fPIC -shared'
11589       ;;
11590
11591     sysv4*MP*)
11592       if test -d /usr/nec; then
11593         lt_prog_compiler_pic=-Kconform_pic
11594       fi
11595       ;;
11596
11597     *)
11598       lt_prog_compiler_pic='-fPIC'
11599       ;;
11600     esac
11601
11602     case $cc_basename in
11603     nvcc*) # Cuda Compiler Driver 2.2
11604       lt_prog_compiler_wl='-Xlinker '
11605       if test -n "$lt_prog_compiler_pic"; then
11606         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11607       fi
11608       ;;
11609     esac
11610   else
11611     # PORTME Check for flag to pass linker flags through the system compiler.
11612     case $host_os in
11613     aix*)
11614       lt_prog_compiler_wl='-Wl,'
11615       if test ia64 = "$host_cpu"; then
11616         # AIX 5 now supports IA64 processor
11617         lt_prog_compiler_static='-Bstatic'
11618       else
11619         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11620       fi
11621       ;;
11622
11623     darwin* | rhapsody*)
11624       # PIC is the default on this platform
11625       # Common symbols not allowed in MH_DYLIB files
11626       lt_prog_compiler_pic='-fno-common'
11627       case $cc_basename in
11628       nagfor*)
11629         # NAG Fortran compiler
11630         lt_prog_compiler_wl='-Wl,-Wl,,'
11631         lt_prog_compiler_pic='-PIC'
11632         lt_prog_compiler_static='-Bstatic'
11633         ;;
11634       esac
11635       ;;
11636
11637     mingw* | cygwin* | pw32* | os2* | cegcc*)
11638       # This hack is so that the source file can tell whether it is being
11639       # built for inclusion in a dll (and should export symbols for example).
11640       lt_prog_compiler_pic='-DDLL_EXPORT'
11641       case $host_os in
11642       os2*)
11643         lt_prog_compiler_static='$wl-static'
11644         ;;
11645       esac
11646       ;;
11647
11648     hpux9* | hpux10* | hpux11*)
11649       lt_prog_compiler_wl='-Wl,'
11650       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11651       # not for PA HP-UX.
11652       case $host_cpu in
11653       hppa*64*|ia64*)
11654         # +Z the default
11655         ;;
11656       *)
11657         lt_prog_compiler_pic='+Z'
11658         ;;
11659       esac
11660       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11661       lt_prog_compiler_static='$wl-a ${wl}archive'
11662       ;;
11663
11664     irix5* | irix6* | nonstopux*)
11665       lt_prog_compiler_wl='-Wl,'
11666       # PIC (with -KPIC) is the default.
11667       lt_prog_compiler_static='-non_shared'
11668       ;;
11669
11670     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11671       case $cc_basename in
11672       # old Intel for x86_64, which still supported -KPIC.
11673       ecc*)
11674         lt_prog_compiler_wl='-Wl,'
11675         lt_prog_compiler_pic='-KPIC'
11676         lt_prog_compiler_static='-static'
11677         ;;
11678       # icc used to be incompatible with GCC.
11679       # ICC 10 doesn't accept -KPIC any more.
11680       icc* | ifort*)
11681         lt_prog_compiler_wl='-Wl,'
11682         lt_prog_compiler_pic='-fPIC'
11683         lt_prog_compiler_static='-static'
11684         ;;
11685       # Lahey Fortran 8.1.
11686       lf95*)
11687         lt_prog_compiler_wl='-Wl,'
11688         lt_prog_compiler_pic='--shared'
11689         lt_prog_compiler_static='--static'
11690         ;;
11691       nagfor*)
11692         # NAG Fortran compiler
11693         lt_prog_compiler_wl='-Wl,-Wl,,'
11694         lt_prog_compiler_pic='-PIC'
11695         lt_prog_compiler_static='-Bstatic'
11696         ;;
11697       tcc*)
11698         # Fabrice Bellard et al's Tiny C Compiler
11699         lt_prog_compiler_wl='-Wl,'
11700         lt_prog_compiler_pic='-fPIC'
11701         lt_prog_compiler_static='-static'
11702         ;;
11703       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11704         # Portland Group compilers (*not* the Pentium gcc compiler,
11705         # which looks to be a dead project)
11706         lt_prog_compiler_wl='-Wl,'
11707         lt_prog_compiler_pic='-fpic'
11708         lt_prog_compiler_static='-Bstatic'
11709         ;;
11710       ccc*)
11711         lt_prog_compiler_wl='-Wl,'
11712         # All Alpha code is PIC.
11713         lt_prog_compiler_static='-non_shared'
11714         ;;
11715       xl* | bgxl* | bgf* | mpixl*)
11716         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11717         lt_prog_compiler_wl='-Wl,'
11718         lt_prog_compiler_pic='-qpic'
11719         lt_prog_compiler_static='-qstaticlink'
11720         ;;
11721       *)
11722         case `$CC -V 2>&1 | sed 5q` in
11723         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11724           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11725           lt_prog_compiler_pic='-KPIC'
11726           lt_prog_compiler_static='-Bstatic'
11727           lt_prog_compiler_wl=''
11728           ;;
11729         *Sun\ F* | *Sun*Fortran*)
11730           lt_prog_compiler_pic='-KPIC'
11731           lt_prog_compiler_static='-Bstatic'
11732           lt_prog_compiler_wl='-Qoption ld '
11733           ;;
11734         *Sun\ C*)
11735           # Sun C 5.9
11736           lt_prog_compiler_pic='-KPIC'
11737           lt_prog_compiler_static='-Bstatic'
11738           lt_prog_compiler_wl='-Wl,'
11739           ;;
11740         *Intel*\ [CF]*Compiler*)
11741           lt_prog_compiler_wl='-Wl,'
11742           lt_prog_compiler_pic='-fPIC'
11743           lt_prog_compiler_static='-static'
11744           ;;
11745         *Portland\ Group*)
11746           lt_prog_compiler_wl='-Wl,'
11747           lt_prog_compiler_pic='-fpic'
11748           lt_prog_compiler_static='-Bstatic'
11749           ;;
11750         esac
11751         ;;
11752       esac
11753       ;;
11754
11755     newsos6)
11756       lt_prog_compiler_pic='-KPIC'
11757       lt_prog_compiler_static='-Bstatic'
11758       ;;
11759
11760     *nto* | *qnx*)
11761       # QNX uses GNU C++, but need to define -shared option too, otherwise
11762       # it will coredump.
11763       lt_prog_compiler_pic='-fPIC -shared'
11764       ;;
11765
11766     osf3* | osf4* | osf5*)
11767       lt_prog_compiler_wl='-Wl,'
11768       # All OSF/1 code is PIC.
11769       lt_prog_compiler_static='-non_shared'
11770       ;;
11771
11772     rdos*)
11773       lt_prog_compiler_static='-non_shared'
11774       ;;
11775
11776     solaris*)
11777       lt_prog_compiler_pic='-KPIC'
11778       lt_prog_compiler_static='-Bstatic'
11779       case $cc_basename in
11780       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11781         lt_prog_compiler_wl='-Qoption ld ';;
11782       *)
11783         lt_prog_compiler_wl='-Wl,';;
11784       esac
11785       ;;
11786
11787     sunos4*)
11788       lt_prog_compiler_wl='-Qoption ld '
11789       lt_prog_compiler_pic='-PIC'
11790       lt_prog_compiler_static='-Bstatic'
11791       ;;
11792
11793     sysv4 | sysv4.2uw2* | sysv4.3*)
11794       lt_prog_compiler_wl='-Wl,'
11795       lt_prog_compiler_pic='-KPIC'
11796       lt_prog_compiler_static='-Bstatic'
11797       ;;
11798
11799     sysv4*MP*)
11800       if test -d /usr/nec; then
11801         lt_prog_compiler_pic='-Kconform_pic'
11802         lt_prog_compiler_static='-Bstatic'
11803       fi
11804       ;;
11805
11806     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11807       lt_prog_compiler_wl='-Wl,'
11808       lt_prog_compiler_pic='-KPIC'
11809       lt_prog_compiler_static='-Bstatic'
11810       ;;
11811
11812     unicos*)
11813       lt_prog_compiler_wl='-Wl,'
11814       lt_prog_compiler_can_build_shared=no
11815       ;;
11816
11817     uts4*)
11818       lt_prog_compiler_pic='-pic'
11819       lt_prog_compiler_static='-Bstatic'
11820       ;;
11821
11822     *)
11823       lt_prog_compiler_can_build_shared=no
11824       ;;
11825     esac
11826   fi
11827
11828 case $host_os in
11829   # For platforms that do not support PIC, -DPIC is meaningless:
11830   *djgpp*)
11831     lt_prog_compiler_pic=
11832     ;;
11833   *)
11834     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11835     ;;
11836 esac
11837
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11839 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11840 if ${lt_cv_prog_compiler_pic+:} false; then :
11841   $as_echo_n "(cached) " >&6
11842 else
11843   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11844 fi
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11846 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11847 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11848
11849 #
11850 # Check to make sure the PIC flag actually works.
11851 #
11852 if test -n "$lt_prog_compiler_pic"; then
11853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11854 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11855 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11856   $as_echo_n "(cached) " >&6
11857 else
11858   lt_cv_prog_compiler_pic_works=no
11859    ac_outfile=conftest.$ac_objext
11860    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11861    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11862    # Insert the option either (1) after the last *FLAGS variable, or
11863    # (2) before a word containing "conftest.", or (3) at the end.
11864    # Note that $ac_compile itself does not contain backslashes and begins
11865    # with a dollar sign (not a hyphen), so the echo should work correctly.
11866    # The option is referenced via a variable to avoid confusing sed.
11867    lt_compile=`echo "$ac_compile" | $SED \
11868    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11869    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11870    -e 's:$: $lt_compiler_flag:'`
11871    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11872    (eval "$lt_compile" 2>conftest.err)
11873    ac_status=$?
11874    cat conftest.err >&5
11875    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876    if (exit $ac_status) && test -s "$ac_outfile"; then
11877      # The compiler can only warn and ignore the option if not recognized
11878      # So say no if there are warnings other than the usual output.
11879      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11880      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11881      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11882        lt_cv_prog_compiler_pic_works=yes
11883      fi
11884    fi
11885    $RM conftest*
11886
11887 fi
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11889 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11890
11891 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11892     case $lt_prog_compiler_pic in
11893      "" | " "*) ;;
11894      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11895      esac
11896 else
11897     lt_prog_compiler_pic=
11898      lt_prog_compiler_can_build_shared=no
11899 fi
11900
11901 fi
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913 #
11914 # Check to make sure the static flag actually works.
11915 #
11916 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11918 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11919 if ${lt_cv_prog_compiler_static_works+:} false; then :
11920   $as_echo_n "(cached) " >&6
11921 else
11922   lt_cv_prog_compiler_static_works=no
11923    save_LDFLAGS=$LDFLAGS
11924    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11925    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11926    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11927      # The linker can only warn and ignore the option if not recognized
11928      # So say no if there are warnings
11929      if test -s conftest.err; then
11930        # Append any errors to the config.log.
11931        cat conftest.err 1>&5
11932        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11933        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11934        if diff conftest.exp conftest.er2 >/dev/null; then
11935          lt_cv_prog_compiler_static_works=yes
11936        fi
11937      else
11938        lt_cv_prog_compiler_static_works=yes
11939      fi
11940    fi
11941    $RM -r conftest*
11942    LDFLAGS=$save_LDFLAGS
11943
11944 fi
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11946 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11947
11948 if test yes = "$lt_cv_prog_compiler_static_works"; then
11949     :
11950 else
11951     lt_prog_compiler_static=
11952 fi
11953
11954
11955
11956
11957
11958
11959
11960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11961 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11962 if ${lt_cv_prog_compiler_c_o+:} false; then :
11963   $as_echo_n "(cached) " >&6
11964 else
11965   lt_cv_prog_compiler_c_o=no
11966    $RM -r conftest 2>/dev/null
11967    mkdir conftest
11968    cd conftest
11969    mkdir out
11970    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11971
11972    lt_compiler_flag="-o out/conftest2.$ac_objext"
11973    # Insert the option either (1) after the last *FLAGS variable, or
11974    # (2) before a word containing "conftest.", or (3) at the end.
11975    # Note that $ac_compile itself does not contain backslashes and begins
11976    # with a dollar sign (not a hyphen), so the echo should work correctly.
11977    lt_compile=`echo "$ac_compile" | $SED \
11978    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11979    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11980    -e 's:$: $lt_compiler_flag:'`
11981    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11982    (eval "$lt_compile" 2>out/conftest.err)
11983    ac_status=$?
11984    cat out/conftest.err >&5
11985    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11987    then
11988      # The compiler can only warn and ignore the option if not recognized
11989      # So say no if there are warnings
11990      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11991      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11992      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11993        lt_cv_prog_compiler_c_o=yes
11994      fi
11995    fi
11996    chmod u+w . 2>&5
11997    $RM conftest*
11998    # SGI C++ compiler will create directory out/ii_files/ for
11999    # template instantiation
12000    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12001    $RM out/* && rmdir out
12002    cd ..
12003    $RM -r conftest
12004    $RM conftest*
12005
12006 fi
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12008 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12009
12010
12011
12012
12013
12014
12015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12016 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12017 if ${lt_cv_prog_compiler_c_o+:} false; then :
12018   $as_echo_n "(cached) " >&6
12019 else
12020   lt_cv_prog_compiler_c_o=no
12021    $RM -r conftest 2>/dev/null
12022    mkdir conftest
12023    cd conftest
12024    mkdir out
12025    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12026
12027    lt_compiler_flag="-o out/conftest2.$ac_objext"
12028    # Insert the option either (1) after the last *FLAGS variable, or
12029    # (2) before a word containing "conftest.", or (3) at the end.
12030    # Note that $ac_compile itself does not contain backslashes and begins
12031    # with a dollar sign (not a hyphen), so the echo should work correctly.
12032    lt_compile=`echo "$ac_compile" | $SED \
12033    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12034    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12035    -e 's:$: $lt_compiler_flag:'`
12036    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12037    (eval "$lt_compile" 2>out/conftest.err)
12038    ac_status=$?
12039    cat out/conftest.err >&5
12040    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12042    then
12043      # The compiler can only warn and ignore the option if not recognized
12044      # So say no if there are warnings
12045      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12046      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12047      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12048        lt_cv_prog_compiler_c_o=yes
12049      fi
12050    fi
12051    chmod u+w . 2>&5
12052    $RM conftest*
12053    # SGI C++ compiler will create directory out/ii_files/ for
12054    # template instantiation
12055    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12056    $RM out/* && rmdir out
12057    cd ..
12058    $RM -r conftest
12059    $RM conftest*
12060
12061 fi
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12063 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12064
12065
12066
12067
12068 hard_links=nottested
12069 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12070   # do not overwrite the value of need_locks provided by the user
12071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12072 $as_echo_n "checking if we can lock with hard links... " >&6; }
12073   hard_links=yes
12074   $RM conftest*
12075   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12076   touch conftest.a
12077   ln conftest.a conftest.b 2>&5 || hard_links=no
12078   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12080 $as_echo "$hard_links" >&6; }
12081   if test no = "$hard_links"; then
12082     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12083 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12084     need_locks=warn
12085   fi
12086 else
12087   need_locks=no
12088 fi
12089
12090
12091
12092
12093
12094
12095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12096 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12097
12098   runpath_var=
12099   allow_undefined_flag=
12100   always_export_symbols=no
12101   archive_cmds=
12102   archive_expsym_cmds=
12103   compiler_needs_object=no
12104   enable_shared_with_static_runtimes=no
12105   export_dynamic_flag_spec=
12106   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12107   hardcode_automatic=no
12108   hardcode_direct=no
12109   hardcode_direct_absolute=no
12110   hardcode_libdir_flag_spec=
12111   hardcode_libdir_separator=
12112   hardcode_minus_L=no
12113   hardcode_shlibpath_var=unsupported
12114   inherit_rpath=no
12115   link_all_deplibs=unknown
12116   module_cmds=
12117   module_expsym_cmds=
12118   old_archive_from_new_cmds=
12119   old_archive_from_expsyms_cmds=
12120   thread_safe_flag_spec=
12121   whole_archive_flag_spec=
12122   # include_expsyms should be a list of space-separated symbols to be *always*
12123   # included in the symbol list
12124   include_expsyms=
12125   # exclude_expsyms can be an extended regexp of symbols to exclude
12126   # it will be wrapped by ' (' and ')$', so one must not match beginning or
12127   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12128   # as well as any symbol that contains 'd'.
12129   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12130   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12131   # platforms (ab)use it in PIC code, but their linkers get confused if
12132   # the symbol is explicitly referenced.  Since portable code cannot
12133   # rely on this symbol name, it's probably fine to never include it in
12134   # preloaded symbol tables.
12135   # Exclude shared library initialization/finalization symbols.
12136   extract_expsyms_cmds=
12137
12138   case $host_os in
12139   cygwin* | mingw* | pw32* | cegcc*)
12140     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12141     # When not using gcc, we currently assume that we are using
12142     # Microsoft Visual C++.
12143     if test yes != "$GCC"; then
12144       with_gnu_ld=no
12145     fi
12146     ;;
12147   interix*)
12148     # we just hope/assume this is gcc and not c89 (= MSVC++)
12149     with_gnu_ld=yes
12150     ;;
12151   openbsd* | bitrig*)
12152     with_gnu_ld=no
12153     ;;
12154   esac
12155
12156   ld_shlibs=yes
12157
12158   # On some targets, GNU ld is compatible enough with the native linker
12159   # that we're better off using the native interface for both.
12160   lt_use_gnu_ld_interface=no
12161   if test yes = "$with_gnu_ld"; then
12162     case $host_os in
12163       aix*)
12164         # The AIX port of GNU ld has always aspired to compatibility
12165         # with the native linker.  However, as the warning in the GNU ld
12166         # block says, versions before 2.19.5* couldn't really create working
12167         # shared libraries, regardless of the interface used.
12168         case `$LD -v 2>&1` in
12169           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12170           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12171           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12172           *)
12173             lt_use_gnu_ld_interface=yes
12174             ;;
12175         esac
12176         ;;
12177       *)
12178         lt_use_gnu_ld_interface=yes
12179         ;;
12180     esac
12181   fi
12182
12183   if test yes = "$lt_use_gnu_ld_interface"; then
12184     # If archive_cmds runs LD, not CC, wlarc should be empty
12185     wlarc='$wl'
12186
12187     # Set some defaults for GNU ld with shared library support. These
12188     # are reset later if shared libraries are not supported. Putting them
12189     # here allows them to be overridden if necessary.
12190     runpath_var=LD_RUN_PATH
12191     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12192     export_dynamic_flag_spec='$wl--export-dynamic'
12193     # ancient GNU ld didn't support --whole-archive et. al.
12194     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12195       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12196     else
12197       whole_archive_flag_spec=
12198     fi
12199     supports_anon_versioning=no
12200     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12201       *GNU\ gold*) supports_anon_versioning=yes ;;
12202       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12203       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12204       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12205       *\ 2.11.*) ;; # other 2.11 versions
12206       *) supports_anon_versioning=yes ;;
12207     esac
12208
12209     # See if GNU ld supports shared libraries.
12210     case $host_os in
12211     aix[3-9]*)
12212       # On AIX/PPC, the GNU linker is very broken
12213       if test ia64 != "$host_cpu"; then
12214         ld_shlibs=no
12215         cat <<_LT_EOF 1>&2
12216
12217 *** Warning: the GNU linker, at least up to release 2.19, is reported
12218 *** to be unable to reliably create shared libraries on AIX.
12219 *** Therefore, libtool is disabling shared libraries support.  If you
12220 *** really care for shared libraries, you may want to install binutils
12221 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12222 *** You will then need to restart the configuration process.
12223
12224 _LT_EOF
12225       fi
12226       ;;
12227
12228     amigaos*)
12229       case $host_cpu in
12230       powerpc)
12231             # see comment about AmigaOS4 .so support
12232             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12233             archive_expsym_cmds=''
12234         ;;
12235       m68k)
12236             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12237             hardcode_libdir_flag_spec='-L$libdir'
12238             hardcode_minus_L=yes
12239         ;;
12240       esac
12241       ;;
12242
12243     beos*)
12244       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12245         allow_undefined_flag=unsupported
12246         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12247         # support --undefined.  This deserves some investigation.  FIXME
12248         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12249       else
12250         ld_shlibs=no
12251       fi
12252       ;;
12253
12254     cygwin* | mingw* | pw32* | cegcc*)
12255       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12256       # as there is no search path for DLLs.
12257       hardcode_libdir_flag_spec='-L$libdir'
12258       export_dynamic_flag_spec='$wl--export-all-symbols'
12259       allow_undefined_flag=unsupported
12260       always_export_symbols=no
12261       enable_shared_with_static_runtimes=yes
12262       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
12263       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12264
12265       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12266         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12267         # If the export-symbols file already is a .def file, use it as
12268         # is; otherwise, prepend EXPORTS...
12269         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12270           cp $export_symbols $output_objdir/$soname.def;
12271         else
12272           echo EXPORTS > $output_objdir/$soname.def;
12273           cat $export_symbols >> $output_objdir/$soname.def;
12274         fi~
12275         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12276       else
12277         ld_shlibs=no
12278       fi
12279       ;;
12280
12281     haiku*)
12282       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12283       link_all_deplibs=yes
12284       ;;
12285
12286     os2*)
12287       hardcode_libdir_flag_spec='-L$libdir'
12288       hardcode_minus_L=yes
12289       allow_undefined_flag=unsupported
12290       shrext_cmds=.dll
12291       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12292         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12293         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12294         $ECHO EXPORTS >> $output_objdir/$libname.def~
12295         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12296         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12297         emximp -o $lib $output_objdir/$libname.def'
12298       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12299         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12300         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12301         $ECHO EXPORTS >> $output_objdir/$libname.def~
12302         prefix_cmds="$SED"~
12303         if test EXPORTS = "`$SED 1q $export_symbols`"; then
12304           prefix_cmds="$prefix_cmds -e 1d";
12305         fi~
12306         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12307         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12308         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12309         emximp -o $lib $output_objdir/$libname.def'
12310       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12311       enable_shared_with_static_runtimes=yes
12312       ;;
12313
12314     interix[3-9]*)
12315       hardcode_direct=no
12316       hardcode_shlibpath_var=no
12317       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12318       export_dynamic_flag_spec='$wl-E'
12319       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12320       # Instead, shared libraries are loaded at an image base (0x10000000 by
12321       # default) and relocated if they conflict, which is a slow very memory
12322       # consuming and fragmenting process.  To avoid this, we pick a random,
12323       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12324       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12325       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12326       archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12327       ;;
12328
12329     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12330       tmp_diet=no
12331       if test linux-dietlibc = "$host_os"; then
12332         case $cc_basename in
12333           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12334         esac
12335       fi
12336       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12337          && test no = "$tmp_diet"
12338       then
12339         tmp_addflag=' $pic_flag'
12340         tmp_sharedflag='-shared'
12341         case $cc_basename,$host_cpu in
12342         pgcc*)                          # Portland Group C compiler
12343           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12344           tmp_addflag=' $pic_flag'
12345           ;;
12346         pgf77* | pgf90* | pgf95* | pgfortran*)
12347                                         # Portland Group f77 and f90 compilers
12348           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12349           tmp_addflag=' $pic_flag -Mnomain' ;;
12350         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12351           tmp_addflag=' -i_dynamic' ;;
12352         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12353           tmp_addflag=' -i_dynamic -nofor_main' ;;
12354         ifc* | ifort*)                  # Intel Fortran compiler
12355           tmp_addflag=' -nofor_main' ;;
12356         lf95*)                          # Lahey Fortran 8.1
12357           whole_archive_flag_spec=
12358           tmp_sharedflag='--shared' ;;
12359         nagfor*)                        # NAGFOR 5.3
12360           tmp_sharedflag='-Wl,-shared' ;;
12361         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12362           tmp_sharedflag='-qmkshrobj'
12363           tmp_addflag= ;;
12364         nvcc*)  # Cuda Compiler Driver 2.2
12365           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12366           compiler_needs_object=yes
12367           ;;
12368         esac
12369         case `$CC -V 2>&1 | sed 5q` in
12370         *Sun\ C*)                       # Sun C 5.9
12371           whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12372           compiler_needs_object=yes
12373           tmp_sharedflag='-G' ;;
12374         *Sun\ F*)                       # Sun Fortran 8.3
12375           tmp_sharedflag='-G' ;;
12376         esac
12377         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12378
12379         if test yes = "$supports_anon_versioning"; then
12380           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12381             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12382             echo "local: *; };" >> $output_objdir/$libname.ver~
12383             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12384         fi
12385
12386         case $cc_basename in
12387         tcc*)
12388           export_dynamic_flag_spec='-rdynamic'
12389           ;;
12390         xlf* | bgf* | bgxlf* | mpixlf*)
12391           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12392           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12393           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12394           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12395           if test yes = "$supports_anon_versioning"; then
12396             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12397               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12398               echo "local: *; };" >> $output_objdir/$libname.ver~
12399               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12400           fi
12401           ;;
12402         esac
12403       else
12404         ld_shlibs=no
12405       fi
12406       ;;
12407
12408     netbsd*)
12409       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12410         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12411         wlarc=
12412       else
12413         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12414         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12415       fi
12416       ;;
12417
12418     solaris*)
12419       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12420         ld_shlibs=no
12421         cat <<_LT_EOF 1>&2
12422
12423 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12424 *** create shared libraries on Solaris systems.  Therefore, libtool
12425 *** is disabling shared libraries support.  We urge you to upgrade GNU
12426 *** binutils to release 2.9.1 or newer.  Another option is to modify
12427 *** your PATH or compiler configuration so that the native linker is
12428 *** used, and then restart.
12429
12430 _LT_EOF
12431       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12432         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12433         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12434       else
12435         ld_shlibs=no
12436       fi
12437       ;;
12438
12439     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12440       case `$LD -v 2>&1` in
12441         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12442         ld_shlibs=no
12443         cat <<_LT_EOF 1>&2
12444
12445 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12446 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12447 *** is disabling shared libraries support.  We urge you to upgrade GNU
12448 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12449 *** your PATH or compiler configuration so that the native linker is
12450 *** used, and then restart.
12451
12452 _LT_EOF
12453         ;;
12454         *)
12455           # For security reasons, it is highly recommended that you always
12456           # use absolute paths for naming shared libraries, and exclude the
12457           # DT_RUNPATH tag from executables and libraries.  But doing so
12458           # requires that you compile everything twice, which is a pain.
12459           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12460             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12461             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12462             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12463           else
12464             ld_shlibs=no
12465           fi
12466         ;;
12467       esac
12468       ;;
12469
12470     sunos4*)
12471       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12472       wlarc=
12473       hardcode_direct=yes
12474       hardcode_shlibpath_var=no
12475       ;;
12476
12477     *)
12478       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12479         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12480         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12481       else
12482         ld_shlibs=no
12483       fi
12484       ;;
12485     esac
12486
12487     if test no = "$ld_shlibs"; then
12488       runpath_var=
12489       hardcode_libdir_flag_spec=
12490       export_dynamic_flag_spec=
12491       whole_archive_flag_spec=
12492     fi
12493   else
12494     # PORTME fill in a description of your system's linker (not GNU ld)
12495     case $host_os in
12496     aix3*)
12497       allow_undefined_flag=unsupported
12498       always_export_symbols=yes
12499       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12500       # Note: this linker hardcodes the directories in LIBPATH if there
12501       # are no directories specified by -L.
12502       hardcode_minus_L=yes
12503       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12504         # Neither direct hardcoding nor static linking is supported with a
12505         # broken collect2.
12506         hardcode_direct=unsupported
12507       fi
12508       ;;
12509
12510     aix[4-9]*)
12511       if test ia64 = "$host_cpu"; then
12512         # On IA64, the linker does run time linking by default, so we don't
12513         # have to do anything special.
12514         aix_use_runtimelinking=no
12515         exp_sym_flag='-Bexport'
12516         no_entry_flag=
12517       else
12518         # If we're using GNU nm, then we don't want the "-C" option.
12519         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12520         # Without the "-l" option, or with the "-B" option, AIX nm treats
12521         # weak defined symbols like other global defined symbols, whereas
12522         # GNU nm marks them as "W".
12523         # While the 'weak' keyword is ignored in the Export File, we need
12524         # it in the Import File for the 'aix-soname' feature, so we have
12525         # to replace the "-B" option with "-P" for AIX nm.
12526         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12527           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12528         else
12529           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12530         fi
12531         aix_use_runtimelinking=no
12532
12533         # Test if we are trying to use run time linking or normal
12534         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12535         # have runtime linking enabled, and use it for executables.
12536         # For shared libraries, we enable/disable runtime linking
12537         # depending on the kind of the shared library created -
12538         # when "with_aix_soname,aix_use_runtimelinking" is:
12539         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12540         # "aix,yes"  lib.so          shared, rtl:yes, for executables
12541         #            lib.a           static archive
12542         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
12543         #            lib.a(lib.so.V) shared, rtl:no,  for executables
12544         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12545         #            lib.a(lib.so.V) shared, rtl:no
12546         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12547         #            lib.a           static archive
12548         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12549           for ld_flag in $LDFLAGS; do
12550           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12551             aix_use_runtimelinking=yes
12552             break
12553           fi
12554           done
12555           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12556             # With aix-soname=svr4, we create the lib.so.V shared archives only,
12557             # so we don't have lib.a shared libs to link our executables.
12558             # We have to force runtime linking in this case.
12559             aix_use_runtimelinking=yes
12560             LDFLAGS="$LDFLAGS -Wl,-brtl"
12561           fi
12562           ;;
12563         esac
12564
12565         exp_sym_flag='-bexport'
12566         no_entry_flag='-bnoentry'
12567       fi
12568
12569       # When large executables or shared objects are built, AIX ld can
12570       # have problems creating the table of contents.  If linking a library
12571       # or program results in "error TOC overflow" add -mminimal-toc to
12572       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12573       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12574
12575       archive_cmds=''
12576       hardcode_direct=yes
12577       hardcode_direct_absolute=yes
12578       hardcode_libdir_separator=':'
12579       link_all_deplibs=yes
12580       file_list_spec='$wl-f,'
12581       case $with_aix_soname,$aix_use_runtimelinking in
12582       aix,*) ;; # traditional, no import file
12583       svr4,* | *,yes) # use import file
12584         # The Import File defines what to hardcode.
12585         hardcode_direct=no
12586         hardcode_direct_absolute=no
12587         ;;
12588       esac
12589
12590       if test yes = "$GCC"; then
12591         case $host_os in aix4.[012]|aix4.[012].*)
12592         # We only want to do this on AIX 4.2 and lower, the check
12593         # below for broken collect2 doesn't work under 4.3+
12594           collect2name=`$CC -print-prog-name=collect2`
12595           if test -f "$collect2name" &&
12596            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12597           then
12598           # We have reworked collect2
12599           :
12600           else
12601           # We have old collect2
12602           hardcode_direct=unsupported
12603           # It fails to find uninstalled libraries when the uninstalled
12604           # path is not listed in the libpath.  Setting hardcode_minus_L
12605           # to unsupported forces relinking
12606           hardcode_minus_L=yes
12607           hardcode_libdir_flag_spec='-L$libdir'
12608           hardcode_libdir_separator=
12609           fi
12610           ;;
12611         esac
12612         shared_flag='-shared'
12613         if test yes = "$aix_use_runtimelinking"; then
12614           shared_flag="$shared_flag "'$wl-G'
12615         fi
12616         # Need to ensure runtime linking is disabled for the traditional
12617         # shared library, or the linker may eventually find shared libraries
12618         # /with/ Import File - we do not want to mix them.
12619         shared_flag_aix='-shared'
12620         shared_flag_svr4='-shared $wl-G'
12621       else
12622         # not using gcc
12623         if test ia64 = "$host_cpu"; then
12624         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12625         # chokes on -Wl,-G. The following line is correct:
12626           shared_flag='-G'
12627         else
12628           if test yes = "$aix_use_runtimelinking"; then
12629             shared_flag='$wl-G'
12630           else
12631             shared_flag='$wl-bM:SRE'
12632           fi
12633           shared_flag_aix='$wl-bM:SRE'
12634           shared_flag_svr4='$wl-G'
12635         fi
12636       fi
12637
12638       export_dynamic_flag_spec='$wl-bexpall'
12639       # It seems that -bexpall does not export symbols beginning with
12640       # underscore (_), so it is better to generate a list of symbols to export.
12641       always_export_symbols=yes
12642       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12643         # Warning - without using the other runtime loading flags (-brtl),
12644         # -berok will link without error, but may produce a broken library.
12645         allow_undefined_flag='-berok'
12646         # Determine the default libpath from the value encoded in an
12647         # empty executable.
12648         if test set = "${lt_cv_aix_libpath+set}"; then
12649   aix_libpath=$lt_cv_aix_libpath
12650 else
12651   if ${lt_cv_aix_libpath_+:} false; then :
12652   $as_echo_n "(cached) " >&6
12653 else
12654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655 /* end confdefs.h.  */
12656
12657 int
12658 main ()
12659 {
12660
12661   ;
12662   return 0;
12663 }
12664 _ACEOF
12665 if ac_fn_c_try_link "$LINENO"; then :
12666
12667   lt_aix_libpath_sed='
12668       /Import File Strings/,/^$/ {
12669           /^0/ {
12670               s/^0  *\([^ ]*\) *$/\1/
12671               p
12672           }
12673       }'
12674   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12675   # Check for a 64-bit object if we didn't find anything.
12676   if test -z "$lt_cv_aix_libpath_"; then
12677     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12678   fi
12679 fi
12680 rm -f core conftest.err conftest.$ac_objext \
12681     conftest$ac_exeext conftest.$ac_ext
12682   if test -z "$lt_cv_aix_libpath_"; then
12683     lt_cv_aix_libpath_=/usr/lib:/lib
12684   fi
12685
12686 fi
12687
12688   aix_libpath=$lt_cv_aix_libpath_
12689 fi
12690
12691         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12692         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12693       else
12694         if test ia64 = "$host_cpu"; then
12695           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12696           allow_undefined_flag="-z nodefs"
12697           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
12698         else
12699          # Determine the default libpath from the value encoded in an
12700          # empty executable.
12701          if test set = "${lt_cv_aix_libpath+set}"; then
12702   aix_libpath=$lt_cv_aix_libpath
12703 else
12704   if ${lt_cv_aix_libpath_+:} false; then :
12705   $as_echo_n "(cached) " >&6
12706 else
12707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12708 /* end confdefs.h.  */
12709
12710 int
12711 main ()
12712 {
12713
12714   ;
12715   return 0;
12716 }
12717 _ACEOF
12718 if ac_fn_c_try_link "$LINENO"; then :
12719
12720   lt_aix_libpath_sed='
12721       /Import File Strings/,/^$/ {
12722           /^0/ {
12723               s/^0  *\([^ ]*\) *$/\1/
12724               p
12725           }
12726       }'
12727   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12728   # Check for a 64-bit object if we didn't find anything.
12729   if test -z "$lt_cv_aix_libpath_"; then
12730     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12731   fi
12732 fi
12733 rm -f core conftest.err conftest.$ac_objext \
12734     conftest$ac_exeext conftest.$ac_ext
12735   if test -z "$lt_cv_aix_libpath_"; then
12736     lt_cv_aix_libpath_=/usr/lib:/lib
12737   fi
12738
12739 fi
12740
12741   aix_libpath=$lt_cv_aix_libpath_
12742 fi
12743
12744          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12745           # Warning - without using the other run time loading flags,
12746           # -berok will link without error, but may produce a broken library.
12747           no_undefined_flag=' $wl-bernotok'
12748           allow_undefined_flag=' $wl-berok'
12749           if test yes = "$with_gnu_ld"; then
12750             # We only use this code for GNU lds that support --whole-archive.
12751             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12752           else
12753             # Exported symbols can be pulled into shared objects from archives
12754             whole_archive_flag_spec='$convenience'
12755           fi
12756           archive_cmds_need_lc=yes
12757           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12758           # -brtl affects multiple linker settings, -berok does not and is overridden later
12759           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12760           if test svr4 != "$with_aix_soname"; then
12761             # This is similar to how AIX traditionally builds its shared libraries.
12762             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12763           fi
12764           if test aix != "$with_aix_soname"; then
12765             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12766           else
12767             # used by -dlpreopen to get the symbols
12768             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12769           fi
12770           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12771         fi
12772       fi
12773       ;;
12774
12775     amigaos*)
12776       case $host_cpu in
12777       powerpc)
12778             # see comment about AmigaOS4 .so support
12779             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12780             archive_expsym_cmds=''
12781         ;;
12782       m68k)
12783             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12784             hardcode_libdir_flag_spec='-L$libdir'
12785             hardcode_minus_L=yes
12786         ;;
12787       esac
12788       ;;
12789
12790     bsdi[45]*)
12791       export_dynamic_flag_spec=-rdynamic
12792       ;;
12793
12794     cygwin* | mingw* | pw32* | cegcc*)
12795       # When not using gcc, we currently assume that we are using
12796       # Microsoft Visual C++.
12797       # hardcode_libdir_flag_spec is actually meaningless, as there is
12798       # no search path for DLLs.
12799       case $cc_basename in
12800       cl*)
12801         # Native MSVC
12802         hardcode_libdir_flag_spec=' '
12803         allow_undefined_flag=unsupported
12804         always_export_symbols=yes
12805         file_list_spec='@'
12806         # Tell ltmain to make .lib files, not .a files.
12807         libext=lib
12808         # Tell ltmain to make .dll files, not .so files.
12809         shrext_cmds=.dll
12810         # FIXME: Setting linknames here is a bad hack.
12811         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12812         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12813             cp "$export_symbols" "$output_objdir/$soname.def";
12814             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12815           else
12816             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12817           fi~
12818           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12819           linknames='
12820         # The linker will not automatically build a static lib if we build a DLL.
12821         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12822         enable_shared_with_static_runtimes=yes
12823         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12824         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12825         # Don't use ranlib
12826         old_postinstall_cmds='chmod 644 $oldlib'
12827         postlink_cmds='lt_outputfile="@OUTPUT@"~
12828           lt_tool_outputfile="@TOOL_OUTPUT@"~
12829           case $lt_outputfile in
12830             *.exe|*.EXE) ;;
12831             *)
12832               lt_outputfile=$lt_outputfile.exe
12833               lt_tool_outputfile=$lt_tool_outputfile.exe
12834               ;;
12835           esac~
12836           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12837             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12838             $RM "$lt_outputfile.manifest";
12839           fi'
12840         ;;
12841       *)
12842         # Assume MSVC wrapper
12843         hardcode_libdir_flag_spec=' '
12844         allow_undefined_flag=unsupported
12845         # Tell ltmain to make .lib files, not .a files.
12846         libext=lib
12847         # Tell ltmain to make .dll files, not .so files.
12848         shrext_cmds=.dll
12849         # FIXME: Setting linknames here is a bad hack.
12850         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12851         # The linker will automatically build a .lib file if we build a DLL.
12852         old_archive_from_new_cmds='true'
12853         # FIXME: Should let the user specify the lib program.
12854         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12855         enable_shared_with_static_runtimes=yes
12856         ;;
12857       esac
12858       ;;
12859
12860     darwin* | rhapsody*)
12861
12862
12863   archive_cmds_need_lc=no
12864   hardcode_direct=no
12865   hardcode_automatic=yes
12866   hardcode_shlibpath_var=unsupported
12867   if test yes = "$lt_cv_ld_force_load"; then
12868     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12869
12870   else
12871     whole_archive_flag_spec=''
12872   fi
12873   link_all_deplibs=yes
12874   allow_undefined_flag=$_lt_dar_allow_undefined
12875   case $cc_basename in
12876      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12877      *) _lt_dar_can_shared=$GCC ;;
12878   esac
12879   if test yes = "$_lt_dar_can_shared"; then
12880     output_verbose_link_cmd=func_echo_all
12881     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12882     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12883     archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
12884     module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
12885
12886   else
12887   ld_shlibs=no
12888   fi
12889
12890       ;;
12891
12892     dgux*)
12893       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12894       hardcode_libdir_flag_spec='-L$libdir'
12895       hardcode_shlibpath_var=no
12896       ;;
12897
12898     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12899     # support.  Future versions do this automatically, but an explicit c++rt0.o
12900     # does not break anything, and helps significantly (at the cost of a little
12901     # extra space).
12902     freebsd2.2*)
12903       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12904       hardcode_libdir_flag_spec='-R$libdir'
12905       hardcode_direct=yes
12906       hardcode_shlibpath_var=no
12907       ;;
12908
12909     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12910     freebsd2.*)
12911       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12912       hardcode_direct=yes
12913       hardcode_minus_L=yes
12914       hardcode_shlibpath_var=no
12915       ;;
12916
12917     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12918     freebsd* | dragonfly*)
12919       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12920       hardcode_libdir_flag_spec='-R$libdir'
12921       hardcode_direct=yes
12922       hardcode_shlibpath_var=no
12923       ;;
12924
12925     hpux9*)
12926       if test yes = "$GCC"; then
12927         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12928       else
12929         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12930       fi
12931       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12932       hardcode_libdir_separator=:
12933       hardcode_direct=yes
12934
12935       # hardcode_minus_L: Not really in the search PATH,
12936       # but as the default location of the library.
12937       hardcode_minus_L=yes
12938       export_dynamic_flag_spec='$wl-E'
12939       ;;
12940
12941     hpux10*)
12942       if test yes,no = "$GCC,$with_gnu_ld"; then
12943         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12944       else
12945         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12946       fi
12947       if test no = "$with_gnu_ld"; then
12948         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12949         hardcode_libdir_separator=:
12950         hardcode_direct=yes
12951         hardcode_direct_absolute=yes
12952         export_dynamic_flag_spec='$wl-E'
12953         # hardcode_minus_L: Not really in the search PATH,
12954         # but as the default location of the library.
12955         hardcode_minus_L=yes
12956       fi
12957       ;;
12958
12959     hpux11*)
12960       if test yes,no = "$GCC,$with_gnu_ld"; then
12961         case $host_cpu in
12962         hppa*64*)
12963           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12964           ;;
12965         ia64*)
12966           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12967           ;;
12968         *)
12969           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12970           ;;
12971         esac
12972       else
12973         case $host_cpu in
12974         hppa*64*)
12975           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12976           ;;
12977         ia64*)
12978           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12979           ;;
12980         *)
12981
12982           # Older versions of the 11.00 compiler do not understand -b yet
12983           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12984           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12985 $as_echo_n "checking if $CC understands -b... " >&6; }
12986 if ${lt_cv_prog_compiler__b+:} false; then :
12987   $as_echo_n "(cached) " >&6
12988 else
12989   lt_cv_prog_compiler__b=no
12990    save_LDFLAGS=$LDFLAGS
12991    LDFLAGS="$LDFLAGS -b"
12992    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12993    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12994      # The linker can only warn and ignore the option if not recognized
12995      # So say no if there are warnings
12996      if test -s conftest.err; then
12997        # Append any errors to the config.log.
12998        cat conftest.err 1>&5
12999        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13000        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13001        if diff conftest.exp conftest.er2 >/dev/null; then
13002          lt_cv_prog_compiler__b=yes
13003        fi
13004      else
13005        lt_cv_prog_compiler__b=yes
13006      fi
13007    fi
13008    $RM -r conftest*
13009    LDFLAGS=$save_LDFLAGS
13010
13011 fi
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13013 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13014
13015 if test yes = "$lt_cv_prog_compiler__b"; then
13016     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13017 else
13018     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13019 fi
13020
13021           ;;
13022         esac
13023       fi
13024       if test no = "$with_gnu_ld"; then
13025         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13026         hardcode_libdir_separator=:
13027
13028         case $host_cpu in
13029         hppa*64*|ia64*)
13030           hardcode_direct=no
13031           hardcode_shlibpath_var=no
13032           ;;
13033         *)
13034           hardcode_direct=yes
13035           hardcode_direct_absolute=yes
13036           export_dynamic_flag_spec='$wl-E'
13037
13038           # hardcode_minus_L: Not really in the search PATH,
13039           # but as the default location of the library.
13040           hardcode_minus_L=yes
13041           ;;
13042         esac
13043       fi
13044       ;;
13045
13046     irix5* | irix6* | nonstopux*)
13047       if test yes = "$GCC"; then
13048         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13049         # Try to use the -exported_symbol ld option, if it does not
13050         # work, assume that -exports_file does not work either and
13051         # implicitly export all symbols.
13052         # This should be the same for all languages, so no per-tag cache variable.
13053         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13054 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13055 if ${lt_cv_irix_exported_symbol+:} false; then :
13056   $as_echo_n "(cached) " >&6
13057 else
13058   save_LDFLAGS=$LDFLAGS
13059            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13060            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061 /* end confdefs.h.  */
13062 int foo (void) { return 0; }
13063 _ACEOF
13064 if ac_fn_c_try_link "$LINENO"; then :
13065   lt_cv_irix_exported_symbol=yes
13066 else
13067   lt_cv_irix_exported_symbol=no
13068 fi
13069 rm -f core conftest.err conftest.$ac_objext \
13070     conftest$ac_exeext conftest.$ac_ext
13071            LDFLAGS=$save_LDFLAGS
13072 fi
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13074 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13075         if test yes = "$lt_cv_irix_exported_symbol"; then
13076           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
13077         fi
13078       else
13079         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13080         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
13081       fi
13082       archive_cmds_need_lc='no'
13083       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13084       hardcode_libdir_separator=:
13085       inherit_rpath=yes
13086       link_all_deplibs=yes
13087       ;;
13088
13089     linux*)
13090       case $cc_basename in
13091       tcc*)
13092         # Fabrice Bellard et al's Tiny C Compiler
13093         ld_shlibs=yes
13094         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13095         ;;
13096       esac
13097       ;;
13098
13099     netbsd*)
13100       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13101         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13102       else
13103         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13104       fi
13105       hardcode_libdir_flag_spec='-R$libdir'
13106       hardcode_direct=yes
13107       hardcode_shlibpath_var=no
13108       ;;
13109
13110     newsos6)
13111       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13112       hardcode_direct=yes
13113       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13114       hardcode_libdir_separator=:
13115       hardcode_shlibpath_var=no
13116       ;;
13117
13118     *nto* | *qnx*)
13119       ;;
13120
13121     openbsd* | bitrig*)
13122       if test -f /usr/libexec/ld.so; then
13123         hardcode_direct=yes
13124         hardcode_shlibpath_var=no
13125         hardcode_direct_absolute=yes
13126         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13127           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13128           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13129           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13130           export_dynamic_flag_spec='$wl-E'
13131         else
13132           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13133           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13134         fi
13135       else
13136         ld_shlibs=no
13137       fi
13138       ;;
13139
13140     os2*)
13141       hardcode_libdir_flag_spec='-L$libdir'
13142       hardcode_minus_L=yes
13143       allow_undefined_flag=unsupported
13144       shrext_cmds=.dll
13145       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13146         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13147         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13148         $ECHO EXPORTS >> $output_objdir/$libname.def~
13149         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13150         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13151         emximp -o $lib $output_objdir/$libname.def'
13152       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13153         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13154         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13155         $ECHO EXPORTS >> $output_objdir/$libname.def~
13156         prefix_cmds="$SED"~
13157         if test EXPORTS = "`$SED 1q $export_symbols`"; then
13158           prefix_cmds="$prefix_cmds -e 1d";
13159         fi~
13160         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13161         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13162         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13163         emximp -o $lib $output_objdir/$libname.def'
13164       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13165       enable_shared_with_static_runtimes=yes
13166       ;;
13167
13168     osf3*)
13169       if test yes = "$GCC"; then
13170         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13171         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13172       else
13173         allow_undefined_flag=' -expect_unresolved \*'
13174         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13175       fi
13176       archive_cmds_need_lc='no'
13177       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13178       hardcode_libdir_separator=:
13179       ;;
13180
13181     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13182       if test yes = "$GCC"; then
13183         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13184         archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13185         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13186       else
13187         allow_undefined_flag=' -expect_unresolved \*'
13188         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13189         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13190           $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
13191
13192         # Both c and cxx compiler support -rpath directly
13193         hardcode_libdir_flag_spec='-rpath $libdir'
13194       fi
13195       archive_cmds_need_lc='no'
13196       hardcode_libdir_separator=:
13197       ;;
13198
13199     solaris*)
13200       no_undefined_flag=' -z defs'
13201       if test yes = "$GCC"; then
13202         wlarc='$wl'
13203         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13204         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13205           $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13206       else
13207         case `$CC -V 2>&1` in
13208         *"Compilers 5.0"*)
13209           wlarc=''
13210           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13211           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13212             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13213           ;;
13214         *)
13215           wlarc='$wl'
13216           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13217           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13218             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13219           ;;
13220         esac
13221       fi
13222       hardcode_libdir_flag_spec='-R$libdir'
13223       hardcode_shlibpath_var=no
13224       case $host_os in
13225       solaris2.[0-5] | solaris2.[0-5].*) ;;
13226       *)
13227         # The compiler driver will combine and reorder linker options,
13228         # but understands '-z linker_flag'.  GCC discards it without '$wl',
13229         # but is careful enough not to reorder.
13230         # Supported since Solaris 2.6 (maybe 2.5.1?)
13231         if test yes = "$GCC"; then
13232           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13233         else
13234           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13235         fi
13236         ;;
13237       esac
13238       link_all_deplibs=yes
13239       ;;
13240
13241     sunos4*)
13242       if test sequent = "$host_vendor"; then
13243         # Use $CC to link under sequent, because it throws in some extra .o
13244         # files that make .init and .fini sections work.
13245         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13246       else
13247         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13248       fi
13249       hardcode_libdir_flag_spec='-L$libdir'
13250       hardcode_direct=yes
13251       hardcode_minus_L=yes
13252       hardcode_shlibpath_var=no
13253       ;;
13254
13255     sysv4)
13256       case $host_vendor in
13257         sni)
13258           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13259           hardcode_direct=yes # is this really true???
13260         ;;
13261         siemens)
13262           ## LD is ld it makes a PLAMLIB
13263           ## CC just makes a GrossModule.
13264           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13265           reload_cmds='$CC -r -o $output$reload_objs'
13266           hardcode_direct=no
13267         ;;
13268         motorola)
13269           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13270           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13271         ;;
13272       esac
13273       runpath_var='LD_RUN_PATH'
13274       hardcode_shlibpath_var=no
13275       ;;
13276
13277     sysv4.3*)
13278       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13279       hardcode_shlibpath_var=no
13280       export_dynamic_flag_spec='-Bexport'
13281       ;;
13282
13283     sysv4*MP*)
13284       if test -d /usr/nec; then
13285         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13286         hardcode_shlibpath_var=no
13287         runpath_var=LD_RUN_PATH
13288         hardcode_runpath_var=yes
13289         ld_shlibs=yes
13290       fi
13291       ;;
13292
13293     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13294       no_undefined_flag='$wl-z,text'
13295       archive_cmds_need_lc=no
13296       hardcode_shlibpath_var=no
13297       runpath_var='LD_RUN_PATH'
13298
13299       if test yes = "$GCC"; then
13300         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13301         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13302       else
13303         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13304         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13305       fi
13306       ;;
13307
13308     sysv5* | sco3.2v5* | sco5v6*)
13309       # Note: We CANNOT use -z defs as we might desire, because we do not
13310       # link with -lc, and that would cause any symbols used from libc to
13311       # always be unresolved, which means just about no library would
13312       # ever link correctly.  If we're not using GNU ld we use -z text
13313       # though, which does catch some bad symbols but isn't as heavy-handed
13314       # as -z defs.
13315       no_undefined_flag='$wl-z,text'
13316       allow_undefined_flag='$wl-z,nodefs'
13317       archive_cmds_need_lc=no
13318       hardcode_shlibpath_var=no
13319       hardcode_libdir_flag_spec='$wl-R,$libdir'
13320       hardcode_libdir_separator=':'
13321       link_all_deplibs=yes
13322       export_dynamic_flag_spec='$wl-Bexport'
13323       runpath_var='LD_RUN_PATH'
13324
13325       if test yes = "$GCC"; then
13326         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13327         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13328       else
13329         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13330         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13331       fi
13332       ;;
13333
13334     uts4*)
13335       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13336       hardcode_libdir_flag_spec='-L$libdir'
13337       hardcode_shlibpath_var=no
13338       ;;
13339
13340     *)
13341       ld_shlibs=no
13342       ;;
13343     esac
13344
13345     if test sni = "$host_vendor"; then
13346       case $host in
13347       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13348         export_dynamic_flag_spec='$wl-Blargedynsym'
13349         ;;
13350       esac
13351     fi
13352   fi
13353
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13355 $as_echo "$ld_shlibs" >&6; }
13356 test no = "$ld_shlibs" && can_build_shared=no
13357
13358 with_gnu_ld=$with_gnu_ld
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374 #
13375 # Do we need to explicitly link libc?
13376 #
13377 case "x$archive_cmds_need_lc" in
13378 x|xyes)
13379   # Assume -lc should be added
13380   archive_cmds_need_lc=yes
13381
13382   if test yes,yes = "$GCC,$enable_shared"; then
13383     case $archive_cmds in
13384     *'~'*)
13385       # FIXME: we may have to deal with multi-command sequences.
13386       ;;
13387     '$CC '*)
13388       # Test whether the compiler implicitly links with -lc since on some
13389       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13390       # to ld, don't add -lc before -lgcc.
13391       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13392 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13393 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13394   $as_echo_n "(cached) " >&6
13395 else
13396   $RM conftest*
13397         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13398
13399         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13400   (eval $ac_compile) 2>&5
13401   ac_status=$?
13402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13403   test $ac_status = 0; } 2>conftest.err; then
13404           soname=conftest
13405           lib=conftest
13406           libobjs=conftest.$ac_objext
13407           deplibs=
13408           wl=$lt_prog_compiler_wl
13409           pic_flag=$lt_prog_compiler_pic
13410           compiler_flags=-v
13411           linker_flags=-v
13412           verstring=
13413           output_objdir=.
13414           libname=conftest
13415           lt_save_allow_undefined_flag=$allow_undefined_flag
13416           allow_undefined_flag=
13417           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13418   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13419   ac_status=$?
13420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13421   test $ac_status = 0; }
13422           then
13423             lt_cv_archive_cmds_need_lc=no
13424           else
13425             lt_cv_archive_cmds_need_lc=yes
13426           fi
13427           allow_undefined_flag=$lt_save_allow_undefined_flag
13428         else
13429           cat conftest.err 1>&5
13430         fi
13431         $RM conftest*
13432
13433 fi
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13435 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13436       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13437       ;;
13438     esac
13439   fi
13440   ;;
13441 esac
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13595 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13596
13597 if test yes = "$GCC"; then
13598   case $host_os in
13599     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13600     *) lt_awk_arg='/^libraries:/' ;;
13601   esac
13602   case $host_os in
13603     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13604     *) lt_sed_strip_eq='s|=/|/|g' ;;
13605   esac
13606   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13607   case $lt_search_path_spec in
13608   *\;*)
13609     # if the path contains ";" then we assume it to be the separator
13610     # otherwise default to the standard path separator (i.e. ":") - it is
13611     # assumed that no part of a normal pathname contains ";" but that should
13612     # okay in the real world where ";" in dirpaths is itself problematic.
13613     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13614     ;;
13615   *)
13616     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13617     ;;
13618   esac
13619   # Ok, now we have the path, separated by spaces, we can step through it
13620   # and add multilib dir if necessary...
13621   lt_tmp_lt_search_path_spec=
13622   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13623   # ...but if some path component already ends with the multilib dir we assume
13624   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13625   case "$lt_multi_os_dir; $lt_search_path_spec " in
13626   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13627     lt_multi_os_dir=
13628     ;;
13629   esac
13630   for lt_sys_path in $lt_search_path_spec; do
13631     if test -d "$lt_sys_path$lt_multi_os_dir"; then
13632       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13633     elif test -n "$lt_multi_os_dir"; then
13634       test -d "$lt_sys_path" && \
13635         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13636     fi
13637   done
13638   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13639 BEGIN {RS = " "; FS = "/|\n";} {
13640   lt_foo = "";
13641   lt_count = 0;
13642   for (lt_i = NF; lt_i > 0; lt_i--) {
13643     if ($lt_i != "" && $lt_i != ".") {
13644       if ($lt_i == "..") {
13645         lt_count++;
13646       } else {
13647         if (lt_count == 0) {
13648           lt_foo = "/" $lt_i lt_foo;
13649         } else {
13650           lt_count--;
13651         }
13652       }
13653     }
13654   }
13655   if (lt_foo != "") { lt_freq[lt_foo]++; }
13656   if (lt_freq[lt_foo] == 1) { print lt_foo; }
13657 }'`
13658   # AWK program above erroneously prepends '/' to C:/dos/paths
13659   # for these hosts.
13660   case $host_os in
13661     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13662       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13663   esac
13664   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13665 else
13666   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13667 fi
13668 library_names_spec=
13669 libname_spec='lib$name'
13670 soname_spec=
13671 shrext_cmds=.so
13672 postinstall_cmds=
13673 postuninstall_cmds=
13674 finish_cmds=
13675 finish_eval=
13676 shlibpath_var=
13677 shlibpath_overrides_runpath=unknown
13678 version_type=none
13679 dynamic_linker="$host_os ld.so"
13680 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13681 need_lib_prefix=unknown
13682 hardcode_into_libs=no
13683
13684 # when you set need_version to no, make sure it does not cause -set_version
13685 # flags to be left without arguments
13686 need_version=unknown
13687
13688
13689
13690 case $host_os in
13691 aix3*)
13692   version_type=linux # correct to gnu/linux during the next big refactor
13693   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13694   shlibpath_var=LIBPATH
13695
13696   # AIX 3 has no versioning support, so we append a major version to the name.
13697   soname_spec='$libname$release$shared_ext$major'
13698   ;;
13699
13700 aix[4-9]*)
13701   version_type=linux # correct to gnu/linux during the next big refactor
13702   need_lib_prefix=no
13703   need_version=no
13704   hardcode_into_libs=yes
13705   if test ia64 = "$host_cpu"; then
13706     # AIX 5 supports IA64
13707     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13708     shlibpath_var=LD_LIBRARY_PATH
13709   else
13710     # With GCC up to 2.95.x, collect2 would create an import file
13711     # for dependence libraries.  The import file would start with
13712     # the line '#! .'.  This would cause the generated library to
13713     # depend on '.', always an invalid library.  This was fixed in
13714     # development snapshots of GCC prior to 3.0.
13715     case $host_os in
13716       aix4 | aix4.[01] | aix4.[01].*)
13717       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13718            echo ' yes '
13719            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13720         :
13721       else
13722         can_build_shared=no
13723       fi
13724       ;;
13725     esac
13726     # Using Import Files as archive members, it is possible to support
13727     # filename-based versioning of shared library archives on AIX. While
13728     # this would work for both with and without runtime linking, it will
13729     # prevent static linking of such archives. So we do filename-based
13730     # shared library versioning with .so extension only, which is used
13731     # when both runtime linking and shared linking is enabled.
13732     # Unfortunately, runtime linking may impact performance, so we do
13733     # not want this to be the default eventually. Also, we use the
13734     # versioned .so libs for executables only if there is the -brtl
13735     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13736     # To allow for filename-based versioning support, we need to create
13737     # libNAME.so.V as an archive file, containing:
13738     # *) an Import File, referring to the versioned filename of the
13739     #    archive as well as the shared archive member, telling the
13740     #    bitwidth (32 or 64) of that shared object, and providing the
13741     #    list of exported symbols of that shared object, eventually
13742     #    decorated with the 'weak' keyword
13743     # *) the shared object with the F_LOADONLY flag set, to really avoid
13744     #    it being seen by the linker.
13745     # At run time we better use the real file rather than another symlink,
13746     # but for link time we create the symlink libNAME.so -> libNAME.so.V
13747
13748     case $with_aix_soname,$aix_use_runtimelinking in
13749     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13750     # soname into executable. Probably we can add versioning support to
13751     # collect2, so additional links can be useful in future.
13752     aix,yes) # traditional libtool
13753       dynamic_linker='AIX unversionable lib.so'
13754       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13755       # instead of lib<name>.a to let people know that these are not
13756       # typical AIX shared libraries.
13757       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13758       ;;
13759     aix,no) # traditional AIX only
13760       dynamic_linker='AIX lib.a(lib.so.V)'
13761       # We preserve .a as extension for shared libraries through AIX4.2
13762       # and later when we are not doing run time linking.
13763       library_names_spec='$libname$release.a $libname.a'
13764       soname_spec='$libname$release$shared_ext$major'
13765       ;;
13766     svr4,*) # full svr4 only
13767       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13768       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13769       # We do not specify a path in Import Files, so LIBPATH fires.
13770       shlibpath_overrides_runpath=yes
13771       ;;
13772     *,yes) # both, prefer svr4
13773       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13774       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13775       # unpreferred sharedlib libNAME.a needs extra handling
13776       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13777       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13778       # We do not specify a path in Import Files, so LIBPATH fires.
13779       shlibpath_overrides_runpath=yes
13780       ;;
13781     *,no) # both, prefer aix
13782       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13783       library_names_spec='$libname$release.a $libname.a'
13784       soname_spec='$libname$release$shared_ext$major'
13785       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13786       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13787       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13788       ;;
13789     esac
13790     shlibpath_var=LIBPATH
13791   fi
13792   ;;
13793
13794 amigaos*)
13795   case $host_cpu in
13796   powerpc)
13797     # Since July 2007 AmigaOS4 officially supports .so libraries.
13798     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13799     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13800     ;;
13801   m68k)
13802     library_names_spec='$libname.ixlibrary $libname.a'
13803     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13804     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13805     ;;
13806   esac
13807   ;;
13808
13809 beos*)
13810   library_names_spec='$libname$shared_ext'
13811   dynamic_linker="$host_os ld.so"
13812   shlibpath_var=LIBRARY_PATH
13813   ;;
13814
13815 bsdi[45]*)
13816   version_type=linux # correct to gnu/linux during the next big refactor
13817   need_version=no
13818   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13819   soname_spec='$libname$release$shared_ext$major'
13820   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13821   shlibpath_var=LD_LIBRARY_PATH
13822   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13823   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13824   # the default ld.so.conf also contains /usr/contrib/lib and
13825   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13826   # libtool to hard-code these into programs
13827   ;;
13828
13829 cygwin* | mingw* | pw32* | cegcc*)
13830   version_type=windows
13831   shrext_cmds=.dll
13832   need_version=no
13833   need_lib_prefix=no
13834
13835   case $GCC,$cc_basename in
13836   yes,*)
13837     # gcc
13838     library_names_spec='$libname.dll.a'
13839     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13840     postinstall_cmds='base_file=`basename \$file`~
13841       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13842       dldir=$destdir/`dirname \$dlpath`~
13843       test -d \$dldir || mkdir -p \$dldir~
13844       $install_prog $dir/$dlname \$dldir/$dlname~
13845       chmod a+x \$dldir/$dlname~
13846       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13847         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13848       fi'
13849     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13850       dlpath=$dir/\$dldll~
13851        $RM \$dlpath'
13852     shlibpath_overrides_runpath=yes
13853
13854     case $host_os in
13855     cygwin*)
13856       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13857       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13858
13859       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13860       ;;
13861     mingw* | cegcc*)
13862       # MinGW DLLs use traditional 'lib' prefix
13863       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13864       ;;
13865     pw32*)
13866       # pw32 DLLs use 'pw' prefix rather than 'lib'
13867       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13868       ;;
13869     esac
13870     dynamic_linker='Win32 ld.exe'
13871     ;;
13872
13873   *,cl*)
13874     # Native MSVC
13875     libname_spec='$name'
13876     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13877     library_names_spec='$libname.dll.lib'
13878
13879     case $build_os in
13880     mingw*)
13881       sys_lib_search_path_spec=
13882       lt_save_ifs=$IFS
13883       IFS=';'
13884       for lt_path in $LIB
13885       do
13886         IFS=$lt_save_ifs
13887         # Let DOS variable expansion print the short 8.3 style file name.
13888         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13889         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13890       done
13891       IFS=$lt_save_ifs
13892       # Convert to MSYS style.
13893       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13894       ;;
13895     cygwin*)
13896       # Convert to unix form, then to dos form, then back to unix form
13897       # but this time dos style (no spaces!) so that the unix form looks
13898       # like /cygdrive/c/PROGRA~1:/cygdr...
13899       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13900       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13901       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13902       ;;
13903     *)
13904       sys_lib_search_path_spec=$LIB
13905       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13906         # It is most probably a Windows format PATH.
13907         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13908       else
13909         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13910       fi
13911       # FIXME: find the short name or the path components, as spaces are
13912       # common. (e.g. "Program Files" -> "PROGRA~1")
13913       ;;
13914     esac
13915
13916     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13917     postinstall_cmds='base_file=`basename \$file`~
13918       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13919       dldir=$destdir/`dirname \$dlpath`~
13920       test -d \$dldir || mkdir -p \$dldir~
13921       $install_prog $dir/$dlname \$dldir/$dlname'
13922     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13923       dlpath=$dir/\$dldll~
13924        $RM \$dlpath'
13925     shlibpath_overrides_runpath=yes
13926     dynamic_linker='Win32 link.exe'
13927     ;;
13928
13929   *)
13930     # Assume MSVC wrapper
13931     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13932     dynamic_linker='Win32 ld.exe'
13933     ;;
13934   esac
13935   # FIXME: first we should search . and the directory the executable is in
13936   shlibpath_var=PATH
13937   ;;
13938
13939 darwin* | rhapsody*)
13940   dynamic_linker="$host_os dyld"
13941   version_type=darwin
13942   need_lib_prefix=no
13943   need_version=no
13944   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13945   soname_spec='$libname$release$major$shared_ext'
13946   shlibpath_overrides_runpath=yes
13947   shlibpath_var=DYLD_LIBRARY_PATH
13948   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13949
13950   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13951   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13952   ;;
13953
13954 dgux*)
13955   version_type=linux # correct to gnu/linux during the next big refactor
13956   need_lib_prefix=no
13957   need_version=no
13958   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13959   soname_spec='$libname$release$shared_ext$major'
13960   shlibpath_var=LD_LIBRARY_PATH
13961   ;;
13962
13963 freebsd* | dragonfly*)
13964   # DragonFly does not have aout.  When/if they implement a new
13965   # versioning mechanism, adjust this.
13966   if test -x /usr/bin/objformat; then
13967     objformat=`/usr/bin/objformat`
13968   else
13969     case $host_os in
13970     freebsd[23].*) objformat=aout ;;
13971     *) objformat=elf ;;
13972     esac
13973   fi
13974   version_type=freebsd-$objformat
13975   case $version_type in
13976     freebsd-elf*)
13977       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13978       soname_spec='$libname$release$shared_ext$major'
13979       need_version=no
13980       need_lib_prefix=no
13981       ;;
13982     freebsd-*)
13983       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13984       need_version=yes
13985       ;;
13986   esac
13987   shlibpath_var=LD_LIBRARY_PATH
13988   case $host_os in
13989   freebsd2.*)
13990     shlibpath_overrides_runpath=yes
13991     ;;
13992   freebsd3.[01]* | freebsdelf3.[01]*)
13993     shlibpath_overrides_runpath=yes
13994     hardcode_into_libs=yes
13995     ;;
13996   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13997   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13998     shlibpath_overrides_runpath=no
13999     hardcode_into_libs=yes
14000     ;;
14001   *) # from 4.6 on, and DragonFly
14002     shlibpath_overrides_runpath=yes
14003     hardcode_into_libs=yes
14004     ;;
14005   esac
14006   ;;
14007
14008 haiku*)
14009   version_type=linux # correct to gnu/linux during the next big refactor
14010   need_lib_prefix=no
14011   need_version=no
14012   dynamic_linker="$host_os runtime_loader"
14013   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14014   soname_spec='$libname$release$shared_ext$major'
14015   shlibpath_var=LIBRARY_PATH
14016   shlibpath_overrides_runpath=no
14017   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14018   hardcode_into_libs=yes
14019   ;;
14020
14021 hpux9* | hpux10* | hpux11*)
14022   # Give a soname corresponding to the major version so that dld.sl refuses to
14023   # link against other versions.
14024   version_type=sunos
14025   need_lib_prefix=no
14026   need_version=no
14027   case $host_cpu in
14028   ia64*)
14029     shrext_cmds='.so'
14030     hardcode_into_libs=yes
14031     dynamic_linker="$host_os dld.so"
14032     shlibpath_var=LD_LIBRARY_PATH
14033     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14034     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14035     soname_spec='$libname$release$shared_ext$major'
14036     if test 32 = "$HPUX_IA64_MODE"; then
14037       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14038       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14039     else
14040       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14041       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14042     fi
14043     ;;
14044   hppa*64*)
14045     shrext_cmds='.sl'
14046     hardcode_into_libs=yes
14047     dynamic_linker="$host_os dld.sl"
14048     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14049     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14050     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14051     soname_spec='$libname$release$shared_ext$major'
14052     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14053     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14054     ;;
14055   *)
14056     shrext_cmds='.sl'
14057     dynamic_linker="$host_os dld.sl"
14058     shlibpath_var=SHLIB_PATH
14059     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14060     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14061     soname_spec='$libname$release$shared_ext$major'
14062     ;;
14063   esac
14064   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14065   postinstall_cmds='chmod 555 $lib'
14066   # or fails outright, so override atomically:
14067   install_override_mode=555
14068   ;;
14069
14070 interix[3-9]*)
14071   version_type=linux # correct to gnu/linux during the next big refactor
14072   need_lib_prefix=no
14073   need_version=no
14074   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14075   soname_spec='$libname$release$shared_ext$major'
14076   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14077   shlibpath_var=LD_LIBRARY_PATH
14078   shlibpath_overrides_runpath=no
14079   hardcode_into_libs=yes
14080   ;;
14081
14082 irix5* | irix6* | nonstopux*)
14083   case $host_os in
14084     nonstopux*) version_type=nonstopux ;;
14085     *)
14086         if test yes = "$lt_cv_prog_gnu_ld"; then
14087                 version_type=linux # correct to gnu/linux during the next big refactor
14088         else
14089                 version_type=irix
14090         fi ;;
14091   esac
14092   need_lib_prefix=no
14093   need_version=no
14094   soname_spec='$libname$release$shared_ext$major'
14095   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14096   case $host_os in
14097   irix5* | nonstopux*)
14098     libsuff= shlibsuff=
14099     ;;
14100   *)
14101     case $LD in # libtool.m4 will add one of these switches to LD
14102     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14103       libsuff= shlibsuff= libmagic=32-bit;;
14104     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14105       libsuff=32 shlibsuff=N32 libmagic=N32;;
14106     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14107       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14108     *) libsuff= shlibsuff= libmagic=never-match;;
14109     esac
14110     ;;
14111   esac
14112   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14113   shlibpath_overrides_runpath=no
14114   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14115   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14116   hardcode_into_libs=yes
14117   ;;
14118
14119 # No shared lib support for Linux oldld, aout, or coff.
14120 linux*oldld* | linux*aout* | linux*coff*)
14121   dynamic_linker=no
14122   ;;
14123
14124 linux*android*)
14125   version_type=none # Android doesn't support versioned libraries.
14126   need_lib_prefix=no
14127   need_version=no
14128   library_names_spec='$libname$release$shared_ext'
14129   soname_spec='$libname$release$shared_ext'
14130   finish_cmds=
14131   shlibpath_var=LD_LIBRARY_PATH
14132   shlibpath_overrides_runpath=yes
14133
14134   # This implies no fast_install, which is unacceptable.
14135   # Some rework will be needed to allow for fast_install
14136   # before this can be enabled.
14137   hardcode_into_libs=yes
14138
14139   dynamic_linker='Android linker'
14140   # Don't embed -rpath directories since the linker doesn't support them.
14141   hardcode_libdir_flag_spec='-L$libdir'
14142   ;;
14143
14144 # This must be glibc/ELF.
14145 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14146   version_type=linux # correct to gnu/linux during the next big refactor
14147   need_lib_prefix=no
14148   need_version=no
14149   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14150   soname_spec='$libname$release$shared_ext$major'
14151   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14152   shlibpath_var=LD_LIBRARY_PATH
14153   shlibpath_overrides_runpath=no
14154
14155   # Some binutils ld are patched to set DT_RUNPATH
14156   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14157   $as_echo_n "(cached) " >&6
14158 else
14159   lt_cv_shlibpath_overrides_runpath=no
14160     save_LDFLAGS=$LDFLAGS
14161     save_libdir=$libdir
14162     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14163          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14164     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14165 /* end confdefs.h.  */
14166
14167 int
14168 main ()
14169 {
14170
14171   ;
14172   return 0;
14173 }
14174 _ACEOF
14175 if ac_fn_c_try_link "$LINENO"; then :
14176   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14177   lt_cv_shlibpath_overrides_runpath=yes
14178 fi
14179 fi
14180 rm -f core conftest.err conftest.$ac_objext \
14181     conftest$ac_exeext conftest.$ac_ext
14182     LDFLAGS=$save_LDFLAGS
14183     libdir=$save_libdir
14184
14185 fi
14186
14187   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14188
14189   # This implies no fast_install, which is unacceptable.
14190   # Some rework will be needed to allow for fast_install
14191   # before this can be enabled.
14192   hardcode_into_libs=yes
14193
14194   # Ideally, we could use ldconfig to report *all* directores which are
14195   # searched for libraries, however this is still not possible.  Aside from not
14196   # being certain /sbin/ldconfig is available, command
14197   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14198   # even though it is searched at run-time.  Try to do the best guess by
14199   # appending ld.so.conf contents (and includes) to the search path.
14200   if test -f /etc/ld.so.conf; then
14201     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14202     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14203   fi
14204
14205   # We used to test for /lib/ld.so.1 and disable shared libraries on
14206   # powerpc, because MkLinux only supported shared libraries with the
14207   # GNU dynamic linker.  Since this was broken with cross compilers,
14208   # most powerpc-linux boxes support dynamic linking these days and
14209   # people can always --disable-shared, the test was removed, and we
14210   # assume the GNU/Linux dynamic linker is in use.
14211   dynamic_linker='GNU/Linux ld.so'
14212   ;;
14213
14214 netbsd*)
14215   version_type=sunos
14216   need_lib_prefix=no
14217   need_version=no
14218   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14219     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14220     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14221     dynamic_linker='NetBSD (a.out) ld.so'
14222   else
14223     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14224     soname_spec='$libname$release$shared_ext$major'
14225     dynamic_linker='NetBSD ld.elf_so'
14226   fi
14227   shlibpath_var=LD_LIBRARY_PATH
14228   shlibpath_overrides_runpath=yes
14229   hardcode_into_libs=yes
14230   ;;
14231
14232 newsos6)
14233   version_type=linux # correct to gnu/linux during the next big refactor
14234   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14235   shlibpath_var=LD_LIBRARY_PATH
14236   shlibpath_overrides_runpath=yes
14237   ;;
14238
14239 *nto* | *qnx*)
14240   version_type=qnx
14241   need_lib_prefix=no
14242   need_version=no
14243   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14244   soname_spec='$libname$release$shared_ext$major'
14245   shlibpath_var=LD_LIBRARY_PATH
14246   shlibpath_overrides_runpath=no
14247   hardcode_into_libs=yes
14248   dynamic_linker='ldqnx.so'
14249   ;;
14250
14251 openbsd* | bitrig*)
14252   version_type=sunos
14253   sys_lib_dlsearch_path_spec=/usr/lib
14254   need_lib_prefix=no
14255   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14256     need_version=no
14257   else
14258     need_version=yes
14259   fi
14260   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14261   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14262   shlibpath_var=LD_LIBRARY_PATH
14263   shlibpath_overrides_runpath=yes
14264   ;;
14265
14266 os2*)
14267   libname_spec='$name'
14268   version_type=windows
14269   shrext_cmds=.dll
14270   need_version=no
14271   need_lib_prefix=no
14272   # OS/2 can only load a DLL with a base name of 8 characters or less.
14273   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14274     v=$($ECHO $release$versuffix | tr -d .-);
14275     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14276     $ECHO $n$v`$shared_ext'
14277   library_names_spec='${libname}_dll.$libext'
14278   dynamic_linker='OS/2 ld.exe'
14279   shlibpath_var=BEGINLIBPATH
14280   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14281   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14282   postinstall_cmds='base_file=`basename \$file`~
14283     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14284     dldir=$destdir/`dirname \$dlpath`~
14285     test -d \$dldir || mkdir -p \$dldir~
14286     $install_prog $dir/$dlname \$dldir/$dlname~
14287     chmod a+x \$dldir/$dlname~
14288     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14289       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14290     fi'
14291   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14292     dlpath=$dir/\$dldll~
14293     $RM \$dlpath'
14294   ;;
14295
14296 osf3* | osf4* | osf5*)
14297   version_type=osf
14298   need_lib_prefix=no
14299   need_version=no
14300   soname_spec='$libname$release$shared_ext$major'
14301   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14302   shlibpath_var=LD_LIBRARY_PATH
14303   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14304   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14305   ;;
14306
14307 rdos*)
14308   dynamic_linker=no
14309   ;;
14310
14311 solaris*)
14312   version_type=linux # correct to gnu/linux during the next big refactor
14313   need_lib_prefix=no
14314   need_version=no
14315   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14316   soname_spec='$libname$release$shared_ext$major'
14317   shlibpath_var=LD_LIBRARY_PATH
14318   shlibpath_overrides_runpath=yes
14319   hardcode_into_libs=yes
14320   # ldd complains unless libraries are executable
14321   postinstall_cmds='chmod +x $lib'
14322   ;;
14323
14324 sunos4*)
14325   version_type=sunos
14326   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14327   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14328   shlibpath_var=LD_LIBRARY_PATH
14329   shlibpath_overrides_runpath=yes
14330   if test yes = "$with_gnu_ld"; then
14331     need_lib_prefix=no
14332   fi
14333   need_version=yes
14334   ;;
14335
14336 sysv4 | sysv4.3*)
14337   version_type=linux # correct to gnu/linux during the next big refactor
14338   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14339   soname_spec='$libname$release$shared_ext$major'
14340   shlibpath_var=LD_LIBRARY_PATH
14341   case $host_vendor in
14342     sni)
14343       shlibpath_overrides_runpath=no
14344       need_lib_prefix=no
14345       runpath_var=LD_RUN_PATH
14346       ;;
14347     siemens)
14348       need_lib_prefix=no
14349       ;;
14350     motorola)
14351       need_lib_prefix=no
14352       need_version=no
14353       shlibpath_overrides_runpath=no
14354       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14355       ;;
14356   esac
14357   ;;
14358
14359 sysv4*MP*)
14360   if test -d /usr/nec; then
14361     version_type=linux # correct to gnu/linux during the next big refactor
14362     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14363     soname_spec='$libname$shared_ext.$major'
14364     shlibpath_var=LD_LIBRARY_PATH
14365   fi
14366   ;;
14367
14368 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14369   version_type=sco
14370   need_lib_prefix=no
14371   need_version=no
14372   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14373   soname_spec='$libname$release$shared_ext$major'
14374   shlibpath_var=LD_LIBRARY_PATH
14375   shlibpath_overrides_runpath=yes
14376   hardcode_into_libs=yes
14377   if test yes = "$with_gnu_ld"; then
14378     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14379   else
14380     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14381     case $host_os in
14382       sco3.2v5*)
14383         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14384         ;;
14385     esac
14386   fi
14387   sys_lib_dlsearch_path_spec='/usr/lib'
14388   ;;
14389
14390 tpf*)
14391   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14392   version_type=linux # correct to gnu/linux during the next big refactor
14393   need_lib_prefix=no
14394   need_version=no
14395   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14396   shlibpath_var=LD_LIBRARY_PATH
14397   shlibpath_overrides_runpath=no
14398   hardcode_into_libs=yes
14399   ;;
14400
14401 uts4*)
14402   version_type=linux # correct to gnu/linux during the next big refactor
14403   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14404   soname_spec='$libname$release$shared_ext$major'
14405   shlibpath_var=LD_LIBRARY_PATH
14406   ;;
14407
14408 *)
14409   dynamic_linker=no
14410   ;;
14411 esac
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14413 $as_echo "$dynamic_linker" >&6; }
14414 test no = "$dynamic_linker" && can_build_shared=no
14415
14416 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14417 if test yes = "$GCC"; then
14418   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14419 fi
14420
14421 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14422   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14423 fi
14424
14425 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14426   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14427 fi
14428
14429 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14430 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14431
14432 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14433 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14434
14435 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14436 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14535 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14536 hardcode_action=
14537 if test -n "$hardcode_libdir_flag_spec" ||
14538    test -n "$runpath_var" ||
14539    test yes = "$hardcode_automatic"; then
14540
14541   # We can hardcode non-existent directories.
14542   if test no != "$hardcode_direct" &&
14543      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14544      # have to relink, otherwise we might link with an installed library
14545      # when we should be linking with a yet-to-be-installed one
14546      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14547      test no != "$hardcode_minus_L"; then
14548     # Linking always hardcodes the temporary library directory.
14549     hardcode_action=relink
14550   else
14551     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14552     hardcode_action=immediate
14553   fi
14554 else
14555   # We cannot hardcode anything, or else we can only hardcode existing
14556   # directories.
14557   hardcode_action=unsupported
14558 fi
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14560 $as_echo "$hardcode_action" >&6; }
14561
14562 if test relink = "$hardcode_action" ||
14563    test yes = "$inherit_rpath"; then
14564   # Fast installation is not supported
14565   enable_fast_install=no
14566 elif test yes = "$shlibpath_overrides_runpath" ||
14567      test no = "$enable_shared"; then
14568   # Fast installation is not necessary
14569   enable_fast_install=needless
14570 fi
14571
14572
14573
14574
14575
14576
14577   if test yes != "$enable_dlopen"; then
14578   enable_dlopen=unknown
14579   enable_dlopen_self=unknown
14580   enable_dlopen_self_static=unknown
14581 else
14582   lt_cv_dlopen=no
14583   lt_cv_dlopen_libs=
14584
14585   case $host_os in
14586   beos*)
14587     lt_cv_dlopen=load_add_on
14588     lt_cv_dlopen_libs=
14589     lt_cv_dlopen_self=yes
14590     ;;
14591
14592   mingw* | pw32* | cegcc*)
14593     lt_cv_dlopen=LoadLibrary
14594     lt_cv_dlopen_libs=
14595     ;;
14596
14597   cygwin*)
14598     lt_cv_dlopen=dlopen
14599     lt_cv_dlopen_libs=
14600     ;;
14601
14602   darwin*)
14603     # if libdl is installed we need to link against it
14604     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14605 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14606 if ${ac_cv_lib_dl_dlopen+:} false; then :
14607   $as_echo_n "(cached) " >&6
14608 else
14609   ac_check_lib_save_LIBS=$LIBS
14610 LIBS="-ldl  $LIBS"
14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h.  */
14613
14614 /* Override any GCC internal prototype to avoid an error.
14615    Use char because int might match the return type of a GCC
14616    builtin and then its argument prototype would still apply.  */
14617 #ifdef __cplusplus
14618 extern "C"
14619 #endif
14620 char dlopen ();
14621 int
14622 main ()
14623 {
14624 return dlopen ();
14625   ;
14626   return 0;
14627 }
14628 _ACEOF
14629 if ac_fn_c_try_link "$LINENO"; then :
14630   ac_cv_lib_dl_dlopen=yes
14631 else
14632   ac_cv_lib_dl_dlopen=no
14633 fi
14634 rm -f core conftest.err conftest.$ac_objext \
14635     conftest$ac_exeext conftest.$ac_ext
14636 LIBS=$ac_check_lib_save_LIBS
14637 fi
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14639 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14640 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14641   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14642 else
14643
14644     lt_cv_dlopen=dyld
14645     lt_cv_dlopen_libs=
14646     lt_cv_dlopen_self=yes
14647
14648 fi
14649
14650     ;;
14651
14652   tpf*)
14653     # Don't try to run any link tests for TPF.  We know it's impossible
14654     # because TPF is a cross-compiler, and we know how we open DSOs.
14655     lt_cv_dlopen=dlopen
14656     lt_cv_dlopen_libs=
14657     lt_cv_dlopen_self=no
14658     ;;
14659
14660   *)
14661     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14662 if test "x$ac_cv_func_shl_load" = xyes; then :
14663   lt_cv_dlopen=shl_load
14664 else
14665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14666 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14667 if ${ac_cv_lib_dld_shl_load+:} false; then :
14668   $as_echo_n "(cached) " >&6
14669 else
14670   ac_check_lib_save_LIBS=$LIBS
14671 LIBS="-ldld  $LIBS"
14672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673 /* end confdefs.h.  */
14674
14675 /* Override any GCC internal prototype to avoid an error.
14676    Use char because int might match the return type of a GCC
14677    builtin and then its argument prototype would still apply.  */
14678 #ifdef __cplusplus
14679 extern "C"
14680 #endif
14681 char shl_load ();
14682 int
14683 main ()
14684 {
14685 return shl_load ();
14686   ;
14687   return 0;
14688 }
14689 _ACEOF
14690 if ac_fn_c_try_link "$LINENO"; then :
14691   ac_cv_lib_dld_shl_load=yes
14692 else
14693   ac_cv_lib_dld_shl_load=no
14694 fi
14695 rm -f core conftest.err conftest.$ac_objext \
14696     conftest$ac_exeext conftest.$ac_ext
14697 LIBS=$ac_check_lib_save_LIBS
14698 fi
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14700 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14701 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14702   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14703 else
14704   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14705 if test "x$ac_cv_func_dlopen" = xyes; then :
14706   lt_cv_dlopen=dlopen
14707 else
14708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14709 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14710 if ${ac_cv_lib_dl_dlopen+:} false; then :
14711   $as_echo_n "(cached) " >&6
14712 else
14713   ac_check_lib_save_LIBS=$LIBS
14714 LIBS="-ldl  $LIBS"
14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14716 /* end confdefs.h.  */
14717
14718 /* Override any GCC internal prototype to avoid an error.
14719    Use char because int might match the return type of a GCC
14720    builtin and then its argument prototype would still apply.  */
14721 #ifdef __cplusplus
14722 extern "C"
14723 #endif
14724 char dlopen ();
14725 int
14726 main ()
14727 {
14728 return dlopen ();
14729   ;
14730   return 0;
14731 }
14732 _ACEOF
14733 if ac_fn_c_try_link "$LINENO"; then :
14734   ac_cv_lib_dl_dlopen=yes
14735 else
14736   ac_cv_lib_dl_dlopen=no
14737 fi
14738 rm -f core conftest.err conftest.$ac_objext \
14739     conftest$ac_exeext conftest.$ac_ext
14740 LIBS=$ac_check_lib_save_LIBS
14741 fi
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14743 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14744 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14745   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14746 else
14747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14748 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14749 if ${ac_cv_lib_svld_dlopen+:} false; then :
14750   $as_echo_n "(cached) " >&6
14751 else
14752   ac_check_lib_save_LIBS=$LIBS
14753 LIBS="-lsvld  $LIBS"
14754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h.  */
14756
14757 /* Override any GCC internal prototype to avoid an error.
14758    Use char because int might match the return type of a GCC
14759    builtin and then its argument prototype would still apply.  */
14760 #ifdef __cplusplus
14761 extern "C"
14762 #endif
14763 char dlopen ();
14764 int
14765 main ()
14766 {
14767 return dlopen ();
14768   ;
14769   return 0;
14770 }
14771 _ACEOF
14772 if ac_fn_c_try_link "$LINENO"; then :
14773   ac_cv_lib_svld_dlopen=yes
14774 else
14775   ac_cv_lib_svld_dlopen=no
14776 fi
14777 rm -f core conftest.err conftest.$ac_objext \
14778     conftest$ac_exeext conftest.$ac_ext
14779 LIBS=$ac_check_lib_save_LIBS
14780 fi
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14782 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14783 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14784   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14785 else
14786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14787 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14788 if ${ac_cv_lib_dld_dld_link+:} false; then :
14789   $as_echo_n "(cached) " >&6
14790 else
14791   ac_check_lib_save_LIBS=$LIBS
14792 LIBS="-ldld  $LIBS"
14793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14794 /* end confdefs.h.  */
14795
14796 /* Override any GCC internal prototype to avoid an error.
14797    Use char because int might match the return type of a GCC
14798    builtin and then its argument prototype would still apply.  */
14799 #ifdef __cplusplus
14800 extern "C"
14801 #endif
14802 char dld_link ();
14803 int
14804 main ()
14805 {
14806 return dld_link ();
14807   ;
14808   return 0;
14809 }
14810 _ACEOF
14811 if ac_fn_c_try_link "$LINENO"; then :
14812   ac_cv_lib_dld_dld_link=yes
14813 else
14814   ac_cv_lib_dld_dld_link=no
14815 fi
14816 rm -f core conftest.err conftest.$ac_objext \
14817     conftest$ac_exeext conftest.$ac_ext
14818 LIBS=$ac_check_lib_save_LIBS
14819 fi
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14821 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14822 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14823   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14824 fi
14825
14826
14827 fi
14828
14829
14830 fi
14831
14832
14833 fi
14834
14835
14836 fi
14837
14838
14839 fi
14840
14841     ;;
14842   esac
14843
14844   if test no = "$lt_cv_dlopen"; then
14845     enable_dlopen=no
14846   else
14847     enable_dlopen=yes
14848   fi
14849
14850   case $lt_cv_dlopen in
14851   dlopen)
14852     save_CPPFLAGS=$CPPFLAGS
14853     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14854
14855     save_LDFLAGS=$LDFLAGS
14856     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14857
14858     save_LIBS=$LIBS
14859     LIBS="$lt_cv_dlopen_libs $LIBS"
14860
14861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14862 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14863 if ${lt_cv_dlopen_self+:} false; then :
14864   $as_echo_n "(cached) " >&6
14865 else
14866           if test yes = "$cross_compiling"; then :
14867   lt_cv_dlopen_self=cross
14868 else
14869   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14870   lt_status=$lt_dlunknown
14871   cat > conftest.$ac_ext <<_LT_EOF
14872 #line $LINENO "configure"
14873 #include "confdefs.h"
14874
14875 #if HAVE_DLFCN_H
14876 #include <dlfcn.h>
14877 #endif
14878
14879 #include <stdio.h>
14880
14881 #ifdef RTLD_GLOBAL
14882 #  define LT_DLGLOBAL           RTLD_GLOBAL
14883 #else
14884 #  ifdef DL_GLOBAL
14885 #    define LT_DLGLOBAL         DL_GLOBAL
14886 #  else
14887 #    define LT_DLGLOBAL         0
14888 #  endif
14889 #endif
14890
14891 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14892    find out it does not work in some platform. */
14893 #ifndef LT_DLLAZY_OR_NOW
14894 #  ifdef RTLD_LAZY
14895 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14896 #  else
14897 #    ifdef DL_LAZY
14898 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14899 #    else
14900 #      ifdef RTLD_NOW
14901 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14902 #      else
14903 #        ifdef DL_NOW
14904 #          define LT_DLLAZY_OR_NOW      DL_NOW
14905 #        else
14906 #          define LT_DLLAZY_OR_NOW      0
14907 #        endif
14908 #      endif
14909 #    endif
14910 #  endif
14911 #endif
14912
14913 /* When -fvisibility=hidden is used, assume the code has been annotated
14914    correspondingly for the symbols needed.  */
14915 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14916 int fnord () __attribute__((visibility("default")));
14917 #endif
14918
14919 int fnord () { return 42; }
14920 int main ()
14921 {
14922   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14923   int status = $lt_dlunknown;
14924
14925   if (self)
14926     {
14927       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14928       else
14929         {
14930           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14931           else puts (dlerror ());
14932         }
14933       /* dlclose (self); */
14934     }
14935   else
14936     puts (dlerror ());
14937
14938   return status;
14939 }
14940 _LT_EOF
14941   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14942   (eval $ac_link) 2>&5
14943   ac_status=$?
14944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14945   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14946     (./conftest; exit; ) >&5 2>/dev/null
14947     lt_status=$?
14948     case x$lt_status in
14949       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14950       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14951       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14952     esac
14953   else :
14954     # compilation failed
14955     lt_cv_dlopen_self=no
14956   fi
14957 fi
14958 rm -fr conftest*
14959
14960
14961 fi
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14963 $as_echo "$lt_cv_dlopen_self" >&6; }
14964
14965     if test yes = "$lt_cv_dlopen_self"; then
14966       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14967       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14968 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14969 if ${lt_cv_dlopen_self_static+:} false; then :
14970   $as_echo_n "(cached) " >&6
14971 else
14972           if test yes = "$cross_compiling"; then :
14973   lt_cv_dlopen_self_static=cross
14974 else
14975   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14976   lt_status=$lt_dlunknown
14977   cat > conftest.$ac_ext <<_LT_EOF
14978 #line $LINENO "configure"
14979 #include "confdefs.h"
14980
14981 #if HAVE_DLFCN_H
14982 #include <dlfcn.h>
14983 #endif
14984
14985 #include <stdio.h>
14986
14987 #ifdef RTLD_GLOBAL
14988 #  define LT_DLGLOBAL           RTLD_GLOBAL
14989 #else
14990 #  ifdef DL_GLOBAL
14991 #    define LT_DLGLOBAL         DL_GLOBAL
14992 #  else
14993 #    define LT_DLGLOBAL         0
14994 #  endif
14995 #endif
14996
14997 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14998    find out it does not work in some platform. */
14999 #ifndef LT_DLLAZY_OR_NOW
15000 #  ifdef RTLD_LAZY
15001 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15002 #  else
15003 #    ifdef DL_LAZY
15004 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15005 #    else
15006 #      ifdef RTLD_NOW
15007 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15008 #      else
15009 #        ifdef DL_NOW
15010 #          define LT_DLLAZY_OR_NOW      DL_NOW
15011 #        else
15012 #          define LT_DLLAZY_OR_NOW      0
15013 #        endif
15014 #      endif
15015 #    endif
15016 #  endif
15017 #endif
15018
15019 /* When -fvisibility=hidden is used, assume the code has been annotated
15020    correspondingly for the symbols needed.  */
15021 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15022 int fnord () __attribute__((visibility("default")));
15023 #endif
15024
15025 int fnord () { return 42; }
15026 int main ()
15027 {
15028   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15029   int status = $lt_dlunknown;
15030
15031   if (self)
15032     {
15033       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15034       else
15035         {
15036           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15037           else puts (dlerror ());
15038         }
15039       /* dlclose (self); */
15040     }
15041   else
15042     puts (dlerror ());
15043
15044   return status;
15045 }
15046 _LT_EOF
15047   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15048   (eval $ac_link) 2>&5
15049   ac_status=$?
15050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15051   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15052     (./conftest; exit; ) >&5 2>/dev/null
15053     lt_status=$?
15054     case x$lt_status in
15055       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15056       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15057       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15058     esac
15059   else :
15060     # compilation failed
15061     lt_cv_dlopen_self_static=no
15062   fi
15063 fi
15064 rm -fr conftest*
15065
15066
15067 fi
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15069 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15070     fi
15071
15072     CPPFLAGS=$save_CPPFLAGS
15073     LDFLAGS=$save_LDFLAGS
15074     LIBS=$save_LIBS
15075     ;;
15076   esac
15077
15078   case $lt_cv_dlopen_self in
15079   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15080   *) enable_dlopen_self=unknown ;;
15081   esac
15082
15083   case $lt_cv_dlopen_self_static in
15084   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15085   *) enable_dlopen_self_static=unknown ;;
15086   esac
15087 fi
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105 striplib=
15106 old_striplib=
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15108 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15109 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15110   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15111   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15113 $as_echo "yes" >&6; }
15114 else
15115 # FIXME - insert some real tests, host_os isn't really good enough
15116   case $host_os in
15117   darwin*)
15118     if test -n "$STRIP"; then
15119       striplib="$STRIP -x"
15120       old_striplib="$STRIP -S"
15121       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15122 $as_echo "yes" >&6; }
15123     else
15124       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15125 $as_echo "no" >&6; }
15126     fi
15127     ;;
15128   *)
15129     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15130 $as_echo "no" >&6; }
15131     ;;
15132   esac
15133 fi
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146   # Report what library types will actually be built
15147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15148 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15150 $as_echo "$can_build_shared" >&6; }
15151
15152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15153 $as_echo_n "checking whether to build shared libraries... " >&6; }
15154   test no = "$can_build_shared" && enable_shared=no
15155
15156   # On AIX, shared libraries and static libraries use the same namespace, and
15157   # are all built from PIC.
15158   case $host_os in
15159   aix3*)
15160     test yes = "$enable_shared" && enable_static=no
15161     if test -n "$RANLIB"; then
15162       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15163       postinstall_cmds='$RANLIB $lib'
15164     fi
15165     ;;
15166
15167   aix[4-9]*)
15168     if test ia64 != "$host_cpu"; then
15169       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15170       yes,aix,yes) ;;                   # shared object as lib.so file only
15171       yes,svr4,*) ;;                    # shared object as lib.so archive member only
15172       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
15173       esac
15174     fi
15175     ;;
15176   esac
15177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15178 $as_echo "$enable_shared" >&6; }
15179
15180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15181 $as_echo_n "checking whether to build static libraries... " >&6; }
15182   # Make sure either enable_shared or enable_static is yes.
15183   test yes = "$enable_shared" || enable_static=yes
15184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15185 $as_echo "$enable_static" >&6; }
15186
15187
15188
15189
15190 fi
15191 ac_ext=c
15192 ac_cpp='$CPP $CPPFLAGS'
15193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15196
15197 CC=$lt_save_CC
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213         ac_config_commands="$ac_config_commands libtool"
15214
15215
15216
15217
15218 # Only expand once:
15219
15220
15221
15222 if test -n "$ac_tool_prefix"; then
15223   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15224 set dummy ${ac_tool_prefix}windres; ac_word=$2
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15226 $as_echo_n "checking for $ac_word... " >&6; }
15227 if ${ac_cv_prog_RC+:} false; then :
15228   $as_echo_n "(cached) " >&6
15229 else
15230   if test -n "$RC"; then
15231   ac_cv_prog_RC="$RC" # Let the user override the test.
15232 else
15233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15234 for as_dir in $PATH
15235 do
15236   IFS=$as_save_IFS
15237   test -z "$as_dir" && as_dir=.
15238     for ac_exec_ext in '' $ac_executable_extensions; do
15239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15240     ac_cv_prog_RC="${ac_tool_prefix}windres"
15241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15242     break 2
15243   fi
15244 done
15245   done
15246 IFS=$as_save_IFS
15247
15248 fi
15249 fi
15250 RC=$ac_cv_prog_RC
15251 if test -n "$RC"; then
15252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
15253 $as_echo "$RC" >&6; }
15254 else
15255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15256 $as_echo "no" >&6; }
15257 fi
15258
15259
15260 fi
15261 if test -z "$ac_cv_prog_RC"; then
15262   ac_ct_RC=$RC
15263   # Extract the first word of "windres", so it can be a program name with args.
15264 set dummy windres; ac_word=$2
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15266 $as_echo_n "checking for $ac_word... " >&6; }
15267 if ${ac_cv_prog_ac_ct_RC+:} false; then :
15268   $as_echo_n "(cached) " >&6
15269 else
15270   if test -n "$ac_ct_RC"; then
15271   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
15272 else
15273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15274 for as_dir in $PATH
15275 do
15276   IFS=$as_save_IFS
15277   test -z "$as_dir" && as_dir=.
15278     for ac_exec_ext in '' $ac_executable_extensions; do
15279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15280     ac_cv_prog_ac_ct_RC="windres"
15281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15282     break 2
15283   fi
15284 done
15285   done
15286 IFS=$as_save_IFS
15287
15288 fi
15289 fi
15290 ac_ct_RC=$ac_cv_prog_ac_ct_RC
15291 if test -n "$ac_ct_RC"; then
15292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
15293 $as_echo "$ac_ct_RC" >&6; }
15294 else
15295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15296 $as_echo "no" >&6; }
15297 fi
15298
15299   if test "x$ac_ct_RC" = x; then
15300     RC=""
15301   else
15302     case $cross_compiling:$ac_tool_warned in
15303 yes:)
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15306 ac_tool_warned=yes ;;
15307 esac
15308     RC=$ac_ct_RC
15309   fi
15310 else
15311   RC="$ac_cv_prog_RC"
15312 fi
15313
15314
15315
15316
15317 # Source file extension for RC test sources.
15318 ac_ext=rc
15319
15320 # Object file extension for compiled RC test sources.
15321 objext=o
15322 objext_RC=$objext
15323
15324 # Code to be used in simple compile tests
15325 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
15326
15327 # Code to be used in simple link tests
15328 lt_simple_link_test_code=$lt_simple_compile_test_code
15329
15330 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15331
15332
15333
15334
15335
15336
15337 # If no C compiler was specified, use CC.
15338 LTCC=${LTCC-"$CC"}
15339
15340 # If no C compiler flags were specified, use CFLAGS.
15341 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15342
15343 # Allow CC to be a program name with arguments.
15344 compiler=$CC
15345
15346
15347 # save warnings/boilerplate of simple test code
15348 ac_outfile=conftest.$ac_objext
15349 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15350 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15351 _lt_compiler_boilerplate=`cat conftest.err`
15352 $RM conftest*
15353
15354 ac_outfile=conftest.$ac_objext
15355 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15356 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15357 _lt_linker_boilerplate=`cat conftest.err`
15358 $RM -r conftest*
15359
15360
15361 # Allow CC to be a program name with arguments.
15362 lt_save_CC=$CC
15363 lt_save_CFLAGS=$CFLAGS
15364 lt_save_GCC=$GCC
15365 GCC=
15366 CC=${RC-"windres"}
15367 CFLAGS=
15368 compiler=$CC
15369 compiler_RC=$CC
15370 func_cc_basename $compiler
15371 cc_basename=$func_cc_basename_result
15372
15373 lt_cv_prog_compiler_c_o_RC=yes
15374
15375 if test -n "$compiler"; then
15376   :
15377
15378
15379
15380 fi
15381
15382 GCC=$lt_save_GCC
15383 ac_ext=c
15384 ac_cpp='$CPP $CPPFLAGS'
15385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15388
15389 CC=$lt_save_CC
15390 CFLAGS=$lt_save_CFLAGS
15391
15392
15393 case "$host_os" in
15394   mingw* | cygwin*) is_woe32=yes ;;
15395   *) is_woe32=no ;;
15396 esac
15397  if test $is_woe32 = yes; then
15398   WOE32_TRUE=
15399   WOE32_FALSE='#'
15400 else
15401   WOE32_TRUE='#'
15402   WOE32_FALSE=
15403 fi
15404
15405
15406
15407
15408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15409 $as_echo_n "checking whether NLS is requested... " >&6; }
15410     # Check whether --enable-nls was given.
15411 if test "${enable_nls+set}" = set; then :
15412   enableval=$enable_nls; USE_NLS=$enableval
15413 else
15414   USE_NLS=yes
15415 fi
15416
15417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15418 $as_echo "$USE_NLS" >&6; }
15419
15420
15421
15422
15423       GETTEXT_MACRO_VERSION=0.19
15424
15425
15426
15427
15428 # Prepare PATH_SEPARATOR.
15429 # The user is always right.
15430 if test "${PATH_SEPARATOR+set}" != set; then
15431   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15432   # contains only /bin. Note that ksh looks also at the FPATH variable,
15433   # so we have to set that as well for the test.
15434   PATH_SEPARATOR=:
15435   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15436     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15437            || PATH_SEPARATOR=';'
15438        }
15439 fi
15440
15441 # Find out how to test for executable files. Don't use a zero-byte file,
15442 # as systems may use methods other than mode bits to determine executability.
15443 cat >conf$$.file <<_ASEOF
15444 #! /bin/sh
15445 exit 0
15446 _ASEOF
15447 chmod +x conf$$.file
15448 if test -x conf$$.file >/dev/null 2>&1; then
15449   ac_executable_p="test -x"
15450 else
15451   ac_executable_p="test -f"
15452 fi
15453 rm -f conf$$.file
15454
15455 # Extract the first word of "msgfmt", so it can be a program name with args.
15456 set dummy msgfmt; ac_word=$2
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15458 $as_echo_n "checking for $ac_word... " >&6; }
15459 if ${ac_cv_path_MSGFMT+:} false; then :
15460   $as_echo_n "(cached) " >&6
15461 else
15462   case "$MSGFMT" in
15463   [\\/]* | ?:[\\/]*)
15464     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15465     ;;
15466   *)
15467     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15468     for ac_dir in $PATH; do
15469       IFS="$ac_save_IFS"
15470       test -z "$ac_dir" && ac_dir=.
15471       for ac_exec_ext in '' $ac_executable_extensions; do
15472         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15473           echo "$as_me: trying $ac_dir/$ac_word..." >&5
15474           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
15475      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15476             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15477             break 2
15478           fi
15479         fi
15480       done
15481     done
15482     IFS="$ac_save_IFS"
15483   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15484     ;;
15485 esac
15486 fi
15487 MSGFMT="$ac_cv_path_MSGFMT"
15488 if test "$MSGFMT" != ":"; then
15489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15490 $as_echo "$MSGFMT" >&6; }
15491 else
15492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15493 $as_echo "no" >&6; }
15494 fi
15495
15496   # Extract the first word of "gmsgfmt", so it can be a program name with args.
15497 set dummy gmsgfmt; ac_word=$2
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15499 $as_echo_n "checking for $ac_word... " >&6; }
15500 if ${ac_cv_path_GMSGFMT+:} false; then :
15501   $as_echo_n "(cached) " >&6
15502 else
15503   case $GMSGFMT in
15504   [\\/]* | ?:[\\/]*)
15505   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15506   ;;
15507   *)
15508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15509 for as_dir in $PATH
15510 do
15511   IFS=$as_save_IFS
15512   test -z "$as_dir" && as_dir=.
15513     for ac_exec_ext in '' $ac_executable_extensions; do
15514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15515     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15517     break 2
15518   fi
15519 done
15520   done
15521 IFS=$as_save_IFS
15522
15523   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15524   ;;
15525 esac
15526 fi
15527 GMSGFMT=$ac_cv_path_GMSGFMT
15528 if test -n "$GMSGFMT"; then
15529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15530 $as_echo "$GMSGFMT" >&6; }
15531 else
15532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15533 $as_echo "no" >&6; }
15534 fi
15535
15536
15537
15538     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15539     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
15540     *) MSGFMT_015=$MSGFMT ;;
15541   esac
15542
15543   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15544     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
15545     *) GMSGFMT_015=$GMSGFMT ;;
15546   esac
15547
15548
15549
15550 # Prepare PATH_SEPARATOR.
15551 # The user is always right.
15552 if test "${PATH_SEPARATOR+set}" != set; then
15553   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15554   # contains only /bin. Note that ksh looks also at the FPATH variable,
15555   # so we have to set that as well for the test.
15556   PATH_SEPARATOR=:
15557   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15558     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15559            || PATH_SEPARATOR=';'
15560        }
15561 fi
15562
15563 # Find out how to test for executable files. Don't use a zero-byte file,
15564 # as systems may use methods other than mode bits to determine executability.
15565 cat >conf$$.file <<_ASEOF
15566 #! /bin/sh
15567 exit 0
15568 _ASEOF
15569 chmod +x conf$$.file
15570 if test -x conf$$.file >/dev/null 2>&1; then
15571   ac_executable_p="test -x"
15572 else
15573   ac_executable_p="test -f"
15574 fi
15575 rm -f conf$$.file
15576
15577 # Extract the first word of "xgettext", so it can be a program name with args.
15578 set dummy xgettext; ac_word=$2
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15580 $as_echo_n "checking for $ac_word... " >&6; }
15581 if ${ac_cv_path_XGETTEXT+:} false; then :
15582   $as_echo_n "(cached) " >&6
15583 else
15584   case "$XGETTEXT" in
15585   [\\/]* | ?:[\\/]*)
15586     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15587     ;;
15588   *)
15589     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15590     for ac_dir in $PATH; do
15591       IFS="$ac_save_IFS"
15592       test -z "$ac_dir" && ac_dir=.
15593       for ac_exec_ext in '' $ac_executable_extensions; do
15594         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15595           echo "$as_me: trying $ac_dir/$ac_word..." >&5
15596           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
15597      (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
15598             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15599             break 2
15600           fi
15601         fi
15602       done
15603     done
15604     IFS="$ac_save_IFS"
15605   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15606     ;;
15607 esac
15608 fi
15609 XGETTEXT="$ac_cv_path_XGETTEXT"
15610 if test "$XGETTEXT" != ":"; then
15611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15612 $as_echo "$XGETTEXT" >&6; }
15613 else
15614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15615 $as_echo "no" >&6; }
15616 fi
15617
15618     rm -f messages.po
15619
15620     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15621     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
15622     *) XGETTEXT_015=$XGETTEXT ;;
15623   esac
15624
15625
15626
15627 # Prepare PATH_SEPARATOR.
15628 # The user is always right.
15629 if test "${PATH_SEPARATOR+set}" != set; then
15630   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15631   # contains only /bin. Note that ksh looks also at the FPATH variable,
15632   # so we have to set that as well for the test.
15633   PATH_SEPARATOR=:
15634   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15635     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15636            || PATH_SEPARATOR=';'
15637        }
15638 fi
15639
15640 # Find out how to test for executable files. Don't use a zero-byte file,
15641 # as systems may use methods other than mode bits to determine executability.
15642 cat >conf$$.file <<_ASEOF
15643 #! /bin/sh
15644 exit 0
15645 _ASEOF
15646 chmod +x conf$$.file
15647 if test -x conf$$.file >/dev/null 2>&1; then
15648   ac_executable_p="test -x"
15649 else
15650   ac_executable_p="test -f"
15651 fi
15652 rm -f conf$$.file
15653
15654 # Extract the first word of "msgmerge", so it can be a program name with args.
15655 set dummy msgmerge; ac_word=$2
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15657 $as_echo_n "checking for $ac_word... " >&6; }
15658 if ${ac_cv_path_MSGMERGE+:} false; then :
15659   $as_echo_n "(cached) " >&6
15660 else
15661   case "$MSGMERGE" in
15662   [\\/]* | ?:[\\/]*)
15663     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15664     ;;
15665   *)
15666     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15667     for ac_dir in $PATH; do
15668       IFS="$ac_save_IFS"
15669       test -z "$ac_dir" && ac_dir=.
15670       for ac_exec_ext in '' $ac_executable_extensions; do
15671         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15672           echo "$as_me: trying $ac_dir/$ac_word..." >&5
15673           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
15674             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15675             break 2
15676           fi
15677         fi
15678       done
15679     done
15680     IFS="$ac_save_IFS"
15681   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15682     ;;
15683 esac
15684 fi
15685 MSGMERGE="$ac_cv_path_MSGMERGE"
15686 if test "$MSGMERGE" != ":"; then
15687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15688 $as_echo "$MSGMERGE" >&6; }
15689 else
15690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15691 $as_echo "no" >&6; }
15692 fi
15693
15694
15695         test -n "$localedir" || localedir='${datadir}/locale'
15696
15697
15698     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
15699
15700
15701   ac_config_commands="$ac_config_commands po-directories"
15702
15703
15704
15705     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
15706 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
15707 if ${ac_cv_gnu_library_2+:} false; then :
15708   $as_echo_n "(cached) " >&6
15709 else
15710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711 /* end confdefs.h.  */
15712
15713 #include <features.h>
15714 #ifdef __GNU_LIBRARY__
15715  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
15716   Lucky GNU user
15717  #endif
15718 #endif
15719
15720 _ACEOF
15721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15722   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
15723   ac_cv_gnu_library_2=yes
15724 else
15725   ac_cv_gnu_library_2=no
15726 fi
15727 rm -f conftest*
15728
15729
15730
15731 fi
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
15733 $as_echo "$ac_cv_gnu_library_2" >&6; }
15734
15735     GLIBC2="$ac_cv_gnu_library_2"
15736
15737
15738
15739
15740   CFLAG_VISIBILITY=
15741   HAVE_VISIBILITY=0
15742   if test -n "$GCC"; then
15743                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
15744 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
15745     if ${gl_cv_cc_vis_werror+:} false; then :
15746   $as_echo_n "(cached) " >&6
15747 else
15748
15749       gl_save_CFLAGS="$CFLAGS"
15750       CFLAGS="$CFLAGS -Werror"
15751       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15752 /* end confdefs.h.  */
15753
15754 int
15755 main ()
15756 {
15757
15758   ;
15759   return 0;
15760 }
15761 _ACEOF
15762 if ac_fn_c_try_compile "$LINENO"; then :
15763   gl_cv_cc_vis_werror=yes
15764 else
15765   gl_cv_cc_vis_werror=no
15766 fi
15767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15768       CFLAGS="$gl_save_CFLAGS"
15769 fi
15770
15771     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
15772 $as_echo "$gl_cv_cc_vis_werror" >&6; }
15773         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
15774 $as_echo_n "checking for simple visibility declarations... " >&6; }
15775     if ${gl_cv_cc_visibility+:} false; then :
15776   $as_echo_n "(cached) " >&6
15777 else
15778
15779       gl_save_CFLAGS="$CFLAGS"
15780       CFLAGS="$CFLAGS -fvisibility=hidden"
15781                                     if test $gl_cv_cc_vis_werror = yes; then
15782         CFLAGS="$CFLAGS -Werror"
15783       fi
15784       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15785 /* end confdefs.h.  */
15786 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
15787              extern __attribute__((__visibility__("default"))) int exportedvar;
15788              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
15789              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
15790              void dummyfunc (void) {}
15791
15792 int
15793 main ()
15794 {
15795
15796   ;
15797   return 0;
15798 }
15799 _ACEOF
15800 if ac_fn_c_try_compile "$LINENO"; then :
15801   gl_cv_cc_visibility=yes
15802 else
15803   gl_cv_cc_visibility=no
15804 fi
15805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15806       CFLAGS="$gl_save_CFLAGS"
15807 fi
15808
15809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
15810 $as_echo "$gl_cv_cc_visibility" >&6; }
15811     if test $gl_cv_cc_visibility = yes; then
15812       CFLAG_VISIBILITY="-fvisibility=hidden"
15813       HAVE_VISIBILITY=1
15814     fi
15815   fi
15816
15817
15818
15819 cat >>confdefs.h <<_ACEOF
15820 #define HAVE_VISIBILITY $HAVE_VISIBILITY
15821 _ACEOF
15822
15823
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15825 $as_echo_n "checking for inline... " >&6; }
15826 if ${ac_cv_c_inline+:} false; then :
15827   $as_echo_n "(cached) " >&6
15828 else
15829   ac_cv_c_inline=no
15830 for ac_kw in inline __inline__ __inline; do
15831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832 /* end confdefs.h.  */
15833 #ifndef __cplusplus
15834 typedef int foo_t;
15835 static $ac_kw foo_t static_foo () {return 0; }
15836 $ac_kw foo_t foo () {return 0; }
15837 #endif
15838
15839 _ACEOF
15840 if ac_fn_c_try_compile "$LINENO"; then :
15841   ac_cv_c_inline=$ac_kw
15842 fi
15843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15844   test "$ac_cv_c_inline" != no && break
15845 done
15846
15847 fi
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15849 $as_echo "$ac_cv_c_inline" >&6; }
15850
15851 case $ac_cv_c_inline in
15852   inline | yes) ;;
15853   *)
15854     case $ac_cv_c_inline in
15855       no) ac_val=;;
15856       *) ac_val=$ac_cv_c_inline;;
15857     esac
15858     cat >>confdefs.h <<_ACEOF
15859 #ifndef __cplusplus
15860 #define inline $ac_val
15861 #endif
15862 _ACEOF
15863     ;;
15864 esac
15865
15866 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15867 if test "x$ac_cv_type_size_t" = xyes; then :
15868
15869 else
15870
15871 cat >>confdefs.h <<_ACEOF
15872 #define size_t unsigned int
15873 _ACEOF
15874
15875 fi
15876
15877
15878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
15879 $as_echo_n "checking for stdint.h... " >&6; }
15880 if ${gl_cv_header_stdint_h+:} false; then :
15881   $as_echo_n "(cached) " >&6
15882 else
15883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884 /* end confdefs.h.  */
15885 #include <sys/types.h>
15886             #include <stdint.h>
15887 int
15888 main ()
15889 {
15890 uintmax_t i = (uintmax_t) -1; return !i;
15891   ;
15892   return 0;
15893 }
15894 _ACEOF
15895 if ac_fn_c_try_compile "$LINENO"; then :
15896   gl_cv_header_stdint_h=yes
15897 else
15898   gl_cv_header_stdint_h=no
15899 fi
15900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15901 fi
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
15903 $as_echo "$gl_cv_header_stdint_h" >&6; }
15904   if test $gl_cv_header_stdint_h = yes; then
15905
15906 cat >>confdefs.h <<_ACEOF
15907 #define HAVE_STDINT_H_WITH_UINTMAX 1
15908 _ACEOF
15909
15910   fi
15911
15912 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15913 # for constant arguments.  Useless!
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15915 $as_echo_n "checking for working alloca.h... " >&6; }
15916 if ${ac_cv_working_alloca_h+:} false; then :
15917   $as_echo_n "(cached) " >&6
15918 else
15919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920 /* end confdefs.h.  */
15921 #include <alloca.h>
15922 int
15923 main ()
15924 {
15925 char *p = (char *) alloca (2 * sizeof (int));
15926                           if (p) return 0;
15927   ;
15928   return 0;
15929 }
15930 _ACEOF
15931 if ac_fn_c_try_link "$LINENO"; then :
15932   ac_cv_working_alloca_h=yes
15933 else
15934   ac_cv_working_alloca_h=no
15935 fi
15936 rm -f core conftest.err conftest.$ac_objext \
15937     conftest$ac_exeext conftest.$ac_ext
15938 fi
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15940 $as_echo "$ac_cv_working_alloca_h" >&6; }
15941 if test $ac_cv_working_alloca_h = yes; then
15942
15943 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15944
15945 fi
15946
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15948 $as_echo_n "checking for alloca... " >&6; }
15949 if ${ac_cv_func_alloca_works+:} false; then :
15950   $as_echo_n "(cached) " >&6
15951 else
15952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953 /* end confdefs.h.  */
15954 #ifdef __GNUC__
15955 # define alloca __builtin_alloca
15956 #else
15957 # ifdef _MSC_VER
15958 #  include <malloc.h>
15959 #  define alloca _alloca
15960 # else
15961 #  ifdef HAVE_ALLOCA_H
15962 #   include <alloca.h>
15963 #  else
15964 #   ifdef _AIX
15965  #pragma alloca
15966 #   else
15967 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15968 void *alloca (size_t);
15969 #    endif
15970 #   endif
15971 #  endif
15972 # endif
15973 #endif
15974
15975 int
15976 main ()
15977 {
15978 char *p = (char *) alloca (1);
15979                                     if (p) return 0;
15980   ;
15981   return 0;
15982 }
15983 _ACEOF
15984 if ac_fn_c_try_link "$LINENO"; then :
15985   ac_cv_func_alloca_works=yes
15986 else
15987   ac_cv_func_alloca_works=no
15988 fi
15989 rm -f core conftest.err conftest.$ac_objext \
15990     conftest$ac_exeext conftest.$ac_ext
15991 fi
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15993 $as_echo "$ac_cv_func_alloca_works" >&6; }
15994
15995 if test $ac_cv_func_alloca_works = yes; then
15996
15997 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15998
15999 else
16000   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16001 # that cause trouble.  Some versions do not even contain alloca or
16002 # contain a buggy version.  If you still want to use their alloca,
16003 # use ar to extract alloca.o from them instead of compiling alloca.c.
16004
16005 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16006
16007 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16008
16009
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16011 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16012 if ${ac_cv_os_cray+:} false; then :
16013   $as_echo_n "(cached) " >&6
16014 else
16015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16016 /* end confdefs.h.  */
16017 #if defined CRAY && ! defined CRAY2
16018 webecray
16019 #else
16020 wenotbecray
16021 #endif
16022
16023 _ACEOF
16024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16025   $EGREP "webecray" >/dev/null 2>&1; then :
16026   ac_cv_os_cray=yes
16027 else
16028   ac_cv_os_cray=no
16029 fi
16030 rm -f conftest*
16031
16032 fi
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16034 $as_echo "$ac_cv_os_cray" >&6; }
16035 if test $ac_cv_os_cray = yes; then
16036   for ac_func in _getb67 GETB67 getb67; do
16037     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16038 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16039 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16040
16041 cat >>confdefs.h <<_ACEOF
16042 #define CRAY_STACKSEG_END $ac_func
16043 _ACEOF
16044
16045     break
16046 fi
16047
16048   done
16049 fi
16050
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16052 $as_echo_n "checking stack direction for C alloca... " >&6; }
16053 if ${ac_cv_c_stack_direction+:} false; then :
16054   $as_echo_n "(cached) " >&6
16055 else
16056   if test "$cross_compiling" = yes; then :
16057   ac_cv_c_stack_direction=0
16058 else
16059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16060 /* end confdefs.h.  */
16061 $ac_includes_default
16062 int
16063 find_stack_direction (int *addr, int depth)
16064 {
16065   int dir, dummy = 0;
16066   if (! addr)
16067     addr = &dummy;
16068   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16069   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16070   return dir + dummy;
16071 }
16072
16073 int
16074 main (int argc, char **argv)
16075 {
16076   return find_stack_direction (0, argc + !argv + 20) < 0;
16077 }
16078 _ACEOF
16079 if ac_fn_c_try_run "$LINENO"; then :
16080   ac_cv_c_stack_direction=1
16081 else
16082   ac_cv_c_stack_direction=-1
16083 fi
16084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16085   conftest.$ac_objext conftest.beam conftest.$ac_ext
16086 fi
16087
16088 fi
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16090 $as_echo "$ac_cv_c_stack_direction" >&6; }
16091 cat >>confdefs.h <<_ACEOF
16092 #define STACK_DIRECTION $ac_cv_c_stack_direction
16093 _ACEOF
16094
16095
16096 fi
16097
16098
16099
16100
16101   for ac_header in $ac_header_list
16102 do :
16103   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16104 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16105 "
16106 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16107   cat >>confdefs.h <<_ACEOF
16108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16109 _ACEOF
16110
16111 fi
16112
16113 done
16114
16115
16116
16117
16118
16119
16120
16121
16122 for ac_func in getpagesize
16123 do :
16124   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16125 if test "x$ac_cv_func_getpagesize" = xyes; then :
16126   cat >>confdefs.h <<_ACEOF
16127 #define HAVE_GETPAGESIZE 1
16128 _ACEOF
16129
16130 fi
16131 done
16132
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16134 $as_echo_n "checking for working mmap... " >&6; }
16135 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16136   $as_echo_n "(cached) " >&6
16137 else
16138   if test "$cross_compiling" = yes; then :
16139   ac_cv_func_mmap_fixed_mapped=no
16140 else
16141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16142 /* end confdefs.h.  */
16143 $ac_includes_default
16144 /* malloc might have been renamed as rpl_malloc. */
16145 #undef malloc
16146
16147 /* Thanks to Mike Haertel and Jim Avera for this test.
16148    Here is a matrix of mmap possibilities:
16149         mmap private not fixed
16150         mmap private fixed at somewhere currently unmapped
16151         mmap private fixed at somewhere already mapped
16152         mmap shared not fixed
16153         mmap shared fixed at somewhere currently unmapped
16154         mmap shared fixed at somewhere already mapped
16155    For private mappings, we should verify that changes cannot be read()
16156    back from the file, nor mmap's back from the file at a different
16157    address.  (There have been systems where private was not correctly
16158    implemented like the infamous i386 svr4.0, and systems where the
16159    VM page cache was not coherent with the file system buffer cache
16160    like early versions of FreeBSD and possibly contemporary NetBSD.)
16161    For shared mappings, we should conversely verify that changes get
16162    propagated back to all the places they're supposed to be.
16163
16164    Grep wants private fixed already mapped.
16165    The main things grep needs to know about mmap are:
16166    * does it exist and is it safe to write into the mmap'd area
16167    * how to use it (BSD variants)  */
16168
16169 #include <fcntl.h>
16170 #include <sys/mman.h>
16171
16172 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16173 char *malloc ();
16174 #endif
16175
16176 /* This mess was copied from the GNU getpagesize.h.  */
16177 #ifndef HAVE_GETPAGESIZE
16178 # ifdef _SC_PAGESIZE
16179 #  define getpagesize() sysconf(_SC_PAGESIZE)
16180 # else /* no _SC_PAGESIZE */
16181 #  ifdef HAVE_SYS_PARAM_H
16182 #   include <sys/param.h>
16183 #   ifdef EXEC_PAGESIZE
16184 #    define getpagesize() EXEC_PAGESIZE
16185 #   else /* no EXEC_PAGESIZE */
16186 #    ifdef NBPG
16187 #     define getpagesize() NBPG * CLSIZE
16188 #     ifndef CLSIZE
16189 #      define CLSIZE 1
16190 #     endif /* no CLSIZE */
16191 #    else /* no NBPG */
16192 #     ifdef NBPC
16193 #      define getpagesize() NBPC
16194 #     else /* no NBPC */
16195 #      ifdef PAGESIZE
16196 #       define getpagesize() PAGESIZE
16197 #      endif /* PAGESIZE */
16198 #     endif /* no NBPC */
16199 #    endif /* no NBPG */
16200 #   endif /* no EXEC_PAGESIZE */
16201 #  else /* no HAVE_SYS_PARAM_H */
16202 #   define getpagesize() 8192   /* punt totally */
16203 #  endif /* no HAVE_SYS_PARAM_H */
16204 # endif /* no _SC_PAGESIZE */
16205
16206 #endif /* no HAVE_GETPAGESIZE */
16207
16208 int
16209 main ()
16210 {
16211   char *data, *data2, *data3;
16212   const char *cdata2;
16213   int i, pagesize;
16214   int fd, fd2;
16215
16216   pagesize = getpagesize ();
16217
16218   /* First, make a file with some known garbage in it. */
16219   data = (char *) malloc (pagesize);
16220   if (!data)
16221     return 1;
16222   for (i = 0; i < pagesize; ++i)
16223     *(data + i) = rand ();
16224   umask (0);
16225   fd = creat ("conftest.mmap", 0600);
16226   if (fd < 0)
16227     return 2;
16228   if (write (fd, data, pagesize) != pagesize)
16229     return 3;
16230   close (fd);
16231
16232   /* Next, check that the tail of a page is zero-filled.  File must have
16233      non-zero length, otherwise we risk SIGBUS for entire page.  */
16234   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16235   if (fd2 < 0)
16236     return 4;
16237   cdata2 = "";
16238   if (write (fd2, cdata2, 1) != 1)
16239     return 5;
16240   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16241   if (data2 == MAP_FAILED)
16242     return 6;
16243   for (i = 0; i < pagesize; ++i)
16244     if (*(data2 + i))
16245       return 7;
16246   close (fd2);
16247   if (munmap (data2, pagesize))
16248     return 8;
16249
16250   /* Next, try to mmap the file at a fixed address which already has
16251      something else allocated at it.  If we can, also make sure that
16252      we see the same garbage.  */
16253   fd = open ("conftest.mmap", O_RDWR);
16254   if (fd < 0)
16255     return 9;
16256   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16257                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
16258     return 10;
16259   for (i = 0; i < pagesize; ++i)
16260     if (*(data + i) != *(data2 + i))
16261       return 11;
16262
16263   /* Finally, make sure that changes to the mapped area do not
16264      percolate back to the file as seen by read().  (This is a bug on
16265      some variants of i386 svr4.0.)  */
16266   for (i = 0; i < pagesize; ++i)
16267     *(data2 + i) = *(data2 + i) + 1;
16268   data3 = (char *) malloc (pagesize);
16269   if (!data3)
16270     return 12;
16271   if (read (fd, data3, pagesize) != pagesize)
16272     return 13;
16273   for (i = 0; i < pagesize; ++i)
16274     if (*(data + i) != *(data3 + i))
16275       return 14;
16276   close (fd);
16277   return 0;
16278 }
16279 _ACEOF
16280 if ac_fn_c_try_run "$LINENO"; then :
16281   ac_cv_func_mmap_fixed_mapped=yes
16282 else
16283   ac_cv_func_mmap_fixed_mapped=no
16284 fi
16285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16286   conftest.$ac_objext conftest.beam conftest.$ac_ext
16287 fi
16288
16289 fi
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16291 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16292 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16293
16294 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16295
16296 fi
16297 rm -f conftest.mmap conftest.txt
16298
16299
16300
16301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
16302 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
16303 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
16304   $as_echo_n "(cached) " >&6
16305 else
16306
16307       gt_cv_int_divbyzero_sigfpe=
16308       case "$host_os" in
16309         macos* | darwin[6-9]* | darwin[1-9][0-9]*)
16310           # On Mac OS X 10.2 or newer, just assume the same as when cross-
16311           # compiling. If we were to perform the real test, 1 Crash Report
16312           # dialog window would pop up.
16313           case "$host_cpu" in
16314             i[34567]86 | x86_64)
16315               gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
16316           esac
16317           ;;
16318       esac
16319       if test -z "$gt_cv_int_divbyzero_sigfpe"; then
16320         if test "$cross_compiling" = yes; then :
16321
16322             # Guess based on the CPU.
16323             case "$host_cpu" in
16324               alpha* | i[34567]86 | x86_64 | m68k | s390*)
16325                 gt_cv_int_divbyzero_sigfpe="guessing yes";;
16326               *)
16327                 gt_cv_int_divbyzero_sigfpe="guessing no";;
16328             esac
16329
16330 else
16331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16332 /* end confdefs.h.  */
16333
16334 #include <stdlib.h>
16335 #include <signal.h>
16336
16337 static void
16338 sigfpe_handler (int sig)
16339 {
16340   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
16341   _exit (sig != SIGFPE);
16342 }
16343
16344 int x = 1;
16345 int y = 0;
16346 int z;
16347 int nan;
16348
16349 int main ()
16350 {
16351   signal (SIGFPE, sigfpe_handler);
16352 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
16353 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
16354   signal (SIGTRAP, sigfpe_handler);
16355 #endif
16356 /* Linux/SPARC yields signal SIGILL.  */
16357 #if defined (__sparc__) && defined (__linux__)
16358   signal (SIGILL, sigfpe_handler);
16359 #endif
16360
16361   z = x / y;
16362   nan = y / y;
16363   exit (2);
16364 }
16365
16366 _ACEOF
16367 if ac_fn_c_try_run "$LINENO"; then :
16368   gt_cv_int_divbyzero_sigfpe=yes
16369 else
16370   gt_cv_int_divbyzero_sigfpe=no
16371 fi
16372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16373   conftest.$ac_objext conftest.beam conftest.$ac_ext
16374 fi
16375
16376       fi
16377
16378 fi
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
16380 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
16381   case "$gt_cv_int_divbyzero_sigfpe" in
16382     *yes) value=1;;
16383     *) value=0;;
16384   esac
16385
16386 cat >>confdefs.h <<_ACEOF
16387 #define INTDIV0_RAISES_SIGFPE $value
16388 _ACEOF
16389
16390
16391
16392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
16393 $as_echo_n "checking for inttypes.h... " >&6; }
16394 if ${gl_cv_header_inttypes_h+:} false; then :
16395   $as_echo_n "(cached) " >&6
16396 else
16397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16398 /* end confdefs.h.  */
16399
16400 #include <sys/types.h>
16401 #include <inttypes.h>
16402
16403 int
16404 main ()
16405 {
16406 uintmax_t i = (uintmax_t) -1; return !i;
16407   ;
16408   return 0;
16409 }
16410 _ACEOF
16411 if ac_fn_c_try_compile "$LINENO"; then :
16412   gl_cv_header_inttypes_h=yes
16413 else
16414   gl_cv_header_inttypes_h=no
16415 fi
16416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16417 fi
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
16419 $as_echo "$gl_cv_header_inttypes_h" >&6; }
16420   if test $gl_cv_header_inttypes_h = yes; then
16421
16422 cat >>confdefs.h <<_ACEOF
16423 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
16424 _ACEOF
16425
16426   fi
16427
16428
16429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
16430 $as_echo_n "checking for unsigned long long int... " >&6; }
16431 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
16432   $as_echo_n "(cached) " >&6
16433 else
16434   ac_cv_type_unsigned_long_long_int=yes
16435      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16436        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16437 /* end confdefs.h.  */
16438
16439   /* For now, do not test the preprocessor; as of 2007 there are too many
16440          implementations with broken preprocessors.  Perhaps this can
16441          be revisited in 2012.  In the meantime, code should not expect
16442          #if to work with literals wider than 32 bits.  */
16443       /* Test literals.  */
16444       long long int ll = 9223372036854775807ll;
16445       long long int nll = -9223372036854775807LL;
16446       unsigned long long int ull = 18446744073709551615ULL;
16447       /* Test constant expressions.   */
16448       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16449                      ? 1 : -1)];
16450       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16451                      ? 1 : -1)];
16452       int i = 63;
16453 int
16454 main ()
16455 {
16456 /* Test availability of runtime routines for shift and division.  */
16457       long long int llmax = 9223372036854775807ll;
16458       unsigned long long int ullmax = 18446744073709551615ull;
16459       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16460               | (llmax / ll) | (llmax % ll)
16461               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16462               | (ullmax / ull) | (ullmax % ull));
16463   ;
16464   return 0;
16465 }
16466
16467 _ACEOF
16468 if ac_fn_c_try_link "$LINENO"; then :
16469
16470 else
16471   ac_cv_type_unsigned_long_long_int=no
16472 fi
16473 rm -f core conftest.err conftest.$ac_objext \
16474     conftest$ac_exeext conftest.$ac_ext
16475      fi
16476 fi
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
16478 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16479   if test $ac_cv_type_unsigned_long_long_int = yes; then
16480
16481 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
16482
16483   fi
16484
16485
16486
16487
16488   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
16489
16490     test $ac_cv_type_unsigned_long_long_int = yes \
16491       && ac_type='unsigned long long' \
16492       || ac_type='unsigned long'
16493
16494 cat >>confdefs.h <<_ACEOF
16495 #define uintmax_t $ac_type
16496 _ACEOF
16497
16498   else
16499
16500 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
16501
16502   fi
16503
16504
16505   for ac_header in inttypes.h
16506 do :
16507   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
16508 if test "x$ac_cv_header_inttypes_h" = xyes; then :
16509   cat >>confdefs.h <<_ACEOF
16510 #define HAVE_INTTYPES_H 1
16511 _ACEOF
16512
16513 fi
16514
16515 done
16516
16517   if test $ac_cv_header_inttypes_h = yes; then
16518     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
16519 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
16520 if ${gt_cv_inttypes_pri_broken+:} false; then :
16521   $as_echo_n "(cached) " >&6
16522 else
16523
16524         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16525 /* end confdefs.h.  */
16526
16527 #include <inttypes.h>
16528 #ifdef PRId32
16529 char *p = PRId32;
16530 #endif
16531
16532 int
16533 main ()
16534 {
16535
16536   ;
16537   return 0;
16538 }
16539 _ACEOF
16540 if ac_fn_c_try_compile "$LINENO"; then :
16541   gt_cv_inttypes_pri_broken=no
16542 else
16543   gt_cv_inttypes_pri_broken=yes
16544 fi
16545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16546
16547 fi
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
16549 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
16550   fi
16551   if test "$gt_cv_inttypes_pri_broken" = yes; then
16552
16553 cat >>confdefs.h <<_ACEOF
16554 #define PRI_MACROS_BROKEN 1
16555 _ACEOF
16556
16557     PRI_MACROS_BROKEN=1
16558   else
16559     PRI_MACROS_BROKEN=0
16560   fi
16561
16562
16563
16564       if test "X$prefix" = "XNONE"; then
16565     acl_final_prefix="$ac_default_prefix"
16566   else
16567     acl_final_prefix="$prefix"
16568   fi
16569   if test "X$exec_prefix" = "XNONE"; then
16570     acl_final_exec_prefix='${prefix}'
16571   else
16572     acl_final_exec_prefix="$exec_prefix"
16573   fi
16574   acl_save_prefix="$prefix"
16575   prefix="$acl_final_prefix"
16576   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16577   prefix="$acl_save_prefix"
16578
16579
16580
16581 # Check whether --with-gnu-ld was given.
16582 if test "${with_gnu_ld+set}" = set; then :
16583   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16584 else
16585   with_gnu_ld=no
16586 fi
16587
16588 # Prepare PATH_SEPARATOR.
16589 # The user is always right.
16590 if test "${PATH_SEPARATOR+set}" != set; then
16591   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16592   # contains only /bin. Note that ksh looks also at the FPATH variable,
16593   # so we have to set that as well for the test.
16594   PATH_SEPARATOR=:
16595   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16596     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16597            || PATH_SEPARATOR=';'
16598        }
16599 fi
16600
16601 ac_prog=ld
16602 if test "$GCC" = yes; then
16603   # Check if gcc -print-prog-name=ld gives a path.
16604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16605 $as_echo_n "checking for ld used by $CC... " >&6; }
16606   case $host in
16607   *-*-mingw*)
16608     # gcc leaves a trailing carriage return which upsets mingw
16609     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16610   *)
16611     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16612   esac
16613   case $ac_prog in
16614     # Accept absolute paths.
16615     [\\/]* | ?:[\\/]*)
16616       re_direlt='/[^/][^/]*/\.\./'
16617       # Canonicalize the pathname of ld
16618       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
16619       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
16620         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16621       done
16622       test -z "$LD" && LD="$ac_prog"
16623       ;;
16624   "")
16625     # If it fails, then pretend we aren't using GCC.
16626     ac_prog=ld
16627     ;;
16628   *)
16629     # If it is relative, then search for the first ld in PATH.
16630     with_gnu_ld=unknown
16631     ;;
16632   esac
16633 elif test "$with_gnu_ld" = yes; then
16634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16635 $as_echo_n "checking for GNU ld... " >&6; }
16636 else
16637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16638 $as_echo_n "checking for non-GNU ld... " >&6; }
16639 fi
16640 if ${acl_cv_path_LD+:} false; then :
16641   $as_echo_n "(cached) " >&6
16642 else
16643   if test -z "$LD"; then
16644   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16645   for ac_dir in $PATH; do
16646     IFS="$acl_save_ifs"
16647     test -z "$ac_dir" && ac_dir=.
16648     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16649       acl_cv_path_LD="$ac_dir/$ac_prog"
16650       # Check to see if the program is GNU ld.  I'd rather use --version,
16651       # but apparently some variants of GNU ld only accept -v.
16652       # Break only if it was the GNU/non-GNU ld that we prefer.
16653       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
16654       *GNU* | *'with BFD'*)
16655         test "$with_gnu_ld" != no && break
16656         ;;
16657       *)
16658         test "$with_gnu_ld" != yes && break
16659         ;;
16660       esac
16661     fi
16662   done
16663   IFS="$acl_save_ifs"
16664 else
16665   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16666 fi
16667 fi
16668
16669 LD="$acl_cv_path_LD"
16670 if test -n "$LD"; then
16671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16672 $as_echo "$LD" >&6; }
16673 else
16674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16675 $as_echo "no" >&6; }
16676 fi
16677 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16679 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16680 if ${acl_cv_prog_gnu_ld+:} false; then :
16681   $as_echo_n "(cached) " >&6
16682 else
16683   # I'd rather use --version here, but apparently some GNU lds only accept -v.
16684 case `$LD -v 2>&1 </dev/null` in
16685 *GNU* | *'with BFD'*)
16686   acl_cv_prog_gnu_ld=yes
16687   ;;
16688 *)
16689   acl_cv_prog_gnu_ld=no
16690   ;;
16691 esac
16692 fi
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16694 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16695 with_gnu_ld=$acl_cv_prog_gnu_ld
16696
16697
16698
16699
16700                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16701 $as_echo_n "checking for shared library run path origin... " >&6; }
16702 if ${acl_cv_rpath+:} false; then :
16703   $as_echo_n "(cached) " >&6
16704 else
16705
16706     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16707     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16708     . ./conftest.sh
16709     rm -f ./conftest.sh
16710     acl_cv_rpath=done
16711
16712 fi
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16714 $as_echo "$acl_cv_rpath" >&6; }
16715   wl="$acl_cv_wl"
16716   acl_libext="$acl_cv_libext"
16717   acl_shlibext="$acl_cv_shlibext"
16718   acl_libname_spec="$acl_cv_libname_spec"
16719   acl_library_names_spec="$acl_cv_library_names_spec"
16720   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16721   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16722   acl_hardcode_direct="$acl_cv_hardcode_direct"
16723   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16724     # Check whether --enable-rpath was given.
16725 if test "${enable_rpath+set}" = set; then :
16726   enableval=$enable_rpath; :
16727 else
16728   enable_rpath=yes
16729 fi
16730
16731
16732
16733
16734   acl_libdirstem=lib
16735   acl_libdirstem2=
16736   case "$host_os" in
16737     solaris*)
16738                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
16739 $as_echo_n "checking for 64-bit host... " >&6; }
16740 if ${gl_cv_solaris_64bit+:} false; then :
16741   $as_echo_n "(cached) " >&6
16742 else
16743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16744 /* end confdefs.h.  */
16745
16746 #ifdef _LP64
16747 sixtyfour bits
16748 #endif
16749
16750 _ACEOF
16751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16752   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
16753   gl_cv_solaris_64bit=yes
16754 else
16755   gl_cv_solaris_64bit=no
16756 fi
16757 rm -f conftest*
16758
16759
16760 fi
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
16762 $as_echo "$gl_cv_solaris_64bit" >&6; }
16763       if test $gl_cv_solaris_64bit = yes; then
16764         acl_libdirstem=lib/64
16765         case "$host_cpu" in
16766           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
16767           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
16768         esac
16769       fi
16770       ;;
16771     *)
16772       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16773       if test -n "$searchpath"; then
16774         acl_save_IFS="${IFS=    }"; IFS=":"
16775         for searchdir in $searchpath; do
16776           if test -d "$searchdir"; then
16777             case "$searchdir" in
16778               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16779               */../ | */.. )
16780                 # Better ignore directories of this form. They are misleading.
16781                 ;;
16782               *) searchdir=`cd "$searchdir" && pwd`
16783                  case "$searchdir" in
16784                    */lib64 ) acl_libdirstem=lib64 ;;
16785                  esac ;;
16786             esac
16787           fi
16788         done
16789         IFS="$acl_save_IFS"
16790       fi
16791       ;;
16792   esac
16793   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
16794
16795
16796
16797   gl_threads_api=none
16798   LIBTHREAD=
16799   LTLIBTHREAD=
16800   LIBMULTITHREAD=
16801   LTLIBMULTITHREAD=
16802   if test "$gl_use_threads" != no; then
16803         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
16804 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
16805 if ${gl_cv_have_weak+:} false; then :
16806   $as_echo_n "(cached) " >&6
16807 else
16808   gl_cv_have_weak=no
16809               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16810 /* end confdefs.h.  */
16811 extern void xyzzy ();
16812 #pragma weak xyzzy
16813 int
16814 main ()
16815 {
16816 xyzzy();
16817   ;
16818   return 0;
16819 }
16820 _ACEOF
16821 if ac_fn_c_try_link "$LINENO"; then :
16822   gl_cv_have_weak=maybe
16823 fi
16824 rm -f core conftest.err conftest.$ac_objext \
16825     conftest$ac_exeext conftest.$ac_ext
16826        if test $gl_cv_have_weak = maybe; then
16827                            if test "$cross_compiling" = yes; then :
16828                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16829 /* end confdefs.h.  */
16830 #ifdef __ELF__
16831                Extensible Linking Format
16832                #endif
16833
16834 _ACEOF
16835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16836   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
16837   gl_cv_have_weak="guessing yes"
16838 else
16839   gl_cv_have_weak="guessing no"
16840 fi
16841 rm -f conftest*
16842
16843
16844 else
16845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16846 /* end confdefs.h.  */
16847
16848 #include <stdio.h>
16849 #pragma weak fputs
16850 int main ()
16851 {
16852   return (fputs == NULL);
16853 }
16854 _ACEOF
16855 if ac_fn_c_try_run "$LINENO"; then :
16856   gl_cv_have_weak=yes
16857 else
16858   gl_cv_have_weak=no
16859 fi
16860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16861   conftest.$ac_objext conftest.beam conftest.$ac_ext
16862 fi
16863
16864        fi
16865
16866 fi
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
16868 $as_echo "$gl_cv_have_weak" >&6; }
16869     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
16870       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
16871       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
16872       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
16873 if test "x$ac_cv_header_pthread_h" = xyes; then :
16874   gl_have_pthread_h=yes
16875 else
16876   gl_have_pthread_h=no
16877 fi
16878
16879
16880       if test "$gl_have_pthread_h" = yes; then
16881         # Other possible tests:
16882         #   -lpthreads (FSU threads, PCthreads)
16883         #   -lgthreads
16884         gl_have_pthread=
16885         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
16886         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
16887         # the second one only in libpthread, and lock.c needs it.
16888         #
16889         # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
16890         # needs -pthread for some reason.  See:
16891         # http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html
16892         save_LIBS=$LIBS
16893         for gl_pthread in '' '-pthread'; do
16894           LIBS="$LIBS $gl_pthread"
16895           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16896 /* end confdefs.h.  */
16897 #include <pthread.h>
16898                  pthread_mutex_t m;
16899                  pthread_mutexattr_t ma;
16900
16901 int
16902 main ()
16903 {
16904 pthread_mutex_lock (&m);
16905                  pthread_mutexattr_init (&ma);
16906   ;
16907   return 0;
16908 }
16909 _ACEOF
16910 if ac_fn_c_try_link "$LINENO"; then :
16911   gl_have_pthread=yes
16912              LIBTHREAD=$gl_pthread LTLIBTHREAD=$gl_pthread
16913              LIBMULTITHREAD=$gl_pthread LTLIBMULTITHREAD=$gl_pthread
16914 fi
16915 rm -f core conftest.err conftest.$ac_objext \
16916     conftest$ac_exeext conftest.$ac_ext
16917           LIBS=$save_LIBS
16918           test -n "$gl_have_pthread" && break
16919         done
16920
16921         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
16922         # since it is defined as a macro on OSF/1.)
16923         if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then
16924           # The program links fine without libpthread. But it may actually
16925           # need to link with libpthread in order to create multiple threads.
16926           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16927 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16928 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16929   $as_echo_n "(cached) " >&6
16930 else
16931   ac_check_lib_save_LIBS=$LIBS
16932 LIBS="-lpthread  $LIBS"
16933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16934 /* end confdefs.h.  */
16935
16936 /* Override any GCC internal prototype to avoid an error.
16937    Use char because int might match the return type of a GCC
16938    builtin and then its argument prototype would still apply.  */
16939 #ifdef __cplusplus
16940 extern "C"
16941 #endif
16942 char pthread_kill ();
16943 int
16944 main ()
16945 {
16946 return pthread_kill ();
16947   ;
16948   return 0;
16949 }
16950 _ACEOF
16951 if ac_fn_c_try_link "$LINENO"; then :
16952   ac_cv_lib_pthread_pthread_kill=yes
16953 else
16954   ac_cv_lib_pthread_pthread_kill=no
16955 fi
16956 rm -f core conftest.err conftest.$ac_objext \
16957     conftest$ac_exeext conftest.$ac_ext
16958 LIBS=$ac_check_lib_save_LIBS
16959 fi
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16961 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16962 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
16963   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16964              # On Solaris and HP-UX, most pthread functions exist also in libc.
16965              # Therefore pthread_in_use() needs to actually try to create a
16966              # thread: pthread_create from libc will fail, whereas
16967              # pthread_create will actually create a thread.
16968              case "$host_os" in
16969                solaris* | hpux*)
16970
16971 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
16972
16973              esac
16974
16975 fi
16976
16977         elif test -z "$gl_have_pthread"; then
16978           # Some library is needed. Try libpthread and libc_r.
16979           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16980 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16981 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16982   $as_echo_n "(cached) " >&6
16983 else
16984   ac_check_lib_save_LIBS=$LIBS
16985 LIBS="-lpthread  $LIBS"
16986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16987 /* end confdefs.h.  */
16988
16989 /* Override any GCC internal prototype to avoid an error.
16990    Use char because int might match the return type of a GCC
16991    builtin and then its argument prototype would still apply.  */
16992 #ifdef __cplusplus
16993 extern "C"
16994 #endif
16995 char pthread_kill ();
16996 int
16997 main ()
16998 {
16999 return pthread_kill ();
17000   ;
17001   return 0;
17002 }
17003 _ACEOF
17004 if ac_fn_c_try_link "$LINENO"; then :
17005   ac_cv_lib_pthread_pthread_kill=yes
17006 else
17007   ac_cv_lib_pthread_pthread_kill=no
17008 fi
17009 rm -f core conftest.err conftest.$ac_objext \
17010     conftest$ac_exeext conftest.$ac_ext
17011 LIBS=$ac_check_lib_save_LIBS
17012 fi
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
17014 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
17015 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
17016   gl_have_pthread=yes
17017              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
17018              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
17019 fi
17020
17021           if test -z "$gl_have_pthread"; then
17022             # For FreeBSD 4.
17023             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
17024 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
17025 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
17026   $as_echo_n "(cached) " >&6
17027 else
17028   ac_check_lib_save_LIBS=$LIBS
17029 LIBS="-lc_r  $LIBS"
17030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17031 /* end confdefs.h.  */
17032
17033 /* Override any GCC internal prototype to avoid an error.
17034    Use char because int might match the return type of a GCC
17035    builtin and then its argument prototype would still apply.  */
17036 #ifdef __cplusplus
17037 extern "C"
17038 #endif
17039 char pthread_kill ();
17040 int
17041 main ()
17042 {
17043 return pthread_kill ();
17044   ;
17045   return 0;
17046 }
17047 _ACEOF
17048 if ac_fn_c_try_link "$LINENO"; then :
17049   ac_cv_lib_c_r_pthread_kill=yes
17050 else
17051   ac_cv_lib_c_r_pthread_kill=no
17052 fi
17053 rm -f core conftest.err conftest.$ac_objext \
17054     conftest$ac_exeext conftest.$ac_ext
17055 LIBS=$ac_check_lib_save_LIBS
17056 fi
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
17058 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
17059 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
17060   gl_have_pthread=yes
17061                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
17062                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
17063 fi
17064
17065           fi
17066         fi
17067         if test -n "$gl_have_pthread"; then
17068           gl_threads_api=posix
17069
17070 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
17071
17072           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
17073             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17074
17075 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
17076
17077               LIBTHREAD=
17078               LTLIBTHREAD=
17079             fi
17080           fi
17081         fi
17082       fi
17083     fi
17084     if test -z "$gl_have_pthread"; then
17085       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
17086         gl_have_solaristhread=
17087         gl_save_LIBS="$LIBS"
17088         LIBS="$LIBS -lthread"
17089         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17090 /* end confdefs.h.  */
17091
17092 #include <thread.h>
17093 #include <synch.h>
17094
17095 int
17096 main ()
17097 {
17098 thr_self();
17099   ;
17100   return 0;
17101 }
17102 _ACEOF
17103 if ac_fn_c_try_link "$LINENO"; then :
17104   gl_have_solaristhread=yes
17105 fi
17106 rm -f core conftest.err conftest.$ac_objext \
17107     conftest$ac_exeext conftest.$ac_ext
17108         LIBS="$gl_save_LIBS"
17109         if test -n "$gl_have_solaristhread"; then
17110           gl_threads_api=solaris
17111           LIBTHREAD=-lthread
17112           LTLIBTHREAD=-lthread
17113           LIBMULTITHREAD="$LIBTHREAD"
17114           LTLIBMULTITHREAD="$LTLIBTHREAD"
17115
17116 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
17117
17118           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17119
17120 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
17121
17122             LIBTHREAD=
17123             LTLIBTHREAD=
17124           fi
17125         fi
17126       fi
17127     fi
17128     if test "$gl_use_threads" = pth; then
17129       gl_save_CPPFLAGS="$CPPFLAGS"
17130
17131
17132
17133
17134
17135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
17136 $as_echo_n "checking how to link with libpth... " >&6; }
17137 if ${ac_cv_libpth_libs+:} false; then :
17138   $as_echo_n "(cached) " >&6
17139 else
17140
17141
17142
17143
17144
17145
17146
17147
17148     use_additional=yes
17149
17150   acl_save_prefix="$prefix"
17151   prefix="$acl_final_prefix"
17152   acl_save_exec_prefix="$exec_prefix"
17153   exec_prefix="$acl_final_exec_prefix"
17154
17155     eval additional_includedir=\"$includedir\"
17156     eval additional_libdir=\"$libdir\"
17157
17158   exec_prefix="$acl_save_exec_prefix"
17159   prefix="$acl_save_prefix"
17160
17161
17162 # Check whether --with-libpth-prefix was given.
17163 if test "${with_libpth_prefix+set}" = set; then :
17164   withval=$with_libpth_prefix;
17165     if test "X$withval" = "Xno"; then
17166       use_additional=no
17167     else
17168       if test "X$withval" = "X"; then
17169
17170   acl_save_prefix="$prefix"
17171   prefix="$acl_final_prefix"
17172   acl_save_exec_prefix="$exec_prefix"
17173   exec_prefix="$acl_final_exec_prefix"
17174
17175           eval additional_includedir=\"$includedir\"
17176           eval additional_libdir=\"$libdir\"
17177
17178   exec_prefix="$acl_save_exec_prefix"
17179   prefix="$acl_save_prefix"
17180
17181       else
17182         additional_includedir="$withval/include"
17183         additional_libdir="$withval/$acl_libdirstem"
17184         if test "$acl_libdirstem2" != "$acl_libdirstem" \
17185            && ! test -d "$withval/$acl_libdirstem"; then
17186           additional_libdir="$withval/$acl_libdirstem2"
17187         fi
17188       fi
17189     fi
17190
17191 fi
17192
17193       LIBPTH=
17194   LTLIBPTH=
17195   INCPTH=
17196   LIBPTH_PREFIX=
17197       HAVE_LIBPTH=
17198   rpathdirs=
17199   ltrpathdirs=
17200   names_already_handled=
17201   names_next_round='pth '
17202   while test -n "$names_next_round"; do
17203     names_this_round="$names_next_round"
17204     names_next_round=
17205     for name in $names_this_round; do
17206       already_handled=
17207       for n in $names_already_handled; do
17208         if test "$n" = "$name"; then
17209           already_handled=yes
17210           break
17211         fi
17212       done
17213       if test -z "$already_handled"; then
17214         names_already_handled="$names_already_handled $name"
17215                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
17216         eval value=\"\$HAVE_LIB$uppername\"
17217         if test -n "$value"; then
17218           if test "$value" = yes; then
17219             eval value=\"\$LIB$uppername\"
17220             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
17221             eval value=\"\$LTLIB$uppername\"
17222             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
17223           else
17224                                     :
17225           fi
17226         else
17227                               found_dir=
17228           found_la=
17229           found_so=
17230           found_a=
17231           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
17232           if test -n "$acl_shlibext"; then
17233             shrext=".$acl_shlibext"             # typically: shrext=.so
17234           else
17235             shrext=
17236           fi
17237           if test $use_additional = yes; then
17238             dir="$additional_libdir"
17239                                     if test -n "$acl_shlibext"; then
17240               if test -f "$dir/$libname$shrext"; then
17241                 found_dir="$dir"
17242                 found_so="$dir/$libname$shrext"
17243               else
17244                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17245                   ver=`(cd "$dir" && \
17246                         for f in "$libname$shrext".*; do echo "$f"; done \
17247                         | sed -e "s,^$libname$shrext\\\\.,," \
17248                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17249                         | sed 1q ) 2>/dev/null`
17250                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17251                     found_dir="$dir"
17252                     found_so="$dir/$libname$shrext.$ver"
17253                   fi
17254                 else
17255                   eval library_names=\"$acl_library_names_spec\"
17256                   for f in $library_names; do
17257                     if test -f "$dir/$f"; then
17258                       found_dir="$dir"
17259                       found_so="$dir/$f"
17260                       break
17261                     fi
17262                   done
17263                 fi
17264               fi
17265             fi
17266                         if test "X$found_dir" = "X"; then
17267               if test -f "$dir/$libname.$acl_libext"; then
17268                 found_dir="$dir"
17269                 found_a="$dir/$libname.$acl_libext"
17270               fi
17271             fi
17272             if test "X$found_dir" != "X"; then
17273               if test -f "$dir/$libname.la"; then
17274                 found_la="$dir/$libname.la"
17275               fi
17276             fi
17277           fi
17278           if test "X$found_dir" = "X"; then
17279             for x in $LDFLAGS $LTLIBPTH; do
17280
17281   acl_save_prefix="$prefix"
17282   prefix="$acl_final_prefix"
17283   acl_save_exec_prefix="$exec_prefix"
17284   exec_prefix="$acl_final_exec_prefix"
17285   eval x=\"$x\"
17286   exec_prefix="$acl_save_exec_prefix"
17287   prefix="$acl_save_prefix"
17288
17289               case "$x" in
17290                 -L*)
17291                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17292                                     if test -n "$acl_shlibext"; then
17293                     if test -f "$dir/$libname$shrext"; then
17294                       found_dir="$dir"
17295                       found_so="$dir/$libname$shrext"
17296                     else
17297                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17298                         ver=`(cd "$dir" && \
17299                               for f in "$libname$shrext".*; do echo "$f"; done \
17300                               | sed -e "s,^$libname$shrext\\\\.,," \
17301                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17302                               | sed 1q ) 2>/dev/null`
17303                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17304                           found_dir="$dir"
17305                           found_so="$dir/$libname$shrext.$ver"
17306                         fi
17307                       else
17308                         eval library_names=\"$acl_library_names_spec\"
17309                         for f in $library_names; do
17310                           if test -f "$dir/$f"; then
17311                             found_dir="$dir"
17312                             found_so="$dir/$f"
17313                             break
17314                           fi
17315                         done
17316                       fi
17317                     fi
17318                   fi
17319                                     if test "X$found_dir" = "X"; then
17320                     if test -f "$dir/$libname.$acl_libext"; then
17321                       found_dir="$dir"
17322                       found_a="$dir/$libname.$acl_libext"
17323                     fi
17324                   fi
17325                   if test "X$found_dir" != "X"; then
17326                     if test -f "$dir/$libname.la"; then
17327                       found_la="$dir/$libname.la"
17328                     fi
17329                   fi
17330                   ;;
17331               esac
17332               if test "X$found_dir" != "X"; then
17333                 break
17334               fi
17335             done
17336           fi
17337           if test "X$found_dir" != "X"; then
17338                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
17339             if test "X$found_so" != "X"; then
17340                                                         if test "$enable_rpath" = no \
17341                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17342                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17343                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17344               else
17345                                                                                 haveit=
17346                 for x in $ltrpathdirs; do
17347                   if test "X$x" = "X$found_dir"; then
17348                     haveit=yes
17349                     break
17350                   fi
17351                 done
17352                 if test -z "$haveit"; then
17353                   ltrpathdirs="$ltrpathdirs $found_dir"
17354                 fi
17355                                 if test "$acl_hardcode_direct" = yes; then
17356                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17357                 else
17358                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17359                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17360                                                             haveit=
17361                     for x in $rpathdirs; do
17362                       if test "X$x" = "X$found_dir"; then
17363                         haveit=yes
17364                         break
17365                       fi
17366                     done
17367                     if test -z "$haveit"; then
17368                       rpathdirs="$rpathdirs $found_dir"
17369                     fi
17370                   else
17371                                                                                 haveit=
17372                     for x in $LDFLAGS $LIBPTH; do
17373
17374   acl_save_prefix="$prefix"
17375   prefix="$acl_final_prefix"
17376   acl_save_exec_prefix="$exec_prefix"
17377   exec_prefix="$acl_final_exec_prefix"
17378   eval x=\"$x\"
17379   exec_prefix="$acl_save_exec_prefix"
17380   prefix="$acl_save_prefix"
17381
17382                       if test "X$x" = "X-L$found_dir"; then
17383                         haveit=yes
17384                         break
17385                       fi
17386                     done
17387                     if test -z "$haveit"; then
17388                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
17389                     fi
17390                     if test "$acl_hardcode_minus_L" != no; then
17391                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
17392                     else
17393                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17394                     fi
17395                   fi
17396                 fi
17397               fi
17398             else
17399               if test "X$found_a" != "X"; then
17400                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
17401               else
17402                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
17403               fi
17404             fi
17405                         additional_includedir=
17406             case "$found_dir" in
17407               */$acl_libdirstem | */$acl_libdirstem/)
17408                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17409                 if test "$name" = 'pth'; then
17410                   LIBPTH_PREFIX="$basedir"
17411                 fi
17412                 additional_includedir="$basedir/include"
17413                 ;;
17414               */$acl_libdirstem2 | */$acl_libdirstem2/)
17415                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17416                 if test "$name" = 'pth'; then
17417                   LIBPTH_PREFIX="$basedir"
17418                 fi
17419                 additional_includedir="$basedir/include"
17420                 ;;
17421             esac
17422             if test "X$additional_includedir" != "X"; then
17423                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17424                 haveit=
17425                 if test "X$additional_includedir" = "X/usr/local/include"; then
17426                   if test -n "$GCC"; then
17427                     case $host_os in
17428                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17429                     esac
17430                   fi
17431                 fi
17432                 if test -z "$haveit"; then
17433                   for x in $CPPFLAGS $INCPTH; do
17434
17435   acl_save_prefix="$prefix"
17436   prefix="$acl_final_prefix"
17437   acl_save_exec_prefix="$exec_prefix"
17438   exec_prefix="$acl_final_exec_prefix"
17439   eval x=\"$x\"
17440   exec_prefix="$acl_save_exec_prefix"
17441   prefix="$acl_save_prefix"
17442
17443                     if test "X$x" = "X-I$additional_includedir"; then
17444                       haveit=yes
17445                       break
17446                     fi
17447                   done
17448                   if test -z "$haveit"; then
17449                     if test -d "$additional_includedir"; then
17450                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
17451                     fi
17452                   fi
17453                 fi
17454               fi
17455             fi
17456                         if test -n "$found_la"; then
17457                                                         save_libdir="$libdir"
17458               case "$found_la" in
17459                 */* | *\\*) . "$found_la" ;;
17460                 *) . "./$found_la" ;;
17461               esac
17462               libdir="$save_libdir"
17463                             for dep in $dependency_libs; do
17464                 case "$dep" in
17465                   -L*)
17466                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17467                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17468                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17469                       haveit=
17470                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17471                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17472                         if test -n "$GCC"; then
17473                           case $host_os in
17474                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17475                           esac
17476                         fi
17477                       fi
17478                       if test -z "$haveit"; then
17479                         haveit=
17480                         for x in $LDFLAGS $LIBPTH; do
17481
17482   acl_save_prefix="$prefix"
17483   prefix="$acl_final_prefix"
17484   acl_save_exec_prefix="$exec_prefix"
17485   exec_prefix="$acl_final_exec_prefix"
17486   eval x=\"$x\"
17487   exec_prefix="$acl_save_exec_prefix"
17488   prefix="$acl_save_prefix"
17489
17490                           if test "X$x" = "X-L$additional_libdir"; then
17491                             haveit=yes
17492                             break
17493                           fi
17494                         done
17495                         if test -z "$haveit"; then
17496                           if test -d "$additional_libdir"; then
17497                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
17498                           fi
17499                         fi
17500                         haveit=
17501                         for x in $LDFLAGS $LTLIBPTH; do
17502
17503   acl_save_prefix="$prefix"
17504   prefix="$acl_final_prefix"
17505   acl_save_exec_prefix="$exec_prefix"
17506   exec_prefix="$acl_final_exec_prefix"
17507   eval x=\"$x\"
17508   exec_prefix="$acl_save_exec_prefix"
17509   prefix="$acl_save_prefix"
17510
17511                           if test "X$x" = "X-L$additional_libdir"; then
17512                             haveit=yes
17513                             break
17514                           fi
17515                         done
17516                         if test -z "$haveit"; then
17517                           if test -d "$additional_libdir"; then
17518                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
17519                           fi
17520                         fi
17521                       fi
17522                     fi
17523                     ;;
17524                   -R*)
17525                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17526                     if test "$enable_rpath" != no; then
17527                                                                   haveit=
17528                       for x in $rpathdirs; do
17529                         if test "X$x" = "X$dir"; then
17530                           haveit=yes
17531                           break
17532                         fi
17533                       done
17534                       if test -z "$haveit"; then
17535                         rpathdirs="$rpathdirs $dir"
17536                       fi
17537                                                                   haveit=
17538                       for x in $ltrpathdirs; do
17539                         if test "X$x" = "X$dir"; then
17540                           haveit=yes
17541                           break
17542                         fi
17543                       done
17544                       if test -z "$haveit"; then
17545                         ltrpathdirs="$ltrpathdirs $dir"
17546                       fi
17547                     fi
17548                     ;;
17549                   -l*)
17550                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17551                     ;;
17552                   *.la)
17553                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17554                     ;;
17555                   *)
17556                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
17557                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
17558                     ;;
17559                 esac
17560               done
17561             fi
17562           else
17563                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
17564             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
17565           fi
17566         fi
17567       fi
17568     done
17569   done
17570   if test "X$rpathdirs" != "X"; then
17571     if test -n "$acl_hardcode_libdir_separator"; then
17572                         alldirs=
17573       for found_dir in $rpathdirs; do
17574         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17575       done
17576             acl_save_libdir="$libdir"
17577       libdir="$alldirs"
17578       eval flag=\"$acl_hardcode_libdir_flag_spec\"
17579       libdir="$acl_save_libdir"
17580       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17581     else
17582             for found_dir in $rpathdirs; do
17583         acl_save_libdir="$libdir"
17584         libdir="$found_dir"
17585         eval flag=\"$acl_hardcode_libdir_flag_spec\"
17586         libdir="$acl_save_libdir"
17587         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
17588       done
17589     fi
17590   fi
17591   if test "X$ltrpathdirs" != "X"; then
17592             for found_dir in $ltrpathdirs; do
17593       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
17594     done
17595   fi
17596
17597
17598
17599
17600
17601
17602     ac_cv_libpth_libs="$LIBPTH"
17603     ac_cv_libpth_ltlibs="$LTLIBPTH"
17604     ac_cv_libpth_cppflags="$INCPTH"
17605     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
17606
17607 fi
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
17609 $as_echo "$ac_cv_libpth_libs" >&6; }
17610   LIBPTH="$ac_cv_libpth_libs"
17611   LTLIBPTH="$ac_cv_libpth_ltlibs"
17612   INCPTH="$ac_cv_libpth_cppflags"
17613   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
17614
17615   for element in $INCPTH; do
17616     haveit=
17617     for x in $CPPFLAGS; do
17618
17619   acl_save_prefix="$prefix"
17620   prefix="$acl_final_prefix"
17621   acl_save_exec_prefix="$exec_prefix"
17622   exec_prefix="$acl_final_exec_prefix"
17623   eval x=\"$x\"
17624   exec_prefix="$acl_save_exec_prefix"
17625   prefix="$acl_save_prefix"
17626
17627       if test "X$x" = "X$element"; then
17628         haveit=yes
17629         break
17630       fi
17631     done
17632     if test -z "$haveit"; then
17633       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17634     fi
17635   done
17636
17637
17638
17639
17640       HAVE_LIBPTH=yes
17641
17642
17643
17644       gl_have_pth=
17645       gl_save_LIBS="$LIBS"
17646       LIBS="$LIBS $LIBPTH"
17647       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17648 /* end confdefs.h.  */
17649 #include <pth.h>
17650 int
17651 main ()
17652 {
17653 pth_self();
17654   ;
17655   return 0;
17656 }
17657 _ACEOF
17658 if ac_fn_c_try_link "$LINENO"; then :
17659   gl_have_pth=yes
17660 fi
17661 rm -f core conftest.err conftest.$ac_objext \
17662     conftest$ac_exeext conftest.$ac_ext
17663       LIBS="$gl_save_LIBS"
17664       if test -n "$gl_have_pth"; then
17665         gl_threads_api=pth
17666         LIBTHREAD="$LIBPTH"
17667         LTLIBTHREAD="$LTLIBPTH"
17668         LIBMULTITHREAD="$LIBTHREAD"
17669         LTLIBMULTITHREAD="$LTLIBTHREAD"
17670
17671 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
17672
17673         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
17674           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
17675
17676 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
17677
17678             LIBTHREAD=
17679             LTLIBTHREAD=
17680           fi
17681         fi
17682       else
17683         CPPFLAGS="$gl_save_CPPFLAGS"
17684       fi
17685     fi
17686     if test -z "$gl_have_pthread"; then
17687       case "$gl_use_threads" in
17688         yes | windows | win32) # The 'win32' is for backward compatibility.
17689           if { case "$host_os" in
17690                  mingw*) true;;
17691                  *) false;;
17692                esac
17693              }; then
17694             gl_threads_api=windows
17695
17696 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
17697
17698           fi
17699           ;;
17700       esac
17701     fi
17702   fi
17703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
17704 $as_echo_n "checking for multithread API to use... " >&6; }
17705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
17706 $as_echo "$gl_threads_api" >&6; }
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718   if test "$gl_threads_api" = posix; then
17719     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
17720     # pthread_rwlock_* functions.
17721     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
17722 "
17723 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
17724
17725 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
17726
17727 fi
17728
17729     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
17730     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17731 /* end confdefs.h.  */
17732
17733       #include <pthread.h>
17734 int
17735 main ()
17736 {
17737
17738 #if __FreeBSD__ == 4
17739 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
17740 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
17741        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
17742 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
17743 #else
17744 int x = (int)PTHREAD_MUTEX_RECURSIVE;
17745 return !x;
17746 #endif
17747
17748   ;
17749   return 0;
17750 }
17751 _ACEOF
17752 if ac_fn_c_try_compile "$LINENO"; then :
17753
17754 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
17755
17756 fi
17757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17758   fi
17759   :
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772     use_additional=yes
17773
17774   acl_save_prefix="$prefix"
17775   prefix="$acl_final_prefix"
17776   acl_save_exec_prefix="$exec_prefix"
17777   exec_prefix="$acl_final_exec_prefix"
17778
17779     eval additional_includedir=\"$includedir\"
17780     eval additional_libdir=\"$libdir\"
17781
17782   exec_prefix="$acl_save_exec_prefix"
17783   prefix="$acl_save_prefix"
17784
17785
17786 # Check whether --with-libiconv-prefix was given.
17787 if test "${with_libiconv_prefix+set}" = set; then :
17788   withval=$with_libiconv_prefix;
17789     if test "X$withval" = "Xno"; then
17790       use_additional=no
17791     else
17792       if test "X$withval" = "X"; then
17793
17794   acl_save_prefix="$prefix"
17795   prefix="$acl_final_prefix"
17796   acl_save_exec_prefix="$exec_prefix"
17797   exec_prefix="$acl_final_exec_prefix"
17798
17799           eval additional_includedir=\"$includedir\"
17800           eval additional_libdir=\"$libdir\"
17801
17802   exec_prefix="$acl_save_exec_prefix"
17803   prefix="$acl_save_prefix"
17804
17805       else
17806         additional_includedir="$withval/include"
17807         additional_libdir="$withval/$acl_libdirstem"
17808         if test "$acl_libdirstem2" != "$acl_libdirstem" \
17809            && ! test -d "$withval/$acl_libdirstem"; then
17810           additional_libdir="$withval/$acl_libdirstem2"
17811         fi
17812       fi
17813     fi
17814
17815 fi
17816
17817       LIBICONV=
17818   LTLIBICONV=
17819   INCICONV=
17820   LIBICONV_PREFIX=
17821       HAVE_LIBICONV=
17822   rpathdirs=
17823   ltrpathdirs=
17824   names_already_handled=
17825   names_next_round='iconv '
17826   while test -n "$names_next_round"; do
17827     names_this_round="$names_next_round"
17828     names_next_round=
17829     for name in $names_this_round; do
17830       already_handled=
17831       for n in $names_already_handled; do
17832         if test "$n" = "$name"; then
17833           already_handled=yes
17834           break
17835         fi
17836       done
17837       if test -z "$already_handled"; then
17838         names_already_handled="$names_already_handled $name"
17839                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
17840         eval value=\"\$HAVE_LIB$uppername\"
17841         if test -n "$value"; then
17842           if test "$value" = yes; then
17843             eval value=\"\$LIB$uppername\"
17844             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17845             eval value=\"\$LTLIB$uppername\"
17846             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17847           else
17848                                     :
17849           fi
17850         else
17851                               found_dir=
17852           found_la=
17853           found_so=
17854           found_a=
17855           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
17856           if test -n "$acl_shlibext"; then
17857             shrext=".$acl_shlibext"             # typically: shrext=.so
17858           else
17859             shrext=
17860           fi
17861           if test $use_additional = yes; then
17862             dir="$additional_libdir"
17863                                     if test -n "$acl_shlibext"; then
17864               if test -f "$dir/$libname$shrext"; then
17865                 found_dir="$dir"
17866                 found_so="$dir/$libname$shrext"
17867               else
17868                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17869                   ver=`(cd "$dir" && \
17870                         for f in "$libname$shrext".*; do echo "$f"; done \
17871                         | sed -e "s,^$libname$shrext\\\\.,," \
17872                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17873                         | sed 1q ) 2>/dev/null`
17874                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17875                     found_dir="$dir"
17876                     found_so="$dir/$libname$shrext.$ver"
17877                   fi
17878                 else
17879                   eval library_names=\"$acl_library_names_spec\"
17880                   for f in $library_names; do
17881                     if test -f "$dir/$f"; then
17882                       found_dir="$dir"
17883                       found_so="$dir/$f"
17884                       break
17885                     fi
17886                   done
17887                 fi
17888               fi
17889             fi
17890                         if test "X$found_dir" = "X"; then
17891               if test -f "$dir/$libname.$acl_libext"; then
17892                 found_dir="$dir"
17893                 found_a="$dir/$libname.$acl_libext"
17894               fi
17895             fi
17896             if test "X$found_dir" != "X"; then
17897               if test -f "$dir/$libname.la"; then
17898                 found_la="$dir/$libname.la"
17899               fi
17900             fi
17901           fi
17902           if test "X$found_dir" = "X"; then
17903             for x in $LDFLAGS $LTLIBICONV; do
17904
17905   acl_save_prefix="$prefix"
17906   prefix="$acl_final_prefix"
17907   acl_save_exec_prefix="$exec_prefix"
17908   exec_prefix="$acl_final_exec_prefix"
17909   eval x=\"$x\"
17910   exec_prefix="$acl_save_exec_prefix"
17911   prefix="$acl_save_prefix"
17912
17913               case "$x" in
17914                 -L*)
17915                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17916                                     if test -n "$acl_shlibext"; then
17917                     if test -f "$dir/$libname$shrext"; then
17918                       found_dir="$dir"
17919                       found_so="$dir/$libname$shrext"
17920                     else
17921                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17922                         ver=`(cd "$dir" && \
17923                               for f in "$libname$shrext".*; do echo "$f"; done \
17924                               | sed -e "s,^$libname$shrext\\\\.,," \
17925                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17926                               | sed 1q ) 2>/dev/null`
17927                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17928                           found_dir="$dir"
17929                           found_so="$dir/$libname$shrext.$ver"
17930                         fi
17931                       else
17932                         eval library_names=\"$acl_library_names_spec\"
17933                         for f in $library_names; do
17934                           if test -f "$dir/$f"; then
17935                             found_dir="$dir"
17936                             found_so="$dir/$f"
17937                             break
17938                           fi
17939                         done
17940                       fi
17941                     fi
17942                   fi
17943                                     if test "X$found_dir" = "X"; then
17944                     if test -f "$dir/$libname.$acl_libext"; then
17945                       found_dir="$dir"
17946                       found_a="$dir/$libname.$acl_libext"
17947                     fi
17948                   fi
17949                   if test "X$found_dir" != "X"; then
17950                     if test -f "$dir/$libname.la"; then
17951                       found_la="$dir/$libname.la"
17952                     fi
17953                   fi
17954                   ;;
17955               esac
17956               if test "X$found_dir" != "X"; then
17957                 break
17958               fi
17959             done
17960           fi
17961           if test "X$found_dir" != "X"; then
17962                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17963             if test "X$found_so" != "X"; then
17964                                                         if test "$enable_rpath" = no \
17965                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17966                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17967                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17968               else
17969                                                                                 haveit=
17970                 for x in $ltrpathdirs; do
17971                   if test "X$x" = "X$found_dir"; then
17972                     haveit=yes
17973                     break
17974                   fi
17975                 done
17976                 if test -z "$haveit"; then
17977                   ltrpathdirs="$ltrpathdirs $found_dir"
17978                 fi
17979                                 if test "$acl_hardcode_direct" = yes; then
17980                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17981                 else
17982                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17983                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17984                                                             haveit=
17985                     for x in $rpathdirs; do
17986                       if test "X$x" = "X$found_dir"; then
17987                         haveit=yes
17988                         break
17989                       fi
17990                     done
17991                     if test -z "$haveit"; then
17992                       rpathdirs="$rpathdirs $found_dir"
17993                     fi
17994                   else
17995                                                                                 haveit=
17996                     for x in $LDFLAGS $LIBICONV; do
17997
17998   acl_save_prefix="$prefix"
17999   prefix="$acl_final_prefix"
18000   acl_save_exec_prefix="$exec_prefix"
18001   exec_prefix="$acl_final_exec_prefix"
18002   eval x=\"$x\"
18003   exec_prefix="$acl_save_exec_prefix"
18004   prefix="$acl_save_prefix"
18005
18006                       if test "X$x" = "X-L$found_dir"; then
18007                         haveit=yes
18008                         break
18009                       fi
18010                     done
18011                     if test -z "$haveit"; then
18012                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18013                     fi
18014                     if test "$acl_hardcode_minus_L" != no; then
18015                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18016                     else
18017                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18018                     fi
18019                   fi
18020                 fi
18021               fi
18022             else
18023               if test "X$found_a" != "X"; then
18024                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18025               else
18026                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18027               fi
18028             fi
18029                         additional_includedir=
18030             case "$found_dir" in
18031               */$acl_libdirstem | */$acl_libdirstem/)
18032                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18033                 if test "$name" = 'iconv'; then
18034                   LIBICONV_PREFIX="$basedir"
18035                 fi
18036                 additional_includedir="$basedir/include"
18037                 ;;
18038               */$acl_libdirstem2 | */$acl_libdirstem2/)
18039                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18040                 if test "$name" = 'iconv'; then
18041                   LIBICONV_PREFIX="$basedir"
18042                 fi
18043                 additional_includedir="$basedir/include"
18044                 ;;
18045             esac
18046             if test "X$additional_includedir" != "X"; then
18047                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18048                 haveit=
18049                 if test "X$additional_includedir" = "X/usr/local/include"; then
18050                   if test -n "$GCC"; then
18051                     case $host_os in
18052                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18053                     esac
18054                   fi
18055                 fi
18056                 if test -z "$haveit"; then
18057                   for x in $CPPFLAGS $INCICONV; do
18058
18059   acl_save_prefix="$prefix"
18060   prefix="$acl_final_prefix"
18061   acl_save_exec_prefix="$exec_prefix"
18062   exec_prefix="$acl_final_exec_prefix"
18063   eval x=\"$x\"
18064   exec_prefix="$acl_save_exec_prefix"
18065   prefix="$acl_save_prefix"
18066
18067                     if test "X$x" = "X-I$additional_includedir"; then
18068                       haveit=yes
18069                       break
18070                     fi
18071                   done
18072                   if test -z "$haveit"; then
18073                     if test -d "$additional_includedir"; then
18074                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18075                     fi
18076                   fi
18077                 fi
18078               fi
18079             fi
18080                         if test -n "$found_la"; then
18081                                                         save_libdir="$libdir"
18082               case "$found_la" in
18083                 */* | *\\*) . "$found_la" ;;
18084                 *) . "./$found_la" ;;
18085               esac
18086               libdir="$save_libdir"
18087                             for dep in $dependency_libs; do
18088                 case "$dep" in
18089                   -L*)
18090                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18091                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
18092                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
18093                       haveit=
18094                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
18095                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
18096                         if test -n "$GCC"; then
18097                           case $host_os in
18098                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18099                           esac
18100                         fi
18101                       fi
18102                       if test -z "$haveit"; then
18103                         haveit=
18104                         for x in $LDFLAGS $LIBICONV; do
18105
18106   acl_save_prefix="$prefix"
18107   prefix="$acl_final_prefix"
18108   acl_save_exec_prefix="$exec_prefix"
18109   exec_prefix="$acl_final_exec_prefix"
18110   eval x=\"$x\"
18111   exec_prefix="$acl_save_exec_prefix"
18112   prefix="$acl_save_prefix"
18113
18114                           if test "X$x" = "X-L$additional_libdir"; then
18115                             haveit=yes
18116                             break
18117                           fi
18118                         done
18119                         if test -z "$haveit"; then
18120                           if test -d "$additional_libdir"; then
18121                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18122                           fi
18123                         fi
18124                         haveit=
18125                         for x in $LDFLAGS $LTLIBICONV; do
18126
18127   acl_save_prefix="$prefix"
18128   prefix="$acl_final_prefix"
18129   acl_save_exec_prefix="$exec_prefix"
18130   exec_prefix="$acl_final_exec_prefix"
18131   eval x=\"$x\"
18132   exec_prefix="$acl_save_exec_prefix"
18133   prefix="$acl_save_prefix"
18134
18135                           if test "X$x" = "X-L$additional_libdir"; then
18136                             haveit=yes
18137                             break
18138                           fi
18139                         done
18140                         if test -z "$haveit"; then
18141                           if test -d "$additional_libdir"; then
18142                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18143                           fi
18144                         fi
18145                       fi
18146                     fi
18147                     ;;
18148                   -R*)
18149                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18150                     if test "$enable_rpath" != no; then
18151                                                                   haveit=
18152                       for x in $rpathdirs; do
18153                         if test "X$x" = "X$dir"; then
18154                           haveit=yes
18155                           break
18156                         fi
18157                       done
18158                       if test -z "$haveit"; then
18159                         rpathdirs="$rpathdirs $dir"
18160                       fi
18161                                                                   haveit=
18162                       for x in $ltrpathdirs; do
18163                         if test "X$x" = "X$dir"; then
18164                           haveit=yes
18165                           break
18166                         fi
18167                       done
18168                       if test -z "$haveit"; then
18169                         ltrpathdirs="$ltrpathdirs $dir"
18170                       fi
18171                     fi
18172                     ;;
18173                   -l*)
18174                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18175                     ;;
18176                   *.la)
18177                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18178                     ;;
18179                   *)
18180                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18181                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18182                     ;;
18183                 esac
18184               done
18185             fi
18186           else
18187                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18188             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18189           fi
18190         fi
18191       fi
18192     done
18193   done
18194   if test "X$rpathdirs" != "X"; then
18195     if test -n "$acl_hardcode_libdir_separator"; then
18196                         alldirs=
18197       for found_dir in $rpathdirs; do
18198         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18199       done
18200             acl_save_libdir="$libdir"
18201       libdir="$alldirs"
18202       eval flag=\"$acl_hardcode_libdir_flag_spec\"
18203       libdir="$acl_save_libdir"
18204       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18205     else
18206             for found_dir in $rpathdirs; do
18207         acl_save_libdir="$libdir"
18208         libdir="$found_dir"
18209         eval flag=\"$acl_hardcode_libdir_flag_spec\"
18210         libdir="$acl_save_libdir"
18211         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18212       done
18213     fi
18214   fi
18215   if test "X$ltrpathdirs" != "X"; then
18216             for found_dir in $ltrpathdirs; do
18217       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18218     done
18219   fi
18220
18221
18222
18223
18224
18225
18226
18227
18228   GNULIB_ICONV=0;
18229     ICONV_CONST=;
18230   REPLACE_ICONV=0;
18231   REPLACE_ICONV_OPEN=0;
18232   REPLACE_ICONV_UTF=0;
18233   ICONV_H='';
18234    if test -n "$ICONV_H"; then
18235   GL_GENERATE_ICONV_H_TRUE=
18236   GL_GENERATE_ICONV_H_FALSE='#'
18237 else
18238   GL_GENERATE_ICONV_H_TRUE='#'
18239   GL_GENERATE_ICONV_H_FALSE=
18240 fi
18241
18242
18243
18244
18245
18246
18247
18248           am_save_CPPFLAGS="$CPPFLAGS"
18249
18250   for element in $INCICONV; do
18251     haveit=
18252     for x in $CPPFLAGS; do
18253
18254   acl_save_prefix="$prefix"
18255   prefix="$acl_final_prefix"
18256   acl_save_exec_prefix="$exec_prefix"
18257   exec_prefix="$acl_final_exec_prefix"
18258   eval x=\"$x\"
18259   exec_prefix="$acl_save_exec_prefix"
18260   prefix="$acl_save_prefix"
18261
18262       if test "X$x" = "X$element"; then
18263         haveit=yes
18264         break
18265       fi
18266     done
18267     if test -z "$haveit"; then
18268       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18269     fi
18270   done
18271
18272
18273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18274 $as_echo_n "checking for iconv... " >&6; }
18275 if ${am_cv_func_iconv+:} false; then :
18276   $as_echo_n "(cached) " >&6
18277 else
18278
18279     am_cv_func_iconv="no, consider installing GNU libiconv"
18280     am_cv_lib_iconv=no
18281     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18282 /* end confdefs.h.  */
18283
18284 #include <stdlib.h>
18285 #include <iconv.h>
18286
18287 int
18288 main ()
18289 {
18290 iconv_t cd = iconv_open("","");
18291            iconv(cd,NULL,NULL,NULL,NULL);
18292            iconv_close(cd);
18293   ;
18294   return 0;
18295 }
18296 _ACEOF
18297 if ac_fn_c_try_link "$LINENO"; then :
18298   am_cv_func_iconv=yes
18299 fi
18300 rm -f core conftest.err conftest.$ac_objext \
18301     conftest$ac_exeext conftest.$ac_ext
18302     if test "$am_cv_func_iconv" != yes; then
18303       am_save_LIBS="$LIBS"
18304       LIBS="$LIBS $LIBICONV"
18305       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18306 /* end confdefs.h.  */
18307
18308 #include <stdlib.h>
18309 #include <iconv.h>
18310
18311 int
18312 main ()
18313 {
18314 iconv_t cd = iconv_open("","");
18315              iconv(cd,NULL,NULL,NULL,NULL);
18316              iconv_close(cd);
18317   ;
18318   return 0;
18319 }
18320 _ACEOF
18321 if ac_fn_c_try_link "$LINENO"; then :
18322   am_cv_lib_iconv=yes
18323         am_cv_func_iconv=yes
18324 fi
18325 rm -f core conftest.err conftest.$ac_objext \
18326     conftest$ac_exeext conftest.$ac_ext
18327       LIBS="$am_save_LIBS"
18328     fi
18329
18330 fi
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18332 $as_echo "$am_cv_func_iconv" >&6; }
18333   if test "$am_cv_func_iconv" = yes; then
18334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
18335 $as_echo_n "checking for working iconv... " >&6; }
18336 if ${am_cv_func_iconv_works+:} false; then :
18337   $as_echo_n "(cached) " >&6
18338 else
18339
18340                   am_save_LIBS="$LIBS"
18341       if test $am_cv_lib_iconv = yes; then
18342         LIBS="$LIBS $LIBICONV"
18343       fi
18344       am_cv_func_iconv_works=no
18345       for ac_iconv_const in '' 'const'; do
18346         if test "$cross_compiling" = yes; then :
18347   case "$host_os" in
18348              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
18349              *)            am_cv_func_iconv_works="guessing yes" ;;
18350            esac
18351 else
18352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18353 /* end confdefs.h.  */
18354
18355 #include <iconv.h>
18356 #include <string.h>
18357
18358 #ifndef ICONV_CONST
18359 # define ICONV_CONST $ac_iconv_const
18360 #endif
18361
18362 int
18363 main ()
18364 {
18365 int result = 0;
18366   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
18367      returns.  */
18368   {
18369     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
18370     if (cd_utf8_to_88591 != (iconv_t)(-1))
18371       {
18372         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
18373         char buf[10];
18374         ICONV_CONST char *inptr = input;
18375         size_t inbytesleft = strlen (input);
18376         char *outptr = buf;
18377         size_t outbytesleft = sizeof (buf);
18378         size_t res = iconv (cd_utf8_to_88591,
18379                             &inptr, &inbytesleft,
18380                             &outptr, &outbytesleft);
18381         if (res == 0)
18382           result |= 1;
18383         iconv_close (cd_utf8_to_88591);
18384       }
18385   }
18386   /* Test against Solaris 10 bug: Failures are not distinguishable from
18387      successful returns.  */
18388   {
18389     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
18390     if (cd_ascii_to_88591 != (iconv_t)(-1))
18391       {
18392         static ICONV_CONST char input[] = "\263";
18393         char buf[10];
18394         ICONV_CONST char *inptr = input;
18395         size_t inbytesleft = strlen (input);
18396         char *outptr = buf;
18397         size_t outbytesleft = sizeof (buf);
18398         size_t res = iconv (cd_ascii_to_88591,
18399                             &inptr, &inbytesleft,
18400                             &outptr, &outbytesleft);
18401         if (res == 0)
18402           result |= 2;
18403         iconv_close (cd_ascii_to_88591);
18404       }
18405   }
18406   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
18407   {
18408     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
18409     if (cd_88591_to_utf8 != (iconv_t)(-1))
18410       {
18411         static ICONV_CONST char input[] = "\304";
18412         static char buf[2] = { (char)0xDE, (char)0xAD };
18413         ICONV_CONST char *inptr = input;
18414         size_t inbytesleft = 1;
18415         char *outptr = buf;
18416         size_t outbytesleft = 1;
18417         size_t res = iconv (cd_88591_to_utf8,
18418                             &inptr, &inbytesleft,
18419                             &outptr, &outbytesleft);
18420         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
18421           result |= 4;
18422         iconv_close (cd_88591_to_utf8);
18423       }
18424   }
18425 #if 0 /* This bug could be worked around by the caller.  */
18426   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
18427   {
18428     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
18429     if (cd_88591_to_utf8 != (iconv_t)(-1))
18430       {
18431         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
18432         char buf[50];
18433         ICONV_CONST char *inptr = input;
18434         size_t inbytesleft = strlen (input);
18435         char *outptr = buf;
18436         size_t outbytesleft = sizeof (buf);
18437         size_t res = iconv (cd_88591_to_utf8,
18438                             &inptr, &inbytesleft,
18439                             &outptr, &outbytesleft);
18440         if ((int)res > 0)
18441           result |= 8;
18442         iconv_close (cd_88591_to_utf8);
18443       }
18444   }
18445 #endif
18446   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
18447      provided.  */
18448   if (/* Try standardized names.  */
18449       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
18450       /* Try IRIX, OSF/1 names.  */
18451       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
18452       /* Try AIX names.  */
18453       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
18454       /* Try HP-UX names.  */
18455       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
18456     result |= 16;
18457   return result;
18458
18459   ;
18460   return 0;
18461 }
18462 _ACEOF
18463 if ac_fn_c_try_run "$LINENO"; then :
18464   am_cv_func_iconv_works=yes
18465 fi
18466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18467   conftest.$ac_objext conftest.beam conftest.$ac_ext
18468 fi
18469
18470         test "$am_cv_func_iconv_works" = no || break
18471       done
18472       LIBS="$am_save_LIBS"
18473
18474 fi
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
18476 $as_echo "$am_cv_func_iconv_works" >&6; }
18477     case "$am_cv_func_iconv_works" in
18478       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
18479       *)   am_func_iconv=yes ;;
18480     esac
18481   else
18482     am_func_iconv=no am_cv_lib_iconv=no
18483   fi
18484   if test "$am_func_iconv" = yes; then
18485
18486 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18487
18488   fi
18489   if test "$am_cv_lib_iconv" = yes; then
18490     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18491 $as_echo_n "checking how to link with libiconv... " >&6; }
18492     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18493 $as_echo "$LIBICONV" >&6; }
18494   else
18495             CPPFLAGS="$am_save_CPPFLAGS"
18496     LIBICONV=
18497     LTLIBICONV=
18498   fi
18499
18500
18501
18502   if test "$am_cv_func_iconv" = yes; then
18503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
18504 $as_echo_n "checking for iconv declaration... " >&6; }
18505     if ${am_cv_proto_iconv+:} false; then :
18506   $as_echo_n "(cached) " >&6
18507 else
18508
18509       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18510 /* end confdefs.h.  */
18511
18512 #include <stdlib.h>
18513 #include <iconv.h>
18514 extern
18515 #ifdef __cplusplus
18516 "C"
18517 #endif
18518 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
18519 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18520 #else
18521 size_t iconv();
18522 #endif
18523
18524 int
18525 main ()
18526 {
18527
18528   ;
18529   return 0;
18530 }
18531 _ACEOF
18532 if ac_fn_c_try_compile "$LINENO"; then :
18533   am_cv_proto_iconv_arg1=""
18534 else
18535   am_cv_proto_iconv_arg1="const"
18536 fi
18537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18538       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);"
18539 fi
18540
18541     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
18542     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
18543          $am_cv_proto_iconv" >&5
18544 $as_echo "
18545          $am_cv_proto_iconv" >&6; }
18546
18547 cat >>confdefs.h <<_ACEOF
18548 #define ICONV_CONST $am_cv_proto_iconv_arg1
18549 _ACEOF
18550
18551
18552        if test -n "$am_cv_proto_iconv_arg1"; then
18553          ICONV_CONST="const"
18554        fi
18555
18556   fi
18557
18558
18559
18560
18561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562 /* end confdefs.h.  */
18563 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
18564 int
18565 main ()
18566 {
18567
18568   ;
18569   return 0;
18570 }
18571 _ACEOF
18572 if ac_fn_c_try_link "$LINENO"; then :
18573
18574 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
18575
18576 fi
18577 rm -f core conftest.err conftest.$ac_objext \
18578     conftest$ac_exeext conftest.$ac_ext
18579
18580   for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
18581 do :
18582   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18583 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18584 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18585   cat >>confdefs.h <<_ACEOF
18586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18587 _ACEOF
18588
18589 fi
18590
18591 done
18592
18593   for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
18594     stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
18595     argz_stringify argz_next __fsetlocking
18596 do :
18597   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18598 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18599 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18600   cat >>confdefs.h <<_ACEOF
18601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18602 _ACEOF
18603
18604 fi
18605 done
18606
18607
18608       if test $ac_cv_func_uselocale = yes; then
18609     for ac_func in getlocalename_l
18610 do :
18611   ac_fn_c_check_func "$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l"
18612 if test "x$ac_cv_func_getlocalename_l" = xyes; then :
18613   cat >>confdefs.h <<_ACEOF
18614 #define HAVE_GETLOCALENAME_L 1
18615 _ACEOF
18616
18617 fi
18618 done
18619
18620   fi
18621
18622           ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
18623 "
18624 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
18625   ac_have_decl=1
18626 else
18627   ac_have_decl=0
18628 fi
18629
18630 cat >>confdefs.h <<_ACEOF
18631 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
18632 _ACEOF
18633 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
18634 "
18635 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
18636   ac_have_decl=1
18637 else
18638   ac_have_decl=0
18639 fi
18640
18641 cat >>confdefs.h <<_ACEOF
18642 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
18643 _ACEOF
18644
18645
18646
18647
18648                     for ac_prog in bison
18649 do
18650   # Extract the first word of "$ac_prog", so it can be a program name with args.
18651 set dummy $ac_prog; ac_word=$2
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18653 $as_echo_n "checking for $ac_word... " >&6; }
18654 if ${ac_cv_prog_INTLBISON+:} false; then :
18655   $as_echo_n "(cached) " >&6
18656 else
18657   if test -n "$INTLBISON"; then
18658   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
18659 else
18660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18661 for as_dir in $PATH
18662 do
18663   IFS=$as_save_IFS
18664   test -z "$as_dir" && as_dir=.
18665     for ac_exec_ext in '' $ac_executable_extensions; do
18666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18667     ac_cv_prog_INTLBISON="$ac_prog"
18668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18669     break 2
18670   fi
18671 done
18672   done
18673 IFS=$as_save_IFS
18674
18675 fi
18676 fi
18677 INTLBISON=$ac_cv_prog_INTLBISON
18678 if test -n "$INTLBISON"; then
18679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
18680 $as_echo "$INTLBISON" >&6; }
18681 else
18682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18683 $as_echo "no" >&6; }
18684 fi
18685
18686
18687   test -n "$INTLBISON" && break
18688 done
18689
18690   if test -z "$INTLBISON"; then
18691     ac_verc_fail=yes
18692   else
18693         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
18694 $as_echo_n "checking version of bison... " >&6; }
18695     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
18696     case $ac_prog_version in
18697       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
18698       2.[7-9]* | [3-9].*)
18699          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
18700       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
18701     esac
18702     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
18703 $as_echo "$ac_prog_version" >&6; }
18704   fi
18705   if test $ac_verc_fail = yes; then
18706     INTLBISON=:
18707   fi
18708
18709
18710
18711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
18712 $as_echo_n "checking for long long int... " >&6; }
18713 if ${ac_cv_type_long_long_int+:} false; then :
18714   $as_echo_n "(cached) " >&6
18715 else
18716   ac_cv_type_long_long_int=yes
18717       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
18718         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
18719         if test $ac_cv_type_long_long_int = yes; then
18720                                         if test "$cross_compiling" = yes; then :
18721   :
18722 else
18723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18724 /* end confdefs.h.  */
18725 #include <limits.h>
18726                  #ifndef LLONG_MAX
18727                  # define HALF \
18728                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
18729                  # define LLONG_MAX (HALF - 1 + HALF)
18730                  #endif
18731 int
18732 main ()
18733 {
18734 long long int n = 1;
18735                  int i;
18736                  for (i = 0; ; i++)
18737                    {
18738                      long long int m = n << i;
18739                      if (m >> i != n)
18740                        return 1;
18741                      if (LLONG_MAX / 2 < m)
18742                        break;
18743                    }
18744                  return 0;
18745   ;
18746   return 0;
18747 }
18748 _ACEOF
18749 if ac_fn_c_try_run "$LINENO"; then :
18750
18751 else
18752   ac_cv_type_long_long_int=no
18753 fi
18754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18755   conftest.$ac_objext conftest.beam conftest.$ac_ext
18756 fi
18757
18758         fi
18759       fi
18760 fi
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18762 $as_echo "$ac_cv_type_long_long_int" >&6; }
18763   if test $ac_cv_type_long_long_int = yes; then
18764
18765 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18766
18767   fi
18768
18769
18770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18771 $as_echo_n "checking for wchar_t... " >&6; }
18772 if ${gt_cv_c_wchar_t+:} false; then :
18773   $as_echo_n "(cached) " >&6
18774 else
18775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18776 /* end confdefs.h.  */
18777 #include <stddef.h>
18778             wchar_t foo = (wchar_t)'\0';
18779 int
18780 main ()
18781 {
18782
18783   ;
18784   return 0;
18785 }
18786 _ACEOF
18787 if ac_fn_c_try_compile "$LINENO"; then :
18788   gt_cv_c_wchar_t=yes
18789 else
18790   gt_cv_c_wchar_t=no
18791 fi
18792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18793 fi
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18795 $as_echo "$gt_cv_c_wchar_t" >&6; }
18796   if test $gt_cv_c_wchar_t = yes; then
18797
18798 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18799
18800   fi
18801
18802
18803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18804 $as_echo_n "checking for wint_t... " >&6; }
18805 if ${gt_cv_c_wint_t+:} false; then :
18806   $as_echo_n "(cached) " >&6
18807 else
18808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18809 /* end confdefs.h.  */
18810
18811 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18812    <wchar.h>.
18813    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18814    before <wchar.h>.  */
18815 #include <stddef.h>
18816 #include <stdio.h>
18817 #include <time.h>
18818 #include <wchar.h>
18819             wint_t foo = (wchar_t)'\0';
18820 int
18821 main ()
18822 {
18823
18824   ;
18825   return 0;
18826 }
18827 _ACEOF
18828 if ac_fn_c_try_compile "$LINENO"; then :
18829   gt_cv_c_wint_t=yes
18830 else
18831   gt_cv_c_wint_t=no
18832 fi
18833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18834 fi
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18836 $as_echo "$gt_cv_c_wint_t" >&6; }
18837   if test $gt_cv_c_wint_t = yes; then
18838
18839 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18840
18841   fi
18842
18843
18844
18845
18846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18847 $as_echo_n "checking for intmax_t... " >&6; }
18848 if ${gt_cv_c_intmax_t+:} false; then :
18849   $as_echo_n "(cached) " >&6
18850 else
18851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18852 /* end confdefs.h.  */
18853
18854 #include <stddef.h>
18855 #include <stdlib.h>
18856 #if HAVE_STDINT_H_WITH_UINTMAX
18857 #include <stdint.h>
18858 #endif
18859 #if HAVE_INTTYPES_H_WITH_UINTMAX
18860 #include <inttypes.h>
18861 #endif
18862
18863 int
18864 main ()
18865 {
18866 intmax_t x = -1;
18867             return !x;
18868   ;
18869   return 0;
18870 }
18871 _ACEOF
18872 if ac_fn_c_try_compile "$LINENO"; then :
18873   gt_cv_c_intmax_t=yes
18874 else
18875   gt_cv_c_intmax_t=no
18876 fi
18877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18878 fi
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18880 $as_echo "$gt_cv_c_intmax_t" >&6; }
18881   if test $gt_cv_c_intmax_t = yes; then
18882
18883 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18884
18885   fi
18886
18887
18888
18889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18890 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18891 if ${gt_cv_func_printf_posix+:} false; then :
18892   $as_echo_n "(cached) " >&6
18893 else
18894
18895       if test "$cross_compiling" = yes; then :
18896
18897           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18898 /* end confdefs.h.  */
18899
18900 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18901   notposix
18902 #endif
18903
18904 _ACEOF
18905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18906   $EGREP "notposix" >/dev/null 2>&1; then :
18907   gt_cv_func_printf_posix="guessing no"
18908 else
18909   gt_cv_func_printf_posix="guessing yes"
18910 fi
18911 rm -f conftest*
18912
18913
18914 else
18915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18916 /* end confdefs.h.  */
18917
18918 #include <stdio.h>
18919 #include <string.h>
18920 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18921    dollar expansion (possibly an autoconf bug).  */
18922 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18923 static char buf[100];
18924 int main ()
18925 {
18926   sprintf (buf, format, 33, 55);
18927   return (strcmp (buf, "55 33") != 0);
18928 }
18929 _ACEOF
18930 if ac_fn_c_try_run "$LINENO"; then :
18931   gt_cv_func_printf_posix=yes
18932 else
18933   gt_cv_func_printf_posix=no
18934 fi
18935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18936   conftest.$ac_objext conftest.beam conftest.$ac_ext
18937 fi
18938
18939
18940 fi
18941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18942 $as_echo "$gt_cv_func_printf_posix" >&6; }
18943   case $gt_cv_func_printf_posix in
18944     *yes)
18945
18946 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18947
18948       ;;
18949   esac
18950
18951
18952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
18953 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
18954 if ${ac_cv_gnu_library_2_1+:} false; then :
18955   $as_echo_n "(cached) " >&6
18956 else
18957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18958 /* end confdefs.h.  */
18959
18960 #include <features.h>
18961 #ifdef __GNU_LIBRARY__
18962  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18963   Lucky GNU user
18964  #endif
18965 #endif
18966 #ifdef __UCLIBC__
18967  Lucky user
18968 #endif
18969
18970 _ACEOF
18971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18972   $EGREP "Lucky" >/dev/null 2>&1; then :
18973   ac_cv_gnu_library_2_1=yes
18974 else
18975   ac_cv_gnu_library_2_1=no
18976 fi
18977 rm -f conftest*
18978
18979
18980
18981 fi
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18983 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18984
18985     GLIBC21="$ac_cv_gnu_library_2_1"
18986
18987
18988
18989   for ac_header in stdint.h
18990 do :
18991   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18992 if test "x$ac_cv_header_stdint_h" = xyes; then :
18993   cat >>confdefs.h <<_ACEOF
18994 #define HAVE_STDINT_H 1
18995 _ACEOF
18996
18997 fi
18998
18999 done
19000
19001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19002 $as_echo_n "checking for SIZE_MAX... " >&6; }
19003 if ${gl_cv_size_max+:} false; then :
19004   $as_echo_n "(cached) " >&6
19005 else
19006
19007     gl_cv_size_max=
19008     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19009 /* end confdefs.h.  */
19010
19011 #include <limits.h>
19012 #if HAVE_STDINT_H
19013 #include <stdint.h>
19014 #endif
19015 #ifdef SIZE_MAX
19016 Found it
19017 #endif
19018
19019 _ACEOF
19020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19021   $EGREP "Found it" >/dev/null 2>&1; then :
19022   gl_cv_size_max=yes
19023 fi
19024 rm -f conftest*
19025
19026     if test -z "$gl_cv_size_max"; then
19027                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
19028 #include <limits.h>"; then :
19029
19030 else
19031   size_t_bits_minus_1=
19032 fi
19033
19034       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
19035
19036 else
19037   fits_in_uint=
19038 fi
19039
19040       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
19041         if test $fits_in_uint = 1; then
19042                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19043 /* end confdefs.h.  */
19044 #include <stddef.h>
19045                  extern size_t foo;
19046                  extern unsigned long foo;
19047
19048 int
19049 main ()
19050 {
19051
19052   ;
19053   return 0;
19054 }
19055 _ACEOF
19056 if ac_fn_c_try_compile "$LINENO"; then :
19057   fits_in_uint=0
19058 fi
19059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19060         fi
19061                                 if test $fits_in_uint = 1; then
19062           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
19063         else
19064           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
19065         fi
19066       else
19067                 gl_cv_size_max='((size_t)~(size_t)0)'
19068       fi
19069     fi
19070
19071 fi
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
19073 $as_echo "$gl_cv_size_max" >&6; }
19074   if test "$gl_cv_size_max" != yes; then
19075
19076 cat >>confdefs.h <<_ACEOF
19077 #define SIZE_MAX $gl_cv_size_max
19078 _ACEOF
19079
19080   fi
19081
19082
19083
19084
19085   for ac_header in stdint.h
19086 do :
19087   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19088 if test "x$ac_cv_header_stdint_h" = xyes; then :
19089   cat >>confdefs.h <<_ACEOF
19090 #define HAVE_STDINT_H 1
19091 _ACEOF
19092
19093 fi
19094
19095 done
19096
19097
19098
19099
19100
19101   for ac_func in $ac_func_list
19102 do :
19103   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19104 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19105 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19106   cat >>confdefs.h <<_ACEOF
19107 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19108 _ACEOF
19109
19110 fi
19111 done
19112
19113
19114
19115
19116
19117
19118
19119
19120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
19121 $as_echo_n "checking for working fcntl.h... " >&6; }
19122 if ${gl_cv_header_working_fcntl_h+:} false; then :
19123   $as_echo_n "(cached) " >&6
19124 else
19125   if test "$cross_compiling" = yes; then :
19126   gl_cv_header_working_fcntl_h=cross-compiling
19127 else
19128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19129 /* end confdefs.h.  */
19130 #include <sys/types.h>
19131            #include <sys/stat.h>
19132            #if HAVE_UNISTD_H
19133            # include <unistd.h>
19134            #else /* on Windows with MSVC */
19135            # include <io.h>
19136            # include <stdlib.h>
19137            # defined sleep(n) _sleep ((n) * 1000)
19138            #endif
19139            #include <fcntl.h>
19140            #ifndef O_NOATIME
19141             #define O_NOATIME 0
19142            #endif
19143            #ifndef O_NOFOLLOW
19144             #define O_NOFOLLOW 0
19145            #endif
19146            static int const constants[] =
19147             {
19148               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
19149               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
19150             };
19151
19152 int
19153 main ()
19154 {
19155
19156             int result = !constants;
19157             #if HAVE_SYMLINK
19158             {
19159               static char const sym[] = "conftest.sym";
19160               if (symlink ("/dev/null", sym) != 0)
19161                 result |= 2;
19162               else
19163                 {
19164                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
19165                   if (fd >= 0)
19166                     {
19167                       close (fd);
19168                       result |= 4;
19169                     }
19170                 }
19171               if (unlink (sym) != 0 || symlink (".", sym) != 0)
19172                 result |= 2;
19173               else
19174                 {
19175                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
19176                   if (fd >= 0)
19177                     {
19178                       close (fd);
19179                       result |= 4;
19180                     }
19181                 }
19182               unlink (sym);
19183             }
19184             #endif
19185             {
19186               static char const file[] = "confdefs.h";
19187               int fd = open (file, O_RDONLY | O_NOATIME);
19188               if (fd < 0)
19189                 result |= 8;
19190               else
19191                 {
19192                   struct stat st0;
19193                   if (fstat (fd, &st0) != 0)
19194                     result |= 16;
19195                   else
19196                     {
19197                       char c;
19198                       sleep (1);
19199                       if (read (fd, &c, 1) != 1)
19200                         result |= 24;
19201                       else
19202                         {
19203                           if (close (fd) != 0)
19204                             result |= 32;
19205                           else
19206                             {
19207                               struct stat st1;
19208                               if (stat (file, &st1) != 0)
19209                                 result |= 40;
19210                               else
19211                                 if (st0.st_atime != st1.st_atime)
19212                                   result |= 64;
19213                             }
19214                         }
19215                     }
19216                 }
19217             }
19218             return result;
19219   ;
19220   return 0;
19221 }
19222 _ACEOF
19223 if ac_fn_c_try_run "$LINENO"; then :
19224   gl_cv_header_working_fcntl_h=yes
19225 else
19226   case $? in #(
19227         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
19228         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
19229         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
19230          *) gl_cv_header_working_fcntl_h='no';;
19231         esac
19232 fi
19233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19234   conftest.$ac_objext conftest.beam conftest.$ac_ext
19235 fi
19236
19237 fi
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
19239 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
19240
19241   case $gl_cv_header_working_fcntl_h in #(
19242   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
19243   *) ac_val=1;;
19244   esac
19245
19246 cat >>confdefs.h <<_ACEOF
19247 #define HAVE_WORKING_O_NOATIME $ac_val
19248 _ACEOF
19249
19250
19251   case $gl_cv_header_working_fcntl_h in #(
19252   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
19253   *) ac_val=1;;
19254   esac
19255
19256 cat >>confdefs.h <<_ACEOF
19257 #define HAVE_WORKING_O_NOFOLLOW $ac_val
19258 _ACEOF
19259
19260
19261
19262     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19263 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19264 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
19265   $as_echo_n "(cached) " >&6
19266 else
19267   gt_save_LIBS="$LIBS"
19268      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19269      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19270 /* end confdefs.h.  */
19271 #include <CoreFoundation/CFPreferences.h>
19272 int
19273 main ()
19274 {
19275 CFPreferencesCopyAppValue(NULL, NULL)
19276   ;
19277   return 0;
19278 }
19279 _ACEOF
19280 if ac_fn_c_try_link "$LINENO"; then :
19281   gt_cv_func_CFPreferencesCopyAppValue=yes
19282 else
19283   gt_cv_func_CFPreferencesCopyAppValue=no
19284 fi
19285 rm -f core conftest.err conftest.$ac_objext \
19286     conftest$ac_exeext conftest.$ac_ext
19287      LIBS="$gt_save_LIBS"
19288 fi
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19290 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19291   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19292
19293 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19294
19295   fi
19296     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19297 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19298 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
19299   $as_echo_n "(cached) " >&6
19300 else
19301   gt_save_LIBS="$LIBS"
19302      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19303      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19304 /* end confdefs.h.  */
19305 #include <CoreFoundation/CFLocale.h>
19306 int
19307 main ()
19308 {
19309 CFLocaleCopyCurrent();
19310   ;
19311   return 0;
19312 }
19313 _ACEOF
19314 if ac_fn_c_try_link "$LINENO"; then :
19315   gt_cv_func_CFLocaleCopyCurrent=yes
19316 else
19317   gt_cv_func_CFLocaleCopyCurrent=no
19318 fi
19319 rm -f core conftest.err conftest.$ac_objext \
19320     conftest$ac_exeext conftest.$ac_ext
19321      LIBS="$gt_save_LIBS"
19322 fi
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19324 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19325   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19326
19327 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19328
19329   fi
19330   INTL_MACOSX_LIBS=
19331   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19332     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19333   fi
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346     case "$enable_silent_rules" in
19347     yes) INTL_DEFAULT_VERBOSITY=0;;
19348     no)  INTL_DEFAULT_VERBOSITY=1;;
19349     *)   INTL_DEFAULT_VERBOSITY=1;;
19350   esac
19351
19352
19353   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19354 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19355
19356 else
19357
19358 $as_echo "#define ptrdiff_t long" >>confdefs.h
19359
19360
19361 fi
19362
19363   for ac_header in features.h stddef.h stdlib.h string.h
19364 do :
19365   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19366 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19367 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19368   cat >>confdefs.h <<_ACEOF
19369 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19370 _ACEOF
19371
19372 fi
19373
19374 done
19375
19376   for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
19377     snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
19378 do :
19379   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19380 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19381 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19382   cat >>confdefs.h <<_ACEOF
19383 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19384 _ACEOF
19385
19386 fi
19387 done
19388
19389
19390       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
19391 "
19392 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
19393   ac_have_decl=1
19394 else
19395   ac_have_decl=0
19396 fi
19397
19398 cat >>confdefs.h <<_ACEOF
19399 #define HAVE_DECL__SNPRINTF $ac_have_decl
19400 _ACEOF
19401 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
19402 "
19403 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
19404   ac_have_decl=1
19405 else
19406   ac_have_decl=0
19407 fi
19408
19409 cat >>confdefs.h <<_ACEOF
19410 #define HAVE_DECL__SNWPRINTF $ac_have_decl
19411 _ACEOF
19412
19413
19414           ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
19415 "
19416 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
19417   ac_have_decl=1
19418 else
19419   ac_have_decl=0
19420 fi
19421
19422 cat >>confdefs.h <<_ACEOF
19423 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
19424 _ACEOF
19425
19426
19427   case $gt_cv_func_printf_posix in
19428     *yes) HAVE_POSIX_PRINTF=1 ;;
19429     *) HAVE_POSIX_PRINTF=0 ;;
19430   esac
19431
19432   if test "$ac_cv_func_asprintf" = yes; then
19433     HAVE_ASPRINTF=1
19434   else
19435     HAVE_ASPRINTF=0
19436   fi
19437
19438   if test "$ac_cv_func_snprintf" = yes; then
19439     HAVE_SNPRINTF=1
19440   else
19441     HAVE_SNPRINTF=0
19442   fi
19443
19444   if test "$ac_cv_func_newlocale" = yes; then
19445     HAVE_NEWLOCALE=1
19446   else
19447     HAVE_NEWLOCALE=0
19448   fi
19449
19450   if test "$ac_cv_func_wprintf" = yes; then
19451     HAVE_WPRINTF=1
19452   else
19453     HAVE_WPRINTF=0
19454   fi
19455
19456
19457
19458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19459 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19460 if ${am_cv_langinfo_codeset+:} false; then :
19461   $as_echo_n "(cached) " >&6
19462 else
19463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19464 /* end confdefs.h.  */
19465 #include <langinfo.h>
19466 int
19467 main ()
19468 {
19469 char* cs = nl_langinfo(CODESET); return !cs;
19470   ;
19471   return 0;
19472 }
19473 _ACEOF
19474 if ac_fn_c_try_link "$LINENO"; then :
19475   am_cv_langinfo_codeset=yes
19476 else
19477   am_cv_langinfo_codeset=no
19478 fi
19479 rm -f core conftest.err conftest.$ac_objext \
19480     conftest$ac_exeext conftest.$ac_ext
19481
19482 fi
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19484 $as_echo "$am_cv_langinfo_codeset" >&6; }
19485   if test $am_cv_langinfo_codeset = yes; then
19486
19487 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19488
19489   fi
19490
19491
19492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19493 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19494 if ${gt_cv_val_LC_MESSAGES+:} false; then :
19495   $as_echo_n "(cached) " >&6
19496 else
19497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19498 /* end confdefs.h.  */
19499 #include <locale.h>
19500 int
19501 main ()
19502 {
19503 return LC_MESSAGES
19504   ;
19505   return 0;
19506 }
19507 _ACEOF
19508 if ac_fn_c_try_link "$LINENO"; then :
19509   gt_cv_val_LC_MESSAGES=yes
19510 else
19511   gt_cv_val_LC_MESSAGES=no
19512 fi
19513 rm -f core conftest.err conftest.$ac_objext \
19514     conftest$ac_exeext conftest.$ac_ext
19515 fi
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19517 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19518   if test $gt_cv_val_LC_MESSAGES = yes; then
19519
19520 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19521
19522   fi
19523
19524
19525                 if test "$enable_shared" = yes; then
19526     case "$host_os" in
19527       mingw* | cygwin*) is_woe32dll=yes ;;
19528       *) is_woe32dll=no ;;
19529     esac
19530   else
19531     is_woe32dll=no
19532   fi
19533   WOE32DLL=$is_woe32dll
19534
19535
19536       case "$host_os" in
19537     mingw* | cygwin*) is_woe32=yes ;;
19538     *) is_woe32=no ;;
19539   esac
19540   WOE32=$is_woe32
19541
19542   if test $WOE32 = yes; then
19543         if test -n "$ac_tool_prefix"; then
19544   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19545 set dummy ${ac_tool_prefix}windres; ac_word=$2
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19547 $as_echo_n "checking for $ac_word... " >&6; }
19548 if ${ac_cv_prog_WINDRES+:} false; then :
19549   $as_echo_n "(cached) " >&6
19550 else
19551   if test -n "$WINDRES"; then
19552   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19553 else
19554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19555 for as_dir in $PATH
19556 do
19557   IFS=$as_save_IFS
19558   test -z "$as_dir" && as_dir=.
19559     for ac_exec_ext in '' $ac_executable_extensions; do
19560   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19561     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19562     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19563     break 2
19564   fi
19565 done
19566   done
19567 IFS=$as_save_IFS
19568
19569 fi
19570 fi
19571 WINDRES=$ac_cv_prog_WINDRES
19572 if test -n "$WINDRES"; then
19573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
19574 $as_echo "$WINDRES" >&6; }
19575 else
19576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19577 $as_echo "no" >&6; }
19578 fi
19579
19580
19581 fi
19582 if test -z "$ac_cv_prog_WINDRES"; then
19583   ac_ct_WINDRES=$WINDRES
19584   # Extract the first word of "windres", so it can be a program name with args.
19585 set dummy windres; ac_word=$2
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19587 $as_echo_n "checking for $ac_word... " >&6; }
19588 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
19589   $as_echo_n "(cached) " >&6
19590 else
19591   if test -n "$ac_ct_WINDRES"; then
19592   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19593 else
19594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19595 for as_dir in $PATH
19596 do
19597   IFS=$as_save_IFS
19598   test -z "$as_dir" && as_dir=.
19599     for ac_exec_ext in '' $ac_executable_extensions; do
19600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19601     ac_cv_prog_ac_ct_WINDRES="windres"
19602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19603     break 2
19604   fi
19605 done
19606   done
19607 IFS=$as_save_IFS
19608
19609 fi
19610 fi
19611 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19612 if test -n "$ac_ct_WINDRES"; then
19613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
19614 $as_echo "$ac_ct_WINDRES" >&6; }
19615 else
19616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19617 $as_echo "no" >&6; }
19618 fi
19619
19620   if test "x$ac_ct_WINDRES" = x; then
19621     WINDRES=""
19622   else
19623     case $cross_compiling:$ac_tool_warned in
19624 yes:)
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19627 ac_tool_warned=yes ;;
19628 esac
19629     WINDRES=$ac_ct_WINDRES
19630   fi
19631 else
19632   WINDRES="$ac_cv_prog_WINDRES"
19633 fi
19634
19635   fi
19636
19637               case "$host_os" in
19638     hpux*) LTLIBC="" ;;
19639     *)     LTLIBC="-lc" ;;
19640   esac
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19669 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19670 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
19671   $as_echo_n "(cached) " >&6
19672 else
19673   gt_save_LIBS="$LIBS"
19674      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19675      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19676 /* end confdefs.h.  */
19677 #include <CoreFoundation/CFPreferences.h>
19678 int
19679 main ()
19680 {
19681 CFPreferencesCopyAppValue(NULL, NULL)
19682   ;
19683   return 0;
19684 }
19685 _ACEOF
19686 if ac_fn_c_try_link "$LINENO"; then :
19687   gt_cv_func_CFPreferencesCopyAppValue=yes
19688 else
19689   gt_cv_func_CFPreferencesCopyAppValue=no
19690 fi
19691 rm -f core conftest.err conftest.$ac_objext \
19692     conftest$ac_exeext conftest.$ac_ext
19693      LIBS="$gt_save_LIBS"
19694 fi
19695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19696 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19697   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19698
19699 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19700
19701   fi
19702     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19703 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19704 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
19705   $as_echo_n "(cached) " >&6
19706 else
19707   gt_save_LIBS="$LIBS"
19708      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
19709      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19710 /* end confdefs.h.  */
19711 #include <CoreFoundation/CFLocale.h>
19712 int
19713 main ()
19714 {
19715 CFLocaleCopyCurrent();
19716   ;
19717   return 0;
19718 }
19719 _ACEOF
19720 if ac_fn_c_try_link "$LINENO"; then :
19721   gt_cv_func_CFLocaleCopyCurrent=yes
19722 else
19723   gt_cv_func_CFLocaleCopyCurrent=no
19724 fi
19725 rm -f core conftest.err conftest.$ac_objext \
19726     conftest$ac_exeext conftest.$ac_ext
19727      LIBS="$gt_save_LIBS"
19728 fi
19729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19730 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19731   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19732
19733 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19734
19735   fi
19736   INTL_MACOSX_LIBS=
19737   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19738     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19739   fi
19740
19741
19742
19743
19744
19745
19746     BUILD_INCLUDED_LIBINTL=no
19747     USE_INCLUDED_LIBINTL=no
19748
19749   LIBINTL=
19750   LTLIBINTL=
19751   POSUB=
19752
19753     case " $gt_needs " in
19754     *" need-formatstring-macros "*) gt_api_version=3 ;;
19755     *" need-ngettext "*) gt_api_version=2 ;;
19756     *) gt_api_version=1 ;;
19757   esac
19758   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
19759   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
19760
19761     if test "$USE_NLS" = "yes"; then
19762     gt_use_preinstalled_gnugettext=no
19763
19764       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19765 $as_echo_n "checking whether included gettext is requested... " >&6; }
19766
19767 # Check whether --with-included-gettext was given.
19768 if test "${with_included_gettext+set}" = set; then :
19769   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19770 else
19771   nls_cv_force_use_gnu_gettext=no
19772 fi
19773
19774       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19775 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19776
19777       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19778       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19779
19780
19781         if test $gt_api_version -ge 3; then
19782           gt_revision_test_code='
19783 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19784 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
19785 #endif
19786 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
19787 '
19788         else
19789           gt_revision_test_code=
19790         fi
19791         if test $gt_api_version -ge 2; then
19792           gt_expression_test_code=' + * ngettext ("", "", 0)'
19793         else
19794           gt_expression_test_code=
19795         fi
19796
19797         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19798 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19799 if eval \${$gt_func_gnugettext_libc+:} false; then :
19800   $as_echo_n "(cached) " >&6
19801 else
19802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19803 /* end confdefs.h.  */
19804
19805 #include <libintl.h>
19806 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19807 extern int _nl_msg_cat_cntr;
19808 extern int *_nl_domain_bindings;
19809 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
19810 #else
19811 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
19812 #endif
19813 $gt_revision_test_code
19814
19815 int
19816 main ()
19817 {
19818
19819 bindtextdomain ("", "");
19820 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
19821
19822   ;
19823   return 0;
19824 }
19825 _ACEOF
19826 if ac_fn_c_try_link "$LINENO"; then :
19827   eval "$gt_func_gnugettext_libc=yes"
19828 else
19829   eval "$gt_func_gnugettext_libc=no"
19830 fi
19831 rm -f core conftest.err conftest.$ac_objext \
19832     conftest$ac_exeext conftest.$ac_ext
19833 fi
19834 eval ac_res=\$$gt_func_gnugettext_libc
19835                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19836 $as_echo "$ac_res" >&6; }
19837
19838         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
19839
19840
19841
19842
19843
19844
19845
19846
19847     use_additional=yes
19848
19849   acl_save_prefix="$prefix"
19850   prefix="$acl_final_prefix"
19851   acl_save_exec_prefix="$exec_prefix"
19852   exec_prefix="$acl_final_exec_prefix"
19853
19854     eval additional_includedir=\"$includedir\"
19855     eval additional_libdir=\"$libdir\"
19856
19857   exec_prefix="$acl_save_exec_prefix"
19858   prefix="$acl_save_prefix"
19859
19860
19861 # Check whether --with-libintl-prefix was given.
19862 if test "${with_libintl_prefix+set}" = set; then :
19863   withval=$with_libintl_prefix;
19864     if test "X$withval" = "Xno"; then
19865       use_additional=no
19866     else
19867       if test "X$withval" = "X"; then
19868
19869   acl_save_prefix="$prefix"
19870   prefix="$acl_final_prefix"
19871   acl_save_exec_prefix="$exec_prefix"
19872   exec_prefix="$acl_final_exec_prefix"
19873
19874           eval additional_includedir=\"$includedir\"
19875           eval additional_libdir=\"$libdir\"
19876
19877   exec_prefix="$acl_save_exec_prefix"
19878   prefix="$acl_save_prefix"
19879
19880       else
19881         additional_includedir="$withval/include"
19882         additional_libdir="$withval/$acl_libdirstem"
19883         if test "$acl_libdirstem2" != "$acl_libdirstem" \
19884            && ! test -d "$withval/$acl_libdirstem"; then
19885           additional_libdir="$withval/$acl_libdirstem2"
19886         fi
19887       fi
19888     fi
19889
19890 fi
19891
19892       LIBINTL=
19893   LTLIBINTL=
19894   INCINTL=
19895   LIBINTL_PREFIX=
19896       HAVE_LIBINTL=
19897   rpathdirs=
19898   ltrpathdirs=
19899   names_already_handled=
19900   names_next_round='intl '
19901   while test -n "$names_next_round"; do
19902     names_this_round="$names_next_round"
19903     names_next_round=
19904     for name in $names_this_round; do
19905       already_handled=
19906       for n in $names_already_handled; do
19907         if test "$n" = "$name"; then
19908           already_handled=yes
19909           break
19910         fi
19911       done
19912       if test -z "$already_handled"; then
19913         names_already_handled="$names_already_handled $name"
19914                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
19915         eval value=\"\$HAVE_LIB$uppername\"
19916         if test -n "$value"; then
19917           if test "$value" = yes; then
19918             eval value=\"\$LIB$uppername\"
19919             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
19920             eval value=\"\$LTLIB$uppername\"
19921             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
19922           else
19923                                     :
19924           fi
19925         else
19926                               found_dir=
19927           found_la=
19928           found_so=
19929           found_a=
19930           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
19931           if test -n "$acl_shlibext"; then
19932             shrext=".$acl_shlibext"             # typically: shrext=.so
19933           else
19934             shrext=
19935           fi
19936           if test $use_additional = yes; then
19937             dir="$additional_libdir"
19938                                     if test -n "$acl_shlibext"; then
19939               if test -f "$dir/$libname$shrext"; then
19940                 found_dir="$dir"
19941                 found_so="$dir/$libname$shrext"
19942               else
19943                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19944                   ver=`(cd "$dir" && \
19945                         for f in "$libname$shrext".*; do echo "$f"; done \
19946                         | sed -e "s,^$libname$shrext\\\\.,," \
19947                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19948                         | sed 1q ) 2>/dev/null`
19949                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19950                     found_dir="$dir"
19951                     found_so="$dir/$libname$shrext.$ver"
19952                   fi
19953                 else
19954                   eval library_names=\"$acl_library_names_spec\"
19955                   for f in $library_names; do
19956                     if test -f "$dir/$f"; then
19957                       found_dir="$dir"
19958                       found_so="$dir/$f"
19959                       break
19960                     fi
19961                   done
19962                 fi
19963               fi
19964             fi
19965                         if test "X$found_dir" = "X"; then
19966               if test -f "$dir/$libname.$acl_libext"; then
19967                 found_dir="$dir"
19968                 found_a="$dir/$libname.$acl_libext"
19969               fi
19970             fi
19971             if test "X$found_dir" != "X"; then
19972               if test -f "$dir/$libname.la"; then
19973                 found_la="$dir/$libname.la"
19974               fi
19975             fi
19976           fi
19977           if test "X$found_dir" = "X"; then
19978             for x in $LDFLAGS $LTLIBINTL; do
19979
19980   acl_save_prefix="$prefix"
19981   prefix="$acl_final_prefix"
19982   acl_save_exec_prefix="$exec_prefix"
19983   exec_prefix="$acl_final_exec_prefix"
19984   eval x=\"$x\"
19985   exec_prefix="$acl_save_exec_prefix"
19986   prefix="$acl_save_prefix"
19987
19988               case "$x" in
19989                 -L*)
19990                   dir=`echo "X$x" | sed -e 's/^X-L//'`
19991                                     if test -n "$acl_shlibext"; then
19992                     if test -f "$dir/$libname$shrext"; then
19993                       found_dir="$dir"
19994                       found_so="$dir/$libname$shrext"
19995                     else
19996                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19997                         ver=`(cd "$dir" && \
19998                               for f in "$libname$shrext".*; do echo "$f"; done \
19999                               | sed -e "s,^$libname$shrext\\\\.,," \
20000                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20001                               | sed 1q ) 2>/dev/null`
20002                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20003                           found_dir="$dir"
20004                           found_so="$dir/$libname$shrext.$ver"
20005                         fi
20006                       else
20007                         eval library_names=\"$acl_library_names_spec\"
20008                         for f in $library_names; do
20009                           if test -f "$dir/$f"; then
20010                             found_dir="$dir"
20011                             found_so="$dir/$f"
20012                             break
20013                           fi
20014                         done
20015                       fi
20016                     fi
20017                   fi
20018                                     if test "X$found_dir" = "X"; then
20019                     if test -f "$dir/$libname.$acl_libext"; then
20020                       found_dir="$dir"
20021                       found_a="$dir/$libname.$acl_libext"
20022                     fi
20023                   fi
20024                   if test "X$found_dir" != "X"; then
20025                     if test -f "$dir/$libname.la"; then
20026                       found_la="$dir/$libname.la"
20027                     fi
20028                   fi
20029                   ;;
20030               esac
20031               if test "X$found_dir" != "X"; then
20032                 break
20033               fi
20034             done
20035           fi
20036           if test "X$found_dir" != "X"; then
20037                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20038             if test "X$found_so" != "X"; then
20039                                                         if test "$enable_rpath" = no \
20040                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
20041                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
20042                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20043               else
20044                                                                                 haveit=
20045                 for x in $ltrpathdirs; do
20046                   if test "X$x" = "X$found_dir"; then
20047                     haveit=yes
20048                     break
20049                   fi
20050                 done
20051                 if test -z "$haveit"; then
20052                   ltrpathdirs="$ltrpathdirs $found_dir"
20053                 fi
20054                                 if test "$acl_hardcode_direct" = yes; then
20055                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20056                 else
20057                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20058                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20059                                                             haveit=
20060                     for x in $rpathdirs; do
20061                       if test "X$x" = "X$found_dir"; then
20062                         haveit=yes
20063                         break
20064                       fi
20065                     done
20066                     if test -z "$haveit"; then
20067                       rpathdirs="$rpathdirs $found_dir"
20068                     fi
20069                   else
20070                                                                                 haveit=
20071                     for x in $LDFLAGS $LIBINTL; do
20072
20073   acl_save_prefix="$prefix"
20074   prefix="$acl_final_prefix"
20075   acl_save_exec_prefix="$exec_prefix"
20076   exec_prefix="$acl_final_exec_prefix"
20077   eval x=\"$x\"
20078   exec_prefix="$acl_save_exec_prefix"
20079   prefix="$acl_save_prefix"
20080
20081                       if test "X$x" = "X-L$found_dir"; then
20082                         haveit=yes
20083                         break
20084                       fi
20085                     done
20086                     if test -z "$haveit"; then
20087                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20088                     fi
20089                     if test "$acl_hardcode_minus_L" != no; then
20090                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20091                     else
20092                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20093                     fi
20094                   fi
20095                 fi
20096               fi
20097             else
20098               if test "X$found_a" != "X"; then
20099                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20100               else
20101                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20102               fi
20103             fi
20104                         additional_includedir=
20105             case "$found_dir" in
20106               */$acl_libdirstem | */$acl_libdirstem/)
20107                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20108                 if test "$name" = 'intl'; then
20109                   LIBINTL_PREFIX="$basedir"
20110                 fi
20111                 additional_includedir="$basedir/include"
20112                 ;;
20113               */$acl_libdirstem2 | */$acl_libdirstem2/)
20114                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
20115                 if test "$name" = 'intl'; then
20116                   LIBINTL_PREFIX="$basedir"
20117                 fi
20118                 additional_includedir="$basedir/include"
20119                 ;;
20120             esac
20121             if test "X$additional_includedir" != "X"; then
20122                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20123                 haveit=
20124                 if test "X$additional_includedir" = "X/usr/local/include"; then
20125                   if test -n "$GCC"; then
20126                     case $host_os in
20127                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20128                     esac
20129                   fi
20130                 fi
20131                 if test -z "$haveit"; then
20132                   for x in $CPPFLAGS $INCINTL; do
20133
20134   acl_save_prefix="$prefix"
20135   prefix="$acl_final_prefix"
20136   acl_save_exec_prefix="$exec_prefix"
20137   exec_prefix="$acl_final_exec_prefix"
20138   eval x=\"$x\"
20139   exec_prefix="$acl_save_exec_prefix"
20140   prefix="$acl_save_prefix"
20141
20142                     if test "X$x" = "X-I$additional_includedir"; then
20143                       haveit=yes
20144                       break
20145                     fi
20146                   done
20147                   if test -z "$haveit"; then
20148                     if test -d "$additional_includedir"; then
20149                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20150                     fi
20151                   fi
20152                 fi
20153               fi
20154             fi
20155                         if test -n "$found_la"; then
20156                                                         save_libdir="$libdir"
20157               case "$found_la" in
20158                 */* | *\\*) . "$found_la" ;;
20159                 *) . "./$found_la" ;;
20160               esac
20161               libdir="$save_libdir"
20162                             for dep in $dependency_libs; do
20163                 case "$dep" in
20164                   -L*)
20165                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20166                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
20167                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
20168                       haveit=
20169                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
20170                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
20171                         if test -n "$GCC"; then
20172                           case $host_os in
20173                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20174                           esac
20175                         fi
20176                       fi
20177                       if test -z "$haveit"; then
20178                         haveit=
20179                         for x in $LDFLAGS $LIBINTL; do
20180
20181   acl_save_prefix="$prefix"
20182   prefix="$acl_final_prefix"
20183   acl_save_exec_prefix="$exec_prefix"
20184   exec_prefix="$acl_final_exec_prefix"
20185   eval x=\"$x\"
20186   exec_prefix="$acl_save_exec_prefix"
20187   prefix="$acl_save_prefix"
20188
20189                           if test "X$x" = "X-L$additional_libdir"; then
20190                             haveit=yes
20191                             break
20192                           fi
20193                         done
20194                         if test -z "$haveit"; then
20195                           if test -d "$additional_libdir"; then
20196                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20197                           fi
20198                         fi
20199                         haveit=
20200                         for x in $LDFLAGS $LTLIBINTL; do
20201
20202   acl_save_prefix="$prefix"
20203   prefix="$acl_final_prefix"
20204   acl_save_exec_prefix="$exec_prefix"
20205   exec_prefix="$acl_final_exec_prefix"
20206   eval x=\"$x\"
20207   exec_prefix="$acl_save_exec_prefix"
20208   prefix="$acl_save_prefix"
20209
20210                           if test "X$x" = "X-L$additional_libdir"; then
20211                             haveit=yes
20212                             break
20213                           fi
20214                         done
20215                         if test -z "$haveit"; then
20216                           if test -d "$additional_libdir"; then
20217                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20218                           fi
20219                         fi
20220                       fi
20221                     fi
20222                     ;;
20223                   -R*)
20224                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20225                     if test "$enable_rpath" != no; then
20226                                                                   haveit=
20227                       for x in $rpathdirs; do
20228                         if test "X$x" = "X$dir"; then
20229                           haveit=yes
20230                           break
20231                         fi
20232                       done
20233                       if test -z "$haveit"; then
20234                         rpathdirs="$rpathdirs $dir"
20235                       fi
20236                                                                   haveit=
20237                       for x in $ltrpathdirs; do
20238                         if test "X$x" = "X$dir"; then
20239                           haveit=yes
20240                           break
20241                         fi
20242                       done
20243                       if test -z "$haveit"; then
20244                         ltrpathdirs="$ltrpathdirs $dir"
20245                       fi
20246                     fi
20247                     ;;
20248                   -l*)
20249                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20250                     ;;
20251                   *.la)
20252                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20253                     ;;
20254                   *)
20255                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20256                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20257                     ;;
20258                 esac
20259               done
20260             fi
20261           else
20262                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20263             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20264           fi
20265         fi
20266       fi
20267     done
20268   done
20269   if test "X$rpathdirs" != "X"; then
20270     if test -n "$acl_hardcode_libdir_separator"; then
20271                         alldirs=
20272       for found_dir in $rpathdirs; do
20273         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20274       done
20275             acl_save_libdir="$libdir"
20276       libdir="$alldirs"
20277       eval flag=\"$acl_hardcode_libdir_flag_spec\"
20278       libdir="$acl_save_libdir"
20279       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20280     else
20281             for found_dir in $rpathdirs; do
20282         acl_save_libdir="$libdir"
20283         libdir="$found_dir"
20284         eval flag=\"$acl_hardcode_libdir_flag_spec\"
20285         libdir="$acl_save_libdir"
20286         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20287       done
20288     fi
20289   fi
20290   if test "X$ltrpathdirs" != "X"; then
20291             for found_dir in $ltrpathdirs; do
20292       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20293     done
20294   fi
20295
20296
20297
20298
20299
20300
20301           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20302 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20303 if eval \${$gt_func_gnugettext_libintl+:} false; then :
20304   $as_echo_n "(cached) " >&6
20305 else
20306   gt_save_CPPFLAGS="$CPPFLAGS"
20307             CPPFLAGS="$CPPFLAGS $INCINTL"
20308             gt_save_LIBS="$LIBS"
20309             LIBS="$LIBS $LIBINTL"
20310                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20311 /* end confdefs.h.  */
20312
20313 #include <libintl.h>
20314 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
20315 extern int _nl_msg_cat_cntr;
20316 extern
20317 #ifdef __cplusplus
20318 "C"
20319 #endif
20320 const char *_nl_expand_alias (const char *);
20321 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
20322 #else
20323 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
20324 #endif
20325 $gt_revision_test_code
20326
20327 int
20328 main ()
20329 {
20330
20331 bindtextdomain ("", "");
20332 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
20333
20334   ;
20335   return 0;
20336 }
20337 _ACEOF
20338 if ac_fn_c_try_link "$LINENO"; then :
20339   eval "$gt_func_gnugettext_libintl=yes"
20340 else
20341   eval "$gt_func_gnugettext_libintl=no"
20342 fi
20343 rm -f core conftest.err conftest.$ac_objext \
20344     conftest$ac_exeext conftest.$ac_ext
20345                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
20346               LIBS="$LIBS $LIBICONV"
20347               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20348 /* end confdefs.h.  */
20349
20350 #include <libintl.h>
20351 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
20352 extern int _nl_msg_cat_cntr;
20353 extern
20354 #ifdef __cplusplus
20355 "C"
20356 #endif
20357 const char *_nl_expand_alias (const char *);
20358 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
20359 #else
20360 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
20361 #endif
20362 $gt_revision_test_code
20363
20364 int
20365 main ()
20366 {
20367
20368 bindtextdomain ("", "");
20369 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
20370
20371   ;
20372   return 0;
20373 }
20374 _ACEOF
20375 if ac_fn_c_try_link "$LINENO"; then :
20376   LIBINTL="$LIBINTL $LIBICONV"
20377                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20378                  eval "$gt_func_gnugettext_libintl=yes"
20379
20380 fi
20381 rm -f core conftest.err conftest.$ac_objext \
20382     conftest$ac_exeext conftest.$ac_ext
20383             fi
20384             CPPFLAGS="$gt_save_CPPFLAGS"
20385             LIBS="$gt_save_LIBS"
20386 fi
20387 eval ac_res=\$$gt_func_gnugettext_libintl
20388                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20389 $as_echo "$ac_res" >&6; }
20390         fi
20391
20392                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
20393            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
20394                 && test "$PACKAGE" != gettext-runtime \
20395                 && test "$PACKAGE" != gettext-tools; }; then
20396           gt_use_preinstalled_gnugettext=yes
20397         else
20398                     LIBINTL=
20399           LTLIBINTL=
20400           INCINTL=
20401         fi
20402
20403
20404         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20405                               nls_cv_use_gnu_gettext=yes
20406         fi
20407       fi
20408
20409       if test "$nls_cv_use_gnu_gettext" = "yes"; then
20410                 BUILD_INCLUDED_LIBINTL=yes
20411         USE_INCLUDED_LIBINTL=yes
20412         LIBINTL="\${top_builddir}/intl/libintl.la $LIBICONV $LIBTHREAD"
20413         LTLIBINTL="\${top_builddir}/intl/libintl.la $LTLIBICONV $LTLIBTHREAD"
20414         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20415       fi
20416
20417       CATOBJEXT=
20418       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20419          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20420                 CATOBJEXT=.gmo
20421       fi
20422
20423
20424     if test -n "$INTL_MACOSX_LIBS"; then
20425       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20426          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20427                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20428         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20429       fi
20430     fi
20431
20432     if test "$gt_use_preinstalled_gnugettext" = "yes" \
20433        || test "$nls_cv_use_gnu_gettext" = "yes"; then
20434
20435 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20436
20437     else
20438       USE_NLS=no
20439     fi
20440   fi
20441
20442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20443 $as_echo_n "checking whether to use NLS... " >&6; }
20444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20445 $as_echo "$USE_NLS" >&6; }
20446   if test "$USE_NLS" = "yes"; then
20447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20448 $as_echo_n "checking where the gettext function comes from... " >&6; }
20449     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20450       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
20451         gt_source="external libintl"
20452       else
20453         gt_source="libc"
20454       fi
20455     else
20456       gt_source="included intl directory"
20457     fi
20458     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20459 $as_echo "$gt_source" >&6; }
20460   fi
20461
20462   if test "$USE_NLS" = "yes"; then
20463
20464     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20465       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
20466         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20467 $as_echo_n "checking how to link with libintl... " >&6; }
20468         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20469 $as_echo "$LIBINTL" >&6; }
20470
20471   for element in $INCINTL; do
20472     haveit=
20473     for x in $CPPFLAGS; do
20474
20475   acl_save_prefix="$prefix"
20476   prefix="$acl_final_prefix"
20477   acl_save_exec_prefix="$exec_prefix"
20478   exec_prefix="$acl_final_exec_prefix"
20479   eval x=\"$x\"
20480   exec_prefix="$acl_save_exec_prefix"
20481   prefix="$acl_save_prefix"
20482
20483       if test "X$x" = "X$element"; then
20484         haveit=yes
20485         break
20486       fi
20487     done
20488     if test -z "$haveit"; then
20489       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20490     fi
20491   done
20492
20493       fi
20494
20495
20496 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20497
20498
20499 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20500
20501     fi
20502
20503         POSUB=po
20504   fi
20505
20506
20507             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20508       BUILD_INCLUDED_LIBINTL=yes
20509     fi
20510
20511
20512
20513
20514
20515         nls_cv_header_intl=
20516     nls_cv_header_libgt=
20517
20518         DATADIRNAME=share
20519
20520
20521         INSTOBJEXT=.mo
20522
20523
20524         GENCAT=gencat
20525
20526
20527         INTLOBJS=
20528     if test "$USE_INCLUDED_LIBINTL" = yes; then
20529       INTLOBJS="\$(GETTOBJS)"
20530     fi
20531
20532
20533         INTL_LIBTOOL_SUFFIX_PREFIX=l
20534
20535
20536
20537     INTLLIBS="$LIBINTL"
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550           LIBC_FATAL_STDERR_=1
20551   export LIBC_FATAL_STDERR_
20552
20553
20554
20555
20556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use C++" >&5
20557 $as_echo_n "checking whether to use C++... " >&6; }
20558     # Check whether --enable-c++ was given.
20559 if test "${enable_c__+set}" = set; then :
20560   enableval=$enable_c__; CXX_CHOICE="$enableval"
20561 else
20562   CXX_CHOICE=yes
20563 fi
20564
20565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_CHOICE" >&5
20566 $as_echo "$CXX_CHOICE" >&6; }
20567
20568
20569
20570   GNULIB__EXIT=0;
20571   GNULIB_ATOLL=0;
20572   GNULIB_CALLOC_POSIX=0;
20573   GNULIB_CANONICALIZE_FILE_NAME=0;
20574   GNULIB_GETLOADAVG=0;
20575   GNULIB_GETSUBOPT=0;
20576   GNULIB_GRANTPT=0;
20577   GNULIB_MALLOC_POSIX=0;
20578   GNULIB_MBTOWC=0;
20579   GNULIB_MKDTEMP=0;
20580   GNULIB_MKOSTEMP=0;
20581   GNULIB_MKOSTEMPS=0;
20582   GNULIB_MKSTEMP=0;
20583   GNULIB_MKSTEMPS=0;
20584   GNULIB_POSIX_OPENPT=0;
20585   GNULIB_PTSNAME=0;
20586   GNULIB_PTSNAME_R=0;
20587   GNULIB_PUTENV=0;
20588   GNULIB_QSORT_R=0;
20589   GNULIB_RANDOM=0;
20590   GNULIB_RANDOM_R=0;
20591   GNULIB_REALLOC_POSIX=0;
20592   GNULIB_REALPATH=0;
20593   GNULIB_RPMATCH=0;
20594   GNULIB_SECURE_GETENV=0;
20595   GNULIB_SETENV=0;
20596   GNULIB_STRTOD=0;
20597   GNULIB_STRTOLL=0;
20598   GNULIB_STRTOULL=0;
20599   GNULIB_SYSTEM_POSIX=0;
20600   GNULIB_UNLOCKPT=0;
20601   GNULIB_UNSETENV=0;
20602   GNULIB_WCTOMB=0;
20603     HAVE__EXIT=1;
20604   HAVE_ATOLL=1;
20605   HAVE_CANONICALIZE_FILE_NAME=1;
20606   HAVE_DECL_GETLOADAVG=1;
20607   HAVE_GETSUBOPT=1;
20608   HAVE_GRANTPT=1;
20609   HAVE_MKDTEMP=1;
20610   HAVE_MKOSTEMP=1;
20611   HAVE_MKOSTEMPS=1;
20612   HAVE_MKSTEMP=1;
20613   HAVE_MKSTEMPS=1;
20614   HAVE_POSIX_OPENPT=1;
20615   HAVE_PTSNAME=1;
20616   HAVE_PTSNAME_R=1;
20617   HAVE_RANDOM=1;
20618   HAVE_RANDOM_H=1;
20619   HAVE_RANDOM_R=1;
20620   HAVE_REALPATH=1;
20621   HAVE_RPMATCH=1;
20622   HAVE_SECURE_GETENV=1;
20623   HAVE_SETENV=1;
20624   HAVE_DECL_SETENV=1;
20625   HAVE_STRTOD=1;
20626   HAVE_STRTOLL=1;
20627   HAVE_STRTOULL=1;
20628   HAVE_STRUCT_RANDOM_DATA=1;
20629   HAVE_SYS_LOADAVG_H=0;
20630   HAVE_UNLOCKPT=1;
20631   HAVE_DECL_UNSETENV=1;
20632   REPLACE_CALLOC=0;
20633   REPLACE_CANONICALIZE_FILE_NAME=0;
20634   REPLACE_MALLOC=0;
20635   REPLACE_MBTOWC=0;
20636   REPLACE_MKSTEMP=0;
20637   REPLACE_PTSNAME=0;
20638   REPLACE_PTSNAME_R=0;
20639   REPLACE_PUTENV=0;
20640   REPLACE_QSORT_R=0;
20641   REPLACE_RANDOM_R=0;
20642   REPLACE_REALLOC=0;
20643   REPLACE_REALPATH=0;
20644   REPLACE_SETENV=0;
20645   REPLACE_STRTOD=0;
20646   REPLACE_UNSETENV=0;
20647   REPLACE_WCTOMB=0;
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
20658 $as_echo_n "checking whether // is distinct from /... " >&6; }
20659 if ${gl_cv_double_slash_root+:} false; then :
20660   $as_echo_n "(cached) " >&6
20661 else
20662    if test x"$cross_compiling" = xyes ; then
20663         # When cross-compiling, there is no way to tell whether // is special
20664         # short of a list of hosts.  However, the only known hosts to date
20665         # that have a distinct // are Apollo DomainOS (too old to port to),
20666         # Cygwin, and z/OS.  If anyone knows of another system for which // has
20667         # special semantics and is distinct from /, please report it to
20668         # <bug-gnulib@gnu.org>.
20669         case $host in
20670           *-cygwin | i370-ibm-openedition)
20671             gl_cv_double_slash_root=yes ;;
20672           *)
20673             # Be optimistic and assume that / and // are the same when we
20674             # don't know.
20675             gl_cv_double_slash_root='unknown, assuming no' ;;
20676         esac
20677       else
20678         set x `ls -di / // 2>/dev/null`
20679         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
20680           gl_cv_double_slash_root=no
20681         else
20682           gl_cv_double_slash_root=yes
20683         fi
20684       fi
20685 fi
20686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
20687 $as_echo "$gl_cv_double_slash_root" >&6; }
20688   if test "$gl_cv_double_slash_root" = yes; then
20689
20690 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
20691
20692   fi
20693
20694
20695
20696
20697
20698      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
20699 $as_echo_n "checking whether realpath works... " >&6; }
20700 if ${gl_cv_func_realpath_works+:} false; then :
20701   $as_echo_n "(cached) " >&6
20702 else
20703
20704     touch conftest.a
20705     mkdir conftest.d
20706     if test "$cross_compiling" = yes; then :
20707   case "$host_os" in
20708                        # Guess yes on glibc systems.
20709         *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
20710                        # If we don't know, assume the worst.
20711         *)             gl_cv_func_realpath_works="guessing no" ;;
20712       esac
20713
20714 else
20715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20716 /* end confdefs.h.  */
20717
20718
20719
20720 #include <stdlib.h>
20721 #if defined __MACH__ && defined __APPLE__
20722 /* Avoid a crash on Mac OS X.  */
20723 #include <mach/mach.h>
20724 #include <mach/mach_error.h>
20725 #include <mach/thread_status.h>
20726 #include <mach/exception.h>
20727 #include <mach/task.h>
20728 #include <pthread.h>
20729 /* The exception port on which our thread listens.  */
20730 static mach_port_t our_exception_port;
20731 /* The main function of the thread listening for exceptions of type
20732    EXC_BAD_ACCESS.  */
20733 static void *
20734 mach_exception_thread (void *arg)
20735 {
20736   /* Buffer for a message to be received.  */
20737   struct {
20738     mach_msg_header_t head;
20739     mach_msg_body_t msgh_body;
20740     char data[1024];
20741   } msg;
20742   mach_msg_return_t retval;
20743   /* Wait for a message on the exception port.  */
20744   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
20745                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
20746   if (retval != MACH_MSG_SUCCESS)
20747     abort ();
20748   exit (1);
20749 }
20750 static void
20751 nocrash_init (void)
20752 {
20753   mach_port_t self = mach_task_self ();
20754   /* Allocate a port on which the thread shall listen for exceptions.  */
20755   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
20756       == KERN_SUCCESS) {
20757     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
20758     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
20759                                 MACH_MSG_TYPE_MAKE_SEND)
20760         == KERN_SUCCESS) {
20761       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
20762          for us.  */
20763       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
20764       /* Create the thread listening on the exception port.  */
20765       pthread_attr_t attr;
20766       pthread_t thread;
20767       if (pthread_attr_init (&attr) == 0
20768           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
20769           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
20770         pthread_attr_destroy (&attr);
20771         /* Replace the exception port info for these exceptions with our own.
20772            Note that we replace the exception port for the entire task, not only
20773            for a particular thread.  This has the effect that when our exception
20774            port gets the message, the thread specific exception port has already
20775            been asked, and we don't need to bother about it.
20776            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
20777         task_set_exception_ports (self, mask, our_exception_port,
20778                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
20779       }
20780     }
20781   }
20782 }
20783 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
20784 /* Avoid a crash on native Windows.  */
20785 #define WIN32_LEAN_AND_MEAN
20786 #include <windows.h>
20787 #include <winerror.h>
20788 static LONG WINAPI
20789 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
20790 {
20791   switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
20792     {
20793     case EXCEPTION_ACCESS_VIOLATION:
20794     case EXCEPTION_IN_PAGE_ERROR:
20795     case EXCEPTION_STACK_OVERFLOW:
20796     case EXCEPTION_GUARD_PAGE:
20797     case EXCEPTION_PRIV_INSTRUCTION:
20798     case EXCEPTION_ILLEGAL_INSTRUCTION:
20799     case EXCEPTION_DATATYPE_MISALIGNMENT:
20800     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
20801     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
20802       exit (1);
20803     }
20804   return EXCEPTION_CONTINUE_SEARCH;
20805 }
20806 static void
20807 nocrash_init (void)
20808 {
20809   SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
20810 }
20811 #else
20812 /* Avoid a crash on POSIX systems.  */
20813 #include <signal.h>
20814 #include <unistd.h>
20815 /* A POSIX signal handler.  */
20816 static void
20817 exception_handler (int sig)
20818 {
20819   _exit (1);
20820 }
20821 static void
20822 nocrash_init (void)
20823 {
20824 #ifdef SIGSEGV
20825   signal (SIGSEGV, exception_handler);
20826 #endif
20827 #ifdef SIGBUS
20828   signal (SIGBUS, exception_handler);
20829 #endif
20830 }
20831 #endif
20832
20833         #include <stdlib.h>
20834         #include <string.h>
20835
20836 int
20837 main ()
20838 {
20839
20840         int result = 0;
20841         {
20842           char *name = realpath ("conftest.a", NULL);
20843           if (!(name && *name == '/'))
20844             result |= 1;
20845           free (name);
20846         }
20847         {
20848           char *name = realpath ("conftest.b/../conftest.a", NULL);
20849           if (name != NULL)
20850             result |= 2;
20851           free (name);
20852         }
20853         {
20854           char *name = realpath ("conftest.a/", NULL);
20855           if (name != NULL)
20856             result |= 4;
20857           free (name);
20858         }
20859         {
20860           char *name1 = realpath (".", NULL);
20861           char *name2 = realpath ("conftest.d//./..", NULL);
20862           if (! (name1 && name2 && strcmp (name1, name2) != 0))
20863             result |= 8;
20864           free (name1);
20865           free (name2);
20866         }
20867         return result;
20868
20869   ;
20870   return 0;
20871 }
20872
20873 _ACEOF
20874 if ac_fn_c_try_run "$LINENO"; then :
20875   gl_cv_func_realpath_works=yes
20876 else
20877   gl_cv_func_realpath_works=no
20878 fi
20879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20880   conftest.$ac_objext conftest.beam conftest.$ac_ext
20881 fi
20882
20883     rm -rf conftest.a conftest.d
20884
20885 fi
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
20887 $as_echo "$gl_cv_func_realpath_works" >&6; }
20888   case "$gl_cv_func_realpath_works" in
20889     *yes)
20890
20891 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
20892
20893       ;;
20894   esac
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906   GNULIB_CHDIR=0;
20907   GNULIB_CHOWN=0;
20908   GNULIB_CLOSE=0;
20909   GNULIB_DUP=0;
20910   GNULIB_DUP2=0;
20911   GNULIB_DUP3=0;
20912   GNULIB_ENVIRON=0;
20913   GNULIB_EUIDACCESS=0;
20914   GNULIB_FACCESSAT=0;
20915   GNULIB_FCHDIR=0;
20916   GNULIB_FCHOWNAT=0;
20917   GNULIB_FDATASYNC=0;
20918   GNULIB_FSYNC=0;
20919   GNULIB_FTRUNCATE=0;
20920   GNULIB_GETCWD=0;
20921   GNULIB_GETDOMAINNAME=0;
20922   GNULIB_GETDTABLESIZE=0;
20923   GNULIB_GETGROUPS=0;
20924   GNULIB_GETHOSTNAME=0;
20925   GNULIB_GETLOGIN=0;
20926   GNULIB_GETLOGIN_R=0;
20927   GNULIB_GETPAGESIZE=0;
20928   GNULIB_GETUSERSHELL=0;
20929   GNULIB_GROUP_MEMBER=0;
20930   GNULIB_ISATTY=0;
20931   GNULIB_LCHOWN=0;
20932   GNULIB_LINK=0;
20933   GNULIB_LINKAT=0;
20934   GNULIB_LSEEK=0;
20935   GNULIB_PIPE=0;
20936   GNULIB_PIPE2=0;
20937   GNULIB_PREAD=0;
20938   GNULIB_PWRITE=0;
20939   GNULIB_READ=0;
20940   GNULIB_READLINK=0;
20941   GNULIB_READLINKAT=0;
20942   GNULIB_RMDIR=0;
20943   GNULIB_SETHOSTNAME=0;
20944   GNULIB_SLEEP=0;
20945   GNULIB_SYMLINK=0;
20946   GNULIB_SYMLINKAT=0;
20947   GNULIB_TTYNAME_R=0;
20948   GNULIB_UNISTD_H_NONBLOCKING=0;
20949   GNULIB_UNISTD_H_SIGPIPE=0;
20950   GNULIB_UNLINK=0;
20951   GNULIB_UNLINKAT=0;
20952   GNULIB_USLEEP=0;
20953   GNULIB_WRITE=0;
20954     HAVE_CHOWN=1;
20955   HAVE_DUP2=1;
20956   HAVE_DUP3=1;
20957   HAVE_EUIDACCESS=1;
20958   HAVE_FACCESSAT=1;
20959   HAVE_FCHDIR=1;
20960   HAVE_FCHOWNAT=1;
20961   HAVE_FDATASYNC=1;
20962   HAVE_FSYNC=1;
20963   HAVE_FTRUNCATE=1;
20964   HAVE_GETDTABLESIZE=1;
20965   HAVE_GETGROUPS=1;
20966   HAVE_GETHOSTNAME=1;
20967   HAVE_GETLOGIN=1;
20968   HAVE_GETPAGESIZE=1;
20969   HAVE_GROUP_MEMBER=1;
20970   HAVE_LCHOWN=1;
20971   HAVE_LINK=1;
20972   HAVE_LINKAT=1;
20973   HAVE_PIPE=1;
20974   HAVE_PIPE2=1;
20975   HAVE_PREAD=1;
20976   HAVE_PWRITE=1;
20977   HAVE_READLINK=1;
20978   HAVE_READLINKAT=1;
20979   HAVE_SETHOSTNAME=1;
20980   HAVE_SLEEP=1;
20981   HAVE_SYMLINK=1;
20982   HAVE_SYMLINKAT=1;
20983   HAVE_UNLINKAT=1;
20984   HAVE_USLEEP=1;
20985   HAVE_DECL_ENVIRON=1;
20986   HAVE_DECL_FCHDIR=1;
20987   HAVE_DECL_FDATASYNC=1;
20988   HAVE_DECL_GETDOMAINNAME=1;
20989   HAVE_DECL_GETLOGIN_R=1;
20990   HAVE_DECL_GETPAGESIZE=1;
20991   HAVE_DECL_GETUSERSHELL=1;
20992   HAVE_DECL_SETHOSTNAME=1;
20993   HAVE_DECL_TTYNAME_R=1;
20994   HAVE_OS_H=0;
20995   HAVE_SYS_PARAM_H=0;
20996   REPLACE_CHOWN=0;
20997   REPLACE_CLOSE=0;
20998   REPLACE_DUP=0;
20999   REPLACE_DUP2=0;
21000   REPLACE_FCHOWNAT=0;
21001   REPLACE_FTRUNCATE=0;
21002   REPLACE_GETCWD=0;
21003   REPLACE_GETDOMAINNAME=0;
21004   REPLACE_GETDTABLESIZE=0;
21005   REPLACE_GETLOGIN_R=0;
21006   REPLACE_GETGROUPS=0;
21007   REPLACE_GETPAGESIZE=0;
21008   REPLACE_ISATTY=0;
21009   REPLACE_LCHOWN=0;
21010   REPLACE_LINK=0;
21011   REPLACE_LINKAT=0;
21012   REPLACE_LSEEK=0;
21013   REPLACE_PREAD=0;
21014   REPLACE_PWRITE=0;
21015   REPLACE_READ=0;
21016   REPLACE_READLINK=0;
21017   REPLACE_READLINKAT=0;
21018   REPLACE_RMDIR=0;
21019   REPLACE_SLEEP=0;
21020   REPLACE_SYMLINK=0;
21021   REPLACE_SYMLINKAT=0;
21022   REPLACE_TTYNAME_R=0;
21023   REPLACE_UNLINK=0;
21024   REPLACE_UNLINKAT=0;
21025   REPLACE_USLEEP=0;
21026   REPLACE_WRITE=0;
21027   UNISTD_H_HAVE_WINSOCK2_H=0;
21028   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
21039 $as_echo_n "checking if environ is properly declared... " >&6; }
21040   if ${gt_cv_var_environ_declaration+:} false; then :
21041   $as_echo_n "(cached) " >&6
21042 else
21043
21044     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21045 /* end confdefs.h.  */
21046 #if HAVE_UNISTD_H
21047      #include <unistd.h>
21048      #endif
21049      /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
21050      #include <stdlib.h>
21051
21052            extern struct { int foo; } environ;
21053 int
21054 main ()
21055 {
21056 environ.foo = 1;
21057   ;
21058   return 0;
21059 }
21060 _ACEOF
21061 if ac_fn_c_try_compile "$LINENO"; then :
21062   gt_cv_var_environ_declaration=no
21063 else
21064   gt_cv_var_environ_declaration=yes
21065 fi
21066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21067 fi
21068
21069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
21070 $as_echo "$gt_cv_var_environ_declaration" >&6; }
21071   if test $gt_cv_var_environ_declaration = yes; then
21072
21073 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
21074
21075   fi
21076
21077
21078   if test $gt_cv_var_environ_declaration != yes; then
21079     HAVE_DECL_ENVIRON=0
21080   fi
21081
21082
21083
21084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
21085 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
21086 if ${gl_cv_have_include_next+:} false; then :
21087   $as_echo_n "(cached) " >&6
21088 else
21089   rm -rf conftestd1a conftestd1b conftestd2
21090      mkdir conftestd1a conftestd1b conftestd2
21091                                                   cat <<EOF > conftestd1a/conftest.h
21092 #define DEFINED_IN_CONFTESTD1
21093 #include_next <conftest.h>
21094 #ifdef DEFINED_IN_CONFTESTD2
21095 int foo;
21096 #else
21097 #error "include_next doesn't work"
21098 #endif
21099 EOF
21100      cat <<EOF > conftestd1b/conftest.h
21101 #define DEFINED_IN_CONFTESTD1
21102 #include <stdio.h>
21103 #include_next <conftest.h>
21104 #ifdef DEFINED_IN_CONFTESTD2
21105 int foo;
21106 #else
21107 #error "include_next doesn't work"
21108 #endif
21109 EOF
21110      cat <<EOF > conftestd2/conftest.h
21111 #ifndef DEFINED_IN_CONFTESTD1
21112 #error "include_next test doesn't work"
21113 #endif
21114 #define DEFINED_IN_CONFTESTD2
21115 EOF
21116      gl_save_CPPFLAGS="$CPPFLAGS"
21117      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
21118      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21119 /* end confdefs.h.  */
21120 #include <conftest.h>
21121 _ACEOF
21122 if ac_fn_c_try_compile "$LINENO"; then :
21123   gl_cv_have_include_next=yes
21124 else
21125   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
21126         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21127 /* end confdefs.h.  */
21128 #include <conftest.h>
21129 _ACEOF
21130 if ac_fn_c_try_compile "$LINENO"; then :
21131   gl_cv_have_include_next=buggy
21132 else
21133   gl_cv_have_include_next=no
21134 fi
21135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21136
21137 fi
21138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21139      CPPFLAGS="$gl_save_CPPFLAGS"
21140      rm -rf conftestd1a conftestd1b conftestd2
21141
21142 fi
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
21144 $as_echo "$gl_cv_have_include_next" >&6; }
21145   PRAGMA_SYSTEM_HEADER=
21146   if test $gl_cv_have_include_next = yes; then
21147     INCLUDE_NEXT=include_next
21148     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
21149     if test -n "$GCC"; then
21150       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
21151     fi
21152   else
21153     if test $gl_cv_have_include_next = buggy; then
21154       INCLUDE_NEXT=include
21155       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
21156     else
21157       INCLUDE_NEXT=include
21158       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
21159     fi
21160   fi
21161
21162
21163
21164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
21165 $as_echo_n "checking whether system header files limit the line length... " >&6; }
21166 if ${gl_cv_pragma_columns+:} false; then :
21167   $as_echo_n "(cached) " >&6
21168 else
21169        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21170 /* end confdefs.h.  */
21171
21172 #ifdef __TANDEM
21173 choke me
21174 #endif
21175
21176 _ACEOF
21177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21178   $EGREP "choke me" >/dev/null 2>&1; then :
21179   gl_cv_pragma_columns=yes
21180 else
21181   gl_cv_pragma_columns=no
21182 fi
21183 rm -f conftest*
21184
21185
21186 fi
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
21188 $as_echo "$gl_cv_pragma_columns" >&6; }
21189   if test $gl_cv_pragma_columns = yes; then
21190     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
21191   else
21192     PRAGMA_COLUMNS=
21193   fi
21194
21195
21196
21197
21198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
21199 $as_echo_n "checking for complete errno.h... " >&6; }
21200 if ${gl_cv_header_errno_h_complete+:} false; then :
21201   $as_echo_n "(cached) " >&6
21202 else
21203
21204     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21205 /* end confdefs.h.  */
21206
21207 #include <errno.h>
21208 #if !defined ETXTBSY
21209 booboo
21210 #endif
21211 #if !defined ENOMSG
21212 booboo
21213 #endif
21214 #if !defined EIDRM
21215 booboo
21216 #endif
21217 #if !defined ENOLINK
21218 booboo
21219 #endif
21220 #if !defined EPROTO
21221 booboo
21222 #endif
21223 #if !defined EMULTIHOP
21224 booboo
21225 #endif
21226 #if !defined EBADMSG
21227 booboo
21228 #endif
21229 #if !defined EOVERFLOW
21230 booboo
21231 #endif
21232 #if !defined ENOTSUP
21233 booboo
21234 #endif
21235 #if !defined ENETRESET
21236 booboo
21237 #endif
21238 #if !defined ECONNABORTED
21239 booboo
21240 #endif
21241 #if !defined ESTALE
21242 booboo
21243 #endif
21244 #if !defined EDQUOT
21245 booboo
21246 #endif
21247 #if !defined ECANCELED
21248 booboo
21249 #endif
21250 #if !defined EOWNERDEAD
21251 booboo
21252 #endif
21253 #if !defined ENOTRECOVERABLE
21254 booboo
21255 #endif
21256 #if !defined EILSEQ
21257 booboo
21258 #endif
21259
21260 _ACEOF
21261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21262   $EGREP "booboo" >/dev/null 2>&1; then :
21263   gl_cv_header_errno_h_complete=no
21264 else
21265   gl_cv_header_errno_h_complete=yes
21266 fi
21267 rm -f conftest*
21268
21269
21270 fi
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
21272 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
21273   if test $gl_cv_header_errno_h_complete = yes; then
21274     ERRNO_H=''
21275   else
21276
21277
21278
21279
21280
21281
21282
21283
21284      if test $gl_cv_have_include_next = yes; then
21285        gl_cv_next_errno_h='<'errno.h'>'
21286      else
21287        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
21288 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
21289 if ${gl_cv_next_errno_h+:} false; then :
21290   $as_echo_n "(cached) " >&6
21291 else
21292
21293
21294
21295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21296 /* end confdefs.h.  */
21297 #include <errno.h>
21298 _ACEOF
21299                 case "$host_os" in
21300     aix*) gl_absname_cpp="$ac_cpp -C" ;;
21301     *)    gl_absname_cpp="$ac_cpp" ;;
21302   esac
21303
21304   case "$host_os" in
21305     mingw*)
21306                                           gl_dirsep_regex='[/\\]'
21307       ;;
21308     *)
21309       gl_dirsep_regex='\/'
21310       ;;
21311   esac
21312       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21313   gl_header_literal_regex=`echo 'errno.h' \
21314                            | sed -e "$gl_make_literal_regex_sed"`
21315   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21316       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21317       s|^/[^/]|//&|
21318       p
21319       q
21320     }'
21321
21322         gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21323   sed -n "$gl_absolute_header_sed"`
21324
21325            gl_header=$gl_cv_absolute_errno_h
21326            gl_cv_next_errno_h='"'$gl_header'"'
21327
21328
21329 fi
21330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
21331 $as_echo "$gl_cv_next_errno_h" >&6; }
21332      fi
21333      NEXT_ERRNO_H=$gl_cv_next_errno_h
21334
21335      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21336        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21337        gl_next_as_first_directive='<'errno.h'>'
21338      else
21339        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21340        gl_next_as_first_directive=$gl_cv_next_errno_h
21341      fi
21342      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
21343
21344
21345
21346
21347     ERRNO_H='errno.h'
21348   fi
21349
21350    if test -n "$ERRNO_H"; then
21351   GL_GENERATE_ERRNO_H_TRUE=
21352   GL_GENERATE_ERRNO_H_FALSE='#'
21353 else
21354   GL_GENERATE_ERRNO_H_TRUE='#'
21355   GL_GENERATE_ERRNO_H_FALSE=
21356 fi
21357
21358
21359   if test -n "$ERRNO_H"; then
21360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
21361 $as_echo_n "checking for EMULTIHOP value... " >&6; }
21362 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
21363   $as_echo_n "(cached) " >&6
21364 else
21365
21366       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21367 /* end confdefs.h.  */
21368
21369 #include <errno.h>
21370 #ifdef EMULTIHOP
21371 yes
21372 #endif
21373
21374 _ACEOF
21375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21376   $EGREP "yes" >/dev/null 2>&1; then :
21377   gl_cv_header_errno_h_EMULTIHOP=yes
21378 else
21379   gl_cv_header_errno_h_EMULTIHOP=no
21380 fi
21381 rm -f conftest*
21382
21383       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
21384         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21385 /* end confdefs.h.  */
21386
21387 #define _XOPEN_SOURCE_EXTENDED 1
21388 #include <errno.h>
21389 #ifdef EMULTIHOP
21390 yes
21391 #endif
21392
21393 _ACEOF
21394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21395   $EGREP "yes" >/dev/null 2>&1; then :
21396   gl_cv_header_errno_h_EMULTIHOP=hidden
21397 fi
21398 rm -f conftest*
21399
21400         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
21401                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
21402 #define _XOPEN_SOURCE_EXTENDED 1
21403 #include <errno.h>
21404 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
21405 #include <stdio.h>
21406 #include <stdlib.h>
21407 "; then :
21408
21409 fi
21410
21411         fi
21412       fi
21413
21414 fi
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
21416 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
21417     case $gl_cv_header_errno_h_EMULTIHOP in
21418       yes | no)
21419         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
21420         ;;
21421       *)
21422         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
21423         ;;
21424     esac
21425
21426
21427   fi
21428
21429
21430   if test -n "$ERRNO_H"; then
21431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
21432 $as_echo_n "checking for ENOLINK value... " >&6; }
21433 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
21434   $as_echo_n "(cached) " >&6
21435 else
21436
21437       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21438 /* end confdefs.h.  */
21439
21440 #include <errno.h>
21441 #ifdef ENOLINK
21442 yes
21443 #endif
21444
21445 _ACEOF
21446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21447   $EGREP "yes" >/dev/null 2>&1; then :
21448   gl_cv_header_errno_h_ENOLINK=yes
21449 else
21450   gl_cv_header_errno_h_ENOLINK=no
21451 fi
21452 rm -f conftest*
21453
21454       if test $gl_cv_header_errno_h_ENOLINK = no; then
21455         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21456 /* end confdefs.h.  */
21457
21458 #define _XOPEN_SOURCE_EXTENDED 1
21459 #include <errno.h>
21460 #ifdef ENOLINK
21461 yes
21462 #endif
21463
21464 _ACEOF
21465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21466   $EGREP "yes" >/dev/null 2>&1; then :
21467   gl_cv_header_errno_h_ENOLINK=hidden
21468 fi
21469 rm -f conftest*
21470
21471         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
21472                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
21473 #define _XOPEN_SOURCE_EXTENDED 1
21474 #include <errno.h>
21475 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
21476 #include <stdio.h>
21477 #include <stdlib.h>
21478 "; then :
21479
21480 fi
21481
21482         fi
21483       fi
21484
21485 fi
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
21487 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
21488     case $gl_cv_header_errno_h_ENOLINK in
21489       yes | no)
21490         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
21491         ;;
21492       *)
21493         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
21494         ;;
21495     esac
21496
21497
21498   fi
21499
21500
21501   if test -n "$ERRNO_H"; then
21502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
21503 $as_echo_n "checking for EOVERFLOW value... " >&6; }
21504 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
21505   $as_echo_n "(cached) " >&6
21506 else
21507
21508       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21509 /* end confdefs.h.  */
21510
21511 #include <errno.h>
21512 #ifdef EOVERFLOW
21513 yes
21514 #endif
21515
21516 _ACEOF
21517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21518   $EGREP "yes" >/dev/null 2>&1; then :
21519   gl_cv_header_errno_h_EOVERFLOW=yes
21520 else
21521   gl_cv_header_errno_h_EOVERFLOW=no
21522 fi
21523 rm -f conftest*
21524
21525       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
21526         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21527 /* end confdefs.h.  */
21528
21529 #define _XOPEN_SOURCE_EXTENDED 1
21530 #include <errno.h>
21531 #ifdef EOVERFLOW
21532 yes
21533 #endif
21534
21535 _ACEOF
21536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21537   $EGREP "yes" >/dev/null 2>&1; then :
21538   gl_cv_header_errno_h_EOVERFLOW=hidden
21539 fi
21540 rm -f conftest*
21541
21542         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
21543                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
21544 #define _XOPEN_SOURCE_EXTENDED 1
21545 #include <errno.h>
21546 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
21547 #include <stdio.h>
21548 #include <stdlib.h>
21549 "; then :
21550
21551 fi
21552
21553         fi
21554       fi
21555
21556 fi
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
21558 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
21559     case $gl_cv_header_errno_h_EOVERFLOW in
21560       yes | no)
21561         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
21562         ;;
21563       *)
21564         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
21565         ;;
21566     esac
21567
21568
21569   fi
21570
21571
21572 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
21573 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
21574   ac_have_decl=1
21575 else
21576   ac_have_decl=0
21577 fi
21578
21579 cat >>confdefs.h <<_ACEOF
21580 #define HAVE_DECL_STRERROR_R $ac_have_decl
21581 _ACEOF
21582
21583 for ac_func in strerror_r
21584 do :
21585   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
21586 if test "x$ac_cv_func_strerror_r" = xyes; then :
21587   cat >>confdefs.h <<_ACEOF
21588 #define HAVE_STRERROR_R 1
21589 _ACEOF
21590
21591 fi
21592 done
21593
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
21595 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
21596 if ${ac_cv_func_strerror_r_char_p+:} false; then :
21597   $as_echo_n "(cached) " >&6
21598 else
21599
21600     ac_cv_func_strerror_r_char_p=no
21601     if test $ac_cv_have_decl_strerror_r = yes; then
21602       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21603 /* end confdefs.h.  */
21604 $ac_includes_default
21605 int
21606 main ()
21607 {
21608
21609           char buf[100];
21610           char x = *strerror_r (0, buf, sizeof buf);
21611           char *p = strerror_r (0, buf, sizeof buf);
21612           return !p || x;
21613
21614   ;
21615   return 0;
21616 }
21617 _ACEOF
21618 if ac_fn_c_try_compile "$LINENO"; then :
21619   ac_cv_func_strerror_r_char_p=yes
21620 fi
21621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21622     else
21623       # strerror_r is not declared.  Choose between
21624       # systems that have relatively inaccessible declarations for the
21625       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
21626       # former has a strerror_r that returns char*, while the latter
21627       # has a strerror_r that returns `int'.
21628       # This test should segfault on the DEC system.
21629       if test "$cross_compiling" = yes; then :
21630   :
21631 else
21632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21633 /* end confdefs.h.  */
21634 $ac_includes_default
21635         extern char *strerror_r ();
21636 int
21637 main ()
21638 {
21639 char buf[100];
21640           char x = *strerror_r (0, buf, sizeof buf);
21641           return ! isalpha (x);
21642   ;
21643   return 0;
21644 }
21645 _ACEOF
21646 if ac_fn_c_try_run "$LINENO"; then :
21647   ac_cv_func_strerror_r_char_p=yes
21648 fi
21649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21650   conftest.$ac_objext conftest.beam conftest.$ac_ext
21651 fi
21652
21653     fi
21654
21655 fi
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
21657 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
21658 if test $ac_cv_func_strerror_r_char_p = yes; then
21659
21660 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
21661
21662 fi
21663
21664
21665   XGETTEXT_EXTRA_OPTIONS=
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682      if test $gl_cv_have_include_next = yes; then
21683        gl_cv_next_getopt_h='<'getopt.h'>'
21684      else
21685        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
21686 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
21687 if ${gl_cv_next_getopt_h+:} false; then :
21688   $as_echo_n "(cached) " >&6
21689 else
21690
21691              if test $ac_cv_header_getopt_h = yes; then
21692
21693
21694
21695
21696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21697 /* end confdefs.h.  */
21698 #include <getopt.h>
21699 _ACEOF
21700                 case "$host_os" in
21701     aix*) gl_absname_cpp="$ac_cpp -C" ;;
21702     *)    gl_absname_cpp="$ac_cpp" ;;
21703   esac
21704
21705   case "$host_os" in
21706     mingw*)
21707                                           gl_dirsep_regex='[/\\]'
21708       ;;
21709     *)
21710       gl_dirsep_regex='\/'
21711       ;;
21712   esac
21713       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21714   gl_header_literal_regex=`echo 'getopt.h' \
21715                            | sed -e "$gl_make_literal_regex_sed"`
21716   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21717       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21718       s|^/[^/]|//&|
21719       p
21720       q
21721     }'
21722
21723         gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21724   sed -n "$gl_absolute_header_sed"`
21725
21726            gl_header=$gl_cv_absolute_getopt_h
21727            gl_cv_next_getopt_h='"'$gl_header'"'
21728           else
21729                gl_cv_next_getopt_h='<'getopt.h'>'
21730              fi
21731
21732
21733 fi
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
21735 $as_echo "$gl_cv_next_getopt_h" >&6; }
21736      fi
21737      NEXT_GETOPT_H=$gl_cv_next_getopt_h
21738
21739      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21740        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21741        gl_next_as_first_directive='<'getopt.h'>'
21742      else
21743        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21744        gl_next_as_first_directive=$gl_cv_next_getopt_h
21745      fi
21746      NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
21747
21748
21749
21750
21751   if test $ac_cv_header_getopt_h = yes; then
21752     HAVE_GETOPT_H=1
21753   else
21754     HAVE_GETOPT_H=0
21755   fi
21756
21757
21758   gl_replace_getopt=
21759
21760     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21761     for ac_header in getopt.h
21762 do :
21763   ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
21764 if test "x$ac_cv_header_getopt_h" = xyes; then :
21765   cat >>confdefs.h <<_ACEOF
21766 #define HAVE_GETOPT_H 1
21767 _ACEOF
21768
21769 else
21770   gl_replace_getopt=yes
21771 fi
21772
21773 done
21774
21775   fi
21776
21777     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21778     for ac_func in getopt_long_only
21779 do :
21780   ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
21781 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
21782   cat >>confdefs.h <<_ACEOF
21783 #define HAVE_GETOPT_LONG_ONLY 1
21784 _ACEOF
21785
21786 else
21787   gl_replace_getopt=yes
21788 fi
21789 done
21790
21791   fi
21792
21793           if test -z "$gl_replace_getopt"; then
21794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
21795 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
21796 if ${gl_cv_func_getopt_posix+:} false; then :
21797   $as_echo_n "(cached) " >&6
21798 else
21799
21800                                                 if test $cross_compiling = no; then
21801                               if test "$cross_compiling" = yes; then :
21802   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21804 as_fn_error $? "cannot run test program while cross compiling
21805 See \`config.log' for more details" "$LINENO" 5; }
21806 else
21807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21808 /* end confdefs.h.  */
21809
21810 #include <unistd.h>
21811 #include <stdlib.h>
21812 #include <string.h>
21813
21814 int
21815 main ()
21816 {
21817   static char program[] = "program";
21818   static char a[] = "-a";
21819   static char foo[] = "foo";
21820   static char bar[] = "bar";
21821   char *argv[] = { program, a, foo, bar, NULL };
21822   int c;
21823
21824   c = getopt (4, argv, "ab");
21825   if (!(c == 'a'))
21826     return 1;
21827   c = getopt (4, argv, "ab");
21828   if (!(c == -1))
21829     return 2;
21830   if (!(optind == 2))
21831     return 3;
21832   return 0;
21833 }
21834
21835 _ACEOF
21836 if ac_fn_c_try_run "$LINENO"; then :
21837   gl_cv_func_getopt_posix=maybe
21838 else
21839   gl_cv_func_getopt_posix=no
21840 fi
21841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21842   conftest.$ac_objext conftest.beam conftest.$ac_ext
21843 fi
21844
21845           if test $gl_cv_func_getopt_posix = maybe; then
21846                                     if test "$cross_compiling" = yes; then :
21847   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21849 as_fn_error $? "cannot run test program while cross compiling
21850 See \`config.log' for more details" "$LINENO" 5; }
21851 else
21852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21853 /* end confdefs.h.  */
21854
21855 #include <unistd.h>
21856 #include <stdlib.h>
21857 #include <string.h>
21858
21859 int
21860 main ()
21861 {
21862   static char program[] = "program";
21863   static char donald[] = "donald";
21864   static char p[] = "-p";
21865   static char billy[] = "billy";
21866   static char duck[] = "duck";
21867   static char a[] = "-a";
21868   static char bar[] = "bar";
21869   char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
21870   int c;
21871
21872   c = getopt (7, argv, "+abp:q:");
21873   if (!(c == -1))
21874     return 4;
21875   if (!(strcmp (argv[0], "program") == 0))
21876     return 5;
21877   if (!(strcmp (argv[1], "donald") == 0))
21878     return 6;
21879   if (!(strcmp (argv[2], "-p") == 0))
21880     return 7;
21881   if (!(strcmp (argv[3], "billy") == 0))
21882     return 8;
21883   if (!(strcmp (argv[4], "duck") == 0))
21884     return 9;
21885   if (!(strcmp (argv[5], "-a") == 0))
21886     return 10;
21887   if (!(strcmp (argv[6], "bar") == 0))
21888     return 11;
21889   if (!(optind == 1))
21890     return 12;
21891   return 0;
21892 }
21893
21894 _ACEOF
21895 if ac_fn_c_try_run "$LINENO"; then :
21896   gl_cv_func_getopt_posix=maybe
21897 else
21898   gl_cv_func_getopt_posix=no
21899 fi
21900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21901   conftest.$ac_objext conftest.beam conftest.$ac_ext
21902 fi
21903
21904           fi
21905           if test $gl_cv_func_getopt_posix = maybe; then
21906                         if test "$cross_compiling" = yes; then :
21907   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21909 as_fn_error $? "cannot run test program while cross compiling
21910 See \`config.log' for more details" "$LINENO" 5; }
21911 else
21912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21913 /* end confdefs.h.  */
21914
21915 #include <unistd.h>
21916 #include <stdlib.h>
21917 #include <string.h>
21918
21919 int
21920 main ()
21921 {
21922   static char program[] = "program";
21923   static char ab[] = "-ab";
21924   char *argv[3] = { program, ab, NULL };
21925   if (getopt (2, argv, "ab:") != 'a')
21926     return 13;
21927   if (getopt (2, argv, "ab:") != '?')
21928     return 14;
21929   if (optopt != 'b')
21930     return 15;
21931   if (optind != 2)
21932     return 16;
21933   return 0;
21934 }
21935
21936 _ACEOF
21937 if ac_fn_c_try_run "$LINENO"; then :
21938   gl_cv_func_getopt_posix=yes
21939 else
21940   gl_cv_func_getopt_posix=no
21941 fi
21942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21943   conftest.$ac_objext conftest.beam conftest.$ac_ext
21944 fi
21945
21946           fi
21947         else
21948           case "$host_os" in
21949             darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
21950             *)                       gl_cv_func_getopt_posix="guessing yes";;
21951           esac
21952         fi
21953
21954 fi
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
21956 $as_echo "$gl_cv_func_getopt_posix" >&6; }
21957     case "$gl_cv_func_getopt_posix" in
21958       *no) gl_replace_getopt=yes ;;
21959     esac
21960   fi
21961
21962   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
21964 $as_echo_n "checking for working GNU getopt function... " >&6; }
21965 if ${gl_cv_func_getopt_gnu+:} false; then :
21966   $as_echo_n "(cached) " >&6
21967 else
21968   # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
21969        # optstring is necessary for programs like m4 that have POSIX-mandated
21970        # semantics for supporting options interspersed with files.
21971        # Also, since getopt_long is a GNU extension, we require optind=0.
21972        # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
21973        # so take care to revert to the correct (non-)export state.
21974        gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
21975        case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
21976          xx) gl_had_POSIXLY_CORRECT=exported ;;
21977          x)  gl_had_POSIXLY_CORRECT=yes      ;;
21978          *)  gl_had_POSIXLY_CORRECT=         ;;
21979        esac
21980        POSIXLY_CORRECT=1
21981        export POSIXLY_CORRECT
21982        if test "$cross_compiling" = yes; then :
21983            gl_cv_func_getopt_gnu="guessing no"
21984
21985 else
21986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21987 /* end confdefs.h.  */
21988 #include <getopt.h>
21989                            #include <stddef.h>
21990                            #include <string.h>
21991
21992 #include <stdlib.h>
21993 #if defined __MACH__ && defined __APPLE__
21994 /* Avoid a crash on Mac OS X.  */
21995 #include <mach/mach.h>
21996 #include <mach/mach_error.h>
21997 #include <mach/thread_status.h>
21998 #include <mach/exception.h>
21999 #include <mach/task.h>
22000 #include <pthread.h>
22001 /* The exception port on which our thread listens.  */
22002 static mach_port_t our_exception_port;
22003 /* The main function of the thread listening for exceptions of type
22004    EXC_BAD_ACCESS.  */
22005 static void *
22006 mach_exception_thread (void *arg)
22007 {
22008   /* Buffer for a message to be received.  */
22009   struct {
22010     mach_msg_header_t head;
22011     mach_msg_body_t msgh_body;
22012     char data[1024];
22013   } msg;
22014   mach_msg_return_t retval;
22015   /* Wait for a message on the exception port.  */
22016   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
22017                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
22018   if (retval != MACH_MSG_SUCCESS)
22019     abort ();
22020   exit (1);
22021 }
22022 static void
22023 nocrash_init (void)
22024 {
22025   mach_port_t self = mach_task_self ();
22026   /* Allocate a port on which the thread shall listen for exceptions.  */
22027   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
22028       == KERN_SUCCESS) {
22029     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
22030     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
22031                                 MACH_MSG_TYPE_MAKE_SEND)
22032         == KERN_SUCCESS) {
22033       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
22034          for us.  */
22035       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
22036       /* Create the thread listening on the exception port.  */
22037       pthread_attr_t attr;
22038       pthread_t thread;
22039       if (pthread_attr_init (&attr) == 0
22040           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
22041           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
22042         pthread_attr_destroy (&attr);
22043         /* Replace the exception port info for these exceptions with our own.
22044            Note that we replace the exception port for the entire task, not only
22045            for a particular thread.  This has the effect that when our exception
22046            port gets the message, the thread specific exception port has already
22047            been asked, and we don't need to bother about it.
22048            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
22049         task_set_exception_ports (self, mask, our_exception_port,
22050                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
22051       }
22052     }
22053   }
22054 }
22055 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
22056 /* Avoid a crash on native Windows.  */
22057 #define WIN32_LEAN_AND_MEAN
22058 #include <windows.h>
22059 #include <winerror.h>
22060 static LONG WINAPI
22061 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
22062 {
22063   switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
22064     {
22065     case EXCEPTION_ACCESS_VIOLATION:
22066     case EXCEPTION_IN_PAGE_ERROR:
22067     case EXCEPTION_STACK_OVERFLOW:
22068     case EXCEPTION_GUARD_PAGE:
22069     case EXCEPTION_PRIV_INSTRUCTION:
22070     case EXCEPTION_ILLEGAL_INSTRUCTION:
22071     case EXCEPTION_DATATYPE_MISALIGNMENT:
22072     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
22073     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
22074       exit (1);
22075     }
22076   return EXCEPTION_CONTINUE_SEARCH;
22077 }
22078 static void
22079 nocrash_init (void)
22080 {
22081   SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
22082 }
22083 #else
22084 /* Avoid a crash on POSIX systems.  */
22085 #include <signal.h>
22086 #include <unistd.h>
22087 /* A POSIX signal handler.  */
22088 static void
22089 exception_handler (int sig)
22090 {
22091   _exit (1);
22092 }
22093 static void
22094 nocrash_init (void)
22095 {
22096 #ifdef SIGSEGV
22097   signal (SIGSEGV, exception_handler);
22098 #endif
22099 #ifdef SIGBUS
22100   signal (SIGBUS, exception_handler);
22101 #endif
22102 }
22103 #endif
22104
22105
22106 int
22107 main ()
22108 {
22109
22110              int result = 0;
22111
22112              nocrash_init();
22113
22114              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
22115                 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
22116                 OSF/1 5.1, Solaris 10.  */
22117              {
22118                static char conftest[] = "conftest";
22119                static char plus[] = "-+";
22120                char *argv[3] = { conftest, plus, NULL };
22121                opterr = 0;
22122                if (getopt (2, argv, "+a") != '?')
22123                  result |= 1;
22124              }
22125              /* This code succeeds on glibc 2.8, mingw,
22126                 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
22127                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
22128              {
22129                static char program[] = "program";
22130                static char p[] = "-p";
22131                static char foo[] = "foo";
22132                static char bar[] = "bar";
22133                char *argv[] = { program, p, foo, bar, NULL };
22134
22135                optind = 1;
22136                if (getopt (4, argv, "p::") != 'p')
22137                  result |= 2;
22138                else if (optarg != NULL)
22139                  result |= 4;
22140                else if (getopt (4, argv, "p::") != -1)
22141                  result |= 6;
22142                else if (optind != 2)
22143                  result |= 8;
22144              }
22145              /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
22146              {
22147                static char program[] = "program";
22148                static char foo[] = "foo";
22149                static char p[] = "-p";
22150                char *argv[] = { program, foo, p, NULL };
22151                optind = 0;
22152                if (getopt (3, argv, "-p") != 1)
22153                  result |= 16;
22154                else if (getopt (3, argv, "-p") != 'p')
22155                  result |= 16;
22156              }
22157              /* This code fails on glibc 2.11.  */
22158              {
22159                static char program[] = "program";
22160                static char b[] = "-b";
22161                static char a[] = "-a";
22162                char *argv[] = { program, b, a, NULL };
22163                optind = opterr = 0;
22164                if (getopt (3, argv, "+:a:b") != 'b')
22165                  result |= 32;
22166                else if (getopt (3, argv, "+:a:b") != ':')
22167                  result |= 32;
22168              }
22169              /* This code dumps core on glibc 2.14.  */
22170              {
22171                static char program[] = "program";
22172                static char w[] = "-W";
22173                static char dummy[] = "dummy";
22174                char *argv[] = { program, w, dummy, NULL };
22175                optind = opterr = 1;
22176                if (getopt (3, argv, "W;") != 'W')
22177                  result |= 64;
22178              }
22179              return result;
22180
22181   ;
22182   return 0;
22183 }
22184 _ACEOF
22185 if ac_fn_c_try_run "$LINENO"; then :
22186   gl_cv_func_getopt_gnu=yes
22187 else
22188   gl_cv_func_getopt_gnu=no
22189 fi
22190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22191   conftest.$ac_objext conftest.beam conftest.$ac_ext
22192 fi
22193
22194        case $gl_had_POSIXLY_CORRECT in
22195          exported) ;;
22196          yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
22197          *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
22198        esac
22199
22200 fi
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
22202 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
22203     if test "$gl_cv_func_getopt_gnu" != yes; then
22204       gl_replace_getopt=yes
22205     else
22206       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
22207 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
22208 if ${gl_cv_func_getopt_long_gnu+:} false; then :
22209   $as_echo_n "(cached) " >&6
22210 else
22211   if test "$cross_compiling" = yes; then :
22212               case "$host_os" in
22213               openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
22214               *)        gl_cv_func_getopt_long_gnu="guessing yes";;
22215             esac
22216
22217 else
22218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22219 /* end confdefs.h.  */
22220 #include <getopt.h>
22221                 #include <stddef.h>
22222                 #include <string.h>
22223
22224 int
22225 main ()
22226 {
22227 static const struct option long_options[] =
22228                   {
22229                     { "xtremely-",no_argument,       NULL, 1003 },
22230                     { "xtra",     no_argument,       NULL, 1001 },
22231                     { "xtreme",   no_argument,       NULL, 1002 },
22232                     { "xtremely", no_argument,       NULL, 1003 },
22233                     { NULL,       0,                 NULL, 0 }
22234                   };
22235                 /* This code fails on OpenBSD 5.0.  */
22236                 {
22237                   static char program[] = "program";
22238                   static char xtremel[] = "--xtremel";
22239                   char *argv[] = { program, xtremel, NULL };
22240                   int option_index;
22241                   optind = 1; opterr = 0;
22242                   if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
22243                     return 1;
22244                 }
22245                 return 0;
22246
22247   ;
22248   return 0;
22249 }
22250 _ACEOF
22251 if ac_fn_c_try_run "$LINENO"; then :
22252   gl_cv_func_getopt_long_gnu=yes
22253 else
22254   gl_cv_func_getopt_long_gnu=no
22255 fi
22256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22257   conftest.$ac_objext conftest.beam conftest.$ac_ext
22258 fi
22259
22260
22261 fi
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
22263 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
22264       case "$gl_cv_func_getopt_long_gnu" in
22265         *yes) ;;
22266         *) gl_replace_getopt=yes ;;
22267       esac
22268     fi
22269   fi
22270
22271
22272
22273
22274
22275
22276     REPLACE_GETOPT=0
22277     if test -n "$gl_replace_getopt"; then
22278       REPLACE_GETOPT=1
22279     fi
22280
22281   if test $REPLACE_GETOPT = 1; then
22282
22283   GETOPT_H=getopt.h
22284
22285 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
22286
22287
22288
22289   fi
22290
22291 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
22292 if test "x$ac_cv_have_decl_getenv" = xyes; then :
22293   ac_have_decl=1
22294 else
22295   ac_have_decl=0
22296 fi
22297
22298 cat >>confdefs.h <<_ACEOF
22299 #define HAVE_DECL_GETENV $ac_have_decl
22300 _ACEOF
22301
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
22303 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
22304 if ${ac_cv_c_restrict+:} false; then :
22305   $as_echo_n "(cached) " >&6
22306 else
22307   ac_cv_c_restrict=no
22308    # The order here caters to the fact that C++ does not require restrict.
22309    for ac_kw in __restrict __restrict__ _Restrict restrict; do
22310      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22311 /* end confdefs.h.  */
22312 typedef int *int_ptr;
22313            int foo (int_ptr $ac_kw ip) { return ip[0]; }
22314            int bar (int [$ac_kw]); /* Catch GCC bug 14050.  */
22315            int bar (int ip[$ac_kw]) { return ip[0]; }
22316
22317 int
22318 main ()
22319 {
22320 int s[1];
22321            int *$ac_kw t = s;
22322            t[0] = 0;
22323            return foo (t) + bar (t);
22324
22325   ;
22326   return 0;
22327 }
22328 _ACEOF
22329 if ac_fn_c_try_compile "$LINENO"; then :
22330   ac_cv_c_restrict=$ac_kw
22331 fi
22332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22333      test "$ac_cv_c_restrict" != no && break
22334    done
22335
22336 fi
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
22338 $as_echo "$ac_cv_c_restrict" >&6; }
22339
22340  case $ac_cv_c_restrict in
22341    restrict) ;;
22342    no) $as_echo "#define restrict /**/" >>confdefs.h
22343  ;;
22344    *)  cat >>confdefs.h <<_ACEOF
22345 #define restrict $ac_cv_c_restrict
22346 _ACEOF
22347  ;;
22348  esac
22349
22350
22351   GNULIB_GETTIMEOFDAY=0;
22352     HAVE_GETTIMEOFDAY=1;
22353   HAVE_STRUCT_TIMEVAL=1;
22354   HAVE_SYS_TIME_H=1;
22355   HAVE_TIMEZONE_T=0;
22356   REPLACE_GETTIMEOFDAY=0;
22357   REPLACE_STRUCT_TIMEVAL=0;
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376      if test $gl_cv_have_include_next = yes; then
22377        gl_cv_next_sys_time_h='<'sys/time.h'>'
22378      else
22379        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
22380 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
22381 if ${gl_cv_next_sys_time_h+:} false; then :
22382   $as_echo_n "(cached) " >&6
22383 else
22384
22385              if test $ac_cv_header_sys_time_h = yes; then
22386
22387
22388
22389
22390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22391 /* end confdefs.h.  */
22392 #include <sys/time.h>
22393 _ACEOF
22394                 case "$host_os" in
22395     aix*) gl_absname_cpp="$ac_cpp -C" ;;
22396     *)    gl_absname_cpp="$ac_cpp" ;;
22397   esac
22398
22399   case "$host_os" in
22400     mingw*)
22401                                           gl_dirsep_regex='[/\\]'
22402       ;;
22403     *)
22404       gl_dirsep_regex='\/'
22405       ;;
22406   esac
22407       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22408   gl_header_literal_regex=`echo 'sys/time.h' \
22409                            | sed -e "$gl_make_literal_regex_sed"`
22410   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22411       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22412       s|^/[^/]|//&|
22413       p
22414       q
22415     }'
22416
22417         gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22418   sed -n "$gl_absolute_header_sed"`
22419
22420            gl_header=$gl_cv_absolute_sys_time_h
22421            gl_cv_next_sys_time_h='"'$gl_header'"'
22422           else
22423                gl_cv_next_sys_time_h='<'sys/time.h'>'
22424              fi
22425
22426
22427 fi
22428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
22429 $as_echo "$gl_cv_next_sys_time_h" >&6; }
22430      fi
22431      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
22432
22433      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22434        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22435        gl_next_as_first_directive='<'sys/time.h'>'
22436      else
22437        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22438        gl_next_as_first_directive=$gl_cv_next_sys_time_h
22439      fi
22440      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
22441
22442
22443
22444
22445
22446   if test $ac_cv_header_sys_time_h != yes; then
22447     HAVE_SYS_TIME_H=0
22448   fi
22449
22450
22451
22452
22453
22454   if test $ac_cv_header_sys_socket_h != yes; then
22455                     for ac_header in winsock2.h
22456 do :
22457   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22458 if test "x$ac_cv_header_winsock2_h" = xyes; then :
22459   cat >>confdefs.h <<_ACEOF
22460 #define HAVE_WINSOCK2_H 1
22461 _ACEOF
22462
22463 fi
22464
22465 done
22466
22467   fi
22468   if test "$ac_cv_header_winsock2_h" = yes; then
22469     HAVE_WINSOCK2_H=1
22470     UNISTD_H_HAVE_WINSOCK2_H=1
22471     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
22472   else
22473     HAVE_WINSOCK2_H=0
22474   fi
22475
22476
22477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
22478 $as_echo_n "checking for struct timeval... " >&6; }
22479 if ${gl_cv_sys_struct_timeval+:} false; then :
22480   $as_echo_n "(cached) " >&6
22481 else
22482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22483 /* end confdefs.h.  */
22484 #if HAVE_SYS_TIME_H
22485              #include <sys/time.h>
22486             #endif
22487             #include <time.h>
22488             #if HAVE_WINSOCK2_H
22489             # include <winsock2.h>
22490             #endif
22491
22492 int
22493 main ()
22494 {
22495 static struct timeval x; x.tv_sec = x.tv_usec;
22496   ;
22497   return 0;
22498 }
22499 _ACEOF
22500 if ac_fn_c_try_compile "$LINENO"; then :
22501   gl_cv_sys_struct_timeval=yes
22502 else
22503   gl_cv_sys_struct_timeval=no
22504 fi
22505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22506
22507 fi
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
22509 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
22510   if test $gl_cv_sys_struct_timeval != yes; then
22511     HAVE_STRUCT_TIMEVAL=0
22512   else
22513                             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
22514 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
22515 if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then :
22516   $as_echo_n "(cached) " >&6
22517 else
22518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22519 /* end confdefs.h.  */
22520 #if HAVE_SYS_TIME_H
22521                #include <sys/time.h>
22522               #endif
22523               #include <time.h>
22524               #if HAVE_WINSOCK2_H
22525               # include <winsock2.h>
22526               #endif
22527
22528 int
22529 main ()
22530 {
22531 static struct timeval x;
22532               typedef int verify_tv_sec_type[
22533                 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
22534               ];
22535
22536   ;
22537   return 0;
22538 }
22539 _ACEOF
22540 if ac_fn_c_try_compile "$LINENO"; then :
22541   gl_cv_sys_struct_timeval_tv_sec=yes
22542 else
22543   gl_cv_sys_struct_timeval_tv_sec=no
22544 fi
22545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22546
22547 fi
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
22549 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
22550     if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
22551       REPLACE_STRUCT_TIMEVAL=1
22552     fi
22553   fi
22554
22555
22556     for gl_func in gettimeofday; do
22557     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22558     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22559 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22560 if eval \${$as_gl_Symbol+:} false; then :
22561   $as_echo_n "(cached) " >&6
22562 else
22563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22564 /* end confdefs.h.  */
22565
22566 #if HAVE_SYS_TIME_H
22567 # include <sys/time.h>
22568 #endif
22569 #include <time.h>
22570
22571 int
22572 main ()
22573 {
22574 #undef $gl_func
22575   (void) $gl_func;
22576   ;
22577   return 0;
22578 }
22579 _ACEOF
22580 if ac_fn_c_try_compile "$LINENO"; then :
22581   eval "$as_gl_Symbol=yes"
22582 else
22583   eval "$as_gl_Symbol=no"
22584 fi
22585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22586 fi
22587 eval ac_res=\$$as_gl_Symbol
22588                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22589 $as_echo "$ac_res" >&6; }
22590     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22591   cat >>confdefs.h <<_ACEOF
22592 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22593 _ACEOF
22594
22595                      eval ac_cv_have_decl_$gl_func=yes
22596 fi
22597       done
22598
22599
22600
22601
22602
22603
22604
22605
22606
22607
22608   GNULIB_ISWBLANK=0;
22609   GNULIB_WCTYPE=0;
22610   GNULIB_ISWCTYPE=0;
22611   GNULIB_WCTRANS=0;
22612   GNULIB_TOWCTRANS=0;
22613     HAVE_ISWBLANK=1;
22614   HAVE_WCTYPE_T=1;
22615   HAVE_WCTRANS_T=1;
22616   REPLACE_ISWBLANK=0;
22617
22618
22619
22620
22621
22622
22623
22624
22625
22626
22627   if test $ac_cv_func_iswcntrl = yes; then
22628     HAVE_ISWCNTRL=1
22629   else
22630     HAVE_ISWCNTRL=0
22631   fi
22632
22633
22634
22635   if test $gt_cv_c_wint_t = yes; then
22636     HAVE_WINT_T=1
22637   else
22638     HAVE_WINT_T=0
22639   fi
22640
22641
22642
22643
22644
22645
22646
22647
22648
22649
22650
22651      if test $gl_cv_have_include_next = yes; then
22652        gl_cv_next_wctype_h='<'wctype.h'>'
22653      else
22654        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
22655 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
22656 if ${gl_cv_next_wctype_h+:} false; then :
22657   $as_echo_n "(cached) " >&6
22658 else
22659
22660              if test $ac_cv_header_wctype_h = yes; then
22661
22662
22663
22664
22665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22666 /* end confdefs.h.  */
22667 #include <wctype.h>
22668 _ACEOF
22669                 case "$host_os" in
22670     aix*) gl_absname_cpp="$ac_cpp -C" ;;
22671     *)    gl_absname_cpp="$ac_cpp" ;;
22672   esac
22673
22674   case "$host_os" in
22675     mingw*)
22676                                           gl_dirsep_regex='[/\\]'
22677       ;;
22678     *)
22679       gl_dirsep_regex='\/'
22680       ;;
22681   esac
22682       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22683   gl_header_literal_regex=`echo 'wctype.h' \
22684                            | sed -e "$gl_make_literal_regex_sed"`
22685   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22686       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22687       s|^/[^/]|//&|
22688       p
22689       q
22690     }'
22691
22692         gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22693   sed -n "$gl_absolute_header_sed"`
22694
22695            gl_header=$gl_cv_absolute_wctype_h
22696            gl_cv_next_wctype_h='"'$gl_header'"'
22697           else
22698                gl_cv_next_wctype_h='<'wctype.h'>'
22699              fi
22700
22701
22702 fi
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
22704 $as_echo "$gl_cv_next_wctype_h" >&6; }
22705      fi
22706      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
22707
22708      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22709        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22710        gl_next_as_first_directive='<'wctype.h'>'
22711      else
22712        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22713        gl_next_as_first_directive=$gl_cv_next_wctype_h
22714      fi
22715      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
22716
22717
22718
22719
22720   if test $ac_cv_header_wctype_h = yes; then
22721     if test $ac_cv_func_iswcntrl = yes; then
22722                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
22723 $as_echo_n "checking whether iswcntrl works... " >&6; }
22724 if ${gl_cv_func_iswcntrl_works+:} false; then :
22725   $as_echo_n "(cached) " >&6
22726 else
22727
22728           if test "$cross_compiling" = yes; then :
22729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22730 /* end confdefs.h.  */
22731 #include <stdlib.h>
22732                           #if __GNU_LIBRARY__ == 1
22733                           Linux libc5 i18n is broken.
22734                           #endif
22735 int
22736 main ()
22737 {
22738
22739   ;
22740   return 0;
22741 }
22742 _ACEOF
22743 if ac_fn_c_try_compile "$LINENO"; then :
22744   gl_cv_func_iswcntrl_works="guessing yes"
22745 else
22746   gl_cv_func_iswcntrl_works="guessing no"
22747 fi
22748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22749
22750 else
22751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22752 /* end confdefs.h.  */
22753
22754                /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
22755                   included before <wchar.h>.
22756                   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
22757                   must be included before <wchar.h>.  */
22758                #include <stddef.h>
22759                #include <stdio.h>
22760                #include <time.h>
22761                #include <wchar.h>
22762                #include <wctype.h>
22763                int main () { return iswprint ('x') == 0; }
22764
22765 _ACEOF
22766 if ac_fn_c_try_run "$LINENO"; then :
22767   gl_cv_func_iswcntrl_works=yes
22768 else
22769   gl_cv_func_iswcntrl_works=no
22770 fi
22771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22772   conftest.$ac_objext conftest.beam conftest.$ac_ext
22773 fi
22774
22775
22776 fi
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
22778 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
22779     fi
22780     HAVE_WCTYPE_H=1
22781   else
22782     HAVE_WCTYPE_H=0
22783   fi
22784
22785
22786   case "$gl_cv_func_iswcntrl_works" in
22787     *yes) REPLACE_ISWCNTRL=0 ;;
22788     *)    REPLACE_ISWCNTRL=1 ;;
22789   esac
22790
22791
22792   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
22793         :
22794   fi
22795
22796   if test $REPLACE_ISWCNTRL = 1; then
22797     REPLACE_TOWLOWER=1
22798   else
22799     for ac_func in towlower
22800 do :
22801   ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
22802 if test "x$ac_cv_func_towlower" = xyes; then :
22803   cat >>confdefs.h <<_ACEOF
22804 #define HAVE_TOWLOWER 1
22805 _ACEOF
22806
22807 fi
22808 done
22809
22810     if test $ac_cv_func_towlower = yes; then
22811       REPLACE_TOWLOWER=0
22812     else
22813       ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
22814              included before <wchar.h>.
22815              BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
22816              must be included before <wchar.h>.  */
22817           #include <stddef.h>
22818           #include <stdio.h>
22819           #include <time.h>
22820           #include <wchar.h>
22821           #if HAVE_WCTYPE_H
22822           # include <wctype.h>
22823           #endif
22824
22825 "
22826 if test "x$ac_cv_have_decl_towlower" = xyes; then :
22827   ac_have_decl=1
22828 else
22829   ac_have_decl=0
22830 fi
22831
22832 cat >>confdefs.h <<_ACEOF
22833 #define HAVE_DECL_TOWLOWER $ac_have_decl
22834 _ACEOF
22835
22836       if test $ac_cv_have_decl_towlower = yes; then
22837                                 REPLACE_TOWLOWER=1
22838       else
22839         REPLACE_TOWLOWER=0
22840       fi
22841     fi
22842   fi
22843
22844
22845   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
22846         :
22847   fi
22848
22849           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
22850 $as_echo_n "checking for wctype_t... " >&6; }
22851 if ${gl_cv_type_wctype_t+:} false; then :
22852   $as_echo_n "(cached) " >&6
22853 else
22854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22855 /* end confdefs.h.  */
22856 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
22857                included before <wchar.h>.
22858                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
22859                must be included before <wchar.h>.  */
22860             #include <stddef.h>
22861             #include <stdio.h>
22862             #include <time.h>
22863             #include <wchar.h>
22864             #if HAVE_WCTYPE_H
22865             # include <wctype.h>
22866             #endif
22867             wctype_t a;
22868
22869 int
22870 main ()
22871 {
22872
22873   ;
22874   return 0;
22875 }
22876 _ACEOF
22877 if ac_fn_c_try_compile "$LINENO"; then :
22878   gl_cv_type_wctype_t=yes
22879 else
22880   gl_cv_type_wctype_t=no
22881 fi
22882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22883
22884 fi
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
22886 $as_echo "$gl_cv_type_wctype_t" >&6; }
22887   if test $gl_cv_type_wctype_t = no; then
22888     HAVE_WCTYPE_T=0
22889   fi
22890
22891       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
22892 $as_echo_n "checking for wctrans_t... " >&6; }
22893 if ${gl_cv_type_wctrans_t+:} false; then :
22894   $as_echo_n "(cached) " >&6
22895 else
22896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22897 /* end confdefs.h.  */
22898 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
22899                included before <wchar.h>.
22900                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
22901                must be included before <wchar.h>.  */
22902             #include <stddef.h>
22903             #include <stdio.h>
22904             #include <time.h>
22905             #include <wchar.h>
22906             #include <wctype.h>
22907             wctrans_t a;
22908
22909 int
22910 main ()
22911 {
22912
22913   ;
22914   return 0;
22915 }
22916 _ACEOF
22917 if ac_fn_c_try_compile "$LINENO"; then :
22918   gl_cv_type_wctrans_t=yes
22919 else
22920   gl_cv_type_wctrans_t=no
22921 fi
22922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22923
22924 fi
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
22926 $as_echo "$gl_cv_type_wctrans_t" >&6; }
22927   if test $gl_cv_type_wctrans_t = no; then
22928     HAVE_WCTRANS_T=0
22929   fi
22930
22931
22932     for gl_func in wctype iswctype wctrans towctrans     ; do
22933     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
22934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
22935 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
22936 if eval \${$as_gl_Symbol+:} false; then :
22937   $as_echo_n "(cached) " >&6
22938 else
22939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22940 /* end confdefs.h.  */
22941
22942 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22943    <wchar.h>.
22944    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22945    included before <wchar.h>.  */
22946 #if !(defined __GLIBC__ && !defined __UCLIBC__)
22947 # include <stddef.h>
22948 # include <stdio.h>
22949 # include <time.h>
22950 # include <wchar.h>
22951 #endif
22952 #include <wctype.h>
22953
22954 int
22955 main ()
22956 {
22957 #undef $gl_func
22958   (void) $gl_func;
22959   ;
22960   return 0;
22961 }
22962 _ACEOF
22963 if ac_fn_c_try_compile "$LINENO"; then :
22964   eval "$as_gl_Symbol=yes"
22965 else
22966   eval "$as_gl_Symbol=no"
22967 fi
22968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22969 fi
22970 eval ac_res=\$$as_gl_Symbol
22971                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22972 $as_echo "$ac_res" >&6; }
22973     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
22974   cat >>confdefs.h <<_ACEOF
22975 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
22976 _ACEOF
22977
22978                      eval ac_cv_have_decl_$gl_func=yes
22979 fi
22980       done
22981
22982
22983
22984
22985
22986   GNULIB_NL_LANGINFO=0;
22987     HAVE_NL_LANGINFO=1;
22988   REPLACE_NL_LANGINFO=0;
22989
22990
22991
22992
22993
22994   case "$host_os" in
22995     mingw*)
22996                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
22997 $as_echo_n "checking for 64-bit off_t... " >&6; }
22998 if ${gl_cv_type_off_t_64+:} false; then :
22999   $as_echo_n "(cached) " >&6
23000 else
23001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23002 /* end confdefs.h.  */
23003 #include <sys/types.h>
23004                 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
23005
23006 int
23007 main ()
23008 {
23009
23010   ;
23011   return 0;
23012 }
23013 _ACEOF
23014 if ac_fn_c_try_compile "$LINENO"; then :
23015   gl_cv_type_off_t_64=yes
23016 else
23017   gl_cv_type_off_t_64=no
23018 fi
23019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23020
23021 fi
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
23023 $as_echo "$gl_cv_type_off_t_64" >&6; }
23024       if test $gl_cv_type_off_t_64 = no; then
23025         WINDOWS_64_BIT_OFF_T=1
23026       else
23027         WINDOWS_64_BIT_OFF_T=0
23028       fi
23029                   WINDOWS_64_BIT_ST_SIZE=1
23030       ;;
23031     *)
23032                                                       WINDOWS_64_BIT_OFF_T=0
23033       WINDOWS_64_BIT_ST_SIZE=0
23034       ;;
23035   esac
23036
23037 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
23038 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
23039   ac_have_decl=1
23040 else
23041   ac_have_decl=0
23042 fi
23043
23044 cat >>confdefs.h <<_ACEOF
23045 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
23046 _ACEOF
23047
23048
23049   GNULIB_LOCALECONV=0;
23050   GNULIB_SETLOCALE=0;
23051   GNULIB_DUPLOCALE=0;
23052     HAVE_DUPLOCALE=1;
23053   REPLACE_LOCALECONV=0;
23054   REPLACE_SETLOCALE=0;
23055   REPLACE_DUPLOCALE=0;
23056   REPLACE_STRUCT_LCONV=0;
23057
23058
23059     REPLACE_NULL=0;
23060   HAVE_MAX_ALIGN_T=1;
23061   HAVE_WCHAR_T=1;
23062
23063
23064
23065
23066   STDDEF_H=
23067   ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
23068
23069 "
23070 if test "x$ac_cv_type_max_align_t" = xyes; then :
23071
23072 else
23073   HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
23074 fi
23075
23076   if test $gt_cv_c_wchar_t = no; then
23077     HAVE_WCHAR_T=0
23078     STDDEF_H=stddef.h
23079   fi
23080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
23081 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
23082 if ${gl_cv_decl_null_works+:} false; then :
23083   $as_echo_n "(cached) " >&6
23084 else
23085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23086 /* end confdefs.h.  */
23087 #include <stddef.h>
23088       int test[2 * (sizeof NULL == sizeof (void *)) -1];
23089
23090 int
23091 main ()
23092 {
23093
23094   ;
23095   return 0;
23096 }
23097 _ACEOF
23098 if ac_fn_c_try_compile "$LINENO"; then :
23099   gl_cv_decl_null_works=yes
23100 else
23101   gl_cv_decl_null_works=no
23102 fi
23103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23104 fi
23105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
23106 $as_echo "$gl_cv_decl_null_works" >&6; }
23107   if test $gl_cv_decl_null_works = no; then
23108     REPLACE_NULL=1
23109     STDDEF_H=stddef.h
23110   fi
23111
23112    if test -n "$STDDEF_H"; then
23113   GL_GENERATE_STDDEF_H_TRUE=
23114   GL_GENERATE_STDDEF_H_FALSE='#'
23115 else
23116   GL_GENERATE_STDDEF_H_TRUE='#'
23117   GL_GENERATE_STDDEF_H_FALSE=
23118 fi
23119
23120   if test -n "$STDDEF_H"; then
23121
23122
23123
23124
23125
23126
23127
23128
23129      if test $gl_cv_have_include_next = yes; then
23130        gl_cv_next_stddef_h='<'stddef.h'>'
23131      else
23132        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
23133 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
23134 if ${gl_cv_next_stddef_h+:} false; then :
23135   $as_echo_n "(cached) " >&6
23136 else
23137
23138
23139
23140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23141 /* end confdefs.h.  */
23142 #include <stddef.h>
23143 _ACEOF
23144                 case "$host_os" in
23145     aix*) gl_absname_cpp="$ac_cpp -C" ;;
23146     *)    gl_absname_cpp="$ac_cpp" ;;
23147   esac
23148
23149   case "$host_os" in
23150     mingw*)
23151                                           gl_dirsep_regex='[/\\]'
23152       ;;
23153     *)
23154       gl_dirsep_regex='\/'
23155       ;;
23156   esac
23157       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23158   gl_header_literal_regex=`echo 'stddef.h' \
23159                            | sed -e "$gl_make_literal_regex_sed"`
23160   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23161       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23162       s|^/[^/]|//&|
23163       p
23164       q
23165     }'
23166
23167         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23168   sed -n "$gl_absolute_header_sed"`
23169
23170            gl_header=$gl_cv_absolute_stddef_h
23171            gl_cv_next_stddef_h='"'$gl_header'"'
23172
23173
23174 fi
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
23176 $as_echo "$gl_cv_next_stddef_h" >&6; }
23177      fi
23178      NEXT_STDDEF_H=$gl_cv_next_stddef_h
23179
23180      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23181        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23182        gl_next_as_first_directive='<'stddef.h'>'
23183      else
23184        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23185        gl_next_as_first_directive=$gl_cv_next_stddef_h
23186      fi
23187      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
23188
23189
23190
23191
23192   fi
23193
23194
23195
23196
23197      GNULIB_FCHMODAT=0;
23198   GNULIB_FSTAT=0;
23199   GNULIB_FSTATAT=0;
23200   GNULIB_FUTIMENS=0;
23201   GNULIB_LCHMOD=0;
23202   GNULIB_LSTAT=0;
23203   GNULIB_MKDIRAT=0;
23204   GNULIB_MKFIFO=0;
23205   GNULIB_MKFIFOAT=0;
23206   GNULIB_MKNOD=0;
23207   GNULIB_MKNODAT=0;
23208   GNULIB_STAT=0;
23209   GNULIB_UTIMENSAT=0;
23210     HAVE_FCHMODAT=1;
23211   HAVE_FSTATAT=1;
23212   HAVE_FUTIMENS=1;
23213   HAVE_LCHMOD=1;
23214   HAVE_LSTAT=1;
23215   HAVE_MKDIRAT=1;
23216   HAVE_MKFIFO=1;
23217   HAVE_MKFIFOAT=1;
23218   HAVE_MKNOD=1;
23219   HAVE_MKNODAT=1;
23220   HAVE_UTIMENSAT=1;
23221   REPLACE_FSTAT=0;
23222   REPLACE_FSTATAT=0;
23223   REPLACE_FUTIMENS=0;
23224   REPLACE_LSTAT=0;
23225   REPLACE_MKDIR=0;
23226   REPLACE_MKFIFO=0;
23227   REPLACE_MKNOD=0;
23228   REPLACE_STAT=0;
23229   REPLACE_UTIMENSAT=0;
23230
23231
23232
23233
23234       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
23235 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
23236 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
23237   $as_echo_n "(cached) " >&6
23238 else
23239   rm -f conftest.sym conftest.file
23240      echo >conftest.file
23241      if test "$cross_compiling" = yes; then :
23242   case "$host_os" in
23243           *-gnu*)
23244             # Guess yes on glibc systems.
23245             gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
23246           *)
23247             # If we don't know, assume the worst.
23248             gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
23249         esac
23250
23251 else
23252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23253 /* end confdefs.h.  */
23254 $ac_includes_default
23255 int
23256 main ()
23257 {
23258 struct stat sbuf;
23259             if (symlink ("conftest.file", "conftest.sym") != 0)
23260               return 1;
23261             /* Linux will dereference the symlink and fail, as required by
23262                POSIX.  That is better in the sense that it means we will not
23263                have to compile and use the lstat wrapper.  */
23264             return lstat ("conftest.sym/", &sbuf) == 0;
23265
23266   ;
23267   return 0;
23268 }
23269 _ACEOF
23270 if ac_fn_c_try_run "$LINENO"; then :
23271   gl_cv_func_lstat_dereferences_slashed_symlink=yes
23272 else
23273   gl_cv_func_lstat_dereferences_slashed_symlink=no
23274 fi
23275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23276   conftest.$ac_objext conftest.beam conftest.$ac_ext
23277 fi
23278
23279      rm -f conftest.sym conftest.file
23280
23281 fi
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
23283 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
23284   case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
23285     *yes)
23286
23287 cat >>confdefs.h <<_ACEOF
23288 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
23289 _ACEOF
23290
23291       ;;
23292   esac
23293
23294
23295   for ac_header in stdlib.h
23296 do :
23297   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
23298 if test "x$ac_cv_header_stdlib_h" = xyes; then :
23299   cat >>confdefs.h <<_ACEOF
23300 #define HAVE_STDLIB_H 1
23301 _ACEOF
23302
23303 fi
23304
23305 done
23306
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
23308 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
23309 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
23310   $as_echo_n "(cached) " >&6
23311 else
23312   if test "$cross_compiling" = yes; then :
23313   ac_cv_func_malloc_0_nonnull=no
23314 else
23315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23316 /* end confdefs.h.  */
23317 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
23318 # include <stdlib.h>
23319 #else
23320 char *malloc ();
23321 #endif
23322
23323 int
23324 main ()
23325 {
23326 return ! malloc (0);
23327   ;
23328   return 0;
23329 }
23330 _ACEOF
23331 if ac_fn_c_try_run "$LINENO"; then :
23332   ac_cv_func_malloc_0_nonnull=yes
23333 else
23334   ac_cv_func_malloc_0_nonnull=no
23335 fi
23336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23337   conftest.$ac_objext conftest.beam conftest.$ac_ext
23338 fi
23339
23340 fi
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
23342 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
23343 if test $ac_cv_func_malloc_0_nonnull = yes; then :
23344   gl_cv_func_malloc_0_nonnull=1
23345 else
23346   gl_cv_func_malloc_0_nonnull=0
23347 fi
23348
23349
23350 cat >>confdefs.h <<_ACEOF
23351 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
23352 _ACEOF
23353
23354
23355
23356
23357    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23358 $as_echo_n "checking for mbstate_t... " >&6; }
23359 if ${ac_cv_type_mbstate_t+:} false; then :
23360   $as_echo_n "(cached) " >&6
23361 else
23362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23363 /* end confdefs.h.  */
23364 $ac_includes_default
23365 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
23366    <wchar.h>.
23367    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23368    included before <wchar.h>.  */
23369 #include <stddef.h>
23370 #include <stdio.h>
23371 #include <time.h>
23372 #include <wchar.h>
23373 int
23374 main ()
23375 {
23376 mbstate_t x; return sizeof x;
23377   ;
23378   return 0;
23379 }
23380 _ACEOF
23381 if ac_fn_c_try_compile "$LINENO"; then :
23382   ac_cv_type_mbstate_t=yes
23383 else
23384   ac_cv_type_mbstate_t=no
23385 fi
23386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23387 fi
23388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23389 $as_echo "$ac_cv_type_mbstate_t" >&6; }
23390    if test $ac_cv_type_mbstate_t = yes; then
23391
23392 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23393
23394    else
23395
23396 $as_echo "#define mbstate_t int" >>confdefs.h
23397
23398    fi
23399
23400
23401   GNULIB_BTOWC=0;
23402   GNULIB_WCTOB=0;
23403   GNULIB_MBSINIT=0;
23404   GNULIB_MBRTOWC=0;
23405   GNULIB_MBRLEN=0;
23406   GNULIB_MBSRTOWCS=0;
23407   GNULIB_MBSNRTOWCS=0;
23408   GNULIB_WCRTOMB=0;
23409   GNULIB_WCSRTOMBS=0;
23410   GNULIB_WCSNRTOMBS=0;
23411   GNULIB_WCWIDTH=0;
23412   GNULIB_WMEMCHR=0;
23413   GNULIB_WMEMCMP=0;
23414   GNULIB_WMEMCPY=0;
23415   GNULIB_WMEMMOVE=0;
23416   GNULIB_WMEMSET=0;
23417   GNULIB_WCSLEN=0;
23418   GNULIB_WCSNLEN=0;
23419   GNULIB_WCSCPY=0;
23420   GNULIB_WCPCPY=0;
23421   GNULIB_WCSNCPY=0;
23422   GNULIB_WCPNCPY=0;
23423   GNULIB_WCSCAT=0;
23424   GNULIB_WCSNCAT=0;
23425   GNULIB_WCSCMP=0;
23426   GNULIB_WCSNCMP=0;
23427   GNULIB_WCSCASECMP=0;
23428   GNULIB_WCSNCASECMP=0;
23429   GNULIB_WCSCOLL=0;
23430   GNULIB_WCSXFRM=0;
23431   GNULIB_WCSDUP=0;
23432   GNULIB_WCSCHR=0;
23433   GNULIB_WCSRCHR=0;
23434   GNULIB_WCSCSPN=0;
23435   GNULIB_WCSSPN=0;
23436   GNULIB_WCSPBRK=0;
23437   GNULIB_WCSSTR=0;
23438   GNULIB_WCSTOK=0;
23439   GNULIB_WCSWIDTH=0;
23440     HAVE_BTOWC=1;
23441   HAVE_MBSINIT=1;
23442   HAVE_MBRTOWC=1;
23443   HAVE_MBRLEN=1;
23444   HAVE_MBSRTOWCS=1;
23445   HAVE_MBSNRTOWCS=1;
23446   HAVE_WCRTOMB=1;
23447   HAVE_WCSRTOMBS=1;
23448   HAVE_WCSNRTOMBS=1;
23449   HAVE_WMEMCHR=1;
23450   HAVE_WMEMCMP=1;
23451   HAVE_WMEMCPY=1;
23452   HAVE_WMEMMOVE=1;
23453   HAVE_WMEMSET=1;
23454   HAVE_WCSLEN=1;
23455   HAVE_WCSNLEN=1;
23456   HAVE_WCSCPY=1;
23457   HAVE_WCPCPY=1;
23458   HAVE_WCSNCPY=1;
23459   HAVE_WCPNCPY=1;
23460   HAVE_WCSCAT=1;
23461   HAVE_WCSNCAT=1;
23462   HAVE_WCSCMP=1;
23463   HAVE_WCSNCMP=1;
23464   HAVE_WCSCASECMP=1;
23465   HAVE_WCSNCASECMP=1;
23466   HAVE_WCSCOLL=1;
23467   HAVE_WCSXFRM=1;
23468   HAVE_WCSDUP=1;
23469   HAVE_WCSCHR=1;
23470   HAVE_WCSRCHR=1;
23471   HAVE_WCSCSPN=1;
23472   HAVE_WCSSPN=1;
23473   HAVE_WCSPBRK=1;
23474   HAVE_WCSSTR=1;
23475   HAVE_WCSTOK=1;
23476   HAVE_WCSWIDTH=1;
23477   HAVE_DECL_WCTOB=1;
23478   HAVE_DECL_WCWIDTH=1;
23479   REPLACE_MBSTATE_T=0;
23480   REPLACE_BTOWC=0;
23481   REPLACE_WCTOB=0;
23482   REPLACE_MBSINIT=0;
23483   REPLACE_MBRTOWC=0;
23484   REPLACE_MBRLEN=0;
23485   REPLACE_MBSRTOWCS=0;
23486   REPLACE_MBSNRTOWCS=0;
23487   REPLACE_WCRTOMB=0;
23488   REPLACE_WCSRTOMBS=0;
23489   REPLACE_WCSNRTOMBS=0;
23490   REPLACE_WCWIDTH=0;
23491   REPLACE_WCSWIDTH=0;
23492
23493
23494
23495
23496
23497
23498
23499
23500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
23501 $as_echo_n "checking for a traditional japanese locale... " >&6; }
23502 if ${gt_cv_locale_ja+:} false; then :
23503   $as_echo_n "(cached) " >&6
23504 else
23505
23506     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23507 /* end confdefs.h.  */
23508
23509 #include <locale.h>
23510 #include <time.h>
23511 #if HAVE_LANGINFO_CODESET
23512 # include <langinfo.h>
23513 #endif
23514 #include <stdlib.h>
23515 #include <string.h>
23516 struct tm t;
23517 char buf[16];
23518 int main ()
23519 {
23520   const char *p;
23521   /* Check whether the given locale name is recognized by the system.  */
23522 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
23523   /* On native Windows, setlocale(category, "") looks at the system settings,
23524      not at the environment variables.  Also, when an encoding suffix such
23525      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
23526      category of the locale to "C".  */
23527   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
23528       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
23529     return 1;
23530 #else
23531   if (setlocale (LC_ALL, "") == NULL) return 1;
23532 #endif
23533   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
23534      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
23535      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
23536      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
23537      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
23538      some unit tests fail.
23539      On MirBSD 10, when an unsupported locale is specified, setlocale()
23540      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
23541 #if HAVE_LANGINFO_CODESET
23542   {
23543     const char *cs = nl_langinfo (CODESET);
23544     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
23545         || strcmp (cs, "UTF-8") == 0)
23546       return 1;
23547   }
23548 #endif
23549 #ifdef __CYGWIN__
23550   /* On Cygwin, avoid locale names without encoding suffix, because the
23551      locale_charset() function relies on the encoding suffix.  Note that
23552      LC_ALL is set on the command line.  */
23553   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
23554 #endif
23555   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
23556      on Cygwin 1.5.x.  */
23557   if (MB_CUR_MAX == 1)
23558     return 1;
23559   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
23560      This excludes the UTF-8 encoding (except on MirBSD).  */
23561   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
23562   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
23563   for (p = buf; *p != '\0'; p++)
23564     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
23565       return 1;
23566   return 0;
23567 }
23568
23569 _ACEOF
23570     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
23571   (eval $ac_link) 2>&5
23572   ac_status=$?
23573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23574   test $ac_status = 0; } && test -s conftest$ac_exeext; then
23575       case "$host_os" in
23576         # Handle native Windows specially, because there setlocale() interprets
23577         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
23578         # "fr" or "fra" as "French" or "French_France.1252",
23579         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
23580         # "ja" as "Japanese" or "Japanese_Japan.932",
23581         # and similar.
23582         mingw*)
23583           # Note that on native Windows, the Japanese locale is
23584           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
23585           # cannot use it here.
23586           gt_cv_locale_ja=none
23587           ;;
23588         *)
23589           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
23590           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
23591           # configure script would override the LC_ALL setting. Likewise for
23592           # LC_CTYPE, which is also set at the beginning of the configure script.
23593           # Test for the AIX locale name.
23594           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23595             gt_cv_locale_ja=ja_JP
23596           else
23597             # Test for the locale name with explicit encoding suffix.
23598             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23599               gt_cv_locale_ja=ja_JP.EUC-JP
23600             else
23601               # Test for the HP-UX, OSF/1, NetBSD locale name.
23602               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23603                 gt_cv_locale_ja=ja_JP.eucJP
23604               else
23605                 # Test for the IRIX, FreeBSD locale name.
23606                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23607                   gt_cv_locale_ja=ja_JP.EUC
23608                 else
23609                   # Test for the Solaris 7 locale name.
23610                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23611                     gt_cv_locale_ja=ja
23612                   else
23613                     # Special test for NetBSD 1.6.
23614                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
23615                       gt_cv_locale_ja=ja_JP.eucJP
23616                     else
23617                       # None found.
23618                       gt_cv_locale_ja=none
23619                     fi
23620                   fi
23621                 fi
23622               fi
23623             fi
23624           fi
23625           ;;
23626       esac
23627     fi
23628     rm -fr conftest*
23629
23630 fi
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
23632 $as_echo "$gt_cv_locale_ja" >&6; }
23633   LOCALE_JA=$gt_cv_locale_ja
23634
23635
23636
23637
23638
23639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
23640 $as_echo_n "checking for a transitional chinese locale... " >&6; }
23641 if ${gt_cv_locale_zh_CN+:} false; then :
23642   $as_echo_n "(cached) " >&6
23643 else
23644
23645     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23646 /* end confdefs.h.  */
23647
23648 #include <locale.h>
23649 #include <stdlib.h>
23650 #include <time.h>
23651 #if HAVE_LANGINFO_CODESET
23652 # include <langinfo.h>
23653 #endif
23654 #include <stdlib.h>
23655 #include <string.h>
23656 struct tm t;
23657 char buf[16];
23658 int main ()
23659 {
23660   const char *p;
23661   /* Check whether the given locale name is recognized by the system.  */
23662 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
23663   /* On native Windows, setlocale(category, "") looks at the system settings,
23664      not at the environment variables.  Also, when an encoding suffix such
23665      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
23666      category of the locale to "C".  */
23667   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
23668       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
23669     return 1;
23670 #else
23671   if (setlocale (LC_ALL, "") == NULL) return 1;
23672 #endif
23673   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
23674      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
23675      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
23676      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
23677      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
23678      some unit tests fail.
23679      On MirBSD 10, when an unsupported locale is specified, setlocale()
23680      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
23681 #if HAVE_LANGINFO_CODESET
23682   {
23683     const char *cs = nl_langinfo (CODESET);
23684     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
23685         || strcmp (cs, "UTF-8") == 0)
23686       return 1;
23687   }
23688 #endif
23689 #ifdef __CYGWIN__
23690   /* On Cygwin, avoid locale names without encoding suffix, because the
23691      locale_charset() function relies on the encoding suffix.  Note that
23692      LC_ALL is set on the command line.  */
23693   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
23694 #endif
23695   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
23696      This excludes the UTF-8 encoding (except on MirBSD).  */
23697   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
23698   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
23699   for (p = buf; *p != '\0'; p++)
23700     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
23701       return 1;
23702   /* Check whether a typical GB18030 multibyte sequence is recognized as a
23703      single wide character.  This excludes the GB2312 and GBK encodings.  */
23704   if (mblen ("\203\062\332\066", 5) != 4)
23705     return 1;
23706   return 0;
23707 }
23708
23709 _ACEOF
23710     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
23711   (eval $ac_link) 2>&5
23712   ac_status=$?
23713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23714   test $ac_status = 0; } && test -s conftest$ac_exeext; then
23715       case "$host_os" in
23716         # Handle native Windows specially, because there setlocale() interprets
23717         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
23718         # "fr" or "fra" as "French" or "French_France.1252",
23719         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
23720         # "ja" as "Japanese" or "Japanese_Japan.932",
23721         # and similar.
23722         mingw*)
23723           # Test for the hypothetical native Windows locale name.
23724           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23725             gt_cv_locale_zh_CN=Chinese_China.54936
23726           else
23727             # None found.
23728             gt_cv_locale_zh_CN=none
23729           fi
23730           ;;
23731         solaris2.8)
23732           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
23733           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
23734           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
23735           gt_cv_locale_zh_CN=none
23736           ;;
23737         *)
23738           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
23739           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
23740           # configure script would override the LC_ALL setting. Likewise for
23741           # LC_CTYPE, which is also set at the beginning of the configure script.
23742           # Test for the locale name without encoding suffix.
23743           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23744             gt_cv_locale_zh_CN=zh_CN
23745           else
23746             # Test for the locale name with explicit encoding suffix.
23747             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23748               gt_cv_locale_zh_CN=zh_CN.GB18030
23749             else
23750               # None found.
23751               gt_cv_locale_zh_CN=none
23752             fi
23753           fi
23754           ;;
23755       esac
23756     else
23757       # If there was a link error, due to mblen(), the system is so old that
23758       # it certainly doesn't have a chinese locale.
23759       gt_cv_locale_zh_CN=none
23760     fi
23761     rm -fr conftest*
23762
23763 fi
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
23765 $as_echo "$gt_cv_locale_zh_CN" >&6; }
23766   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
23767
23768
23769
23770
23771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
23772 $as_echo_n "checking for a french Unicode locale... " >&6; }
23773 if ${gt_cv_locale_fr_utf8+:} false; then :
23774   $as_echo_n "(cached) " >&6
23775 else
23776
23777     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23778 /* end confdefs.h.  */
23779
23780 #include <locale.h>
23781 #include <time.h>
23782 #if HAVE_LANGINFO_CODESET
23783 # include <langinfo.h>
23784 #endif
23785 #include <stdlib.h>
23786 #include <string.h>
23787 struct tm t;
23788 char buf[16];
23789 int main () {
23790   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
23791      imitates locale dependent behaviour by looking at the environment
23792      variables, and all locales use the UTF-8 encoding.  */
23793 #if !(defined __BEOS__ || defined __HAIKU__)
23794   /* Check whether the given locale name is recognized by the system.  */
23795 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
23796   /* On native Windows, setlocale(category, "") looks at the system settings,
23797      not at the environment variables.  Also, when an encoding suffix such
23798      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
23799      category of the locale to "C".  */
23800   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
23801       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
23802     return 1;
23803 # else
23804   if (setlocale (LC_ALL, "") == NULL) return 1;
23805 # endif
23806   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
23807      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
23808      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
23809      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
23810      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
23811      some unit tests fail.  */
23812 # if HAVE_LANGINFO_CODESET
23813   {
23814     const char *cs = nl_langinfo (CODESET);
23815     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
23816       return 1;
23817   }
23818 # endif
23819 # ifdef __CYGWIN__
23820   /* On Cygwin, avoid locale names without encoding suffix, because the
23821      locale_charset() function relies on the encoding suffix.  Note that
23822      LC_ALL is set on the command line.  */
23823   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
23824 # endif
23825   /* Check whether in the abbreviation of the second month, the second
23826      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
23827      two bytes long, with UTF-8 encoding.  */
23828   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
23829   if (strftime (buf, sizeof (buf), "%b", &t) < 4
23830       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
23831     return 1;
23832 #endif
23833 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
23834   /* Check whether the decimal separator is a comma.
23835      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
23836      are nl_langinfo(RADIXCHAR) are both ".".  */
23837   if (localeconv () ->decimal_point[0] != ',') return 1;
23838 #endif
23839   return 0;
23840 }
23841
23842 _ACEOF
23843     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
23844   (eval $ac_link) 2>&5
23845   ac_status=$?
23846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23847   test $ac_status = 0; } && test -s conftest$ac_exeext; then
23848       case "$host_os" in
23849         # Handle native Windows specially, because there setlocale() interprets
23850         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
23851         # "fr" or "fra" as "French" or "French_France.1252",
23852         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
23853         # "ja" as "Japanese" or "Japanese_Japan.932",
23854         # and similar.
23855         mingw*)
23856           # Test for the hypothetical native Windows locale name.
23857           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23858             gt_cv_locale_fr_utf8=French_France.65001
23859           else
23860             # None found.
23861             gt_cv_locale_fr_utf8=none
23862           fi
23863           ;;
23864         *)
23865           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
23866           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
23867           # configure script would override the LC_ALL setting. Likewise for
23868           # LC_CTYPE, which is also set at the beginning of the configure script.
23869           # Test for the usual locale name.
23870           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23871             gt_cv_locale_fr_utf8=fr_FR
23872           else
23873             # Test for the locale name with explicit encoding suffix.
23874             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23875               gt_cv_locale_fr_utf8=fr_FR.UTF-8
23876             else
23877               # Test for the Solaris 7 locale name.
23878               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
23879                 gt_cv_locale_fr_utf8=fr.UTF-8
23880               else
23881                 # None found.
23882                 gt_cv_locale_fr_utf8=none
23883               fi
23884             fi
23885           fi
23886           ;;
23887       esac
23888     fi
23889     rm -fr conftest*
23890
23891 fi
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
23893 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
23894   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
23895
23896
23897
23898   GNULIB_FFSL=0;
23899   GNULIB_FFSLL=0;
23900   GNULIB_MEMCHR=0;
23901   GNULIB_MEMMEM=0;
23902   GNULIB_MEMPCPY=0;
23903   GNULIB_MEMRCHR=0;
23904   GNULIB_RAWMEMCHR=0;
23905   GNULIB_STPCPY=0;
23906   GNULIB_STPNCPY=0;
23907   GNULIB_STRCHRNUL=0;
23908   GNULIB_STRDUP=0;
23909   GNULIB_STRNCAT=0;
23910   GNULIB_STRNDUP=0;
23911   GNULIB_STRNLEN=0;
23912   GNULIB_STRPBRK=0;
23913   GNULIB_STRSEP=0;
23914   GNULIB_STRSTR=0;
23915   GNULIB_STRCASESTR=0;
23916   GNULIB_STRTOK_R=0;
23917   GNULIB_MBSLEN=0;
23918   GNULIB_MBSNLEN=0;
23919   GNULIB_MBSCHR=0;
23920   GNULIB_MBSRCHR=0;
23921   GNULIB_MBSSTR=0;
23922   GNULIB_MBSCASECMP=0;
23923   GNULIB_MBSNCASECMP=0;
23924   GNULIB_MBSPCASECMP=0;
23925   GNULIB_MBSCASESTR=0;
23926   GNULIB_MBSCSPN=0;
23927   GNULIB_MBSPBRK=0;
23928   GNULIB_MBSSPN=0;
23929   GNULIB_MBSSEP=0;
23930   GNULIB_MBSTOK_R=0;
23931   GNULIB_STRERROR=0;
23932   GNULIB_STRERROR_R=0;
23933   GNULIB_STRSIGNAL=0;
23934   GNULIB_STRVERSCMP=0;
23935   HAVE_MBSLEN=0;
23936     HAVE_FFSL=1;
23937   HAVE_FFSLL=1;
23938   HAVE_MEMCHR=1;
23939   HAVE_DECL_MEMMEM=1;
23940   HAVE_MEMPCPY=1;
23941   HAVE_DECL_MEMRCHR=1;
23942   HAVE_RAWMEMCHR=1;
23943   HAVE_STPCPY=1;
23944   HAVE_STPNCPY=1;
23945   HAVE_STRCHRNUL=1;
23946   HAVE_DECL_STRDUP=1;
23947   HAVE_DECL_STRNDUP=1;
23948   HAVE_DECL_STRNLEN=1;
23949   HAVE_STRPBRK=1;
23950   HAVE_STRSEP=1;
23951   HAVE_STRCASESTR=1;
23952   HAVE_DECL_STRTOK_R=1;
23953   HAVE_DECL_STRERROR_R=1;
23954   HAVE_DECL_STRSIGNAL=1;
23955   HAVE_STRVERSCMP=1;
23956   REPLACE_MEMCHR=0;
23957   REPLACE_MEMMEM=0;
23958   REPLACE_STPNCPY=0;
23959   REPLACE_STRDUP=0;
23960   REPLACE_STRSTR=0;
23961   REPLACE_STRCASESTR=0;
23962   REPLACE_STRCHRNUL=0;
23963   REPLACE_STRERROR=0;
23964   REPLACE_STRERROR_R=0;
23965   REPLACE_STRNCAT=0;
23966   REPLACE_STRNDUP=0;
23967   REPLACE_STRNLEN=0;
23968   REPLACE_STRSIGNAL=0;
23969   REPLACE_STRTOK_R=0;
23970   UNDEFINE_STRTOK_R=0;
23971
23972
23973
23974
23975
23976
23977
23978
23979
23980
23981
23982   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
23983   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
23984   # irrelevant for anonymous mappings.
23985   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
23986 if test "x$ac_cv_func_mmap" = xyes; then :
23987   gl_have_mmap=yes
23988 else
23989   gl_have_mmap=no
23990 fi
23991
23992
23993   # Try to allow MAP_ANONYMOUS.
23994   gl_have_mmap_anonymous=no
23995   if test $gl_have_mmap = yes; then
23996     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
23997 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
23998     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23999 /* end confdefs.h.  */
24000
24001 #include <sys/mman.h>
24002 #ifdef MAP_ANONYMOUS
24003     I cannot identify this map
24004 #endif
24005
24006 _ACEOF
24007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24008   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
24009   gl_have_mmap_anonymous=yes
24010 fi
24011 rm -f conftest*
24012
24013     if test $gl_have_mmap_anonymous != yes; then
24014       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24015 /* end confdefs.h.  */
24016
24017 #include <sys/mman.h>
24018 #ifdef MAP_ANON
24019     I cannot identify this map
24020 #endif
24021
24022 _ACEOF
24023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24024   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
24025
24026 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
24027
24028          gl_have_mmap_anonymous=yes
24029 fi
24030 rm -f conftest*
24031
24032     fi
24033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
24034 $as_echo "$gl_have_mmap_anonymous" >&6; }
24035     if test $gl_have_mmap_anonymous = yes; then
24036
24037 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
24038
24039     fi
24040   fi
24041
24042
24043
24044
24045
24046
24047   if test $HAVE_MEMCHR = 1; then
24048     # Detect platform-specific bugs in some versions of glibc:
24049     # memchr should not dereference anything with length 0
24050     #   http://bugzilla.redhat.com/499689
24051     # memchr should not dereference overestimated length after a match
24052     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
24053     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
24054     # Assume that memchr works on platforms that lack mprotect.
24055     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
24056 $as_echo_n "checking whether memchr works... " >&6; }
24057 if ${gl_cv_func_memchr_works+:} false; then :
24058   $as_echo_n "(cached) " >&6
24059 else
24060   if test "$cross_compiling" = yes; then :
24061          gl_cv_func_memchr_works="guessing no"
24062 else
24063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24064 /* end confdefs.h.  */
24065
24066 #include <string.h>
24067 #if HAVE_SYS_MMAN_H
24068 # include <fcntl.h>
24069 # include <unistd.h>
24070 # include <sys/types.h>
24071 # include <sys/mman.h>
24072 # ifndef MAP_FILE
24073 #  define MAP_FILE 0
24074 # endif
24075 #endif
24076
24077 int
24078 main ()
24079 {
24080
24081   int result = 0;
24082   char *fence = NULL;
24083 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
24084 # if HAVE_MAP_ANONYMOUS
24085   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
24086   const int fd = -1;
24087 # else /* !HAVE_MAP_ANONYMOUS */
24088   const int flags = MAP_FILE | MAP_PRIVATE;
24089   int fd = open ("/dev/zero", O_RDONLY, 0666);
24090   if (fd >= 0)
24091 # endif
24092     {
24093       int pagesize = getpagesize ();
24094       char *two_pages =
24095         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
24096                        flags, fd, 0);
24097       if (two_pages != (char *)(-1)
24098           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
24099         fence = two_pages + pagesize;
24100     }
24101 #endif
24102   if (fence)
24103     {
24104       if (memchr (fence, 0, 0))
24105         result |= 1;
24106       strcpy (fence - 9, "12345678");
24107       if (memchr (fence - 9, 0, 79) != fence - 1)
24108         result |= 2;
24109       if (memchr (fence - 1, 0, 3) != fence - 1)
24110         result |= 4;
24111     }
24112   return result;
24113
24114   ;
24115   return 0;
24116 }
24117 _ACEOF
24118 if ac_fn_c_try_run "$LINENO"; then :
24119   gl_cv_func_memchr_works=yes
24120 else
24121   gl_cv_func_memchr_works=no
24122 fi
24123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24124   conftest.$ac_objext conftest.beam conftest.$ac_ext
24125 fi
24126
24127 fi
24128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
24129 $as_echo "$gl_cv_func_memchr_works" >&6; }
24130     if test "$gl_cv_func_memchr_works" != yes; then
24131       REPLACE_MEMCHR=1
24132     fi
24133   fi
24134
24135
24136
24137
24138
24139   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
24140     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
24141
24142 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
24143
24144   else
24145     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
24146   fi
24147
24148
24149
24150
24151
24152
24153     gl_cv_c_multiarch=no
24154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24155 /* end confdefs.h.  */
24156 #ifndef __APPLE_CC__
24157          not a universal capable compiler
24158         #endif
24159         typedef int dummy;
24160
24161 _ACEOF
24162 if ac_fn_c_try_compile "$LINENO"; then :
24163
24164                arch=
24165      prev=
24166      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
24167        if test -n "$prev"; then
24168          case $word in
24169            i?86 | x86_64 | ppc | ppc64)
24170              if test -z "$arch" || test "$arch" = "$word"; then
24171                arch="$word"
24172              else
24173                gl_cv_c_multiarch=yes
24174              fi
24175              ;;
24176          esac
24177          prev=
24178        else
24179          if test "x$word" = "x-arch"; then
24180            prev=arch
24181          fi
24182        fi
24183      done
24184
24185 fi
24186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24187   if test $gl_cv_c_multiarch = yes; then
24188     APPLE_UNIVERSAL_BUILD=1
24189   else
24190     APPLE_UNIVERSAL_BUILD=0
24191   fi
24192
24193
24194
24195   GNULIB_PTHREAD_SIGMASK=0;
24196   GNULIB_RAISE=0;
24197   GNULIB_SIGNAL_H_SIGPIPE=0;
24198   GNULIB_SIGPROCMASK=0;
24199   GNULIB_SIGACTION=0;
24200     HAVE_POSIX_SIGNALBLOCKING=1;
24201   HAVE_PTHREAD_SIGMASK=1;
24202   HAVE_RAISE=1;
24203   HAVE_SIGSET_T=1;
24204   HAVE_SIGINFO_T=1;
24205   HAVE_SIGACTION=1;
24206   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
24207
24208   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
24209
24210   HAVE_SIGHANDLER_T=1;
24211   REPLACE_PTHREAD_SIGMASK=0;
24212   REPLACE_RAISE=0;
24213
24214
24215   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
24216       #include <signal.h>
24217       /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
24218       #include <sys/types.h>
24219
24220 "
24221 if test "x$ac_cv_type_sigset_t" = xyes; then :
24222
24223 cat >>confdefs.h <<_ACEOF
24224 #define HAVE_SIGSET_T 1
24225 _ACEOF
24226
24227 gl_cv_type_sigset_t=yes
24228 else
24229   gl_cv_type_sigset_t=no
24230 fi
24231
24232   if test $gl_cv_type_sigset_t != yes; then
24233     HAVE_SIGSET_T=0
24234   fi
24235
24236
24237
24238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPIPE" >&5
24239 $as_echo_n "checking for SIGPIPE... " >&6; }
24240 if ${gl_cv_header_signal_h_SIGPIPE+:} false; then :
24241   $as_echo_n "(cached) " >&6
24242 else
24243
24244     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24245 /* end confdefs.h.  */
24246
24247 #include <signal.h>
24248 #if !defined SIGPIPE
24249 booboo
24250 #endif
24251
24252 _ACEOF
24253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24254   $EGREP "booboo" >/dev/null 2>&1; then :
24255   gl_cv_header_signal_h_SIGPIPE=no
24256 else
24257   gl_cv_header_signal_h_SIGPIPE=yes
24258 fi
24259 rm -f conftest*
24260
24261
24262 fi
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_signal_h_SIGPIPE" >&5
24264 $as_echo "$gl_cv_header_signal_h_SIGPIPE" >&6; }
24265
24266
24267                               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
24268 $as_echo_n "checking for shared library path variable... " >&6; }
24269 if ${acl_cv_libpath+:} false; then :
24270   $as_echo_n "(cached) " >&6
24271 else
24272
24273     LD="$LD" \
24274     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
24275     . ./conftest.sh
24276     rm -f ./conftest.sh
24277     acl_cv_libpath=${acl_cv_shlibpath_var:-none}
24278
24279 fi
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
24281 $as_echo "$acl_cv_libpath" >&6; }
24282   shlibpath_var="$acl_cv_shlibpath_var"
24283
24284
24285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
24286 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
24287   # Check whether --enable-relocatable was given.
24288 if test "${enable_relocatable+set}" = set; then :
24289   enableval=$enable_relocatable; if test "$enableval" != no; then
24290        RELOCATABLE=yes
24291      else
24292        RELOCATABLE=no
24293      fi
24294
24295 else
24296   RELOCATABLE=no
24297 fi
24298
24299
24300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
24301 $as_echo "$RELOCATABLE" >&6; }
24302
24303
24304
24305     if test "X$prefix" = "XNONE"; then
24306     reloc_final_prefix="$ac_default_prefix"
24307   else
24308     reloc_final_prefix="$prefix"
24309   fi
24310
24311 cat >>confdefs.h <<_ACEOF
24312 #define INSTALLPREFIX "${reloc_final_prefix}"
24313 _ACEOF
24314
24315   if test $RELOCATABLE = yes; then
24316
24317 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
24318
24319   fi
24320
24321
24322
24323
24324
24325
24326   is_noop=no
24327   use_elf_origin_trick=no
24328   use_wrapper=no
24329   if test $RELOCATABLE = yes; then
24330     # --enable-relocatable implies --disable-rpath
24331     enable_rpath=no
24332     for ac_header in mach-o/dyld.h
24333 do :
24334   ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
24335 if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
24336   cat >>confdefs.h <<_ACEOF
24337 #define HAVE_MACH_O_DYLD_H 1
24338 _ACEOF
24339
24340 fi
24341
24342 done
24343
24344     for ac_func in _NSGetExecutablePath
24345 do :
24346   ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
24347 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
24348   cat >>confdefs.h <<_ACEOF
24349 #define HAVE__NSGETEXECUTABLEPATH 1
24350 _ACEOF
24351
24352 fi
24353 done
24354
24355     case "$host_os" in
24356       mingw*) is_noop=yes ;;
24357       linux* | kfreebsd*) use_elf_origin_trick=yes ;;
24358     esac
24359     if test $is_noop = yes; then
24360       RELOCATABLE_LDFLAGS=:
24361
24362     else
24363       if test $use_elf_origin_trick = yes; then
24364                 case "$ac_aux_dir" in
24365           /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
24366           *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
24367         esac
24368         RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
24369
24370       else
24371         use_wrapper=yes
24372                                         INSTALL_PROGRAM_ENV="RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_DESTDIR=\"\$(DESTDIR)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_STRIP_PROG=\"\$(RELOCATABLE_STRIP)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\""
24373
24374         case "$ac_aux_dir" in
24375           /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
24376           *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
24377         esac
24378       fi
24379     fi
24380   fi
24381    if test $is_noop = yes || test $use_elf_origin_trick = yes; then
24382   RELOCATABLE_VIA_LD_TRUE=
24383   RELOCATABLE_VIA_LD_FALSE='#'
24384 else
24385   RELOCATABLE_VIA_LD_TRUE='#'
24386   RELOCATABLE_VIA_LD_FALSE=
24387 fi
24388
24389    if test $use_wrapper = yes; then
24390   RELOCATABLE_VIA_WRAPPER_TRUE=
24391   RELOCATABLE_VIA_WRAPPER_FALSE='#'
24392 else
24393   RELOCATABLE_VIA_WRAPPER_TRUE='#'
24394   RELOCATABLE_VIA_WRAPPER_FALSE=
24395 fi
24396
24397
24398
24399
24400
24401
24402
24403
24404       RELOCATABLE_STRIP=':'
24405
24406
24407 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
24408 if test "x$ac_cv_have_decl_setenv" = xyes; then :
24409   ac_have_decl=1
24410 else
24411   ac_have_decl=0
24412 fi
24413
24414 cat >>confdefs.h <<_ACEOF
24415 #define HAVE_DECL_SETENV $ac_have_decl
24416 _ACEOF
24417
24418
24419
24420 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24421 if test "x$ac_cv_type_pid_t" = xyes; then :
24422
24423 else
24424
24425 cat >>confdefs.h <<_ACEOF
24426 #define pid_t int
24427 _ACEOF
24428
24429 fi
24430
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
24432 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
24433 if ${ac_cv_type_uid_t+:} false; then :
24434   $as_echo_n "(cached) " >&6
24435 else
24436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24437 /* end confdefs.h.  */
24438 #include <sys/types.h>
24439
24440 _ACEOF
24441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24442   $EGREP "uid_t" >/dev/null 2>&1; then :
24443   ac_cv_type_uid_t=yes
24444 else
24445   ac_cv_type_uid_t=no
24446 fi
24447 rm -f conftest*
24448
24449 fi
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
24451 $as_echo "$ac_cv_type_uid_t" >&6; }
24452 if test $ac_cv_type_uid_t = no; then
24453
24454 $as_echo "#define uid_t int" >>confdefs.h
24455
24456
24457 $as_echo "#define gid_t int" >>confdefs.h
24458
24459 fi
24460
24461
24462   GNULIB_DPRINTF=0;
24463   GNULIB_FCLOSE=0;
24464   GNULIB_FDOPEN=0;
24465   GNULIB_FFLUSH=0;
24466   GNULIB_FGETC=0;
24467   GNULIB_FGETS=0;
24468   GNULIB_FOPEN=0;
24469   GNULIB_FPRINTF=0;
24470   GNULIB_FPRINTF_POSIX=0;
24471   GNULIB_FPURGE=0;
24472   GNULIB_FPUTC=0;
24473   GNULIB_FPUTS=0;
24474   GNULIB_FREAD=0;
24475   GNULIB_FREOPEN=0;
24476   GNULIB_FSCANF=0;
24477   GNULIB_FSEEK=0;
24478   GNULIB_FSEEKO=0;
24479   GNULIB_FTELL=0;
24480   GNULIB_FTELLO=0;
24481   GNULIB_FWRITE=0;
24482   GNULIB_GETC=0;
24483   GNULIB_GETCHAR=0;
24484   GNULIB_GETDELIM=0;
24485   GNULIB_GETLINE=0;
24486   GNULIB_OBSTACK_PRINTF=0;
24487   GNULIB_OBSTACK_PRINTF_POSIX=0;
24488   GNULIB_PCLOSE=0;
24489   GNULIB_PERROR=0;
24490   GNULIB_POPEN=0;
24491   GNULIB_PRINTF=0;
24492   GNULIB_PRINTF_POSIX=0;
24493   GNULIB_PUTC=0;
24494   GNULIB_PUTCHAR=0;
24495   GNULIB_PUTS=0;
24496   GNULIB_REMOVE=0;
24497   GNULIB_RENAME=0;
24498   GNULIB_RENAMEAT=0;
24499   GNULIB_SCANF=0;
24500   GNULIB_SNPRINTF=0;
24501   GNULIB_SPRINTF_POSIX=0;
24502   GNULIB_STDIO_H_NONBLOCKING=0;
24503   GNULIB_STDIO_H_SIGPIPE=0;
24504   GNULIB_TMPFILE=0;
24505   GNULIB_VASPRINTF=0;
24506   GNULIB_VFSCANF=0;
24507   GNULIB_VSCANF=0;
24508   GNULIB_VDPRINTF=0;
24509   GNULIB_VFPRINTF=0;
24510   GNULIB_VFPRINTF_POSIX=0;
24511   GNULIB_VPRINTF=0;
24512   GNULIB_VPRINTF_POSIX=0;
24513   GNULIB_VSNPRINTF=0;
24514   GNULIB_VSPRINTF_POSIX=0;
24515     HAVE_DECL_FPURGE=1;
24516   HAVE_DECL_FSEEKO=1;
24517   HAVE_DECL_FTELLO=1;
24518   HAVE_DECL_GETDELIM=1;
24519   HAVE_DECL_GETLINE=1;
24520   HAVE_DECL_OBSTACK_PRINTF=1;
24521   HAVE_DECL_SNPRINTF=1;
24522   HAVE_DECL_VSNPRINTF=1;
24523   HAVE_DPRINTF=1;
24524   HAVE_FSEEKO=1;
24525   HAVE_FTELLO=1;
24526   HAVE_PCLOSE=1;
24527   HAVE_POPEN=1;
24528   HAVE_RENAMEAT=1;
24529   HAVE_VASPRINTF=1;
24530   HAVE_VDPRINTF=1;
24531   REPLACE_DPRINTF=0;
24532   REPLACE_FCLOSE=0;
24533   REPLACE_FDOPEN=0;
24534   REPLACE_FFLUSH=0;
24535   REPLACE_FOPEN=0;
24536   REPLACE_FPRINTF=0;
24537   REPLACE_FPURGE=0;
24538   REPLACE_FREOPEN=0;
24539   REPLACE_FSEEK=0;
24540   REPLACE_FSEEKO=0;
24541   REPLACE_FTELL=0;
24542   REPLACE_FTELLO=0;
24543   REPLACE_GETDELIM=0;
24544   REPLACE_GETLINE=0;
24545   REPLACE_OBSTACK_PRINTF=0;
24546   REPLACE_PERROR=0;
24547   REPLACE_POPEN=0;
24548   REPLACE_PRINTF=0;
24549   REPLACE_REMOVE=0;
24550   REPLACE_RENAME=0;
24551   REPLACE_RENAMEAT=0;
24552   REPLACE_SNPRINTF=0;
24553   REPLACE_SPRINTF=0;
24554   REPLACE_STDIO_READ_FUNCS=0;
24555   REPLACE_STDIO_WRITE_FUNCS=0;
24556   REPLACE_TMPFILE=0;
24557   REPLACE_VASPRINTF=0;
24558   REPLACE_VDPRINTF=0;
24559   REPLACE_VFPRINTF=0;
24560   REPLACE_VPRINTF=0;
24561   REPLACE_VSNPRINTF=0;
24562   REPLACE_VSPRINTF=0;
24563
24564
24565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24566 /* end confdefs.h.  */
24567
24568 #ifdef _MSC_VER
24569 MicrosoftCompiler
24570 #endif
24571
24572 _ACEOF
24573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24574   $EGREP "MicrosoftCompiler" >/dev/null 2>&1; then :
24575   gl_asmext='asm'
24576      gl_c_asm_opt='-c -Fa'
24577
24578 else
24579   gl_asmext='s'
24580      gl_c_asm_opt='-S'
24581
24582 fi
24583 rm -f conftest*
24584
24585
24586
24587
24588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
24589 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
24590 if ${gl_cv_prog_as_underscore+:} false; then :
24591   $as_echo_n "(cached) " >&6
24592 else
24593   cat > conftest.c <<EOF
24594 #ifdef __cplusplus
24595 extern "C" int foo (void);
24596 #endif
24597 int foo(void) { return 0; }
24598 EOF
24599      # Look for the assembly language name in the .s file.
24600      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
24601   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24602   (eval $ac_try) 2>&5
24603   ac_status=$?
24604   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24605   test $ac_status = 0; }; } >/dev/null 2>&1
24606      if LC_ALL=C grep -E '(^|^a-zA-Z0-9_)_foo(^a-zA-Z0-9_|$)' conftest.$gl_asmext >/dev/null; then
24607        gl_cv_prog_as_underscore=yes
24608      else
24609        gl_cv_prog_as_underscore=no
24610      fi
24611      rm -f conftest*
24612
24613 fi
24614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
24615 $as_echo "$gl_cv_prog_as_underscore" >&6; }
24616   if test $gl_cv_prog_as_underscore = yes; then
24617     USER_LABEL_PREFIX=_
24618   else
24619     USER_LABEL_PREFIX=
24620   fi
24621
24622 cat >>confdefs.h <<_ACEOF
24623 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
24624 _ACEOF
24625
24626   ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
24627
24628
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
24630 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
24631 if ${ac_cv_header_stdbool_h+:} false; then :
24632   $as_echo_n "(cached) " >&6
24633 else
24634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24635 /* end confdefs.h.  */
24636
24637              #include <stdbool.h>
24638              #ifndef bool
24639               "error: bool is not defined"
24640              #endif
24641              #ifndef false
24642               "error: false is not defined"
24643              #endif
24644              #if false
24645               "error: false is not 0"
24646              #endif
24647              #ifndef true
24648               "error: true is not defined"
24649              #endif
24650              #if true != 1
24651               "error: true is not 1"
24652              #endif
24653              #ifndef __bool_true_false_are_defined
24654               "error: __bool_true_false_are_defined is not defined"
24655              #endif
24656
24657              struct s { _Bool s: 1; _Bool t; } s;
24658
24659              char a[true == 1 ? 1 : -1];
24660              char b[false == 0 ? 1 : -1];
24661              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
24662              char d[(bool) 0.5 == true ? 1 : -1];
24663              /* See body of main program for 'e'.  */
24664              char f[(_Bool) 0.0 == false ? 1 : -1];
24665              char g[true];
24666              char h[sizeof (_Bool)];
24667              char i[sizeof s.t];
24668              enum { j = false, k = true, l = false * true, m = true * 256 };
24669              /* The following fails for
24670                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
24671              _Bool n[m];
24672              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
24673              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
24674              /* Catch a bug in an HP-UX C compiler.  See
24675                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
24676                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
24677               */
24678              _Bool q = true;
24679              _Bool *pq = &q;
24680
24681 int
24682 main ()
24683 {
24684
24685              bool e = &s;
24686              *pq |= q;
24687              *pq |= ! q;
24688              /* Refer to every declared value, to avoid compiler optimizations.  */
24689              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
24690                      + !m + !n + !o + !p + !q + !pq);
24691
24692   ;
24693   return 0;
24694 }
24695 _ACEOF
24696 if ac_fn_c_try_compile "$LINENO"; then :
24697   ac_cv_header_stdbool_h=yes
24698 else
24699   ac_cv_header_stdbool_h=no
24700 fi
24701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24702 fi
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
24704 $as_echo "$ac_cv_header_stdbool_h" >&6; }
24705    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
24706 if test "x$ac_cv_type__Bool" = xyes; then :
24707
24708 cat >>confdefs.h <<_ACEOF
24709 #define HAVE__BOOL 1
24710 _ACEOF
24711
24712
24713 fi
24714
24715
24716
24717
24718
24719
24720
24721
24722
24723   if test $ac_cv_type_long_long_int = yes; then
24724     HAVE_LONG_LONG_INT=1
24725   else
24726     HAVE_LONG_LONG_INT=0
24727   fi
24728
24729
24730   if test $ac_cv_type_unsigned_long_long_int = yes; then
24731     HAVE_UNSIGNED_LONG_LONG_INT=1
24732   else
24733     HAVE_UNSIGNED_LONG_LONG_INT=0
24734   fi
24735
24736
24737
24738   if test $ac_cv_header_wchar_h = yes; then
24739     HAVE_WCHAR_H=1
24740   else
24741     HAVE_WCHAR_H=0
24742   fi
24743
24744
24745       if test $ac_cv_header_inttypes_h = yes; then
24746     HAVE_INTTYPES_H=1
24747   else
24748     HAVE_INTTYPES_H=0
24749   fi
24750
24751
24752       if test $ac_cv_header_sys_types_h = yes; then
24753     HAVE_SYS_TYPES_H=1
24754   else
24755     HAVE_SYS_TYPES_H=0
24756   fi
24757
24758
24759
24760
24761
24762
24763
24764
24765
24766
24767
24768      if test $gl_cv_have_include_next = yes; then
24769        gl_cv_next_stdint_h='<'stdint.h'>'
24770      else
24771        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
24772 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
24773 if ${gl_cv_next_stdint_h+:} false; then :
24774   $as_echo_n "(cached) " >&6
24775 else
24776
24777              if test $ac_cv_header_stdint_h = yes; then
24778
24779
24780
24781
24782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24783 /* end confdefs.h.  */
24784 #include <stdint.h>
24785 _ACEOF
24786                 case "$host_os" in
24787     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24788     *)    gl_absname_cpp="$ac_cpp" ;;
24789   esac
24790
24791   case "$host_os" in
24792     mingw*)
24793                                           gl_dirsep_regex='[/\\]'
24794       ;;
24795     *)
24796       gl_dirsep_regex='\/'
24797       ;;
24798   esac
24799       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24800   gl_header_literal_regex=`echo 'stdint.h' \
24801                            | sed -e "$gl_make_literal_regex_sed"`
24802   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24803       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24804       s|^/[^/]|//&|
24805       p
24806       q
24807     }'
24808
24809         gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24810   sed -n "$gl_absolute_header_sed"`
24811
24812            gl_header=$gl_cv_absolute_stdint_h
24813            gl_cv_next_stdint_h='"'$gl_header'"'
24814           else
24815                gl_cv_next_stdint_h='<'stdint.h'>'
24816              fi
24817
24818
24819 fi
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
24821 $as_echo "$gl_cv_next_stdint_h" >&6; }
24822      fi
24823      NEXT_STDINT_H=$gl_cv_next_stdint_h
24824
24825      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24826        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24827        gl_next_as_first_directive='<'stdint.h'>'
24828      else
24829        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24830        gl_next_as_first_directive=$gl_cv_next_stdint_h
24831      fi
24832      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
24833
24834
24835
24836
24837   if test $ac_cv_header_stdint_h = yes; then
24838     HAVE_STDINT_H=1
24839   else
24840     HAVE_STDINT_H=0
24841   fi
24842
24843
24844     if test $ac_cv_header_stdint_h = yes; then
24845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
24846 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
24847 if ${gl_cv_header_working_stdint_h+:} false; then :
24848   $as_echo_n "(cached) " >&6
24849 else
24850   gl_cv_header_working_stdint_h=no
24851        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24852 /* end confdefs.h.  */
24853
24854
24855 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
24856 #define __STDC_CONSTANT_MACROS 1
24857 #define __STDC_LIMIT_MACROS 1
24858 #include <stdint.h>
24859 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
24860 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
24861 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
24862 #endif
24863
24864
24865   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24866      included before <wchar.h>.  */
24867   #include <stddef.h>
24868   #include <signal.h>
24869   #if HAVE_WCHAR_H
24870   # include <stdio.h>
24871   # include <time.h>
24872   # include <wchar.h>
24873   #endif
24874
24875
24876 #ifdef INT8_MAX
24877 int8_t a1 = INT8_MAX;
24878 int8_t a1min = INT8_MIN;
24879 #endif
24880 #ifdef INT16_MAX
24881 int16_t a2 = INT16_MAX;
24882 int16_t a2min = INT16_MIN;
24883 #endif
24884 #ifdef INT32_MAX
24885 int32_t a3 = INT32_MAX;
24886 int32_t a3min = INT32_MIN;
24887 #endif
24888 #ifdef INT64_MAX
24889 int64_t a4 = INT64_MAX;
24890 int64_t a4min = INT64_MIN;
24891 #endif
24892 #ifdef UINT8_MAX
24893 uint8_t b1 = UINT8_MAX;
24894 #else
24895 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
24896 #endif
24897 #ifdef UINT16_MAX
24898 uint16_t b2 = UINT16_MAX;
24899 #endif
24900 #ifdef UINT32_MAX
24901 uint32_t b3 = UINT32_MAX;
24902 #endif
24903 #ifdef UINT64_MAX
24904 uint64_t b4 = UINT64_MAX;
24905 #endif
24906 int_least8_t c1 = INT8_C (0x7f);
24907 int_least8_t c1max = INT_LEAST8_MAX;
24908 int_least8_t c1min = INT_LEAST8_MIN;
24909 int_least16_t c2 = INT16_C (0x7fff);
24910 int_least16_t c2max = INT_LEAST16_MAX;
24911 int_least16_t c2min = INT_LEAST16_MIN;
24912 int_least32_t c3 = INT32_C (0x7fffffff);
24913 int_least32_t c3max = INT_LEAST32_MAX;
24914 int_least32_t c3min = INT_LEAST32_MIN;
24915 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
24916 int_least64_t c4max = INT_LEAST64_MAX;
24917 int_least64_t c4min = INT_LEAST64_MIN;
24918 uint_least8_t d1 = UINT8_C (0xff);
24919 uint_least8_t d1max = UINT_LEAST8_MAX;
24920 uint_least16_t d2 = UINT16_C (0xffff);
24921 uint_least16_t d2max = UINT_LEAST16_MAX;
24922 uint_least32_t d3 = UINT32_C (0xffffffff);
24923 uint_least32_t d3max = UINT_LEAST32_MAX;
24924 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
24925 uint_least64_t d4max = UINT_LEAST64_MAX;
24926 int_fast8_t e1 = INT_FAST8_MAX;
24927 int_fast8_t e1min = INT_FAST8_MIN;
24928 int_fast16_t e2 = INT_FAST16_MAX;
24929 int_fast16_t e2min = INT_FAST16_MIN;
24930 int_fast32_t e3 = INT_FAST32_MAX;
24931 int_fast32_t e3min = INT_FAST32_MIN;
24932 int_fast64_t e4 = INT_FAST64_MAX;
24933 int_fast64_t e4min = INT_FAST64_MIN;
24934 uint_fast8_t f1 = UINT_FAST8_MAX;
24935 uint_fast16_t f2 = UINT_FAST16_MAX;
24936 uint_fast32_t f3 = UINT_FAST32_MAX;
24937 uint_fast64_t f4 = UINT_FAST64_MAX;
24938 #ifdef INTPTR_MAX
24939 intptr_t g = INTPTR_MAX;
24940 intptr_t gmin = INTPTR_MIN;
24941 #endif
24942 #ifdef UINTPTR_MAX
24943 uintptr_t h = UINTPTR_MAX;
24944 #endif
24945 intmax_t i = INTMAX_MAX;
24946 uintmax_t j = UINTMAX_MAX;
24947
24948 #include <limits.h> /* for CHAR_BIT */
24949 #define TYPE_MINIMUM(t) \
24950   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
24951 #define TYPE_MAXIMUM(t) \
24952   ((t) ((t) 0 < (t) -1 \
24953         ? (t) -1 \
24954         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
24955 struct s {
24956   int check_PTRDIFF:
24957       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
24958       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
24959       ? 1 : -1;
24960   /* Detect bug in FreeBSD 6.0 / ia64.  */
24961   int check_SIG_ATOMIC:
24962       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
24963       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
24964       ? 1 : -1;
24965   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
24966   int check_WCHAR:
24967       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
24968       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
24969       ? 1 : -1;
24970   /* Detect bug in mingw.  */
24971   int check_WINT:
24972       WINT_MIN == TYPE_MINIMUM (wint_t)
24973       && WINT_MAX == TYPE_MAXIMUM (wint_t)
24974       ? 1 : -1;
24975
24976   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
24977   int check_UINT8_C:
24978         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
24979   int check_UINT16_C:
24980         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
24981
24982   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
24983 #ifdef UINT8_MAX
24984   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
24985 #endif
24986 #ifdef UINT16_MAX
24987   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
24988 #endif
24989 #ifdef UINT32_MAX
24990   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
24991 #endif
24992 #ifdef UINT64_MAX
24993   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
24994 #endif
24995   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
24996   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
24997   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
24998   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
24999   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
25000   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
25001   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
25002   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
25003   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
25004   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
25005   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
25006 };
25007
25008 int
25009 main ()
25010 {
25011
25012   ;
25013   return 0;
25014 }
25015 _ACEOF
25016 if ac_fn_c_try_compile "$LINENO"; then :
25017                                                     if test "$cross_compiling" = yes; then :
25018                  gl_cv_header_working_stdint_h=yes
25019
25020 else
25021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25022 /* end confdefs.h.  */
25023
25024
25025 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
25026 #define __STDC_CONSTANT_MACROS 1
25027 #define __STDC_LIMIT_MACROS 1
25028 #include <stdint.h>
25029
25030
25031   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25032      included before <wchar.h>.  */
25033   #include <stddef.h>
25034   #include <signal.h>
25035   #if HAVE_WCHAR_H
25036   # include <stdio.h>
25037   # include <time.h>
25038   # include <wchar.h>
25039   #endif
25040
25041
25042 #include <stdio.h>
25043 #include <string.h>
25044 #define MVAL(macro) MVAL1(macro)
25045 #define MVAL1(expression) #expression
25046 static const char *macro_values[] =
25047   {
25048 #ifdef INT8_MAX
25049     MVAL (INT8_MAX),
25050 #endif
25051 #ifdef INT16_MAX
25052     MVAL (INT16_MAX),
25053 #endif
25054 #ifdef INT32_MAX
25055     MVAL (INT32_MAX),
25056 #endif
25057 #ifdef INT64_MAX
25058     MVAL (INT64_MAX),
25059 #endif
25060 #ifdef UINT8_MAX
25061     MVAL (UINT8_MAX),
25062 #endif
25063 #ifdef UINT16_MAX
25064     MVAL (UINT16_MAX),
25065 #endif
25066 #ifdef UINT32_MAX
25067     MVAL (UINT32_MAX),
25068 #endif
25069 #ifdef UINT64_MAX
25070     MVAL (UINT64_MAX),
25071 #endif
25072     NULL
25073   };
25074
25075 int
25076 main ()
25077 {
25078
25079   const char **mv;
25080   for (mv = macro_values; *mv != NULL; mv++)
25081     {
25082       const char *value = *mv;
25083       /* Test whether it looks like a cast expression.  */
25084       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
25085           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
25086           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
25087           || strncmp (value, "((int)"/*)*/, 6) == 0
25088           || strncmp (value, "((signed short)"/*)*/, 15) == 0
25089           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
25090         return mv - macro_values + 1;
25091     }
25092   return 0;
25093
25094   ;
25095   return 0;
25096 }
25097 _ACEOF
25098 if ac_fn_c_try_run "$LINENO"; then :
25099   gl_cv_header_working_stdint_h=yes
25100 fi
25101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25102   conftest.$ac_objext conftest.beam conftest.$ac_ext
25103 fi
25104
25105
25106 fi
25107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25108
25109 fi
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
25111 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
25112   fi
25113   if test "$gl_cv_header_working_stdint_h" = yes; then
25114             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
25115 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
25116 if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then :
25117   $as_echo_n "(cached) " >&6
25118 else
25119   gl_cv_header_stdint_predates_cxx11_h=yes
25120        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25121 /* end confdefs.h.  */
25122
25123
25124 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
25125 #include <stdint.h>
25126
25127
25128   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25129      included before <wchar.h>.  */
25130   #include <stddef.h>
25131   #include <signal.h>
25132   #if HAVE_WCHAR_H
25133   # include <stdio.h>
25134   # include <time.h>
25135   # include <wchar.h>
25136   #endif
25137
25138
25139 intmax_t im = INTMAX_MAX;
25140 int32_t i32 = INT32_C (0x7fffffff);
25141
25142 int
25143 main ()
25144 {
25145
25146   ;
25147   return 0;
25148 }
25149 _ACEOF
25150 if ac_fn_c_try_compile "$LINENO"; then :
25151   gl_cv_header_stdint_predates_cxx11_h=no
25152 fi
25153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25154 fi
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
25156 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
25157
25158     if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
25159
25160 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
25161
25162
25163 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
25164
25165     fi
25166     STDINT_H=
25167   else
25168             for ac_header in sys/inttypes.h sys/bitypes.h
25169 do :
25170   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25171 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25172 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25173   cat >>confdefs.h <<_ACEOF
25174 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25175 _ACEOF
25176
25177 fi
25178
25179 done
25180
25181     if test $ac_cv_header_sys_inttypes_h = yes; then
25182       HAVE_SYS_INTTYPES_H=1
25183     else
25184       HAVE_SYS_INTTYPES_H=0
25185     fi
25186
25187     if test $ac_cv_header_sys_bitypes_h = yes; then
25188       HAVE_SYS_BITYPES_H=1
25189     else
25190       HAVE_SYS_BITYPES_H=0
25191     fi
25192
25193
25194
25195
25196   if test $APPLE_UNIVERSAL_BUILD = 0; then
25197
25198
25199   for gltype in ptrdiff_t size_t ; do
25200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
25201 $as_echo_n "checking for bit size of $gltype... " >&6; }
25202 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
25203   $as_echo_n "(cached) " >&6
25204 else
25205   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
25206   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25207      included before <wchar.h>.  */
25208   #include <stddef.h>
25209   #include <signal.h>
25210   #if HAVE_WCHAR_H
25211   # include <stdio.h>
25212   # include <time.h>
25213   # include <wchar.h>
25214   #endif
25215
25216 #include <limits.h>"; then :
25217
25218 else
25219   result=unknown
25220 fi
25221
25222        eval gl_cv_bitsizeof_${gltype}=\$result
25223
25224 fi
25225 eval ac_res=\$gl_cv_bitsizeof_${gltype}
25226                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25227 $as_echo "$ac_res" >&6; }
25228     eval result=\$gl_cv_bitsizeof_${gltype}
25229     if test $result = unknown; then
25230                                                 result=0
25231     fi
25232     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
25233     cat >>confdefs.h <<_ACEOF
25234 #define BITSIZEOF_${GLTYPE} $result
25235 _ACEOF
25236
25237     eval BITSIZEOF_${GLTYPE}=\$result
25238   done
25239
25240
25241   fi
25242
25243
25244   for gltype in sig_atomic_t wchar_t wint_t ; do
25245     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
25246 $as_echo_n "checking for bit size of $gltype... " >&6; }
25247 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
25248   $as_echo_n "(cached) " >&6
25249 else
25250   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
25251   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25252      included before <wchar.h>.  */
25253   #include <stddef.h>
25254   #include <signal.h>
25255   #if HAVE_WCHAR_H
25256   # include <stdio.h>
25257   # include <time.h>
25258   # include <wchar.h>
25259   #endif
25260
25261 #include <limits.h>"; then :
25262
25263 else
25264   result=unknown
25265 fi
25266
25267        eval gl_cv_bitsizeof_${gltype}=\$result
25268
25269 fi
25270 eval ac_res=\$gl_cv_bitsizeof_${gltype}
25271                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25272 $as_echo "$ac_res" >&6; }
25273     eval result=\$gl_cv_bitsizeof_${gltype}
25274     if test $result = unknown; then
25275                                                 result=0
25276     fi
25277     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
25278     cat >>confdefs.h <<_ACEOF
25279 #define BITSIZEOF_${GLTYPE} $result
25280 _ACEOF
25281
25282     eval BITSIZEOF_${GLTYPE}=\$result
25283   done
25284
25285
25286
25287
25288   for gltype in sig_atomic_t wchar_t wint_t ; do
25289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
25290 $as_echo_n "checking whether $gltype is signed... " >&6; }
25291 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
25292   $as_echo_n "(cached) " >&6
25293 else
25294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25295 /* end confdefs.h.  */
25296
25297   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25298      included before <wchar.h>.  */
25299   #include <stddef.h>
25300   #include <signal.h>
25301   #if HAVE_WCHAR_H
25302   # include <stdio.h>
25303   # include <time.h>
25304   # include <wchar.h>
25305   #endif
25306
25307             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
25308 int
25309 main ()
25310 {
25311
25312   ;
25313   return 0;
25314 }
25315 _ACEOF
25316 if ac_fn_c_try_compile "$LINENO"; then :
25317   result=yes
25318 else
25319   result=no
25320 fi
25321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25322        eval gl_cv_type_${gltype}_signed=\$result
25323
25324 fi
25325 eval ac_res=\$gl_cv_type_${gltype}_signed
25326                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25327 $as_echo "$ac_res" >&6; }
25328     eval result=\$gl_cv_type_${gltype}_signed
25329     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
25330     if test "$result" = yes; then
25331       cat >>confdefs.h <<_ACEOF
25332 #define HAVE_SIGNED_${GLTYPE} 1
25333 _ACEOF
25334
25335       eval HAVE_SIGNED_${GLTYPE}=1
25336     else
25337       eval HAVE_SIGNED_${GLTYPE}=0
25338     fi
25339   done
25340
25341
25342   gl_cv_type_ptrdiff_t_signed=yes
25343   gl_cv_type_size_t_signed=no
25344   if test $APPLE_UNIVERSAL_BUILD = 0; then
25345
25346
25347   for gltype in ptrdiff_t size_t ; do
25348     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
25349 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
25350 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
25351   $as_echo_n "(cached) " >&6
25352 else
25353   eval gl_cv_type_${gltype}_suffix=no
25354        eval result=\$gl_cv_type_${gltype}_signed
25355        if test "$result" = yes; then
25356          glsufu=
25357        else
25358          glsufu=u
25359        fi
25360        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
25361          case $glsuf in
25362            '')  gltype1='int';;
25363            l)   gltype1='long int';;
25364            ll)  gltype1='long long int';;
25365            i64) gltype1='__int64';;
25366            u)   gltype1='unsigned int';;
25367            ul)  gltype1='unsigned long int';;
25368            ull) gltype1='unsigned long long int';;
25369            ui64)gltype1='unsigned __int64';;
25370          esac
25371          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25372 /* end confdefs.h.  */
25373
25374   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25375      included before <wchar.h>.  */
25376   #include <stddef.h>
25377   #include <signal.h>
25378   #if HAVE_WCHAR_H
25379   # include <stdio.h>
25380   # include <time.h>
25381   # include <wchar.h>
25382   #endif
25383
25384               extern $gltype foo;
25385               extern $gltype1 foo;
25386 int
25387 main ()
25388 {
25389
25390   ;
25391   return 0;
25392 }
25393 _ACEOF
25394 if ac_fn_c_try_compile "$LINENO"; then :
25395   eval gl_cv_type_${gltype}_suffix=\$glsuf
25396 fi
25397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25398          eval result=\$gl_cv_type_${gltype}_suffix
25399          test "$result" != no && break
25400        done
25401 fi
25402 eval ac_res=\$gl_cv_type_${gltype}_suffix
25403                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25404 $as_echo "$ac_res" >&6; }
25405     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
25406     eval result=\$gl_cv_type_${gltype}_suffix
25407     test "$result" = no && result=
25408     eval ${GLTYPE}_SUFFIX=\$result
25409     cat >>confdefs.h <<_ACEOF
25410 #define ${GLTYPE}_SUFFIX $result
25411 _ACEOF
25412
25413   done
25414
25415
25416   fi
25417
25418
25419   for gltype in sig_atomic_t wchar_t wint_t ; do
25420     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
25421 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
25422 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
25423   $as_echo_n "(cached) " >&6
25424 else
25425   eval gl_cv_type_${gltype}_suffix=no
25426        eval result=\$gl_cv_type_${gltype}_signed
25427        if test "$result" = yes; then
25428          glsufu=
25429        else
25430          glsufu=u
25431        fi
25432        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
25433          case $glsuf in
25434            '')  gltype1='int';;
25435            l)   gltype1='long int';;
25436            ll)  gltype1='long long int';;
25437            i64) gltype1='__int64';;
25438            u)   gltype1='unsigned int';;
25439            ul)  gltype1='unsigned long int';;
25440            ull) gltype1='unsigned long long int';;
25441            ui64)gltype1='unsigned __int64';;
25442          esac
25443          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25444 /* end confdefs.h.  */
25445
25446   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25447      included before <wchar.h>.  */
25448   #include <stddef.h>
25449   #include <signal.h>
25450   #if HAVE_WCHAR_H
25451   # include <stdio.h>
25452   # include <time.h>
25453   # include <wchar.h>
25454   #endif
25455
25456               extern $gltype foo;
25457               extern $gltype1 foo;
25458 int
25459 main ()
25460 {
25461
25462   ;
25463   return 0;
25464 }
25465 _ACEOF
25466 if ac_fn_c_try_compile "$LINENO"; then :
25467   eval gl_cv_type_${gltype}_suffix=\$glsuf
25468 fi
25469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25470          eval result=\$gl_cv_type_${gltype}_suffix
25471          test "$result" != no && break
25472        done
25473 fi
25474 eval ac_res=\$gl_cv_type_${gltype}_suffix
25475                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25476 $as_echo "$ac_res" >&6; }
25477     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
25478     eval result=\$gl_cv_type_${gltype}_suffix
25479     test "$result" = no && result=
25480     eval ${GLTYPE}_SUFFIX=\$result
25481     cat >>confdefs.h <<_ACEOF
25482 #define ${GLTYPE}_SUFFIX $result
25483 _ACEOF
25484
25485   done
25486
25487
25488
25489           if test $BITSIZEOF_WINT_T -lt 32; then
25490     BITSIZEOF_WINT_T=32
25491   fi
25492
25493     STDINT_H=stdint.h
25494   fi
25495
25496    if test -n "$STDINT_H"; then
25497   GL_GENERATE_STDINT_H_TRUE=
25498   GL_GENERATE_STDINT_H_FALSE='#'
25499 else
25500   GL_GENERATE_STDINT_H_TRUE='#'
25501   GL_GENERATE_STDINT_H_FALSE=
25502 fi
25503
25504
25505
25506      REPLACE_STRERROR_0=0
25507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
25508 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
25509 if ${gl_cv_func_strerror_0_works+:} false; then :
25510   $as_echo_n "(cached) " >&6
25511 else
25512   if test "$cross_compiling" = yes; then :
25513   case "$host_os" in
25514                  # Guess yes on glibc systems.
25515          *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
25516                  # If we don't know, assume the worst.
25517          *)      gl_cv_func_strerror_0_works="guessing no" ;;
25518        esac
25519
25520 else
25521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25522 /* end confdefs.h.  */
25523 #include <string.h>
25524            #include <errno.h>
25525
25526 int
25527 main ()
25528 {
25529 int result = 0;
25530            char *str;
25531            errno = 0;
25532            str = strerror (0);
25533            if (!*str) result |= 1;
25534            if (errno) result |= 2;
25535            if (strstr (str, "nknown") || strstr (str, "ndefined"))
25536              result |= 4;
25537            return result;
25538   ;
25539   return 0;
25540 }
25541 _ACEOF
25542 if ac_fn_c_try_run "$LINENO"; then :
25543   gl_cv_func_strerror_0_works=yes
25544 else
25545   gl_cv_func_strerror_0_works=no
25546 fi
25547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25548   conftest.$ac_objext conftest.beam conftest.$ac_ext
25549 fi
25550
25551
25552 fi
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
25554 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
25555   case "$gl_cv_func_strerror_0_works" in
25556     *yes) ;;
25557     *)
25558       REPLACE_STRERROR_0=1
25559
25560 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
25561
25562       ;;
25563   esac
25564
25565
25566
25567
25568
25569
25570
25571
25572
25573
25574
25575
25576      if test $gl_cv_have_include_next = yes; then
25577        gl_cv_next_string_h='<'string.h'>'
25578      else
25579        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
25580 $as_echo_n "checking absolute name of <string.h>... " >&6; }
25581 if ${gl_cv_next_string_h+:} false; then :
25582   $as_echo_n "(cached) " >&6
25583 else
25584
25585
25586
25587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25588 /* end confdefs.h.  */
25589 #include <string.h>
25590 _ACEOF
25591                 case "$host_os" in
25592     aix*) gl_absname_cpp="$ac_cpp -C" ;;
25593     *)    gl_absname_cpp="$ac_cpp" ;;
25594   esac
25595
25596   case "$host_os" in
25597     mingw*)
25598                                           gl_dirsep_regex='[/\\]'
25599       ;;
25600     *)
25601       gl_dirsep_regex='\/'
25602       ;;
25603   esac
25604       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25605   gl_header_literal_regex=`echo 'string.h' \
25606                            | sed -e "$gl_make_literal_regex_sed"`
25607   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25608       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25609       s|^/[^/]|//&|
25610       p
25611       q
25612     }'
25613
25614         gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25615   sed -n "$gl_absolute_header_sed"`
25616
25617            gl_header=$gl_cv_absolute_string_h
25618            gl_cv_next_string_h='"'$gl_header'"'
25619
25620
25621 fi
25622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
25623 $as_echo "$gl_cv_next_string_h" >&6; }
25624      fi
25625      NEXT_STRING_H=$gl_cv_next_string_h
25626
25627      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25628        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25629        gl_next_as_first_directive='<'string.h'>'
25630      else
25631        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25632        gl_next_as_first_directive=$gl_cv_next_string_h
25633      fi
25634      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
25635
25636
25637
25638
25639
25640
25641     for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul      strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r      strerror_r strsignal strverscmp; do
25642     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
25644 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25645 if eval \${$as_gl_Symbol+:} false; then :
25646   $as_echo_n "(cached) " >&6
25647 else
25648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25649 /* end confdefs.h.  */
25650 #include <string.h>
25651
25652 int
25653 main ()
25654 {
25655 #undef $gl_func
25656   (void) $gl_func;
25657   ;
25658   return 0;
25659 }
25660 _ACEOF
25661 if ac_fn_c_try_compile "$LINENO"; then :
25662   eval "$as_gl_Symbol=yes"
25663 else
25664   eval "$as_gl_Symbol=no"
25665 fi
25666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25667 fi
25668 eval ac_res=\$$as_gl_Symbol
25669                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25670 $as_echo "$ac_res" >&6; }
25671     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
25672   cat >>confdefs.h <<_ACEOF
25673 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25674 _ACEOF
25675
25676                      eval ac_cv_have_decl_$gl_func=yes
25677 fi
25678       done
25679
25680
25681 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
25682 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
25683   ac_have_decl=1
25684 else
25685   ac_have_decl=0
25686 fi
25687
25688 cat >>confdefs.h <<_ACEOF
25689 #define HAVE_DECL_STRNLEN $ac_have_decl
25690 _ACEOF
25691
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25693 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25694 if ${ac_cv_header_stat_broken+:} false; then :
25695   $as_echo_n "(cached) " >&6
25696 else
25697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25698 /* end confdefs.h.  */
25699 #include <sys/types.h>
25700 #include <sys/stat.h>
25701
25702 #if defined S_ISBLK && defined S_IFDIR
25703 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25704 #endif
25705
25706 #if defined S_ISBLK && defined S_IFCHR
25707 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25708 #endif
25709
25710 #if defined S_ISLNK && defined S_IFREG
25711 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25712 #endif
25713
25714 #if defined S_ISSOCK && defined S_IFREG
25715 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25716 #endif
25717
25718 _ACEOF
25719 if ac_fn_c_try_compile "$LINENO"; then :
25720   ac_cv_header_stat_broken=no
25721 else
25722   ac_cv_header_stat_broken=yes
25723 fi
25724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25725 fi
25726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25727 $as_echo "$ac_cv_header_stat_broken" >&6; }
25728 if test $ac_cv_header_stat_broken = yes; then
25729
25730 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25731
25732 fi
25733
25734
25735
25736 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
25737 if test "x$ac_cv_type_mode_t" = xyes; then :
25738
25739 else
25740
25741 cat >>confdefs.h <<_ACEOF
25742 #define mode_t int
25743 _ACEOF
25744
25745 fi
25746
25747
25748
25749
25750
25751
25752
25753
25754
25755
25756
25757
25758
25759
25760
25761
25762
25763
25764
25765      if test $gl_cv_have_include_next = yes; then
25766        gl_cv_next_sys_types_h='<'sys/types.h'>'
25767      else
25768        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
25769 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
25770 if ${gl_cv_next_sys_types_h+:} false; then :
25771   $as_echo_n "(cached) " >&6
25772 else
25773
25774
25775
25776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25777 /* end confdefs.h.  */
25778 #include <sys/types.h>
25779 _ACEOF
25780                 case "$host_os" in
25781     aix*) gl_absname_cpp="$ac_cpp -C" ;;
25782     *)    gl_absname_cpp="$ac_cpp" ;;
25783   esac
25784
25785   case "$host_os" in
25786     mingw*)
25787                                           gl_dirsep_regex='[/\\]'
25788       ;;
25789     *)
25790       gl_dirsep_regex='\/'
25791       ;;
25792   esac
25793       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25794   gl_header_literal_regex=`echo 'sys/types.h' \
25795                            | sed -e "$gl_make_literal_regex_sed"`
25796   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25797       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25798       s|^/[^/]|//&|
25799       p
25800       q
25801     }'
25802
25803         gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25804   sed -n "$gl_absolute_header_sed"`
25805
25806            gl_header=$gl_cv_absolute_sys_types_h
25807            gl_cv_next_sys_types_h='"'$gl_header'"'
25808
25809
25810 fi
25811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
25812 $as_echo "$gl_cv_next_sys_types_h" >&6; }
25813      fi
25814      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
25815
25816      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25817        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25818        gl_next_as_first_directive='<'sys/types.h'>'
25819      else
25820        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25821        gl_next_as_first_directive=$gl_cv_next_sys_types_h
25822      fi
25823      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835
25836   GNULIB_MKTIME=0;
25837   GNULIB_NANOSLEEP=0;
25838   GNULIB_STRPTIME=0;
25839   GNULIB_TIMEGM=0;
25840   GNULIB_TIME_R=0;
25841   GNULIB_TIME_RZ=0;
25842     HAVE_DECL_LOCALTIME_R=1;
25843   HAVE_NANOSLEEP=1;
25844   HAVE_STRPTIME=1;
25845   HAVE_TIMEGM=1;
25846         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
25847   REPLACE_MKTIME=GNULIB_PORTCHECK;
25848   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
25849   REPLACE_TIMEGM=GNULIB_PORTCHECK;
25850
25851       : ${GNULIB_GETTIMEOFDAY=0};
25852         REPLACE_GMTIME=0;
25853   REPLACE_LOCALTIME=0;
25854
25855
25856
25857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
25858 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
25859 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
25860   $as_echo_n "(cached) " >&6
25861 else
25862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25863 /* end confdefs.h.  */
25864 #include <time.h>
25865
25866 int
25867 main ()
25868 {
25869 static struct timespec x; x.tv_sec = x.tv_nsec;
25870   ;
25871   return 0;
25872 }
25873 _ACEOF
25874 if ac_fn_c_try_compile "$LINENO"; then :
25875   gl_cv_sys_struct_timespec_in_time_h=yes
25876 else
25877   gl_cv_sys_struct_timespec_in_time_h=no
25878 fi
25879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25880 fi
25881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
25882 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
25883
25884   TIME_H_DEFINES_STRUCT_TIMESPEC=0
25885   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
25886   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
25887   UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
25888   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
25889     TIME_H_DEFINES_STRUCT_TIMESPEC=1
25890   else
25891     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
25892 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
25893 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
25894   $as_echo_n "(cached) " >&6
25895 else
25896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25897 /* end confdefs.h.  */
25898 #include <sys/time.h>
25899
25900 int
25901 main ()
25902 {
25903 static struct timespec x; x.tv_sec = x.tv_nsec;
25904   ;
25905   return 0;
25906 }
25907 _ACEOF
25908 if ac_fn_c_try_compile "$LINENO"; then :
25909   gl_cv_sys_struct_timespec_in_sys_time_h=yes
25910 else
25911   gl_cv_sys_struct_timespec_in_sys_time_h=no
25912 fi
25913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25914 fi
25915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
25916 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
25917     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
25918       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
25919     else
25920       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
25921 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
25922 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
25923   $as_echo_n "(cached) " >&6
25924 else
25925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25926 /* end confdefs.h.  */
25927 #include <pthread.h>
25928
25929 int
25930 main ()
25931 {
25932 static struct timespec x; x.tv_sec = x.tv_nsec;
25933   ;
25934   return 0;
25935 }
25936 _ACEOF
25937 if ac_fn_c_try_compile "$LINENO"; then :
25938   gl_cv_sys_struct_timespec_in_pthread_h=yes
25939 else
25940   gl_cv_sys_struct_timespec_in_pthread_h=no
25941 fi
25942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25943 fi
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
25945 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
25946       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
25947         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
25948       else
25949         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
25950 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
25951 if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then :
25952   $as_echo_n "(cached) " >&6
25953 else
25954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25955 /* end confdefs.h.  */
25956 #include <unistd.h>
25957
25958 int
25959 main ()
25960 {
25961 static struct timespec x; x.tv_sec = x.tv_nsec;
25962   ;
25963   return 0;
25964 }
25965 _ACEOF
25966 if ac_fn_c_try_compile "$LINENO"; then :
25967   gl_cv_sys_struct_timespec_in_unistd_h=yes
25968 else
25969   gl_cv_sys_struct_timespec_in_unistd_h=no
25970 fi
25971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25972 fi
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
25974 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
25975         if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
25976           UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
25977         fi
25978       fi
25979     fi
25980   fi
25981
25982
25983
25984
25985
25986
25987
25988
25989
25990
25991
25992
25993
25994
25995
25996
25997      if test $gl_cv_have_include_next = yes; then
25998        gl_cv_next_time_h='<'time.h'>'
25999      else
26000        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
26001 $as_echo_n "checking absolute name of <time.h>... " >&6; }
26002 if ${gl_cv_next_time_h+:} false; then :
26003   $as_echo_n "(cached) " >&6
26004 else
26005
26006
26007
26008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26009 /* end confdefs.h.  */
26010 #include <time.h>
26011 _ACEOF
26012                 case "$host_os" in
26013     aix*) gl_absname_cpp="$ac_cpp -C" ;;
26014     *)    gl_absname_cpp="$ac_cpp" ;;
26015   esac
26016
26017   case "$host_os" in
26018     mingw*)
26019                                           gl_dirsep_regex='[/\\]'
26020       ;;
26021     *)
26022       gl_dirsep_regex='\/'
26023       ;;
26024   esac
26025       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26026   gl_header_literal_regex=`echo 'time.h' \
26027                            | sed -e "$gl_make_literal_regex_sed"`
26028   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26029       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26030       s|^/[^/]|//&|
26031       p
26032       q
26033     }'
26034
26035         gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26036   sed -n "$gl_absolute_header_sed"`
26037
26038            gl_header=$gl_cv_absolute_time_h
26039            gl_cv_next_time_h='"'$gl_header'"'
26040
26041
26042 fi
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
26044 $as_echo "$gl_cv_next_time_h" >&6; }
26045      fi
26046      NEXT_TIME_H=$gl_cv_next_time_h
26047
26048      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26049        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26050        gl_next_as_first_directive='<'time.h'>'
26051      else
26052        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26053        gl_next_as_first_directive=$gl_cv_next_time_h
26054      fi
26055      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
26056
26057
26058
26059
26060
26061
26062
26063
26064
26065
26066
26067
26068 gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
26069 i\
26070 0
26071 q
26072 '
26073 gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
26074 i\
26075 0
26076 q
26077 '
26078 gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
26079 i\
26080 0
26081 q
26082 '
26083
26084
26085   if test "$HAVE_LIBUNISTRING" = yes; then
26086     LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
26087     LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
26088     LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
26089   fi
26090
26091 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
26092 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
26093   ac_have_decl=1
26094 else
26095   ac_have_decl=0
26096 fi
26097
26098 cat >>confdefs.h <<_ACEOF
26099 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
26100 _ACEOF
26101
26102 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
26103 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
26104   ac_have_decl=1
26105 else
26106   ac_have_decl=0
26107 fi
26108
26109 cat >>confdefs.h <<_ACEOF
26110 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
26111 _ACEOF
26112
26113 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
26114 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
26115   ac_have_decl=1
26116 else
26117   ac_have_decl=0
26118 fi
26119
26120 cat >>confdefs.h <<_ACEOF
26121 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
26122 _ACEOF
26123
26124 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
26125 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
26126   ac_have_decl=1
26127 else
26128   ac_have_decl=0
26129 fi
26130
26131 cat >>confdefs.h <<_ACEOF
26132 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
26133 _ACEOF
26134
26135 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
26136 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
26137   ac_have_decl=1
26138 else
26139   ac_have_decl=0
26140 fi
26141
26142 cat >>confdefs.h <<_ACEOF
26143 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
26144 _ACEOF
26145
26146 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
26147 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
26148   ac_have_decl=1
26149 else
26150   ac_have_decl=0
26151 fi
26152
26153 cat >>confdefs.h <<_ACEOF
26154 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
26155 _ACEOF
26156
26157 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
26158 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
26159   ac_have_decl=1
26160 else
26161   ac_have_decl=0
26162 fi
26163
26164 cat >>confdefs.h <<_ACEOF
26165 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
26166 _ACEOF
26167
26168 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
26169 if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
26170   ac_have_decl=1
26171 else
26172   ac_have_decl=0
26173 fi
26174
26175 cat >>confdefs.h <<_ACEOF
26176 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
26177 _ACEOF
26178
26179 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
26180 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
26181   ac_have_decl=1
26182 else
26183   ac_have_decl=0
26184 fi
26185
26186 cat >>confdefs.h <<_ACEOF
26187 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
26188 _ACEOF
26189
26190 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
26191 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
26192   ac_have_decl=1
26193 else
26194   ac_have_decl=0
26195 fi
26196
26197 cat >>confdefs.h <<_ACEOF
26198 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
26199 _ACEOF
26200
26201 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
26202 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
26203   ac_have_decl=1
26204 else
26205   ac_have_decl=0
26206 fi
26207
26208 cat >>confdefs.h <<_ACEOF
26209 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
26210 _ACEOF
26211
26212 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
26213 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
26214   ac_have_decl=1
26215 else
26216   ac_have_decl=0
26217 fi
26218
26219 cat >>confdefs.h <<_ACEOF
26220 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
26221 _ACEOF
26222
26223
26224             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
26225 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
26226 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
26227   $as_echo_n "(cached) " >&6
26228 else
26229   gl_cv_header_wchar_h_correct_inline=yes
26230      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26231 /* end confdefs.h.  */
26232
26233        #define wcstod renamed_wcstod
26234 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26235    <wchar.h>.
26236    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26237    included before <wchar.h>.  */
26238 #include <stddef.h>
26239 #include <stdio.h>
26240 #include <time.h>
26241 #include <wchar.h>
26242 extern int zero (void);
26243 int main () { return zero(); }
26244
26245 _ACEOF
26246      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
26247   (eval $ac_compile) 2>&5
26248   ac_status=$?
26249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26250   test $ac_status = 0; }; then
26251        mv conftest.$ac_objext conftest1.$ac_objext
26252        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26253 /* end confdefs.h.  */
26254
26255          #define wcstod renamed_wcstod
26256 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26257    <wchar.h>.
26258    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26259    included before <wchar.h>.  */
26260 #include <stddef.h>
26261 #include <stdio.h>
26262 #include <time.h>
26263 #include <wchar.h>
26264 int zero (void) { return 0; }
26265
26266 _ACEOF
26267        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
26268   (eval $ac_compile) 2>&5
26269   ac_status=$?
26270   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26271   test $ac_status = 0; }; then
26272          mv conftest.$ac_objext conftest2.$ac_objext
26273          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
26274            :
26275          else
26276            gl_cv_header_wchar_h_correct_inline=no
26277          fi
26278        fi
26279      fi
26280      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
26281
26282 fi
26283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
26284 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
26285   if test $gl_cv_header_wchar_h_correct_inline = no; then
26286     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
26287 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
26288 C99 mode. You have four options:
26289   - Add the flag -fgnu89-inline to CC and reconfigure, or
26290   - Fix your include files, using parts of
26291     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
26292   - Use a gcc version older than 4.3, or
26293   - Don't use the flags -std=c99 or -std=gnu99.
26294 Configuration aborted." "$LINENO" 5
26295   fi
26296
26297
26298
26299
26300
26301   if test $ac_cv_header_features_h = yes; then
26302     HAVE_FEATURES_H=1
26303   else
26304     HAVE_FEATURES_H=0
26305   fi
26306
26307
26308
26309
26310
26311    if false; then
26312   GL_COND_LIBTOOL_TRUE=
26313   GL_COND_LIBTOOL_FALSE='#'
26314 else
26315   GL_COND_LIBTOOL_TRUE='#'
26316   GL_COND_LIBTOOL_FALSE=
26317 fi
26318
26319   gl_cond_libtool=false
26320   gl_libdeps=
26321   gl_ltlibdeps=
26322   gl_m4_base='gnulib-m4'
26323
26324
26325
26326
26327
26328
26329
26330
26331
26332   gl_source_base='gnulib-lib'
26333
26334
26335
26336
26337
26338   if test $ac_cv_func_alloca_works = no; then
26339
26340
26341   :
26342
26343   fi
26344
26345   # Define an additional variable used in the Makefile substitution.
26346
26347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26348 /* end confdefs.h.  */
26349
26350 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
26351   Need own alloca
26352 #endif
26353
26354 _ACEOF
26355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26356   $EGREP "Need own alloca" >/dev/null 2>&1; then :
26357   ALLOCA_H=alloca.h
26358 else
26359   ALLOCA_H=
26360 fi
26361 rm -f conftest*
26362
26363
26364    if test -n "$ALLOCA_H"; then
26365   GL_GENERATE_ALLOCA_H_TRUE=
26366   GL_GENERATE_ALLOCA_H_FALSE='#'
26367 else
26368   GL_GENERATE_ALLOCA_H_TRUE='#'
26369   GL_GENERATE_ALLOCA_H_FALSE=
26370 fi
26371
26372
26373
26374
26375
26376   if test "$CXX_CHOICE" = no; then
26377     CXX=no
26378   fi
26379   if test -z "$CXX"; then
26380     if test -n "$CCC"; then
26381       CXX="$CCC"
26382     else
26383       if test -n "$ac_tool_prefix"; then
26384   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
26385   do
26386     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26387 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26389 $as_echo_n "checking for $ac_word... " >&6; }
26390 if ${ac_cv_prog_CXX+:} false; then :
26391   $as_echo_n "(cached) " >&6
26392 else
26393   if test -n "$CXX"; then
26394   ac_cv_prog_CXX="$CXX" # Let the user override the test.
26395 else
26396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26397 for as_dir in $PATH
26398 do
26399   IFS=$as_save_IFS
26400   test -z "$as_dir" && as_dir=.
26401     for ac_exec_ext in '' $ac_executable_extensions; do
26402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26403     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
26404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26405     break 2
26406   fi
26407 done
26408   done
26409 IFS=$as_save_IFS
26410
26411 fi
26412 fi
26413 CXX=$ac_cv_prog_CXX
26414 if test -n "$CXX"; then
26415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
26416 $as_echo "$CXX" >&6; }
26417 else
26418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26419 $as_echo "no" >&6; }
26420 fi
26421
26422
26423     test -n "$CXX" && break
26424   done
26425 fi
26426 if test -z "$CXX"; then
26427   ac_ct_CXX=$CXX
26428   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
26429 do
26430   # Extract the first word of "$ac_prog", so it can be a program name with args.
26431 set dummy $ac_prog; ac_word=$2
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26433 $as_echo_n "checking for $ac_word... " >&6; }
26434 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
26435   $as_echo_n "(cached) " >&6
26436 else
26437   if test -n "$ac_ct_CXX"; then
26438   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
26439 else
26440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26441 for as_dir in $PATH
26442 do
26443   IFS=$as_save_IFS
26444   test -z "$as_dir" && as_dir=.
26445     for ac_exec_ext in '' $ac_executable_extensions; do
26446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26447     ac_cv_prog_ac_ct_CXX="$ac_prog"
26448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26449     break 2
26450   fi
26451 done
26452   done
26453 IFS=$as_save_IFS
26454
26455 fi
26456 fi
26457 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
26458 if test -n "$ac_ct_CXX"; then
26459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
26460 $as_echo "$ac_ct_CXX" >&6; }
26461 else
26462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26463 $as_echo "no" >&6; }
26464 fi
26465
26466
26467   test -n "$ac_ct_CXX" && break
26468 done
26469
26470   if test "x$ac_ct_CXX" = x; then
26471     CXX=":"
26472   else
26473     case $cross_compiling:$ac_tool_warned in
26474 yes:)
26475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26477 ac_tool_warned=yes ;;
26478 esac
26479     CXX=$ac_ct_CXX
26480   fi
26481 fi
26482
26483     fi
26484   fi
26485   if test "$CXX" != no; then
26486             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
26487 $as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; }
26488     ac_ext=cpp
26489 ac_cpp='$CXXCPP $CPPFLAGS'
26490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26493
26494
26495
26496     echo 'int main () { return 0; }' > conftest.$ac_ext
26497     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
26498   (eval $ac_link) 2>&5
26499   ac_status=$?
26500   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26501   test $ac_status = 0; } && test -s conftest$ac_exeext; then
26502       gl_cv_prog_ansicxx_works=yes
26503       if (./conftest; exit) 2>/dev/null; then
26504         gl_cv_prog_ansicxx_cross=no
26505       else
26506         gl_cv_prog_ansicxx_cross=yes
26507       fi
26508     else
26509       gl_cv_prog_ansicxx_works=no
26510     fi
26511     rm -fr conftest*
26512     ac_ext=c
26513 ac_cpp='$CPP $CPPFLAGS'
26514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26517
26518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_works" >&5
26519 $as_echo "$gl_cv_prog_ansicxx_works" >&6; }
26520     if test $gl_cv_prog_ansicxx_works = no; then
26521       CXX=no
26522     else
26523                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports namespaces" >&5
26524 $as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; }
26525       ac_ext=cpp
26526 ac_cpp='$CXXCPP $CPPFLAGS'
26527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26530
26531       cat <<EOF > conftest.$ac_ext
26532 #include <iostream>
26533 namespace test { using namespace std; }
26534 std::ostream* ptr;
26535 int main () { return 0; }
26536 EOF
26537       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
26538   (eval $ac_link) 2>&5
26539   ac_status=$?
26540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26541   test $ac_status = 0; } && test -s conftest$ac_exeext; then
26542         gl_cv_prog_ansicxx_namespaces=yes
26543       else
26544         gl_cv_prog_ansicxx_namespaces=no
26545       fi
26546       rm -fr conftest*
26547       ac_ext=c
26548 ac_cpp='$CPP $CPPFLAGS'
26549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26552
26553       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_namespaces" >&5
26554 $as_echo "$gl_cv_prog_ansicxx_namespaces" >&6; }
26555       if test $gl_cv_prog_ansicxx_namespaces = no; then
26556         CXX=no
26557       fi
26558     fi
26559   fi
26560
26561
26562
26563    if test "$CXX" != no; then
26564   ANSICXX_TRUE=
26565   ANSICXX_FALSE='#'
26566 else
26567   ANSICXX_TRUE='#'
26568   ANSICXX_FALSE=
26569 fi
26570
26571
26572   if test "$CXX" != no; then
26573
26574 depcc="$CXX"  am_compiler_list=
26575
26576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26577 $as_echo_n "checking dependency style of $depcc... " >&6; }
26578 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
26579   $as_echo_n "(cached) " >&6
26580 else
26581   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26582   # We make a subdir and do the tests there.  Otherwise we can end up
26583   # making bogus files that we don't know about and never remove.  For
26584   # instance it was reported that on HP-UX the gcc test will end up
26585   # making a dummy file named 'D' -- because '-MD' means "put the output
26586   # in D".
26587   rm -rf conftest.dir
26588   mkdir conftest.dir
26589   # Copy depcomp to subdir because otherwise we won't find it if we're
26590   # using a relative directory.
26591   cp "$am_depcomp" conftest.dir
26592   cd conftest.dir
26593   # We will build objects and dependencies in a subdirectory because
26594   # it helps to detect inapplicable dependency modes.  For instance
26595   # both Tru64's cc and ICC support -MD to output dependencies as a
26596   # side effect of compilation, but ICC will put the dependencies in
26597   # the current directory while Tru64 will put them in the object
26598   # directory.
26599   mkdir sub
26600
26601   am_cv_CXX_dependencies_compiler_type=none
26602   if test "$am_compiler_list" = ""; then
26603      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26604   fi
26605   am__universal=false
26606   case " $depcc " in #(
26607      *\ -arch\ *\ -arch\ *) am__universal=true ;;
26608      esac
26609
26610   for depmode in $am_compiler_list; do
26611     # Setup a source with many dependencies, because some compilers
26612     # like to wrap large dependency lists on column 80 (with \), and
26613     # we should not choose a depcomp mode which is confused by this.
26614     #
26615     # We need to recreate these files for each test, as the compiler may
26616     # overwrite some of them when testing with obscure command lines.
26617     # This happens at least with the AIX C compiler.
26618     : > sub/conftest.c
26619     for i in 1 2 3 4 5 6; do
26620       echo '#include "conftst'$i'.h"' >> sub/conftest.c
26621       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26622       # Solaris 10 /bin/sh.
26623       echo '/* dummy */' > sub/conftst$i.h
26624     done
26625     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26626
26627     # We check with '-c' and '-o' for the sake of the "dashmstdout"
26628     # mode.  It turns out that the SunPro C++ compiler does not properly
26629     # handle '-M -o', and we need to detect this.  Also, some Intel
26630     # versions had trouble with output in subdirs.
26631     am__obj=sub/conftest.${OBJEXT-o}
26632     am__minus_obj="-o $am__obj"
26633     case $depmode in
26634     gcc)
26635       # This depmode causes a compiler race in universal mode.
26636       test "$am__universal" = false || continue
26637       ;;
26638     nosideeffect)
26639       # After this tag, mechanisms are not by side-effect, so they'll
26640       # only be used when explicitly requested.
26641       if test "x$enable_dependency_tracking" = xyes; then
26642         continue
26643       else
26644         break
26645       fi
26646       ;;
26647     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
26648       # This compiler won't grok '-c -o', but also, the minuso test has
26649       # not run yet.  These depmodes are late enough in the game, and
26650       # so weak that their functioning should not be impacted.
26651       am__obj=conftest.${OBJEXT-o}
26652       am__minus_obj=
26653       ;;
26654     none) break ;;
26655     esac
26656     if depmode=$depmode \
26657        source=sub/conftest.c object=$am__obj \
26658        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26659        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26660          >/dev/null 2>conftest.err &&
26661        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26662        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26663        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26664        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26665       # icc doesn't choke on unknown options, it will just issue warnings
26666       # or remarks (even with -Werror).  So we grep stderr for any message
26667       # that says an option was ignored or not supported.
26668       # When given -MP, icc 7.0 and 7.1 complain thusly:
26669       #   icc: Command line warning: ignoring option '-M'; no argument required
26670       # The diagnosis changed in icc 8.0:
26671       #   icc: Command line remark: option '-MP' not supported
26672       if (grep 'ignoring option' conftest.err ||
26673           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26674         am_cv_CXX_dependencies_compiler_type=$depmode
26675         break
26676       fi
26677     fi
26678   done
26679
26680   cd ..
26681   rm -rf conftest.dir
26682 else
26683   am_cv_CXX_dependencies_compiler_type=none
26684 fi
26685
26686 fi
26687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26688 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26689 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26690
26691  if
26692   test "x$enable_dependency_tracking" != xno \
26693   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26694   am__fastdepCXX_TRUE=
26695   am__fastdepCXX_FALSE='#'
26696 else
26697   am__fastdepCXX_TRUE='#'
26698   am__fastdepCXX_FALSE=
26699 fi
26700
26701
26702   else
26703      if false; then
26704   am__fastdepCXX_TRUE=
26705   am__fastdepCXX_FALSE='#'
26706 else
26707   am__fastdepCXX_TRUE='#'
26708   am__fastdepCXX_FALSE=
26709 fi
26710
26711   fi
26712
26713
26714   for ac_func in atexit
26715 do :
26716   ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
26717 if test "x$ac_cv_func_atexit" = xyes; then :
26718   cat >>confdefs.h <<_ACEOF
26719 #define HAVE_ATEXIT 1
26720 _ACEOF
26721
26722 fi
26723 done
26724
26725
26726   if test $ac_cv_func_atexit = no; then
26727
26728
26729
26730
26731
26732
26733
26734
26735   gl_LIBOBJS="$gl_LIBOBJS atexit.$ac_objext"
26736
26737
26738   :
26739
26740   fi
26741
26742
26743
26744   if test $ac_cv_func_canonicalize_file_name = no; then
26745     HAVE_CANONICALIZE_FILE_NAME=0
26746     if test $ac_cv_func_realpath = no; then
26747       HAVE_REALPATH=0
26748     else
26749       case "$gl_cv_func_realpath_works" in
26750         *yes) ;;
26751         *)    REPLACE_REALPATH=1 ;;
26752       esac
26753     fi
26754   else
26755     case "$gl_cv_func_realpath_works" in
26756       *yes)
26757         ;;
26758       *)
26759         REPLACE_CANONICALIZE_FILE_NAME=1
26760         REPLACE_REALPATH=1
26761         ;;
26762     esac
26763   fi
26764
26765   if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
26766
26767
26768
26769
26770
26771
26772
26773
26774   gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
26775
26776   fi
26777
26778
26779 cat >>confdefs.h <<_ACEOF
26780 #define GNULIB_CANONICALIZE_LGPL 1
26781 _ACEOF
26782
26783
26784
26785
26786
26787
26788
26789           GNULIB_CANONICALIZE_FILE_NAME=1
26790
26791
26792
26793
26794
26795 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
26796
26797
26798
26799
26800
26801
26802
26803
26804           GNULIB_REALPATH=1
26805
26806
26807
26808
26809
26810 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
26811
26812
26813
26814
26815
26816           if test "x$datarootdir" = x; then
26817     datarootdir='${datadir}'
26818
26819   fi
26820     if test "x$docdir" = x; then
26821     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
26822
26823   fi
26824     if test "x$htmldir" = x; then
26825     htmldir='${docdir}'
26826
26827   fi
26828   if test "x$dvidir" = x; then
26829     dvidir='${docdir}'
26830
26831   fi
26832   if test "x$pdfdir" = x; then
26833     pdfdir='${docdir}'
26834
26835   fi
26836   if test "x$psdir" = x; then
26837     psdir='${docdir}'
26838
26839   fi
26840   if test "x$lispdir" = x; then
26841     lispdir='${datarootdir}/emacs/site-lisp'
26842
26843   fi
26844   if test "x$localedir" = x; then
26845     localedir='${datarootdir}/locale'
26846
26847   fi
26848     if test "x$runstatedir" = x; then
26849     runstatedir='${localstatedir}/run'
26850
26851   fi
26852
26853       pkglibexecdir='${libexecdir}/${PACKAGE}'
26854
26855
26856
26857   ac_config_files="$ac_config_files csharpcomp.sh:../build-aux/csharpcomp.sh.in"
26858
26859
26860
26861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
26862 $as_echo_n "checking whether // is distinct from /... " >&6; }
26863 if ${gl_cv_double_slash_root+:} false; then :
26864   $as_echo_n "(cached) " >&6
26865 else
26866    if test x"$cross_compiling" = xyes ; then
26867         # When cross-compiling, there is no way to tell whether // is special
26868         # short of a list of hosts.  However, the only known hosts to date
26869         # that have a distinct // are Apollo DomainOS (too old to port to),
26870         # Cygwin, and z/OS.  If anyone knows of another system for which // has
26871         # special semantics and is distinct from /, please report it to
26872         # <bug-gnulib@gnu.org>.
26873         case $host in
26874           *-cygwin | i370-ibm-openedition)
26875             gl_cv_double_slash_root=yes ;;
26876           *)
26877             # Be optimistic and assume that / and // are the same when we
26878             # don't know.
26879             gl_cv_double_slash_root='unknown, assuming no' ;;
26880         esac
26881       else
26882         set x `ls -di / // 2>/dev/null`
26883         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
26884           gl_cv_double_slash_root=no
26885         else
26886           gl_cv_double_slash_root=yes
26887         fi
26888       fi
26889 fi
26890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
26891 $as_echo "$gl_cv_double_slash_root" >&6; }
26892   if test "$gl_cv_double_slash_root" = yes; then
26893
26894 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
26895
26896   fi
26897
26898
26899
26900
26901
26902
26903
26904           GNULIB_ENVIRON=1
26905
26906
26907
26908
26909
26910 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
26911
26912
26913
26914
26915
26916       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
26917 $as_echo_n "checking for error_at_line... " >&6; }
26918 if ${ac_cv_lib_error_at_line+:} false; then :
26919   $as_echo_n "(cached) " >&6
26920 else
26921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26922 /* end confdefs.h.  */
26923 #include <error.h>
26924 int
26925 main ()
26926 {
26927 error_at_line (0, 0, "", 0, "an error occurred");
26928   ;
26929   return 0;
26930 }
26931 _ACEOF
26932 if ac_fn_c_try_link "$LINENO"; then :
26933   ac_cv_lib_error_at_line=yes
26934 else
26935   ac_cv_lib_error_at_line=no
26936 fi
26937 rm -f core conftest.err conftest.$ac_objext \
26938     conftest$ac_exeext conftest.$ac_ext
26939 fi
26940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
26941 $as_echo "$ac_cv_lib_error_at_line" >&6; }
26942
26943   if test $ac_cv_lib_error_at_line = no; then
26944
26945
26946
26947
26948
26949
26950
26951
26952   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
26953
26954
26955
26956   :
26957
26958   fi
26959
26960
26961   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
26962
26963
26964
26965   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
26966
26967
26968
26969
26970 cat >>confdefs.h <<_ACEOF
26971 #define GNULIB_FWRITEERROR 1
26972 _ACEOF
26973
26974
26975
26976
26977
26978
26979
26980   if test $REPLACE_GETOPT = 1; then
26981
26982
26983
26984
26985
26986
26987
26988
26989   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
27000
27001
27002
27003
27004         GNULIB_GL_UNISTD_H_GETOPT=1
27005   fi
27006
27007
27008
27009 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
27010
27011
27012
27013
27014
27015
27016
27017     REPLACE_GETOPT=0
27018     if test -n "$gl_replace_getopt"; then
27019       REPLACE_GETOPT=1
27020     fi
27021
27022   if test $REPLACE_GETOPT = 1; then
27023
27024   GETOPT_H=getopt.h
27025
27026 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
27027
27028
27029
27030   fi
27031
27032   if test $REPLACE_GETOPT = 1; then
27033
27034
27035
27036
27037
27038
27039
27040
27041   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
27042
27043
27044
27045
27046
27047
27048
27049
27050
27051   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
27052
27053
27054
27055
27056         GNULIB_GL_UNISTD_H_GETOPT=1
27057   fi
27058
27059
27060
27061
27062
27063
27064
27065
27066
27067   gl_gettimeofday_timezone=void
27068   if test $ac_cv_func_gettimeofday != yes; then
27069     HAVE_GETTIMEOFDAY=0
27070   else
27071
27072
27073
27074  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
27075 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
27076 if ${gl_cv_func_gettimeofday_clobber+:} false; then :
27077   $as_echo_n "(cached) " >&6
27078 else
27079   if test "$cross_compiling" = yes; then :
27080   # When cross-compiling:
27081       case "$host_os" in
27082                 # Guess all is fine on glibc systems.
27083         *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
27084                 # If we don't know, assume the worst.
27085         *)      gl_cv_func_gettimeofday_clobber="guessing yes" ;;
27086       esac
27087
27088 else
27089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27090 /* end confdefs.h.  */
27091 #include <string.h>
27092           #include <sys/time.h>
27093           #include <time.h>
27094           #include <stdlib.h>
27095
27096 int
27097 main ()
27098 {
27099
27100           time_t t = 0;
27101           struct tm *lt;
27102           struct tm saved_lt;
27103           struct timeval tv;
27104           lt = localtime (&t);
27105           saved_lt = *lt;
27106           gettimeofday (&tv, NULL);
27107           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
27108
27109   ;
27110   return 0;
27111 }
27112 _ACEOF
27113 if ac_fn_c_try_run "$LINENO"; then :
27114   gl_cv_func_gettimeofday_clobber=no
27115 else
27116   gl_cv_func_gettimeofday_clobber=yes
27117 fi
27118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27119   conftest.$ac_objext conftest.beam conftest.$ac_ext
27120 fi
27121
27122 fi
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
27124 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
27125
27126  case "$gl_cv_func_gettimeofday_clobber" in
27127    *yes)
27128      REPLACE_GETTIMEOFDAY=1
27129
27130   REPLACE_GMTIME=1
27131   REPLACE_LOCALTIME=1
27132
27133
27134 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
27135
27136      ;;
27137  esac
27138
27139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
27140 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
27141 if ${gl_cv_func_gettimeofday_posix_signature+:} false; then :
27142   $as_echo_n "(cached) " >&6
27143 else
27144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27145 /* end confdefs.h.  */
27146 #include <sys/time.h>
27147               struct timeval c;
27148               int gettimeofday (struct timeval *restrict, void *restrict);
27149
27150 int
27151 main ()
27152 {
27153 /* glibc uses struct timezone * rather than the POSIX void *
27154                  if _GNU_SOURCE is defined.  However, since the only portable
27155                  use of gettimeofday uses NULL as the second parameter, and
27156                  since the glibc definition is actually more typesafe, it is
27157                  not worth wrapping this to get a compliant signature.  */
27158               int (*f) (struct timeval *restrict, void *restrict)
27159                 = gettimeofday;
27160               int x = f (&c, 0);
27161               return !(x | c.tv_sec | c.tv_usec);
27162
27163   ;
27164   return 0;
27165 }
27166 _ACEOF
27167 if ac_fn_c_try_compile "$LINENO"; then :
27168   gl_cv_func_gettimeofday_posix_signature=yes
27169 else
27170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27171 /* end confdefs.h.  */
27172 #include <sys/time.h>
27173 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
27174
27175 int
27176 main ()
27177 {
27178
27179   ;
27180   return 0;
27181 }
27182 _ACEOF
27183 if ac_fn_c_try_compile "$LINENO"; then :
27184   gl_cv_func_gettimeofday_posix_signature=almost
27185 else
27186   gl_cv_func_gettimeofday_posix_signature=no
27187 fi
27188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27189 fi
27190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27191 fi
27192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
27193 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
27194     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
27195       gl_gettimeofday_timezone='struct timezone'
27196     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
27197       REPLACE_GETTIMEOFDAY=1
27198     fi
27199         if test $REPLACE_STRUCT_TIMEVAL = 1; then
27200       REPLACE_GETTIMEOFDAY=1
27201     fi
27202
27203   fi
27204
27205 cat >>confdefs.h <<_ACEOF
27206 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
27207 _ACEOF
27208
27209
27210   if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
27211
27212
27213
27214
27215
27216
27217
27218
27219   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
27220
27221
27222   for ac_header in sys/timeb.h
27223 do :
27224   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
27225 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
27226   cat >>confdefs.h <<_ACEOF
27227 #define HAVE_SYS_TIMEB_H 1
27228 _ACEOF
27229
27230 fi
27231
27232 done
27233
27234   for ac_func in _ftime
27235 do :
27236   ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
27237 if test "x$ac_cv_func__ftime" = xyes; then :
27238   cat >>confdefs.h <<_ACEOF
27239 #define HAVE__FTIME 1
27240 _ACEOF
27241
27242 fi
27243 done
27244
27245
27246   fi
27247
27248
27249
27250
27251
27252           GNULIB_GETTIMEOFDAY=1
27253
27254
27255
27256
27257
27258 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
27259
27260
27261
27262
27263   :
27264
27265
27266
27267
27268
27269
27270
27271           GNULIB_ICONV=1
27272
27273
27274
27275
27276
27277
27278
27279
27280
27281
27282
27283
27284
27285
27286
27287
27288      if test $gl_cv_have_include_next = yes; then
27289        gl_cv_next_iconv_h='<'iconv.h'>'
27290      else
27291        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <iconv.h>" >&5
27292 $as_echo_n "checking absolute name of <iconv.h>... " >&6; }
27293 if ${gl_cv_next_iconv_h+:} false; then :
27294   $as_echo_n "(cached) " >&6
27295 else
27296
27297              if test $ac_cv_header_iconv_h = yes; then
27298
27299
27300
27301
27302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27303 /* end confdefs.h.  */
27304 #include <iconv.h>
27305 _ACEOF
27306                 case "$host_os" in
27307     aix*) gl_absname_cpp="$ac_cpp -C" ;;
27308     *)    gl_absname_cpp="$ac_cpp" ;;
27309   esac
27310
27311   case "$host_os" in
27312     mingw*)
27313                                           gl_dirsep_regex='[/\\]'
27314       ;;
27315     *)
27316       gl_dirsep_regex='\/'
27317       ;;
27318   esac
27319       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27320   gl_header_literal_regex=`echo 'iconv.h' \
27321                            | sed -e "$gl_make_literal_regex_sed"`
27322   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27323       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27324       s|^/[^/]|//&|
27325       p
27326       q
27327     }'
27328
27329         gl_cv_absolute_iconv_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27330   sed -n "$gl_absolute_header_sed"`
27331
27332            gl_header=$gl_cv_absolute_iconv_h
27333            gl_cv_next_iconv_h='"'$gl_header'"'
27334           else
27335                gl_cv_next_iconv_h='<'iconv.h'>'
27336              fi
27337
27338
27339 fi
27340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5
27341 $as_echo "$gl_cv_next_iconv_h" >&6; }
27342      fi
27343      NEXT_ICONV_H=$gl_cv_next_iconv_h
27344
27345      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27346        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27347        gl_next_as_first_directive='<'iconv.h'>'
27348      else
27349        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27350        gl_next_as_first_directive=$gl_cv_next_iconv_h
27351      fi
27352      NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
27353
27354
27355
27356
27357
27358
27359
27360
27361
27362   if test "$am_cv_func_iconv" = yes; then
27363
27364
27365   ICONV_H='iconv.h'
27366    if test -n "$ICONV_H"; then
27367   GL_GENERATE_ICONV_H_TRUE=
27368   GL_GENERATE_ICONV_H_FALSE='#'
27369 else
27370   GL_GENERATE_ICONV_H_TRUE='#'
27371   GL_GENERATE_ICONV_H_FALSE=
27372 fi
27373
27374
27375             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27376 /* end confdefs.h.  */
27377
27378       #include <iconv.h>
27379       #if defined _LIBICONV_VERSION || (defined __GLIBC__ && !defined __UCLIBC__)
27380        gnu_iconv
27381       #endif
27382
27383 _ACEOF
27384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27385   $EGREP "gnu_iconv" >/dev/null 2>&1; then :
27386   gl_func_iconv_gnu=yes
27387 else
27388   gl_func_iconv_gnu=no
27389 fi
27390 rm -f conftest*
27391
27392     if test $gl_func_iconv_gnu = no; then
27393       iconv_flavor=
27394       case "$host_os" in
27395         aix*)     iconv_flavor=ICONV_FLAVOR_AIX ;;
27396         irix*)    iconv_flavor=ICONV_FLAVOR_IRIX ;;
27397         hpux*)    iconv_flavor=ICONV_FLAVOR_HPUX ;;
27398         osf*)     iconv_flavor=ICONV_FLAVOR_OSF ;;
27399         solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;;
27400       esac
27401       if test -n "$iconv_flavor"; then
27402
27403 cat >>confdefs.h <<_ACEOF
27404 #define ICONV_FLAVOR $iconv_flavor
27405 _ACEOF
27406
27407
27408
27409
27410   ICONV_H='iconv.h'
27411    if test -n "$ICONV_H"; then
27412   GL_GENERATE_ICONV_H_TRUE=
27413   GL_GENERATE_ICONV_H_FALSE='#'
27414 else
27415   GL_GENERATE_ICONV_H_TRUE='#'
27416   GL_GENERATE_ICONV_H_FALSE=
27417 fi
27418
27419
27420   REPLACE_ICONV_OPEN=1
27421
27422       fi
27423     fi
27424
27425   fi
27426
27427   if test $REPLACE_ICONV_OPEN = 1; then
27428
27429
27430
27431
27432
27433
27434
27435
27436   gl_LIBOBJS="$gl_LIBOBJS iconv_open.$ac_objext"
27437
27438   fi
27439   if test $REPLACE_ICONV = 1; then
27440
27441
27442
27443
27444
27445
27446
27447
27448   gl_LIBOBJS="$gl_LIBOBJS iconv.$ac_objext"
27449
27450
27451
27452
27453
27454
27455
27456
27457
27458   gl_LIBOBJS="$gl_LIBOBJS iconv_close.$ac_objext"
27459
27460   fi
27461
27462
27463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
27464 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
27465 if ${gl_cv_c_inline_effective+:} false; then :
27466   $as_echo_n "(cached) " >&6
27467 else
27468   if test $ac_cv_c_inline = no; then
27469        gl_cv_c_inline_effective=no
27470      else
27471                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27472 /* end confdefs.h.  */
27473
27474 int
27475 main ()
27476 {
27477 #ifdef __NO_INLINE__
27478                #error "inline is not effective"
27479              #endif
27480   ;
27481   return 0;
27482 }
27483 _ACEOF
27484 if ac_fn_c_try_compile "$LINENO"; then :
27485   gl_cv_c_inline_effective=yes
27486 else
27487   gl_cv_c_inline_effective=no
27488 fi
27489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27490      fi
27491
27492 fi
27493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
27494 $as_echo "$gl_cv_c_inline_effective" >&6; }
27495   if test $gl_cv_c_inline_effective = yes; then
27496
27497 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
27498
27499   fi
27500
27501
27502
27503
27504
27505
27506   ac_fn_c_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" "
27507 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27508    <wchar.h>.
27509    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
27510    before <wchar.h>.  */
27511 #include <stddef.h>
27512 #include <stdio.h>
27513 #include <time.h>
27514 #include <wchar.h>
27515 #include <wctype.h>
27516
27517 "
27518 if test "x$ac_cv_have_decl_iswblank" = xyes; then :
27519   ac_have_decl=1
27520 else
27521   ac_have_decl=0
27522 fi
27523
27524 cat >>confdefs.h <<_ACEOF
27525 #define HAVE_DECL_ISWBLANK $ac_have_decl
27526 _ACEOF
27527
27528   if test $ac_cv_func_iswblank = no; then
27529     HAVE_ISWBLANK=0
27530     if test $ac_cv_have_decl_iswblank = yes; then
27531       REPLACE_ISWBLANK=1
27532     fi
27533   fi
27534   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
27535         :
27536   else
27537     if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
27538             :
27539     fi
27540   fi
27541
27542
27543   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
27544     :
27545   else
27546     if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
27547
27548
27549
27550
27551
27552
27553
27554
27555   gl_LIBOBJS="$gl_LIBOBJS iswblank.$ac_objext"
27556
27557     fi
27558   fi
27559
27560
27561
27562
27563
27564           GNULIB_ISWBLANK=1
27565
27566
27567
27568
27569
27570 $as_echo "#define GNULIB_TEST_ISWBLANK 1" >>confdefs.h
27571
27572
27573
27574
27575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5
27576 $as_echo_n "checking whether to use Java... " >&6; }
27577   # Check whether --enable-java was given.
27578 if test "${enable_java+set}" = set; then :
27579   enableval=$enable_java; JAVA_CHOICE="$enableval"
27580 else
27581   JAVA_CHOICE=yes
27582 fi
27583
27584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5
27585 $as_echo "$JAVA_CHOICE" >&6; }
27586   if test "$JAVA_CHOICE" = yes; then
27587     # Check whether --enable-native-java was given.
27588 if test "${enable_native_java+set}" = set; then :
27589   enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
27590 fi
27591
27592   fi
27593
27594
27595   # You need to invoke gt_JAVACOMP yourself, possibly with arguments.
27596   ac_config_files="$ac_config_files javacomp.sh:../build-aux/javacomp.sh.in"
27597
27598
27599
27600
27601
27602
27603
27604
27605
27606
27607
27608
27609
27610
27611
27612      if test $gl_cv_have_include_next = yes; then
27613        gl_cv_next_langinfo_h='<'langinfo.h'>'
27614      else
27615        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5
27616 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
27617 if ${gl_cv_next_langinfo_h+:} false; then :
27618   $as_echo_n "(cached) " >&6
27619 else
27620
27621              if test $ac_cv_header_langinfo_h = yes; then
27622
27623
27624
27625
27626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27627 /* end confdefs.h.  */
27628 #include <langinfo.h>
27629 _ACEOF
27630                 case "$host_os" in
27631     aix*) gl_absname_cpp="$ac_cpp -C" ;;
27632     *)    gl_absname_cpp="$ac_cpp" ;;
27633   esac
27634
27635   case "$host_os" in
27636     mingw*)
27637                                           gl_dirsep_regex='[/\\]'
27638       ;;
27639     *)
27640       gl_dirsep_regex='\/'
27641       ;;
27642   esac
27643       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27644   gl_header_literal_regex=`echo 'langinfo.h' \
27645                            | sed -e "$gl_make_literal_regex_sed"`
27646   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27647       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27648       s|^/[^/]|//&|
27649       p
27650       q
27651     }'
27652
27653         gl_cv_absolute_langinfo_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27654   sed -n "$gl_absolute_header_sed"`
27655
27656            gl_header=$gl_cv_absolute_langinfo_h
27657            gl_cv_next_langinfo_h='"'$gl_header'"'
27658           else
27659                gl_cv_next_langinfo_h='<'langinfo.h'>'
27660              fi
27661
27662
27663 fi
27664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5
27665 $as_echo "$gl_cv_next_langinfo_h" >&6; }
27666      fi
27667      NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
27668
27669      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27670        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27671        gl_next_as_first_directive='<'langinfo.h'>'
27672      else
27673        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27674        gl_next_as_first_directive=$gl_cv_next_langinfo_h
27675      fi
27676      NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
27677
27678
27679
27680
27681
27682     HAVE_LANGINFO_CODESET=0
27683   HAVE_LANGINFO_T_FMT_AMPM=0
27684   HAVE_LANGINFO_ERA=0
27685   HAVE_LANGINFO_YESEXPR=0
27686
27687   if test $ac_cv_header_langinfo_h = yes; then
27688     HAVE_LANGINFO_H=1
27689             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5
27690 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
27691 if ${gl_cv_header_langinfo_codeset+:} false; then :
27692   $as_echo_n "(cached) " >&6
27693 else
27694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27695 /* end confdefs.h.  */
27696 #include <langinfo.h>
27697 int a = CODESET;
27698
27699 int
27700 main ()
27701 {
27702
27703   ;
27704   return 0;
27705 }
27706 _ACEOF
27707 if ac_fn_c_try_compile "$LINENO"; then :
27708   gl_cv_header_langinfo_codeset=yes
27709 else
27710   gl_cv_header_langinfo_codeset=no
27711 fi
27712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27713
27714 fi
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5
27716 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
27717     if test $gl_cv_header_langinfo_codeset = yes; then
27718       HAVE_LANGINFO_CODESET=1
27719     fi
27720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5
27721 $as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
27722 if ${gl_cv_header_langinfo_t_fmt_ampm+:} false; then :
27723   $as_echo_n "(cached) " >&6
27724 else
27725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27726 /* end confdefs.h.  */
27727 #include <langinfo.h>
27728 int a = T_FMT_AMPM;
27729
27730 int
27731 main ()
27732 {
27733
27734   ;
27735   return 0;
27736 }
27737 _ACEOF
27738 if ac_fn_c_try_compile "$LINENO"; then :
27739   gl_cv_header_langinfo_t_fmt_ampm=yes
27740 else
27741   gl_cv_header_langinfo_t_fmt_ampm=no
27742 fi
27743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27744
27745 fi
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
27747 $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
27748     if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
27749       HAVE_LANGINFO_T_FMT_AMPM=1
27750     fi
27751     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5
27752 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
27753 if ${gl_cv_header_langinfo_era+:} false; then :
27754   $as_echo_n "(cached) " >&6
27755 else
27756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27757 /* end confdefs.h.  */
27758 #include <langinfo.h>
27759 int a = ERA;
27760
27761 int
27762 main ()
27763 {
27764
27765   ;
27766   return 0;
27767 }
27768 _ACEOF
27769 if ac_fn_c_try_compile "$LINENO"; then :
27770   gl_cv_header_langinfo_era=yes
27771 else
27772   gl_cv_header_langinfo_era=no
27773 fi
27774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27775
27776 fi
27777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5
27778 $as_echo "$gl_cv_header_langinfo_era" >&6; }
27779     if test $gl_cv_header_langinfo_era = yes; then
27780       HAVE_LANGINFO_ERA=1
27781     fi
27782     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5
27783 $as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
27784 if ${gl_cv_header_langinfo_yesexpr+:} false; then :
27785   $as_echo_n "(cached) " >&6
27786 else
27787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27788 /* end confdefs.h.  */
27789 #include <langinfo.h>
27790 int a = YESEXPR;
27791
27792 int
27793 main ()
27794 {
27795
27796   ;
27797   return 0;
27798 }
27799 _ACEOF
27800 if ac_fn_c_try_compile "$LINENO"; then :
27801   gl_cv_header_langinfo_yesexpr=yes
27802 else
27803   gl_cv_header_langinfo_yesexpr=no
27804 fi
27805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27806
27807 fi
27808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5
27809 $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
27810     if test $gl_cv_header_langinfo_yesexpr = yes; then
27811       HAVE_LANGINFO_YESEXPR=1
27812     fi
27813   else
27814     HAVE_LANGINFO_H=0
27815   fi
27816
27817
27818
27819
27820
27821
27822
27823     for gl_func in nl_langinfo; do
27824     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27825     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
27826 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27827 if eval \${$as_gl_Symbol+:} false; then :
27828   $as_echo_n "(cached) " >&6
27829 else
27830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27831 /* end confdefs.h.  */
27832 #include <langinfo.h>
27833
27834 int
27835 main ()
27836 {
27837 #undef $gl_func
27838   (void) $gl_func;
27839   ;
27840   return 0;
27841 }
27842 _ACEOF
27843 if ac_fn_c_try_compile "$LINENO"; then :
27844   eval "$as_gl_Symbol=yes"
27845 else
27846   eval "$as_gl_Symbol=no"
27847 fi
27848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27849 fi
27850 eval ac_res=\$$as_gl_Symbol
27851                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
27852 $as_echo "$ac_res" >&6; }
27853     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
27854   cat >>confdefs.h <<_ACEOF
27855 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27856 _ACEOF
27857
27858                      eval ac_cv_have_decl_$gl_func=yes
27859 fi
27860       done
27861
27862
27863
27864
27865
27866
27867
27868
27869
27870
27871
27872   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
27873
27874
27875
27876
27877
27878
27879
27880
27881
27882   case "$host_os" in
27883     solaris*)
27884
27885 $as_echo "#define _LCONV_C99 1" >>confdefs.h
27886
27887       ;;
27888   esac
27889
27890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
27891 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
27892 if ${gl_cv_header_locale_h_posix2001+:} false; then :
27893   $as_echo_n "(cached) " >&6
27894 else
27895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27896 /* end confdefs.h.  */
27897 #include <locale.h>
27898             int x = LC_MESSAGES;
27899             int y = sizeof (((struct lconv *) 0)->decimal_point);
27900 int
27901 main ()
27902 {
27903
27904   ;
27905   return 0;
27906 }
27907 _ACEOF
27908 if ac_fn_c_try_compile "$LINENO"; then :
27909   gl_cv_header_locale_h_posix2001=yes
27910 else
27911   gl_cv_header_locale_h_posix2001=no
27912 fi
27913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27914 fi
27915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
27916 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
27917
27918
27919   if test $ac_cv_header_xlocale_h = yes; then
27920     HAVE_XLOCALE_H=1
27921                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
27922 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
27923 if ${gl_cv_header_locale_has_locale_t+:} false; then :
27924   $as_echo_n "(cached) " >&6
27925 else
27926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27927 /* end confdefs.h.  */
27928 #include <locale.h>
27929               locale_t x;
27930 int
27931 main ()
27932 {
27933
27934   ;
27935   return 0;
27936 }
27937 _ACEOF
27938 if ac_fn_c_try_compile "$LINENO"; then :
27939   gl_cv_header_locale_has_locale_t=yes
27940 else
27941   gl_cv_header_locale_has_locale_t=no
27942 fi
27943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27944
27945 fi
27946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
27947 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
27948     if test $gl_cv_header_locale_has_locale_t = yes; then
27949       gl_cv_header_locale_h_needs_xlocale_h=no
27950     else
27951       gl_cv_header_locale_h_needs_xlocale_h=yes
27952     fi
27953   else
27954     HAVE_XLOCALE_H=0
27955     gl_cv_header_locale_h_needs_xlocale_h=no
27956   fi
27957
27958
27959           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
27960 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
27961 if ${gl_cv_sys_struct_lconv_ok+:} false; then :
27962   $as_echo_n "(cached) " >&6
27963 else
27964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27965 /* end confdefs.h.  */
27966 #include <locale.h>
27967             struct lconv l;
27968             int x = sizeof (l.decimal_point);
27969             int y = sizeof (l.int_p_cs_precedes);
27970 int
27971 main ()
27972 {
27973
27974   ;
27975   return 0;
27976 }
27977 _ACEOF
27978 if ac_fn_c_try_compile "$LINENO"; then :
27979   gl_cv_sys_struct_lconv_ok=yes
27980 else
27981   gl_cv_sys_struct_lconv_ok=no
27982 fi
27983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27984
27985 fi
27986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
27987 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
27988   if test $gl_cv_sys_struct_lconv_ok = no; then
27989     REPLACE_STRUCT_LCONV=1
27990   fi
27991
27992
27993
27994
27995
27996
27997
27998
27999
28000      if test $gl_cv_have_include_next = yes; then
28001        gl_cv_next_locale_h='<'locale.h'>'
28002      else
28003        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
28004 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
28005 if ${gl_cv_next_locale_h+:} false; then :
28006   $as_echo_n "(cached) " >&6
28007 else
28008
28009
28010
28011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28012 /* end confdefs.h.  */
28013 #include <locale.h>
28014 _ACEOF
28015                 case "$host_os" in
28016     aix*) gl_absname_cpp="$ac_cpp -C" ;;
28017     *)    gl_absname_cpp="$ac_cpp" ;;
28018   esac
28019
28020   case "$host_os" in
28021     mingw*)
28022                                           gl_dirsep_regex='[/\\]'
28023       ;;
28024     *)
28025       gl_dirsep_regex='\/'
28026       ;;
28027   esac
28028       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28029   gl_header_literal_regex=`echo 'locale.h' \
28030                            | sed -e "$gl_make_literal_regex_sed"`
28031   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28032       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28033       s|^/[^/]|//&|
28034       p
28035       q
28036     }'
28037
28038         gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28039   sed -n "$gl_absolute_header_sed"`
28040
28041            gl_header=$gl_cv_absolute_locale_h
28042            gl_cv_next_locale_h='"'$gl_header'"'
28043
28044
28045 fi
28046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
28047 $as_echo "$gl_cv_next_locale_h" >&6; }
28048      fi
28049      NEXT_LOCALE_H=$gl_cv_next_locale_h
28050
28051      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28052        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28053        gl_next_as_first_directive='<'locale.h'>'
28054      else
28055        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28056        gl_next_as_first_directive=$gl_cv_next_locale_h
28057      fi
28058      NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
28059
28060
28061
28062
28063
28064
28065     for gl_func in setlocale duplocale; do
28066     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
28067     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
28068 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
28069 if eval \${$as_gl_Symbol+:} false; then :
28070   $as_echo_n "(cached) " >&6
28071 else
28072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28073 /* end confdefs.h.  */
28074 #include <locale.h>
28075 /* Some systems provide declarations in a non-standard header.  */
28076 #if HAVE_XLOCALE_H
28077 # include <xlocale.h>
28078 #endif
28079
28080 int
28081 main ()
28082 {
28083 #undef $gl_func
28084   (void) $gl_func;
28085   ;
28086   return 0;
28087 }
28088 _ACEOF
28089 if ac_fn_c_try_compile "$LINENO"; then :
28090   eval "$as_gl_Symbol=yes"
28091 else
28092   eval "$as_gl_Symbol=no"
28093 fi
28094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28095 fi
28096 eval ac_res=\$$as_gl_Symbol
28097                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28098 $as_echo "$ac_res" >&6; }
28099     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
28100   cat >>confdefs.h <<_ACEOF
28101 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
28102 _ACEOF
28103
28104                      eval ac_cv_have_decl_$gl_func=yes
28105 fi
28106       done
28107
28108
28109
28110
28111
28112   for ac_func in setlocale uselocale
28113 do :
28114   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28115 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28116 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28117   cat >>confdefs.h <<_ACEOF
28118 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28119 _ACEOF
28120
28121 fi
28122 done
28123
28124       if test $ac_cv_func_uselocale = yes; then
28125     for ac_func in getlocalename_l
28126 do :
28127   ac_fn_c_check_func "$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l"
28128 if test "x$ac_cv_func_getlocalename_l" = xyes; then :
28129   cat >>confdefs.h <<_ACEOF
28130 #define HAVE_GETLOCALENAME_L 1
28131 _ACEOF
28132
28133 fi
28134 done
28135
28136   fi
28137
28138
28139
28140   if test "$gl_threads_api" = posix; then
28141     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
28142     # pthread_rwlock_* functions.
28143     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
28144 "
28145 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
28146
28147 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
28148
28149 fi
28150
28151     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
28152     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28153 /* end confdefs.h.  */
28154
28155       #include <pthread.h>
28156 int
28157 main ()
28158 {
28159
28160 #if __FreeBSD__ == 4
28161 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
28162 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
28163        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
28164 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
28165 #else
28166 int x = (int)PTHREAD_MUTEX_RECURSIVE;
28167 return !x;
28168 #endif
28169
28170   ;
28171   return 0;
28172 }
28173 _ACEOF
28174 if ac_fn_c_try_compile "$LINENO"; then :
28175
28176 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
28177
28178 fi
28179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28180   fi
28181   :
28182
28183
28184
28185 cat >>confdefs.h <<_ACEOF
28186 #define GNULIB_LOCK 1
28187 _ACEOF
28188
28189
28190
28191
28192
28193   if test $ac_cv_func_lstat = yes; then
28194
28195     case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
28196       *no)
28197         REPLACE_LSTAT=1
28198         ;;
28199     esac
28200   else
28201     HAVE_LSTAT=0
28202   fi
28203
28204   if test $REPLACE_LSTAT = 1; then
28205
28206
28207
28208
28209
28210
28211
28212
28213   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
28214
28215     :
28216   fi
28217
28218
28219
28220
28221
28222           GNULIB_LSTAT=1
28223
28224
28225
28226
28227
28228 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
28229
28230
28231
28232
28233
28234
28235
28236
28237
28238
28239
28240
28241   :
28242
28243
28244
28245
28246
28247
28248
28249
28250
28251
28252
28253   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
28254
28255
28256
28257      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
28258 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
28259 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
28260   $as_echo_n "(cached) " >&6
28261 else
28262
28263                   case "$host_os" in
28264                      # Guess no on AIX and OSF/1.
28265         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
28266                      # Guess yes otherwise.
28267         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
28268       esac
28269       if test $LOCALE_JA != none; then
28270         if test "$cross_compiling" = yes; then :
28271   :
28272 else
28273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28274 /* end confdefs.h.  */
28275
28276 #include <locale.h>
28277 #include <string.h>
28278 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28279    <wchar.h>.
28280    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28281    included before <wchar.h>.  */
28282 #include <stddef.h>
28283 #include <stdio.h>
28284 #include <time.h>
28285 #include <wchar.h>
28286 int main ()
28287 {
28288   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
28289     {
28290       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
28291       mbstate_t state;
28292       wchar_t wc;
28293
28294       memset (&state, '\0', sizeof (mbstate_t));
28295       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
28296         if (mbsinit (&state))
28297           return 1;
28298     }
28299   return 0;
28300 }
28301 _ACEOF
28302 if ac_fn_c_try_run "$LINENO"; then :
28303   gl_cv_func_mbrtowc_incomplete_state=yes
28304 else
28305   gl_cv_func_mbrtowc_incomplete_state=no
28306 fi
28307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28308   conftest.$ac_objext conftest.beam conftest.$ac_ext
28309 fi
28310
28311       fi
28312
28313 fi
28314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
28315 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
28316
28317
28318
28319
28320      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
28321 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
28322 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
28323   $as_echo_n "(cached) " >&6
28324 else
28325
28326                   case "$host_os" in
28327                     # Guess no on Solaris 8.
28328         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
28329                     # Guess yes otherwise.
28330         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
28331       esac
28332       if test $LOCALE_ZH_CN != none; then
28333         if test "$cross_compiling" = yes; then :
28334   :
28335 else
28336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28337 /* end confdefs.h.  */
28338
28339 #include <locale.h>
28340 #include <stdlib.h>
28341 #include <string.h>
28342 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28343    <wchar.h>.
28344    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28345    included before <wchar.h>.  */
28346 #include <stddef.h>
28347 #include <stdio.h>
28348 #include <time.h>
28349 #include <wchar.h>
28350 int main ()
28351 {
28352   /* This fails on Solaris 8:
28353      mbrtowc returns 2, and sets wc to 0x00F0.
28354      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
28355   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
28356     {
28357       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
28358       mbstate_t state;
28359       wchar_t wc;
28360
28361       memset (&state, '\0', sizeof (mbstate_t));
28362       if (mbrtowc (&wc, input + 3, 6, &state) != 4
28363           && mbtowc (&wc, input + 3, 6) == 4)
28364         return 1;
28365     }
28366   return 0;
28367 }
28368 _ACEOF
28369 if ac_fn_c_try_run "$LINENO"; then :
28370   gl_cv_func_mbrtowc_sanitycheck=yes
28371 else
28372   gl_cv_func_mbrtowc_sanitycheck=no
28373 fi
28374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28375   conftest.$ac_objext conftest.beam conftest.$ac_ext
28376 fi
28377
28378       fi
28379
28380 fi
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
28382 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
28383
28384     REPLACE_MBSTATE_T=0
28385     case "$gl_cv_func_mbrtowc_incomplete_state" in
28386       *yes) ;;
28387       *) REPLACE_MBSTATE_T=1 ;;
28388     esac
28389     case "$gl_cv_func_mbrtowc_sanitycheck" in
28390       *yes) ;;
28391       *) REPLACE_MBSTATE_T=1 ;;
28392     esac
28393   else
28394     REPLACE_MBSTATE_T=1
28395   fi
28396
28397
28398
28399   if test $ac_cv_func_mbrtowc = no; then
28400     HAVE_MBRTOWC=0
28401     ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
28402 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28403    <wchar.h>.
28404    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28405    included before <wchar.h>.  */
28406 #include <stddef.h>
28407 #include <stdio.h>
28408 #include <time.h>
28409 #include <wchar.h>
28410
28411 "
28412 if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
28413   ac_have_decl=1
28414 else
28415   ac_have_decl=0
28416 fi
28417
28418 cat >>confdefs.h <<_ACEOF
28419 #define HAVE_DECL_MBRTOWC $ac_have_decl
28420 _ACEOF
28421
28422     if test $ac_cv_have_decl_mbrtowc = yes; then
28423                         REPLACE_MBRTOWC=1
28424     fi
28425   else
28426     if test $REPLACE_MBSTATE_T = 1; then
28427       REPLACE_MBRTOWC=1
28428     else
28429
28430
28431
28432      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
28433 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
28434 if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
28435   $as_echo_n "(cached) " >&6
28436 else
28437
28438                   case "$host_os" in
28439                   # Guess no on Solaris.
28440         solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
28441                   # Guess yes otherwise.
28442         *)        gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
28443       esac
28444       if test $LOCALE_FR_UTF8 != none; then
28445         if test "$cross_compiling" = yes; then :
28446   :
28447 else
28448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28449 /* end confdefs.h.  */
28450
28451 #include <locale.h>
28452 #include <stdlib.h>
28453 #include <string.h>
28454 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28455    <wchar.h>.
28456    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28457    included before <wchar.h>.  */
28458 #include <stddef.h>
28459 #include <stdio.h>
28460 #include <time.h>
28461 #include <wchar.h>
28462 int main ()
28463 {
28464   int result = 0;
28465
28466   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
28467     {
28468       char input[] = "\303\237er";
28469       mbstate_t state;
28470       wchar_t wc;
28471       size_t ret;
28472
28473       memset (&state, '\0', sizeof (mbstate_t));
28474       wc = (wchar_t) 0xBADFACE;
28475       ret = mbrtowc (&wc, input, 5, &state);
28476       if (ret != 2)
28477         result |= 1;
28478       if (!mbsinit (&state))
28479         result |= 2;
28480
28481       memset (&state, '\0', sizeof (mbstate_t));
28482       ret = mbrtowc (NULL, input, 5, &state);
28483       if (ret != 2) /* Solaris 7 fails here: ret is -1.  */
28484         result |= 4;
28485       if (!mbsinit (&state))
28486         result |= 8;
28487     }
28488   return result;
28489 }
28490 _ACEOF
28491 if ac_fn_c_try_run "$LINENO"; then :
28492   gl_cv_func_mbrtowc_null_arg1=yes
28493 else
28494   gl_cv_func_mbrtowc_null_arg1=no
28495 fi
28496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28497   conftest.$ac_objext conftest.beam conftest.$ac_ext
28498 fi
28499
28500       fi
28501
28502 fi
28503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
28504 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
28505
28506
28507
28508
28509      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
28510 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
28511 if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
28512   $as_echo_n "(cached) " >&6
28513 else
28514
28515                   case "$host_os" in
28516               # Guess no on OSF/1.
28517         osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
28518               # Guess yes otherwise.
28519         *)    gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
28520       esac
28521       if test $LOCALE_FR_UTF8 != none; then
28522         if test "$cross_compiling" = yes; then :
28523   :
28524 else
28525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28526 /* end confdefs.h.  */
28527
28528 #include <locale.h>
28529 #include <string.h>
28530 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28531    <wchar.h>.
28532    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28533    included before <wchar.h>.  */
28534 #include <stddef.h>
28535 #include <stdio.h>
28536 #include <time.h>
28537 #include <wchar.h>
28538 int main ()
28539 {
28540   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
28541     {
28542       mbstate_t state;
28543       wchar_t wc;
28544       int ret;
28545
28546       memset (&state, '\0', sizeof (mbstate_t));
28547       wc = (wchar_t) 0xBADFACE;
28548       mbrtowc (&wc, NULL, 5, &state);
28549       /* Check that wc was not modified.  */
28550       if (wc != (wchar_t) 0xBADFACE)
28551         return 1;
28552     }
28553   return 0;
28554 }
28555 _ACEOF
28556 if ac_fn_c_try_run "$LINENO"; then :
28557   gl_cv_func_mbrtowc_null_arg2=yes
28558 else
28559   gl_cv_func_mbrtowc_null_arg2=no
28560 fi
28561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28562   conftest.$ac_objext conftest.beam conftest.$ac_ext
28563 fi
28564
28565       fi
28566
28567 fi
28568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
28569 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
28570
28571
28572
28573
28574
28575
28576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
28577 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
28578 if ${gl_cv_func_mbrtowc_retval+:} false; then :
28579   $as_echo_n "(cached) " >&6
28580 else
28581
28582                   case "$host_os" in
28583                                    # Guess no on HP-UX, Solaris, native Windows.
28584         hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
28585                                    # Guess yes otherwise.
28586         *)                         gl_cv_func_mbrtowc_retval="guessing yes" ;;
28587       esac
28588       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
28589          || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
28590         if test "$cross_compiling" = yes; then :
28591   :
28592 else
28593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28594 /* end confdefs.h.  */
28595
28596 #include <locale.h>
28597 #include <string.h>
28598 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28599    <wchar.h>.
28600    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28601    included before <wchar.h>.  */
28602 #include <stddef.h>
28603 #include <stdio.h>
28604 #include <time.h>
28605 #include <wchar.h>
28606 int main ()
28607 {
28608   int result = 0;
28609   int found_some_locale = 0;
28610   /* This fails on Solaris.  */
28611   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
28612     {
28613       char input[] = "B\303\274\303\237er"; /* "Büßer" */
28614       mbstate_t state;
28615       wchar_t wc;
28616
28617       memset (&state, '\0', sizeof (mbstate_t));
28618       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
28619         {
28620           input[1] = '\0';
28621           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
28622             result |= 1;
28623         }
28624       found_some_locale = 1;
28625     }
28626   /* This fails on HP-UX 11.11.  */
28627   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
28628     {
28629       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
28630       mbstate_t state;
28631       wchar_t wc;
28632
28633       memset (&state, '\0', sizeof (mbstate_t));
28634       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
28635         {
28636           input[1] = '\0';
28637           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
28638             result |= 2;
28639         }
28640       found_some_locale = 1;
28641     }
28642   /* This fails on native Windows.  */
28643   if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
28644     {
28645       char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
28646       mbstate_t state;
28647       wchar_t wc;
28648
28649       memset (&state, '\0', sizeof (mbstate_t));
28650       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
28651         {
28652           input[3] = '\0';
28653           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
28654             result |= 4;
28655         }
28656       found_some_locale = 1;
28657     }
28658   if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
28659     {
28660       char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
28661       mbstate_t state;
28662       wchar_t wc;
28663
28664       memset (&state, '\0', sizeof (mbstate_t));
28665       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
28666         {
28667           input[3] = '\0';
28668           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
28669             result |= 8;
28670         }
28671       found_some_locale = 1;
28672     }
28673   if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
28674     {
28675       char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
28676       mbstate_t state;
28677       wchar_t wc;
28678
28679       memset (&state, '\0', sizeof (mbstate_t));
28680       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
28681         {
28682           input[3] = '\0';
28683           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
28684             result |= 16;
28685         }
28686       found_some_locale = 1;
28687     }
28688   return (found_some_locale ? result : 77);
28689 }
28690 _ACEOF
28691 if ac_fn_c_try_run "$LINENO"; then :
28692   gl_cv_func_mbrtowc_retval=yes
28693 else
28694   if test $? != 77; then
28695              gl_cv_func_mbrtowc_retval=no
28696            fi
28697
28698 fi
28699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28700   conftest.$ac_objext conftest.beam conftest.$ac_ext
28701 fi
28702
28703       fi
28704
28705 fi
28706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
28707 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
28708
28709
28710
28711
28712      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
28713 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
28714 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
28715   $as_echo_n "(cached) " >&6
28716 else
28717
28718                   case "$host_os" in
28719                        # Guess no on Solaris 8 and 9.
28720         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
28721                        # Guess yes otherwise.
28722         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
28723       esac
28724       if test $LOCALE_ZH_CN != none; then
28725         if test "$cross_compiling" = yes; then :
28726   :
28727 else
28728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28729 /* end confdefs.h.  */
28730
28731 #include <locale.h>
28732 #include <string.h>
28733 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28734    <wchar.h>.
28735    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28736    included before <wchar.h>.  */
28737 #include <stddef.h>
28738 #include <stdio.h>
28739 #include <time.h>
28740 #include <wchar.h>
28741 int main ()
28742 {
28743   /* This fails on Solaris 8 and 9.  */
28744   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
28745     {
28746       mbstate_t state;
28747       wchar_t wc;
28748
28749       memset (&state, '\0', sizeof (mbstate_t));
28750       if (mbrtowc (&wc, "", 1, &state) != 0)
28751         return 1;
28752     }
28753   return 0;
28754 }
28755 _ACEOF
28756 if ac_fn_c_try_run "$LINENO"; then :
28757   gl_cv_func_mbrtowc_nul_retval=yes
28758 else
28759   gl_cv_func_mbrtowc_nul_retval=no
28760 fi
28761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28762   conftest.$ac_objext conftest.beam conftest.$ac_ext
28763 fi
28764
28765       fi
28766
28767 fi
28768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
28769 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
28770
28771
28772
28773      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
28774 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
28775 if ${gl_cv_func_mbrtowc_empty_input+:} false; then :
28776   $as_echo_n "(cached) " >&6
28777 else
28778
28779                   case "$host_os" in
28780                      # Guess no on AIX and glibc systems.
28781         aix* | *-gnu*)
28782                     gl_cv_func_mbrtowc_empty_input="guessing no" ;;
28783         *)          gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
28784       esac
28785       if test "$cross_compiling" = yes; then :
28786   :
28787 else
28788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28789 /* end confdefs.h.  */
28790
28791            #include <wchar.h>
28792            static wchar_t wc;
28793            static mbstate_t mbs;
28794            int
28795            main (void)
28796            {
28797              return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
28798            }
28799 _ACEOF
28800 if ac_fn_c_try_run "$LINENO"; then :
28801   gl_cv_func_mbrtowc_empty_input=yes
28802 else
28803   gl_cv_func_mbrtowc_empty_input=no
28804 fi
28805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28806   conftest.$ac_objext conftest.beam conftest.$ac_ext
28807 fi
28808
28809
28810 fi
28811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
28812 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
28813
28814
28815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
28816 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
28817 if ${gl_cv_C_locale_sans_EILSEQ+:} false; then :
28818   $as_echo_n "(cached) " >&6
28819 else
28820
28821                gl_cv_C_locale_sans_EILSEQ="guessing no"
28822
28823      if test "$cross_compiling" = yes; then :
28824   :
28825 else
28826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28827 /* end confdefs.h.  */
28828 #include <limits.h>
28829             #include <locale.h>
28830             #include <wchar.h>
28831
28832 int
28833 main ()
28834 {
28835
28836             int i;
28837             char *locale = setlocale (LC_ALL, "C");
28838             if (! locale)
28839               return 1;
28840             for (i = CHAR_MIN; i <= CHAR_MAX; i++)
28841               {
28842                 char c = i;
28843                 wchar_t wc;
28844                 mbstate_t mbs = { 0, };
28845                 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
28846                 if (1 < ss)
28847                   return 1;
28848               }
28849             return 0;
28850
28851   ;
28852   return 0;
28853 }
28854 _ACEOF
28855 if ac_fn_c_try_run "$LINENO"; then :
28856   gl_cv_C_locale_sans_EILSEQ=yes
28857 else
28858   gl_cv_C_locale_sans_EILSEQ=no
28859 fi
28860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28861   conftest.$ac_objext conftest.beam conftest.$ac_ext
28862 fi
28863
28864 fi
28865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
28866 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
28867
28868       case "$gl_cv_func_mbrtowc_null_arg1" in
28869         *yes) ;;
28870         *)
28871 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
28872
28873            REPLACE_MBRTOWC=1
28874            ;;
28875       esac
28876       case "$gl_cv_func_mbrtowc_null_arg2" in
28877         *yes) ;;
28878         *)
28879 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
28880
28881            REPLACE_MBRTOWC=1
28882            ;;
28883       esac
28884       case "$gl_cv_func_mbrtowc_retval" in
28885         *yes) ;;
28886         *)
28887 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
28888
28889            REPLACE_MBRTOWC=1
28890            ;;
28891       esac
28892       case "$gl_cv_func_mbrtowc_nul_retval" in
28893         *yes) ;;
28894         *)
28895 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
28896
28897            REPLACE_MBRTOWC=1
28898            ;;
28899       esac
28900       case "$gl_cv_func_mbrtowc_empty_input" in
28901         *yes) ;;
28902         *)
28903 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
28904
28905            REPLACE_MBRTOWC=1
28906            ;;
28907       esac
28908       case $gl_cv_C_locale_sans_EILSEQ in
28909         *yes) ;;
28910         *)
28911 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
28912
28913            REPLACE_MBRTOWC=1
28914            ;;
28915       esac
28916     fi
28917   fi
28918
28919   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
28920
28921
28922
28923
28924
28925
28926
28927
28928   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
28929
28930
28931   :
28932
28933   fi
28934
28935
28936
28937
28938
28939           GNULIB_MBRTOWC=1
28940
28941
28942
28943
28944
28945 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
28946
28947
28948
28949
28950
28951
28952
28953
28954
28955
28956
28957
28958
28959
28960   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
28961
28962
28963
28964      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
28965 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
28966 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
28967   $as_echo_n "(cached) " >&6
28968 else
28969
28970                   case "$host_os" in
28971                      # Guess no on AIX and OSF/1.
28972         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
28973                      # Guess yes otherwise.
28974         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
28975       esac
28976       if test $LOCALE_JA != none; then
28977         if test "$cross_compiling" = yes; then :
28978   :
28979 else
28980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28981 /* end confdefs.h.  */
28982
28983 #include <locale.h>
28984 #include <string.h>
28985 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
28986    <wchar.h>.
28987    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28988    included before <wchar.h>.  */
28989 #include <stddef.h>
28990 #include <stdio.h>
28991 #include <time.h>
28992 #include <wchar.h>
28993 int main ()
28994 {
28995   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
28996     {
28997       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
28998       mbstate_t state;
28999       wchar_t wc;
29000
29001       memset (&state, '\0', sizeof (mbstate_t));
29002       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
29003         if (mbsinit (&state))
29004           return 1;
29005     }
29006   return 0;
29007 }
29008 _ACEOF
29009 if ac_fn_c_try_run "$LINENO"; then :
29010   gl_cv_func_mbrtowc_incomplete_state=yes
29011 else
29012   gl_cv_func_mbrtowc_incomplete_state=no
29013 fi
29014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29015   conftest.$ac_objext conftest.beam conftest.$ac_ext
29016 fi
29017
29018       fi
29019
29020 fi
29021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
29022 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
29023
29024
29025
29026
29027      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
29028 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
29029 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
29030   $as_echo_n "(cached) " >&6
29031 else
29032
29033                   case "$host_os" in
29034                     # Guess no on Solaris 8.
29035         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
29036                     # Guess yes otherwise.
29037         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
29038       esac
29039       if test $LOCALE_ZH_CN != none; then
29040         if test "$cross_compiling" = yes; then :
29041   :
29042 else
29043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29044 /* end confdefs.h.  */
29045
29046 #include <locale.h>
29047 #include <stdlib.h>
29048 #include <string.h>
29049 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29050    <wchar.h>.
29051    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29052    included before <wchar.h>.  */
29053 #include <stddef.h>
29054 #include <stdio.h>
29055 #include <time.h>
29056 #include <wchar.h>
29057 int main ()
29058 {
29059   /* This fails on Solaris 8:
29060      mbrtowc returns 2, and sets wc to 0x00F0.
29061      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
29062   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
29063     {
29064       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
29065       mbstate_t state;
29066       wchar_t wc;
29067
29068       memset (&state, '\0', sizeof (mbstate_t));
29069       if (mbrtowc (&wc, input + 3, 6, &state) != 4
29070           && mbtowc (&wc, input + 3, 6) == 4)
29071         return 1;
29072     }
29073   return 0;
29074 }
29075 _ACEOF
29076 if ac_fn_c_try_run "$LINENO"; then :
29077   gl_cv_func_mbrtowc_sanitycheck=yes
29078 else
29079   gl_cv_func_mbrtowc_sanitycheck=no
29080 fi
29081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29082   conftest.$ac_objext conftest.beam conftest.$ac_ext
29083 fi
29084
29085       fi
29086
29087 fi
29088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
29089 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
29090
29091     REPLACE_MBSTATE_T=0
29092     case "$gl_cv_func_mbrtowc_incomplete_state" in
29093       *yes) ;;
29094       *) REPLACE_MBSTATE_T=1 ;;
29095     esac
29096     case "$gl_cv_func_mbrtowc_sanitycheck" in
29097       *yes) ;;
29098       *) REPLACE_MBSTATE_T=1 ;;
29099     esac
29100   else
29101     REPLACE_MBSTATE_T=1
29102   fi
29103
29104
29105
29106   if test $ac_cv_func_mbsinit = no; then
29107     HAVE_MBSINIT=0
29108     ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
29109 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29110    <wchar.h>.
29111    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29112    included before <wchar.h>.  */
29113 #include <stddef.h>
29114 #include <stdio.h>
29115 #include <time.h>
29116 #include <wchar.h>
29117
29118 "
29119 if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
29120   ac_have_decl=1
29121 else
29122   ac_have_decl=0
29123 fi
29124
29125 cat >>confdefs.h <<_ACEOF
29126 #define HAVE_DECL_MBSINIT $ac_have_decl
29127 _ACEOF
29128
29129     if test $ac_cv_have_decl_mbsinit = yes; then
29130                         REPLACE_MBSINIT=1
29131     fi
29132   else
29133     if test $REPLACE_MBSTATE_T = 1; then
29134       REPLACE_MBSINIT=1
29135     else
29136                         case "$host_os" in
29137         mingw*) REPLACE_MBSINIT=1 ;;
29138       esac
29139     fi
29140   fi
29141
29142   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
29143
29144
29145
29146
29147
29148
29149
29150
29151   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
29152
29153
29154   :
29155
29156   fi
29157
29158
29159
29160
29161
29162           GNULIB_MBSINIT=1
29163
29164
29165
29166
29167
29168 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
29169
29170
29171
29172
29173
29174
29175   if test $ac_cv_func_mbslen = yes; then
29176     HAVE_MBSLEN=1
29177   else
29178     HAVE_MBSLEN=0
29179   fi
29180
29181
29182
29183
29184
29185
29186           GNULIB_MBSLEN=1
29187
29188
29189
29190
29191
29192 $as_echo "#define GNULIB_TEST_MBSLEN 1" >>confdefs.h
29193
29194
29195
29196
29197
29198
29199
29200
29201           GNULIB_MBSSTR=1
29202
29203
29204
29205
29206
29207 $as_echo "#define GNULIB_TEST_MBSSTR 1" >>confdefs.h
29208
29209
29210
29211
29212
29213   :
29214
29215
29216   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
29217
29218
29219
29220
29221
29222
29223
29224
29225   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
29226
29227
29228   for ac_header in bp-sym.h
29229 do :
29230   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
29231 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
29232   cat >>confdefs.h <<_ACEOF
29233 #define HAVE_BP_SYM_H 1
29234 _ACEOF
29235
29236 fi
29237
29238 done
29239
29240
29241   fi
29242
29243
29244
29245
29246
29247           GNULIB_MEMCHR=1
29248
29249
29250
29251
29252
29253 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
29254
29255
29256
29257
29258   for ac_func in memmove
29259 do :
29260   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
29261 if test "x$ac_cv_func_memmove" = xyes; then :
29262   cat >>confdefs.h <<_ACEOF
29263 #define HAVE_MEMMOVE 1
29264 _ACEOF
29265
29266 fi
29267 done
29268
29269
29270   if test $ac_cv_func_memmove = no; then
29271
29272
29273
29274
29275
29276
29277
29278
29279   gl_LIBOBJS="$gl_LIBOBJS memmove.$ac_objext"
29280
29281
29282   :
29283
29284   fi
29285
29286   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
29287
29288
29289
29290
29291
29292
29293
29294
29295   gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
29296
29297   fi
29298
29299   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
29300
29301
29302
29303
29304
29305
29306
29307
29308   gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
29309
29310   fi
29311
29312
29313
29314
29315   ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
29316 "
29317 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
29318   ac_have_decl=1
29319 else
29320   ac_have_decl=0
29321 fi
29322
29323 cat >>confdefs.h <<_ACEOF
29324 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
29325 _ACEOF
29326
29327   ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
29328 "
29329 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
29330   ac_have_decl=1
29331 else
29332   ac_have_decl=0
29333 fi
29334
29335 cat >>confdefs.h <<_ACEOF
29336 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
29337 _ACEOF
29338
29339
29340
29341   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name:1,\"This is a proper name. See the gettext manual, section Names.\"'"
29342
29343
29344
29345   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name_utf8:1,\"This is a proper name. See the gettext manual, section Names.\"'"
29346
29347
29348
29349
29350
29351   for ac_func in raise
29352 do :
29353   ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
29354 if test "x$ac_cv_func_raise" = xyes; then :
29355   cat >>confdefs.h <<_ACEOF
29356 #define HAVE_RAISE 1
29357 _ACEOF
29358
29359 fi
29360 done
29361
29362   if test $ac_cv_func_raise = no; then
29363     HAVE_RAISE=0
29364   else
29365     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
29366       REPLACE_RAISE=1
29367     fi
29368
29369
29370
29371
29372   if test $gl_cv_type_sigset_t = yes; then
29373     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
29374 if test "x$ac_cv_func_sigprocmask" = xyes; then :
29375   gl_cv_func_sigprocmask=1
29376 fi
29377
29378   fi
29379   if test -z "$gl_cv_func_sigprocmask"; then
29380     HAVE_POSIX_SIGNALBLOCKING=0
29381   fi
29382
29383       if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
29384
29385
29386
29387
29388           if test $gl_cv_header_signal_h_SIGPIPE != yes; then
29389             REPLACE_RAISE=1
29390           fi
29391
29392       fi
29393
29394   fi
29395
29396   if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
29397
29398
29399
29400
29401
29402
29403
29404
29405   gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
29406
29407     :
29408   fi
29409
29410
29411
29412
29413
29414           GNULIB_RAISE=1
29415
29416
29417
29418
29419
29420 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
29421
29422
29423
29424
29425
29426
29427   if test $ac_cv_func_readlink = no; then
29428     HAVE_READLINK=0
29429   else
29430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
29431 $as_echo_n "checking whether readlink signature is correct... " >&6; }
29432 if ${gl_cv_decl_readlink_works+:} false; then :
29433   $as_echo_n "(cached) " >&6
29434 else
29435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29436 /* end confdefs.h.  */
29437 #include <unistd.h>
29438       /* Cause compilation failure if original declaration has wrong type.  */
29439       ssize_t readlink (const char *, char *, size_t);
29440 int
29441 main ()
29442 {
29443
29444   ;
29445   return 0;
29446 }
29447 _ACEOF
29448 if ac_fn_c_try_compile "$LINENO"; then :
29449   gl_cv_decl_readlink_works=yes
29450 else
29451   gl_cv_decl_readlink_works=no
29452 fi
29453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29454 fi
29455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
29456 $as_echo "$gl_cv_decl_readlink_works" >&6; }
29457             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
29458 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
29459 if ${gl_cv_func_readlink_works+:} false; then :
29460   $as_echo_n "(cached) " >&6
29461 else
29462   # We have readlink, so assume ln -s works.
29463        ln -s conftest.no-such conftest.link
29464        ln -s conftest.link conftest.lnk2
29465        if test "$cross_compiling" = yes; then :
29466   case "$host_os" in
29467                     # Guess yes on glibc systems.
29468             *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
29469                     # If we don't know, assume the worst.
29470             *)      gl_cv_func_readlink_works="guessing no" ;;
29471           esac
29472
29473 else
29474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29475 /* end confdefs.h.  */
29476 #include <unistd.h>
29477
29478 int
29479 main ()
29480 {
29481 char buf[20];
29482       return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
29483   ;
29484   return 0;
29485 }
29486 _ACEOF
29487 if ac_fn_c_try_run "$LINENO"; then :
29488   gl_cv_func_readlink_works=yes
29489 else
29490   gl_cv_func_readlink_works=no
29491 fi
29492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29493   conftest.$ac_objext conftest.beam conftest.$ac_ext
29494 fi
29495
29496       rm -f conftest.link conftest.lnk2
29497 fi
29498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
29499 $as_echo "$gl_cv_func_readlink_works" >&6; }
29500     case "$gl_cv_func_readlink_works" in
29501       *yes)
29502         if test "$gl_cv_decl_readlink_works" != yes; then
29503           REPLACE_READLINK=1
29504         fi
29505         ;;
29506       *)
29507
29508 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
29509
29510         REPLACE_READLINK=1
29511         ;;
29512     esac
29513   fi
29514
29515   if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
29516
29517
29518
29519
29520
29521
29522
29523
29524   gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
29525
29526
29527   :
29528
29529   fi
29530
29531
29532
29533
29534
29535           GNULIB_READLINK=1
29536
29537
29538
29539
29540
29541 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
29542
29543
29544
29545
29546
29547
29548
29549
29550   : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
29551   RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
29552   RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
29553
29554   if test $RELOCATABLE = yes; then
29555
29556
29557
29558
29559
29560
29561
29562
29563   gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext"
29564
29565
29566
29567
29568
29569
29570
29571
29572
29573   gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext"
29574
29575   fi
29576
29577
29578
29579   :
29580
29581
29582
29583
29584
29585
29586
29587
29588
29589
29590
29591
29592
29593
29594
29595
29596
29597
29598
29599   if test $ac_cv_have_decl_setenv = no; then
29600     HAVE_DECL_SETENV=0
29601   fi
29602
29603
29604
29605
29606
29607   for ac_header in search.h
29608 do :
29609   ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
29610 if test "x$ac_cv_header_search_h" = xyes; then :
29611   cat >>confdefs.h <<_ACEOF
29612 #define HAVE_SEARCH_H 1
29613 _ACEOF
29614
29615 fi
29616
29617 done
29618
29619   for ac_func in tsearch
29620 do :
29621   ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
29622 if test "x$ac_cv_func_tsearch" = xyes; then :
29623   cat >>confdefs.h <<_ACEOF
29624 #define HAVE_TSEARCH 1
29625 _ACEOF
29626
29627 fi
29628 done
29629
29630
29631
29632
29633
29634
29635   case "$host_os" in
29636             mingw*) REPLACE_SETLOCALE=1 ;;
29637             cygwin*)
29638       case `uname -r` in
29639         1.5.*) REPLACE_SETLOCALE=1 ;;
29640       esac
29641       ;;
29642   esac
29643
29644   if test $REPLACE_SETLOCALE = 1; then
29645
29646
29647
29648
29649
29650
29651
29652
29653   gl_LIBOBJS="$gl_LIBOBJS setlocale.$ac_objext"
29654
29655
29656   :
29657
29658   fi
29659
29660
29661
29662
29663
29664           GNULIB_SETLOCALE=1
29665
29666
29667
29668
29669
29670 $as_echo "#define GNULIB_TEST_SETLOCALE 1" >>confdefs.h
29671
29672
29673
29674
29675
29676
29677
29678
29679
29680
29681
29682
29683
29684
29685      if test $gl_cv_have_include_next = yes; then
29686        gl_cv_next_signal_h='<'signal.h'>'
29687      else
29688        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
29689 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
29690 if ${gl_cv_next_signal_h+:} false; then :
29691   $as_echo_n "(cached) " >&6
29692 else
29693
29694
29695
29696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29697 /* end confdefs.h.  */
29698 #include <signal.h>
29699 _ACEOF
29700                 case "$host_os" in
29701     aix*) gl_absname_cpp="$ac_cpp -C" ;;
29702     *)    gl_absname_cpp="$ac_cpp" ;;
29703   esac
29704
29705   case "$host_os" in
29706     mingw*)
29707                                           gl_dirsep_regex='[/\\]'
29708       ;;
29709     *)
29710       gl_dirsep_regex='\/'
29711       ;;
29712   esac
29713       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29714   gl_header_literal_regex=`echo 'signal.h' \
29715                            | sed -e "$gl_make_literal_regex_sed"`
29716   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29717       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29718       s|^/[^/]|//&|
29719       p
29720       q
29721     }'
29722
29723         gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29724   sed -n "$gl_absolute_header_sed"`
29725
29726            gl_header=$gl_cv_absolute_signal_h
29727            gl_cv_next_signal_h='"'$gl_header'"'
29728
29729
29730 fi
29731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
29732 $as_echo "$gl_cv_next_signal_h" >&6; }
29733      fi
29734      NEXT_SIGNAL_H=$gl_cv_next_signal_h
29735
29736      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29737        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29738        gl_next_as_first_directive='<'signal.h'>'
29739      else
29740        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29741        gl_next_as_first_directive=$gl_cv_next_signal_h
29742      fi
29743      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
29744
29745
29746
29747
29748
29749 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
29750 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
29751   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
29752 #include <signal.h>
29753
29754 "
29755 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
29756
29757 else
29758   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
29759 fi
29760
29761
29762
29763
29764
29765
29766
29767   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
29768 #include <signal.h>
29769
29770 "
29771 if test "x$ac_cv_type_sighandler_t" = xyes; then :
29772
29773 else
29774   HAVE_SIGHANDLER_T=0
29775 fi
29776
29777
29778
29779     for gl_func in pthread_sigmask sigaction     sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
29780     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
29781     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
29782 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
29783 if eval \${$as_gl_Symbol+:} false; then :
29784   $as_echo_n "(cached) " >&6
29785 else
29786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29787 /* end confdefs.h.  */
29788 #include <signal.h>
29789
29790 int
29791 main ()
29792 {
29793 #undef $gl_func
29794   (void) $gl_func;
29795   ;
29796   return 0;
29797 }
29798 _ACEOF
29799 if ac_fn_c_try_compile "$LINENO"; then :
29800   eval "$as_gl_Symbol=yes"
29801 else
29802   eval "$as_gl_Symbol=no"
29803 fi
29804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29805 fi
29806 eval ac_res=\$$as_gl_Symbol
29807                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29808 $as_echo "$ac_res" >&6; }
29809     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
29810   cat >>confdefs.h <<_ACEOF
29811 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
29812 _ACEOF
29813
29814                      eval ac_cv_have_decl_$gl_func=yes
29815 fi
29816       done
29817
29818
29819
29820
29821
29822
29823
29824 cat >>confdefs.h <<_ACEOF
29825 #define GNULIB_SIGPIPE 1
29826 _ACEOF
29827
29828
29829
29830   GNULIB_SIGNAL_H_SIGPIPE=1
29831
29832
29833   GNULIB_STDIO_H_SIGPIPE=1
29834
29835   GNULIB_UNISTD_H_SIGPIPE=1
29836
29837
29838
29839   if test $gl_cv_type_sigset_t = yes; then
29840     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
29841 if test "x$ac_cv_func_sigprocmask" = xyes; then :
29842   gl_cv_func_sigprocmask=1
29843 fi
29844
29845   fi
29846   if test -z "$gl_cv_func_sigprocmask"; then
29847     HAVE_POSIX_SIGNALBLOCKING=0
29848   fi
29849
29850   if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
29851
29852
29853
29854
29855
29856
29857
29858
29859   gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
29860
29861     :
29862   fi
29863
29864
29865
29866
29867
29868           GNULIB_SIGPROCMASK=1
29869
29870
29871
29872
29873
29874 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
29875
29876
29877
29878
29879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
29880 $as_echo_n "checking for ssize_t... " >&6; }
29881 if ${gt_cv_ssize_t+:} false; then :
29882   $as_echo_n "(cached) " >&6
29883 else
29884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29885 /* end confdefs.h.  */
29886 #include <sys/types.h>
29887 int
29888 main ()
29889 {
29890 int x = sizeof (ssize_t *) + sizeof (ssize_t);
29891             return !x;
29892   ;
29893   return 0;
29894 }
29895 _ACEOF
29896 if ac_fn_c_try_compile "$LINENO"; then :
29897   gt_cv_ssize_t=yes
29898 else
29899   gt_cv_ssize_t=no
29900 fi
29901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29902 fi
29903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
29904 $as_echo "$gt_cv_ssize_t" >&6; }
29905   if test $gt_cv_ssize_t = no; then
29906
29907 $as_echo "#define ssize_t int" >>confdefs.h
29908
29909   fi
29910
29911
29912
29913
29914     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
29915 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
29916 if ${gl_cv_func_stat_dir_slash+:} false; then :
29917   $as_echo_n "(cached) " >&6
29918 else
29919   if test "$cross_compiling" = yes; then :
29920   case $host_os in
29921             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
29922             *) gl_cv_func_stat_dir_slash="guessing yes";;
29923           esac
29924 else
29925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29926 /* end confdefs.h.  */
29927 #include <sys/stat.h>
29928
29929 int
29930 main ()
29931 {
29932 struct stat st; return stat (".", &st) != stat ("./", &st);
29933   ;
29934   return 0;
29935 }
29936 _ACEOF
29937 if ac_fn_c_try_run "$LINENO"; then :
29938   gl_cv_func_stat_dir_slash=yes
29939 else
29940   gl_cv_func_stat_dir_slash=no
29941 fi
29942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29943   conftest.$ac_objext conftest.beam conftest.$ac_ext
29944 fi
29945
29946 fi
29947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
29948 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
29949         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
29950 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
29951 if ${gl_cv_func_stat_file_slash+:} false; then :
29952   $as_echo_n "(cached) " >&6
29953 else
29954   touch conftest.tmp
29955        # Assume that if we have lstat, we can also check symlinks.
29956        if test $ac_cv_func_lstat = yes; then
29957          ln -s conftest.tmp conftest.lnk
29958        fi
29959        if test "$cross_compiling" = yes; then :
29960   case "$host_os" in
29961                     # Guess yes on glibc systems.
29962             *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
29963                     # If we don't know, assume the worst.
29964             *)      gl_cv_func_stat_file_slash="guessing no" ;;
29965           esac
29966
29967 else
29968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29969 /* end confdefs.h.  */
29970 #include <sys/stat.h>
29971
29972 int
29973 main ()
29974 {
29975 int result = 0;
29976       struct stat st;
29977       if (!stat ("conftest.tmp/", &st))
29978         result |= 1;
29979 #if HAVE_LSTAT
29980       if (!stat ("conftest.lnk/", &st))
29981         result |= 2;
29982 #endif
29983       return result;
29984
29985   ;
29986   return 0;
29987 }
29988 _ACEOF
29989 if ac_fn_c_try_run "$LINENO"; then :
29990   gl_cv_func_stat_file_slash=yes
29991 else
29992   gl_cv_func_stat_file_slash=no
29993 fi
29994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29995   conftest.$ac_objext conftest.beam conftest.$ac_ext
29996 fi
29997
29998        rm -f conftest.tmp conftest.lnk
29999 fi
30000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
30001 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
30002   case $gl_cv_func_stat_dir_slash in
30003     *no) REPLACE_STAT=1
30004
30005 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
30006 ;;
30007   esac
30008   case $gl_cv_func_stat_file_slash in
30009     *no) REPLACE_STAT=1
30010
30011 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
30012 ;;
30013   esac
30014
30015   if test $REPLACE_STAT = 1; then
30016
30017
30018
30019
30020
30021
30022
30023
30024   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
30025
30026     :
30027   fi
30028
30029
30030
30031
30032
30033           GNULIB_STAT=1
30034
30035
30036
30037
30038
30039 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
30040
30041
30042
30043
30044
30045
30046   # Define two additional variables used in the Makefile substitution.
30047
30048   if test "$ac_cv_header_stdbool_h" = yes; then
30049     STDBOOL_H=''
30050   else
30051     STDBOOL_H='stdbool.h'
30052   fi
30053
30054    if test -n "$STDBOOL_H"; then
30055   GL_GENERATE_STDBOOL_H_TRUE=
30056   GL_GENERATE_STDBOOL_H_FALSE='#'
30057 else
30058   GL_GENERATE_STDBOOL_H_TRUE='#'
30059   GL_GENERATE_STDBOOL_H_FALSE=
30060 fi
30061
30062
30063   if test "$ac_cv_type__Bool" = yes; then
30064     HAVE__BOOL=1
30065   else
30066     HAVE__BOOL=0
30067   fi
30068
30069
30070
30071
30072
30073   STDDEF_H=
30074   ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
30075
30076 "
30077 if test "x$ac_cv_type_max_align_t" = xyes; then :
30078
30079 else
30080   HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
30081 fi
30082
30083   if test $gt_cv_c_wchar_t = no; then
30084     HAVE_WCHAR_T=0
30085     STDDEF_H=stddef.h
30086   fi
30087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
30088 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
30089 if ${gl_cv_decl_null_works+:} false; then :
30090   $as_echo_n "(cached) " >&6
30091 else
30092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30093 /* end confdefs.h.  */
30094 #include <stddef.h>
30095       int test[2 * (sizeof NULL == sizeof (void *)) -1];
30096
30097 int
30098 main ()
30099 {
30100
30101   ;
30102   return 0;
30103 }
30104 _ACEOF
30105 if ac_fn_c_try_compile "$LINENO"; then :
30106   gl_cv_decl_null_works=yes
30107 else
30108   gl_cv_decl_null_works=no
30109 fi
30110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30111 fi
30112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
30113 $as_echo "$gl_cv_decl_null_works" >&6; }
30114   if test $gl_cv_decl_null_works = no; then
30115     REPLACE_NULL=1
30116     STDDEF_H=stddef.h
30117   fi
30118
30119    if test -n "$STDDEF_H"; then
30120   GL_GENERATE_STDDEF_H_TRUE=
30121   GL_GENERATE_STDDEF_H_FALSE='#'
30122 else
30123   GL_GENERATE_STDDEF_H_TRUE='#'
30124   GL_GENERATE_STDDEF_H_FALSE=
30125 fi
30126
30127   if test -n "$STDDEF_H"; then
30128
30129
30130
30131
30132
30133
30134
30135
30136      if test $gl_cv_have_include_next = yes; then
30137        gl_cv_next_stddef_h='<'stddef.h'>'
30138      else
30139        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
30140 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
30141 if ${gl_cv_next_stddef_h+:} false; then :
30142   $as_echo_n "(cached) " >&6
30143 else
30144
30145
30146
30147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30148 /* end confdefs.h.  */
30149 #include <stddef.h>
30150 _ACEOF
30151                 case "$host_os" in
30152     aix*) gl_absname_cpp="$ac_cpp -C" ;;
30153     *)    gl_absname_cpp="$ac_cpp" ;;
30154   esac
30155
30156   case "$host_os" in
30157     mingw*)
30158                                           gl_dirsep_regex='[/\\]'
30159       ;;
30160     *)
30161       gl_dirsep_regex='\/'
30162       ;;
30163   esac
30164       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30165   gl_header_literal_regex=`echo 'stddef.h' \
30166                            | sed -e "$gl_make_literal_regex_sed"`
30167   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30168       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30169       s|^/[^/]|//&|
30170       p
30171       q
30172     }'
30173
30174         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30175   sed -n "$gl_absolute_header_sed"`
30176
30177            gl_header=$gl_cv_absolute_stddef_h
30178            gl_cv_next_stddef_h='"'$gl_header'"'
30179
30180
30181 fi
30182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
30183 $as_echo "$gl_cv_next_stddef_h" >&6; }
30184      fi
30185      NEXT_STDDEF_H=$gl_cv_next_stddef_h
30186
30187      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30188        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30189        gl_next_as_first_directive='<'stddef.h'>'
30190      else
30191        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30192        gl_next_as_first_directive=$gl_cv_next_stddef_h
30193      fi
30194      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
30195
30196
30197
30198
30199   fi
30200
30201
30202
30203
30204
30205
30206
30207
30208
30209
30210
30211
30212
30213
30214      if test $gl_cv_have_include_next = yes; then
30215        gl_cv_next_stdio_h='<'stdio.h'>'
30216      else
30217        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
30218 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
30219 if ${gl_cv_next_stdio_h+:} false; then :
30220   $as_echo_n "(cached) " >&6
30221 else
30222
30223
30224
30225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30226 /* end confdefs.h.  */
30227 #include <stdio.h>
30228 _ACEOF
30229                 case "$host_os" in
30230     aix*) gl_absname_cpp="$ac_cpp -C" ;;
30231     *)    gl_absname_cpp="$ac_cpp" ;;
30232   esac
30233
30234   case "$host_os" in
30235     mingw*)
30236                                           gl_dirsep_regex='[/\\]'
30237       ;;
30238     *)
30239       gl_dirsep_regex='\/'
30240       ;;
30241   esac
30242       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30243   gl_header_literal_regex=`echo 'stdio.h' \
30244                            | sed -e "$gl_make_literal_regex_sed"`
30245   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30246       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30247       s|^/[^/]|//&|
30248       p
30249       q
30250     }'
30251
30252         gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30253   sed -n "$gl_absolute_header_sed"`
30254
30255            gl_header=$gl_cv_absolute_stdio_h
30256            gl_cv_next_stdio_h='"'$gl_header'"'
30257
30258
30259 fi
30260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
30261 $as_echo "$gl_cv_next_stdio_h" >&6; }
30262      fi
30263      NEXT_STDIO_H=$gl_cv_next_stdio_h
30264
30265      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30266        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30267        gl_next_as_first_directive='<'stdio.h'>'
30268      else
30269        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30270        gl_next_as_first_directive=$gl_cv_next_stdio_h
30271      fi
30272      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
30273
30274
30275
30276
30277
30278         { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
30279 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
30280 if ${gl_cv_func_printf_attribute_flavor+:} false; then :
30281   $as_echo_n "(cached) " >&6
30282 else
30283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30284 /* end confdefs.h.  */
30285
30286        #define __STDC_FORMAT_MACROS 1
30287        #include <stdio.h>
30288        #include <inttypes.h>
30289        /* For non-mingw systems, compilation will trivially succeed.
30290           For mingw, compilation will succeed for older mingw (system
30291           printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
30292        #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
30293          (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
30294        extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
30295        #endif
30296
30297 int
30298 main ()
30299 {
30300
30301   ;
30302   return 0;
30303 }
30304 _ACEOF
30305 if ac_fn_c_try_compile "$LINENO"; then :
30306   gl_cv_func_printf_attribute_flavor=system
30307 else
30308   gl_cv_func_printf_attribute_flavor=gnu
30309 fi
30310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30311 fi
30312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
30313 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
30314   if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
30315
30316 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
30317
30318   fi
30319
30320       GNULIB_FSCANF=1
30321
30322
30323 cat >>confdefs.h <<_ACEOF
30324 #define GNULIB_FSCANF 1
30325 _ACEOF
30326
30327
30328   GNULIB_SCANF=1
30329
30330
30331 cat >>confdefs.h <<_ACEOF
30332 #define GNULIB_SCANF 1
30333 _ACEOF
30334
30335
30336   GNULIB_FGETC=1
30337   GNULIB_GETC=1
30338   GNULIB_GETCHAR=1
30339   GNULIB_FGETS=1
30340   GNULIB_FREAD=1
30341
30342
30343       GNULIB_FPRINTF=1
30344   GNULIB_PRINTF=1
30345   GNULIB_VFPRINTF=1
30346   GNULIB_VPRINTF=1
30347   GNULIB_FPUTC=1
30348   GNULIB_PUTC=1
30349   GNULIB_PUTCHAR=1
30350   GNULIB_FPUTS=1
30351   GNULIB_PUTS=1
30352   GNULIB_FWRITE=1
30353
30354
30355
30356
30357     if test $gl_cv_header_signal_h_SIGPIPE != yes; then
30358       REPLACE_STDIO_WRITE_FUNCS=1
30359
30360
30361
30362
30363
30364
30365
30366
30367   gl_LIBOBJS="$gl_LIBOBJS stdio-write.$ac_objext"
30368
30369     fi
30370
30371
30372
30373
30374     for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
30375     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
30377 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30378 if eval \${$as_gl_Symbol+:} false; then :
30379   $as_echo_n "(cached) " >&6
30380 else
30381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30382 /* end confdefs.h.  */
30383 #include <stdio.h>
30384
30385 int
30386 main ()
30387 {
30388 #undef $gl_func
30389   (void) $gl_func;
30390   ;
30391   return 0;
30392 }
30393 _ACEOF
30394 if ac_fn_c_try_compile "$LINENO"; then :
30395   eval "$as_gl_Symbol=yes"
30396 else
30397   eval "$as_gl_Symbol=no"
30398 fi
30399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30400 fi
30401 eval ac_res=\$$as_gl_Symbol
30402                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30403 $as_echo "$ac_res" >&6; }
30404     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
30405   cat >>confdefs.h <<_ACEOF
30406 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30407 _ACEOF
30408
30409                      eval ac_cv_have_decl_$gl_func=yes
30410 fi
30411       done
30412
30413
30414
30415
30416
30417
30418
30419
30420
30421
30422
30423
30424      if test $gl_cv_have_include_next = yes; then
30425        gl_cv_next_stdlib_h='<'stdlib.h'>'
30426      else
30427        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
30428 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
30429 if ${gl_cv_next_stdlib_h+:} false; then :
30430   $as_echo_n "(cached) " >&6
30431 else
30432
30433
30434
30435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30436 /* end confdefs.h.  */
30437 #include <stdlib.h>
30438 _ACEOF
30439                 case "$host_os" in
30440     aix*) gl_absname_cpp="$ac_cpp -C" ;;
30441     *)    gl_absname_cpp="$ac_cpp" ;;
30442   esac
30443
30444   case "$host_os" in
30445     mingw*)
30446                                           gl_dirsep_regex='[/\\]'
30447       ;;
30448     *)
30449       gl_dirsep_regex='\/'
30450       ;;
30451   esac
30452       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30453   gl_header_literal_regex=`echo 'stdlib.h' \
30454                            | sed -e "$gl_make_literal_regex_sed"`
30455   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30456       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30457       s|^/[^/]|//&|
30458       p
30459       q
30460     }'
30461
30462         gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30463   sed -n "$gl_absolute_header_sed"`
30464
30465            gl_header=$gl_cv_absolute_stdlib_h
30466            gl_cv_next_stdlib_h='"'$gl_header'"'
30467
30468
30469 fi
30470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
30471 $as_echo "$gl_cv_next_stdlib_h" >&6; }
30472      fi
30473      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
30474
30475      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30476        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30477        gl_next_as_first_directive='<'stdlib.h'>'
30478      else
30479        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30480        gl_next_as_first_directive=$gl_cv_next_stdlib_h
30481      fi
30482      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
30483
30484
30485
30486
30487
30488
30489     for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt     initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps     posix_openpt ptsname ptsname_r random random_r realpath rpmatch     secure_getenv setenv setstate setstate_r srandom srandom_r     strtod strtoll strtoull unlockpt unsetenv; do
30490     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30491     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
30492 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30493 if eval \${$as_gl_Symbol+:} false; then :
30494   $as_echo_n "(cached) " >&6
30495 else
30496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30497 /* end confdefs.h.  */
30498 #include <stdlib.h>
30499 #if HAVE_SYS_LOADAVG_H
30500 # include <sys/loadavg.h>
30501 #endif
30502 #if HAVE_RANDOM_H
30503 # include <random.h>
30504 #endif
30505
30506 int
30507 main ()
30508 {
30509 #undef $gl_func
30510   (void) $gl_func;
30511   ;
30512   return 0;
30513 }
30514 _ACEOF
30515 if ac_fn_c_try_compile "$LINENO"; then :
30516   eval "$as_gl_Symbol=yes"
30517 else
30518   eval "$as_gl_Symbol=no"
30519 fi
30520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30521 fi
30522 eval ac_res=\$$as_gl_Symbol
30523                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30524 $as_echo "$ac_res" >&6; }
30525     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
30526   cat >>confdefs.h <<_ACEOF
30527 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30528 _ACEOF
30529
30530                      eval ac_cv_have_decl_$gl_func=yes
30531 fi
30532       done
30533
30534
30535
30536
30537
30538
30539
30540   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
30541     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
30542 $as_echo_n "checking for working strerror function... " >&6; }
30543 if ${gl_cv_func_working_strerror+:} false; then :
30544   $as_echo_n "(cached) " >&6
30545 else
30546   if test "$cross_compiling" = yes; then :
30547   case "$host_os" in
30548                    # Guess yes on glibc systems.
30549            *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
30550                    # If we don't know, assume the worst.
30551            *)      gl_cv_func_working_strerror="guessing no" ;;
30552          esac
30553
30554 else
30555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30556 /* end confdefs.h.  */
30557 #include <string.h>
30558
30559 int
30560 main ()
30561 {
30562 if (!*strerror (-2)) return 1;
30563   ;
30564   return 0;
30565 }
30566 _ACEOF
30567 if ac_fn_c_try_run "$LINENO"; then :
30568   gl_cv_func_working_strerror=yes
30569 else
30570   gl_cv_func_working_strerror=no
30571 fi
30572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30573   conftest.$ac_objext conftest.beam conftest.$ac_ext
30574 fi
30575
30576
30577 fi
30578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
30579 $as_echo "$gl_cv_func_working_strerror" >&6; }
30580     case "$gl_cv_func_working_strerror" in
30581       *yes) ;;
30582       *)
30583                         REPLACE_STRERROR=1
30584         ;;
30585     esac
30586
30587   else
30588             REPLACE_STRERROR=1
30589   fi
30590
30591   if test $REPLACE_STRERROR = 1; then
30592
30593
30594
30595
30596
30597
30598
30599
30600   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
30601
30602   fi
30603
30604
30605 cat >>confdefs.h <<_ACEOF
30606 #define GNULIB_STRERROR 1
30607 _ACEOF
30608
30609
30610
30611
30612
30613
30614
30615           GNULIB_STRERROR=1
30616
30617
30618
30619
30620
30621 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
30622
30623
30624
30625
30626
30627   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
30628
30629
30630
30631
30632
30633
30634
30635
30636   gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
30637
30638
30639
30640
30641
30642   if test $ac_cv_header_sys_socket_h != yes; then
30643                     for ac_header in winsock2.h
30644 do :
30645   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
30646 if test "x$ac_cv_header_winsock2_h" = xyes; then :
30647   cat >>confdefs.h <<_ACEOF
30648 #define HAVE_WINSOCK2_H 1
30649 _ACEOF
30650
30651 fi
30652
30653 done
30654
30655   fi
30656   if test "$ac_cv_header_winsock2_h" = yes; then
30657     HAVE_WINSOCK2_H=1
30658     UNISTD_H_HAVE_WINSOCK2_H=1
30659     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
30660   else
30661     HAVE_WINSOCK2_H=0
30662   fi
30663
30664
30665   fi
30666   if test $gl_cond_libtool = false; then
30667     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
30668     gl_libdeps="$gl_libdeps $LIBICONV"
30669   fi
30670
30671
30672
30673
30674
30675
30676
30677
30678
30679   if test $ac_cv_have_decl_strnlen = no; then
30680     HAVE_DECL_STRNLEN=0
30681   else
30682
30683          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
30684 $as_echo_n "checking for working strnlen... " >&6; }
30685 if ${ac_cv_func_strnlen_working+:} false; then :
30686   $as_echo_n "(cached) " >&6
30687 else
30688   if test "$cross_compiling" = yes; then :
30689   # Guess no on AIX systems, yes otherwise.
30690                 case "$host_os" in
30691                   aix*) ac_cv_func_strnlen_working=no;;
30692                   *)    ac_cv_func_strnlen_working=yes;;
30693                 esac
30694 else
30695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30696 /* end confdefs.h.  */
30697 $ac_includes_default
30698 int
30699 main ()
30700 {
30701
30702 #define S "foobar"
30703 #define S_LEN (sizeof S - 1)
30704
30705   /* At least one implementation is buggy: that of AIX 4.3 would
30706      give strnlen (S, 1) == 3.  */
30707
30708   int i;
30709   for (i = 0; i < S_LEN + 1; ++i)
30710     {
30711       int expected = i <= S_LEN ? i : S_LEN;
30712       if (strnlen (S, i) != expected)
30713         return 1;
30714     }
30715   return 0;
30716
30717   ;
30718   return 0;
30719 }
30720 _ACEOF
30721 if ac_fn_c_try_run "$LINENO"; then :
30722   ac_cv_func_strnlen_working=yes
30723 else
30724   ac_cv_func_strnlen_working=no
30725 fi
30726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30727   conftest.$ac_objext conftest.beam conftest.$ac_ext
30728 fi
30729
30730 fi
30731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
30732 $as_echo "$ac_cv_func_strnlen_working" >&6; }
30733 test $ac_cv_func_strnlen_working = no && :
30734
30735
30736     if test $ac_cv_func_strnlen_working = no; then
30737       REPLACE_STRNLEN=1
30738     fi
30739   fi
30740
30741   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
30742
30743
30744
30745
30746
30747
30748
30749
30750   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
30751
30752     :
30753   fi
30754
30755
30756
30757
30758
30759           GNULIB_STRNLEN=1
30760
30761
30762
30763
30764
30765 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
30766
30767
30768
30769
30770   for ac_func in strtoul
30771 do :
30772   ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
30773 if test "x$ac_cv_func_strtoul" = xyes; then :
30774   cat >>confdefs.h <<_ACEOF
30775 #define HAVE_STRTOUL 1
30776 _ACEOF
30777
30778 fi
30779 done
30780
30781
30782   if test $ac_cv_func_strtoul = no; then
30783
30784
30785
30786
30787
30788
30789
30790
30791   gl_LIBOBJS="$gl_LIBOBJS strtoul.$ac_objext"
30792
30793   fi
30794
30795
30796
30797
30798
30799
30800
30801
30802
30803
30804
30805
30806
30807
30808      if test $gl_cv_have_include_next = yes; then
30809        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
30810      else
30811        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
30812 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
30813 if ${gl_cv_next_sys_stat_h+:} false; then :
30814   $as_echo_n "(cached) " >&6
30815 else
30816
30817              if test $ac_cv_header_sys_stat_h = yes; then
30818
30819
30820
30821
30822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30823 /* end confdefs.h.  */
30824 #include <sys/stat.h>
30825 _ACEOF
30826                 case "$host_os" in
30827     aix*) gl_absname_cpp="$ac_cpp -C" ;;
30828     *)    gl_absname_cpp="$ac_cpp" ;;
30829   esac
30830
30831   case "$host_os" in
30832     mingw*)
30833                                           gl_dirsep_regex='[/\\]'
30834       ;;
30835     *)
30836       gl_dirsep_regex='\/'
30837       ;;
30838   esac
30839       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
30840   gl_header_literal_regex=`echo 'sys/stat.h' \
30841                            | sed -e "$gl_make_literal_regex_sed"`
30842   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
30843       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
30844       s|^/[^/]|//&|
30845       p
30846       q
30847     }'
30848
30849         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30850   sed -n "$gl_absolute_header_sed"`
30851
30852            gl_header=$gl_cv_absolute_sys_stat_h
30853            gl_cv_next_sys_stat_h='"'$gl_header'"'
30854           else
30855                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
30856              fi
30857
30858
30859 fi
30860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
30861 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
30862      fi
30863      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
30864
30865      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30866        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30867        gl_next_as_first_directive='<'sys/stat.h'>'
30868      else
30869        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30870        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
30871      fi
30872      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
30873
30874
30875
30876
30877
30878
30879
30880
30881
30882
30883
30884   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
30885
30886 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
30887
30888   fi
30889
30890       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
30891      #include <sys/stat.h>
30892 "
30893 if test "x$ac_cv_type_nlink_t" = xyes; then :
30894
30895 else
30896
30897 $as_echo "#define nlink_t int" >>confdefs.h
30898
30899 fi
30900
30901
30902
30903     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
30904     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30905     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
30906 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30907 if eval \${$as_gl_Symbol+:} false; then :
30908   $as_echo_n "(cached) " >&6
30909 else
30910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30911 /* end confdefs.h.  */
30912 #include <sys/stat.h>
30913
30914 int
30915 main ()
30916 {
30917 #undef $gl_func
30918   (void) $gl_func;
30919   ;
30920   return 0;
30921 }
30922 _ACEOF
30923 if ac_fn_c_try_compile "$LINENO"; then :
30924   eval "$as_gl_Symbol=yes"
30925 else
30926   eval "$as_gl_Symbol=no"
30927 fi
30928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30929 fi
30930 eval ac_res=\$$as_gl_Symbol
30931                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30932 $as_echo "$ac_res" >&6; }
30933     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
30934   cat >>confdefs.h <<_ACEOF
30935 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30936 _ACEOF
30937
30938                      eval ac_cv_have_decl_$gl_func=yes
30939 fi
30940       done
30941
30942
30943
30944
30945
30946
30947
30948
30949
30950
30951
30952
30953
30954
30955
30956
30957
30958
30959
30960
30961
30962
30963
30964
30965
30966
30967
30968
30969      if test $gl_cv_have_include_next = yes; then
30970        gl_cv_next_unistd_h='<'unistd.h'>'
30971      else
30972        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
30973 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
30974 if ${gl_cv_next_unistd_h+:} false; then :
30975   $as_echo_n "(cached) " >&6
30976 else
30977
30978              if test $ac_cv_header_unistd_h = yes; then
30979
30980
30981
30982
30983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30984 /* end confdefs.h.  */
30985 #include <unistd.h>
30986 _ACEOF
30987                 case "$host_os" in
30988     aix*) gl_absname_cpp="$ac_cpp -C" ;;
30989     *)    gl_absname_cpp="$ac_cpp" ;;
30990   esac
30991
30992   case "$host_os" in
30993     mingw*)
30994                                           gl_dirsep_regex='[/\\]'
30995       ;;
30996     *)
30997       gl_dirsep_regex='\/'
30998       ;;
30999   esac
31000       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
31001   gl_header_literal_regex=`echo 'unistd.h' \
31002                            | sed -e "$gl_make_literal_regex_sed"`
31003   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31004       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31005       s|^/[^/]|//&|
31006       p
31007       q
31008     }'
31009
31010         gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31011   sed -n "$gl_absolute_header_sed"`
31012
31013            gl_header=$gl_cv_absolute_unistd_h
31014            gl_cv_next_unistd_h='"'$gl_header'"'
31015           else
31016                gl_cv_next_unistd_h='<'unistd.h'>'
31017              fi
31018
31019
31020 fi
31021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
31022 $as_echo "$gl_cv_next_unistd_h" >&6; }
31023      fi
31024      NEXT_UNISTD_H=$gl_cv_next_unistd_h
31025
31026      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31027        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31028        gl_next_as_first_directive='<'unistd.h'>'
31029      else
31030        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31031        gl_next_as_first_directive=$gl_cv_next_unistd_h
31032      fi
31033      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
31034
31035
31036
31037
31038   if test $ac_cv_header_unistd_h = yes; then
31039     HAVE_UNISTD_H=1
31040   else
31041     HAVE_UNISTD_H=0
31042   fi
31043
31044
31045
31046
31047
31048
31049
31050     for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat     fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups     gethostname getlogin getlogin_r getpagesize     getusershell setusershell endusershell     group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite     readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r     unlink unlinkat usleep; do
31051     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31052     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
31053 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31054 if eval \${$as_gl_Symbol+:} false; then :
31055   $as_echo_n "(cached) " >&6
31056 else
31057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31058 /* end confdefs.h.  */
31059
31060 #if HAVE_UNISTD_H
31061 # include <unistd.h>
31062 #endif
31063 /* Some systems declare various items in the wrong headers.  */
31064 #if !(defined __GLIBC__ && !defined __UCLIBC__)
31065 # include <fcntl.h>
31066 # include <stdio.h>
31067 # include <stdlib.h>
31068 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
31069 #  include <io.h>
31070 # endif
31071 #endif
31072
31073 int
31074 main ()
31075 {
31076 #undef $gl_func
31077   (void) $gl_func;
31078   ;
31079   return 0;
31080 }
31081 _ACEOF
31082 if ac_fn_c_try_compile "$LINENO"; then :
31083   eval "$as_gl_Symbol=yes"
31084 else
31085   eval "$as_gl_Symbol=no"
31086 fi
31087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31088 fi
31089 eval ac_res=\$$as_gl_Symbol
31090                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31091 $as_echo "$ac_res" >&6; }
31092     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
31093   cat >>confdefs.h <<_ACEOF
31094 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31095 _ACEOF
31096
31097                      eval ac_cv_have_decl_$gl_func=yes
31098 fi
31099       done
31100
31101
31102
31103
31104       if  { test "$HAVE_LIBUNISTRING" != yes \
31105     || {
31106
31107
31108
31109             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
31110             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
31111                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
31112                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
31113                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
31114                          }
31115                     }
31116                }
31117
31118
31119
31120
31121        }
31122   }; then
31123     LIBUNISTRING_UNISTR_H='unistr.h'
31124   else
31125     LIBUNISTRING_UNISTR_H=
31126   fi
31127
31128
31129
31130
31131 cat >>confdefs.h <<_ACEOF
31132 #define GNULIB_UNISTR_U8_MBTOUCR 1
31133 _ACEOF
31134
31135
31136
31137
31138        if  { test "$HAVE_LIBUNISTRING" != yes \
31139     || {
31140
31141
31142
31143             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
31144             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
31145                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
31146                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
31147                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
31148                          }
31149                     }
31150                }
31151
31152
31153
31154
31155        }
31156   }; then
31157   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE=
31158   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#'
31159 else
31160   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#'
31161   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE=
31162 fi
31163
31164
31165
31166
31167 cat >>confdefs.h <<_ACEOF
31168 #define GNULIB_UNISTR_U8_UCTOMB 1
31169 _ACEOF
31170
31171
31172
31173
31174        if  { test "$HAVE_LIBUNISTRING" != yes \
31175     || {
31176
31177
31178
31179             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
31180             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
31181                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
31182                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
31183                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
31184                          }
31185                     }
31186                }
31187
31188
31189
31190
31191        }
31192   }; then
31193   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE=
31194   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#'
31195 else
31196   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#'
31197   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE=
31198 fi
31199
31200
31201
31202
31203       if  { test "$HAVE_LIBUNISTRING" != yes \
31204     || {
31205
31206
31207
31208             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
31209             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
31210                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
31211                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
31212                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
31213                          }
31214                     }
31215                }
31216
31217
31218
31219
31220        }
31221   }; then
31222     LIBUNISTRING_UNITYPES_H='unitypes.h'
31223   else
31224     LIBUNISTRING_UNITYPES_H=
31225   fi
31226
31227
31228
31229
31230       if  { test "$HAVE_LIBUNISTRING" != yes \
31231     || {
31232
31233
31234
31235             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
31236             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
31237                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
31238                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
31239                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
31240                          }
31241                     }
31242                }
31243
31244
31245
31246
31247        }
31248   }; then
31249     LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
31250   else
31251     LIBUNISTRING_UNIWIDTH_H=
31252   fi
31253
31254
31255
31256
31257        if  { test "$HAVE_LIBUNISTRING" != yes \
31258     || {
31259
31260
31261
31262             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
31263             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
31264                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
31265                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
31266                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 6
31267                          }
31268                     }
31269                }
31270
31271
31272
31273
31274        }
31275   }; then
31276   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
31277   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
31278 else
31279   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
31280   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
31281 fi
31282
31283
31284
31285
31286 $as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h
31287
31288
31289
31290
31291
31292
31293
31294
31295
31296
31297
31298
31299
31300
31301
31302
31303
31304
31305
31306
31307
31308
31309
31310
31311
31312
31313
31314
31315
31316
31317      if test $gl_cv_have_include_next = yes; then
31318        gl_cv_next_wchar_h='<'wchar.h'>'
31319      else
31320        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
31321 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
31322 if ${gl_cv_next_wchar_h+:} false; then :
31323   $as_echo_n "(cached) " >&6
31324 else
31325
31326              if test $ac_cv_header_wchar_h = yes; then
31327
31328
31329
31330
31331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31332 /* end confdefs.h.  */
31333 #include <wchar.h>
31334 _ACEOF
31335                 case "$host_os" in
31336     aix*) gl_absname_cpp="$ac_cpp -C" ;;
31337     *)    gl_absname_cpp="$ac_cpp" ;;
31338   esac
31339
31340   case "$host_os" in
31341     mingw*)
31342                                           gl_dirsep_regex='[/\\]'
31343       ;;
31344     *)
31345       gl_dirsep_regex='\/'
31346       ;;
31347   esac
31348       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
31349   gl_header_literal_regex=`echo 'wchar.h' \
31350                            | sed -e "$gl_make_literal_regex_sed"`
31351   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31352       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31353       s|^/[^/]|//&|
31354       p
31355       q
31356     }'
31357
31358         gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31359   sed -n "$gl_absolute_header_sed"`
31360
31361            gl_header=$gl_cv_absolute_wchar_h
31362            gl_cv_next_wchar_h='"'$gl_header'"'
31363           else
31364                gl_cv_next_wchar_h='<'wchar.h'>'
31365              fi
31366
31367
31368 fi
31369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
31370 $as_echo "$gl_cv_next_wchar_h" >&6; }
31371      fi
31372      NEXT_WCHAR_H=$gl_cv_next_wchar_h
31373
31374      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31375        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31376        gl_next_as_first_directive='<'wchar.h'>'
31377      else
31378        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31379        gl_next_as_first_directive=$gl_cv_next_wchar_h
31380      fi
31381      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
31382
31383
31384
31385
31386   if test $ac_cv_header_wchar_h = yes; then
31387     HAVE_WCHAR_H=1
31388   else
31389     HAVE_WCHAR_H=0
31390   fi
31391
31392
31393
31394
31395
31396   if test $gt_cv_c_wint_t = yes; then
31397     HAVE_WINT_T=1
31398   else
31399     HAVE_WINT_T=0
31400   fi
31401
31402
31403
31404     for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb      wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset      wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp      wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr      wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth     ; do
31405     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31406     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
31407 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31408 if eval \${$as_gl_Symbol+:} false; then :
31409   $as_echo_n "(cached) " >&6
31410 else
31411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31412 /* end confdefs.h.  */
31413
31414 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
31415    <wchar.h>.
31416    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
31417    included before <wchar.h>.  */
31418 #if !(defined __GLIBC__ && !defined __UCLIBC__)
31419 # include <stddef.h>
31420 # include <stdio.h>
31421 # include <time.h>
31422 #endif
31423 #include <wchar.h>
31424
31425 int
31426 main ()
31427 {
31428 #undef $gl_func
31429   (void) $gl_func;
31430   ;
31431   return 0;
31432 }
31433 _ACEOF
31434 if ac_fn_c_try_compile "$LINENO"; then :
31435   eval "$as_gl_Symbol=yes"
31436 else
31437   eval "$as_gl_Symbol=no"
31438 fi
31439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31440 fi
31441 eval ac_res=\$$as_gl_Symbol
31442                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31443 $as_echo "$ac_res" >&6; }
31444     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
31445   cat >>confdefs.h <<_ACEOF
31446 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31447 _ACEOF
31448
31449                      eval ac_cv_have_decl_$gl_func=yes
31450 fi
31451       done
31452
31453
31454
31455
31456
31457
31458
31459   if test $ac_cv_func_iswcntrl = yes; then
31460     HAVE_ISWCNTRL=1
31461   else
31462     HAVE_ISWCNTRL=0
31463   fi
31464
31465
31466
31467   if test $gt_cv_c_wint_t = yes; then
31468     HAVE_WINT_T=1
31469   else
31470     HAVE_WINT_T=0
31471   fi
31472
31473
31474
31475
31476
31477
31478
31479
31480
31481
31482
31483      if test $gl_cv_have_include_next = yes; then
31484        gl_cv_next_wctype_h='<'wctype.h'>'
31485      else
31486        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
31487 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
31488 if ${gl_cv_next_wctype_h+:} false; then :
31489   $as_echo_n "(cached) " >&6
31490 else
31491
31492              if test $ac_cv_header_wctype_h = yes; then
31493
31494
31495
31496
31497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31498 /* end confdefs.h.  */
31499 #include <wctype.h>
31500 _ACEOF
31501                 case "$host_os" in
31502     aix*) gl_absname_cpp="$ac_cpp -C" ;;
31503     *)    gl_absname_cpp="$ac_cpp" ;;
31504   esac
31505
31506   case "$host_os" in
31507     mingw*)
31508                                           gl_dirsep_regex='[/\\]'
31509       ;;
31510     *)
31511       gl_dirsep_regex='\/'
31512       ;;
31513   esac
31514       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
31515   gl_header_literal_regex=`echo 'wctype.h' \
31516                            | sed -e "$gl_make_literal_regex_sed"`
31517   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
31518       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
31519       s|^/[^/]|//&|
31520       p
31521       q
31522     }'
31523
31524         gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31525   sed -n "$gl_absolute_header_sed"`
31526
31527            gl_header=$gl_cv_absolute_wctype_h
31528            gl_cv_next_wctype_h='"'$gl_header'"'
31529           else
31530                gl_cv_next_wctype_h='<'wctype.h'>'
31531              fi
31532
31533
31534 fi
31535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
31536 $as_echo "$gl_cv_next_wctype_h" >&6; }
31537      fi
31538      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
31539
31540      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31541        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31542        gl_next_as_first_directive='<'wctype.h'>'
31543      else
31544        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31545        gl_next_as_first_directive=$gl_cv_next_wctype_h
31546      fi
31547      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
31548
31549
31550
31551
31552   if test $ac_cv_header_wctype_h = yes; then
31553     if test $ac_cv_func_iswcntrl = yes; then
31554                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
31555 $as_echo_n "checking whether iswcntrl works... " >&6; }
31556 if ${gl_cv_func_iswcntrl_works+:} false; then :
31557   $as_echo_n "(cached) " >&6
31558 else
31559
31560           if test "$cross_compiling" = yes; then :
31561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31562 /* end confdefs.h.  */
31563 #include <stdlib.h>
31564                           #if __GNU_LIBRARY__ == 1
31565                           Linux libc5 i18n is broken.
31566                           #endif
31567 int
31568 main ()
31569 {
31570
31571   ;
31572   return 0;
31573 }
31574 _ACEOF
31575 if ac_fn_c_try_compile "$LINENO"; then :
31576   gl_cv_func_iswcntrl_works="guessing yes"
31577 else
31578   gl_cv_func_iswcntrl_works="guessing no"
31579 fi
31580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31581
31582 else
31583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31584 /* end confdefs.h.  */
31585
31586                /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
31587                   included before <wchar.h>.
31588                   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
31589                   must be included before <wchar.h>.  */
31590                #include <stddef.h>
31591                #include <stdio.h>
31592                #include <time.h>
31593                #include <wchar.h>
31594                #include <wctype.h>
31595                int main () { return iswprint ('x') == 0; }
31596
31597 _ACEOF
31598 if ac_fn_c_try_run "$LINENO"; then :
31599   gl_cv_func_iswcntrl_works=yes
31600 else
31601   gl_cv_func_iswcntrl_works=no
31602 fi
31603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31604   conftest.$ac_objext conftest.beam conftest.$ac_ext
31605 fi
31606
31607
31608 fi
31609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
31610 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
31611     fi
31612     HAVE_WCTYPE_H=1
31613   else
31614     HAVE_WCTYPE_H=0
31615   fi
31616
31617
31618   case "$gl_cv_func_iswcntrl_works" in
31619     *yes) REPLACE_ISWCNTRL=0 ;;
31620     *)    REPLACE_ISWCNTRL=1 ;;
31621   esac
31622
31623
31624   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
31625         :
31626   fi
31627
31628   if test $REPLACE_ISWCNTRL = 1; then
31629     REPLACE_TOWLOWER=1
31630   else
31631     for ac_func in towlower
31632 do :
31633   ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
31634 if test "x$ac_cv_func_towlower" = xyes; then :
31635   cat >>confdefs.h <<_ACEOF
31636 #define HAVE_TOWLOWER 1
31637 _ACEOF
31638
31639 fi
31640 done
31641
31642     if test $ac_cv_func_towlower = yes; then
31643       REPLACE_TOWLOWER=0
31644     else
31645       ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
31646              included before <wchar.h>.
31647              BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
31648              must be included before <wchar.h>.  */
31649           #include <stddef.h>
31650           #include <stdio.h>
31651           #include <time.h>
31652           #include <wchar.h>
31653           #if HAVE_WCTYPE_H
31654           # include <wctype.h>
31655           #endif
31656
31657 "
31658 if test "x$ac_cv_have_decl_towlower" = xyes; then :
31659   ac_have_decl=1
31660 else
31661   ac_have_decl=0
31662 fi
31663
31664 cat >>confdefs.h <<_ACEOF
31665 #define HAVE_DECL_TOWLOWER $ac_have_decl
31666 _ACEOF
31667
31668       if test $ac_cv_have_decl_towlower = yes; then
31669                                 REPLACE_TOWLOWER=1
31670       else
31671         REPLACE_TOWLOWER=0
31672       fi
31673     fi
31674   fi
31675
31676
31677   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
31678         :
31679   fi
31680
31681           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
31682 $as_echo_n "checking for wctype_t... " >&6; }
31683 if ${gl_cv_type_wctype_t+:} false; then :
31684   $as_echo_n "(cached) " >&6
31685 else
31686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31687 /* end confdefs.h.  */
31688 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
31689                included before <wchar.h>.
31690                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
31691                must be included before <wchar.h>.  */
31692             #include <stddef.h>
31693             #include <stdio.h>
31694             #include <time.h>
31695             #include <wchar.h>
31696             #if HAVE_WCTYPE_H
31697             # include <wctype.h>
31698             #endif
31699             wctype_t a;
31700
31701 int
31702 main ()
31703 {
31704
31705   ;
31706   return 0;
31707 }
31708 _ACEOF
31709 if ac_fn_c_try_compile "$LINENO"; then :
31710   gl_cv_type_wctype_t=yes
31711 else
31712   gl_cv_type_wctype_t=no
31713 fi
31714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31715
31716 fi
31717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
31718 $as_echo "$gl_cv_type_wctype_t" >&6; }
31719   if test $gl_cv_type_wctype_t = no; then
31720     HAVE_WCTYPE_T=0
31721   fi
31722
31723       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
31724 $as_echo_n "checking for wctrans_t... " >&6; }
31725 if ${gl_cv_type_wctrans_t+:} false; then :
31726   $as_echo_n "(cached) " >&6
31727 else
31728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31729 /* end confdefs.h.  */
31730 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
31731                included before <wchar.h>.
31732                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
31733                must be included before <wchar.h>.  */
31734             #include <stddef.h>
31735             #include <stdio.h>
31736             #include <time.h>
31737             #include <wchar.h>
31738             #include <wctype.h>
31739             wctrans_t a;
31740
31741 int
31742 main ()
31743 {
31744
31745   ;
31746   return 0;
31747 }
31748 _ACEOF
31749 if ac_fn_c_try_compile "$LINENO"; then :
31750   gl_cv_type_wctrans_t=yes
31751 else
31752   gl_cv_type_wctrans_t=no
31753 fi
31754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31755
31756 fi
31757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
31758 $as_echo "$gl_cv_type_wctrans_t" >&6; }
31759   if test $gl_cv_type_wctrans_t = no; then
31760     HAVE_WCTRANS_T=0
31761   fi
31762
31763
31764     for gl_func in wctype iswctype wctrans towctrans     ; do
31765     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31766     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
31767 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31768 if eval \${$as_gl_Symbol+:} false; then :
31769   $as_echo_n "(cached) " >&6
31770 else
31771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31772 /* end confdefs.h.  */
31773
31774 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
31775    <wchar.h>.
31776    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
31777    included before <wchar.h>.  */
31778 #if !(defined __GLIBC__ && !defined __UCLIBC__)
31779 # include <stddef.h>
31780 # include <stdio.h>
31781 # include <time.h>
31782 # include <wchar.h>
31783 #endif
31784 #include <wctype.h>
31785
31786 int
31787 main ()
31788 {
31789 #undef $gl_func
31790   (void) $gl_func;
31791   ;
31792   return 0;
31793 }
31794 _ACEOF
31795 if ac_fn_c_try_compile "$LINENO"; then :
31796   eval "$as_gl_Symbol=yes"
31797 else
31798   eval "$as_gl_Symbol=no"
31799 fi
31800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31801 fi
31802 eval ac_res=\$$as_gl_Symbol
31803                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
31804 $as_echo "$ac_res" >&6; }
31805     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
31806   cat >>confdefs.h <<_ACEOF
31807 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31808 _ACEOF
31809
31810                      eval ac_cv_have_decl_$gl_func=yes
31811 fi
31812       done
31813
31814
31815
31816
31817
31818
31819
31820
31821
31822
31823
31824
31825
31826   ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
31827 /* AIX 3.2.5 declares wcwidth in <string.h>. */
31828 #include <string.h>
31829 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
31830    <wchar.h>.
31831    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
31832    before <wchar.h>.  */
31833 #include <stddef.h>
31834 #include <stdio.h>
31835 #include <time.h>
31836 #include <wchar.h>
31837
31838 "
31839 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
31840   ac_have_decl=1
31841 else
31842   ac_have_decl=0
31843 fi
31844
31845 cat >>confdefs.h <<_ACEOF
31846 #define HAVE_DECL_WCWIDTH $ac_have_decl
31847 _ACEOF
31848
31849   if test $ac_cv_have_decl_wcwidth != yes; then
31850     HAVE_DECL_WCWIDTH=0
31851   fi
31852
31853   if test $ac_cv_func_wcwidth = yes; then
31854     HAVE_WCWIDTH=1
31855                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
31856 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
31857 if ${gl_cv_func_wcwidth_works+:} false; then :
31858   $as_echo_n "(cached) " >&6
31859 else
31860
31861         if test "$cross_compiling" = yes; then :
31862
31863            case "$host_os" in
31864                      # Guess yes on glibc and AIX 7 systems.
31865              *-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
31866              *)                  gl_cv_func_wcwidth_works="guessing no";;
31867            esac
31868
31869 else
31870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31871 /* end confdefs.h.  */
31872
31873 #include <locale.h>
31874 /* AIX 3.2.5 declares wcwidth in <string.h>. */
31875 #include <string.h>
31876 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
31877    <wchar.h>.
31878    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
31879    before <wchar.h>.  */
31880 #include <stddef.h>
31881 #include <stdio.h>
31882 #include <time.h>
31883 #include <wchar.h>
31884 #if !HAVE_DECL_WCWIDTH
31885 extern
31886 # ifdef __cplusplus
31887 "C"
31888 # endif
31889 int wcwidth (int);
31890 #endif
31891 int main ()
31892 {
31893   int result = 0;
31894   if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
31895     {
31896       if (wcwidth (0x0301) > 0)
31897         result |= 1;
31898       if (wcwidth (0x05B0) > 0)
31899         result |= 2;
31900       if (wcwidth (0x200B) > 0)
31901         result |= 4;
31902       if (wcwidth (0xFF1A) == 0)
31903         result |= 8;
31904     }
31905   return result;
31906 }
31907 _ACEOF
31908 if ac_fn_c_try_run "$LINENO"; then :
31909   gl_cv_func_wcwidth_works=yes
31910 else
31911   gl_cv_func_wcwidth_works=no
31912 fi
31913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31914   conftest.$ac_objext conftest.beam conftest.$ac_ext
31915 fi
31916
31917
31918 fi
31919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
31920 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
31921     case "$gl_cv_func_wcwidth_works" in
31922       *yes) ;;
31923       *no) REPLACE_WCWIDTH=1 ;;
31924     esac
31925   else
31926     HAVE_WCWIDTH=0
31927   fi
31928
31929   if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
31930
31931
31932
31933
31934
31935
31936
31937
31938   gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
31939
31940   fi
31941
31942
31943
31944
31945
31946           GNULIB_WCWIDTH=1
31947
31948
31949
31950
31951
31952 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
31953
31954
31955
31956   # End of code from modules
31957
31958
31959
31960
31961
31962
31963
31964
31965
31966   gltests_libdeps=
31967   gltests_ltlibdeps=
31968
31969
31970
31971
31972
31973
31974
31975
31976
31977   gl_source_base='tests'
31978   gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
31979
31980   gl_module_indicator_condition=$gltests_WITNESS
31981
31982
31983
31984
31985
31986
31987
31988
31989
31990   LIBGRT_LIBDEPS="$gl_libdeps"
31991
31992   LIBGRT_LTLIBDEPS="$gl_ltlibdeps"
31993
31994
31995 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
31996 if test "x$ac_cv_type_size_t" = xyes; then :
31997
31998 else
31999
32000 cat >>confdefs.h <<_ACEOF
32001 #define size_t unsigned int
32002 _ACEOF
32003
32004 fi
32005
32006 for ac_func in setlocale
32007 do :
32008   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
32009 if test "x$ac_cv_func_setlocale" = xyes; then :
32010   cat >>confdefs.h <<_ACEOF
32011 #define HAVE_SETLOCALE 1
32012 _ACEOF
32013
32014 fi
32015 done
32016
32017
32018
32019
32020 if test "$enable_shared" = yes; then
32021   case "$host_os" in
32022     mingw* | cygwin*) is_woe32dll=yes ;;
32023     *) is_woe32dll=no ;;
32024   esac
32025 else
32026   is_woe32dll=no
32027 fi
32028  if test $is_woe32dll = yes; then
32029   WOE32DLL_TRUE=
32030   WOE32DLL_FALSE='#'
32031 else
32032   WOE32DLL_TRUE='#'
32033   WOE32DLL_FALSE=
32034 fi
32035
32036 if test $is_woe32dll = yes; then
32037
32038 $as_echo "#define WOE32DLL 1" >>confdefs.h
32039
32040 fi
32041
32042 INTL_EXPORTS_FLAGS=
32043 if test "$USER_LABEL_PREFIX" = _; then
32044   INTL_EXPORTS_FLAGS="-DUSER_LABEL_PREFIX_UNDERSCORE $INTL_EXPORTS_FLAGS"
32045 fi
32046
32047
32048 ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
32049 # Extract the first word of "perl", so it can be a program name with args.
32050 set dummy perl; ac_word=$2
32051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32052 $as_echo_n "checking for $ac_word... " >&6; }
32053 if ${ac_cv_path_PERL+:} false; then :
32054   $as_echo_n "(cached) " >&6
32055 else
32056   case $PERL in
32057   [\\/]* | ?:[\\/]*)
32058   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32059   ;;
32060   *)
32061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32062 for as_dir in $PATH
32063 do
32064   IFS=$as_save_IFS
32065   test -z "$as_dir" && as_dir=.
32066     for ac_exec_ext in '' $ac_executable_extensions; do
32067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32068     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
32069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32070     break 2
32071   fi
32072 done
32073   done
32074 IFS=$as_save_IFS
32075
32076   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
32077   ;;
32078 esac
32079 fi
32080 PERL=$ac_cv_path_PERL
32081 if test -n "$PERL"; then
32082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
32083 $as_echo "$PERL" >&6; }
32084 else
32085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32086 $as_echo "no" >&6; }
32087 fi
32088
32089
32090
32091 CROSS_COMPILING=$cross_compiling
32092
32093
32094
32095
32096
32097   if test "$CXX_CHOICE" = no; then
32098     CXX=no
32099   fi
32100   if test -z "$CXX"; then
32101     if test -n "$CCC"; then
32102       CXX="$CCC"
32103     else
32104       if test -n "$ac_tool_prefix"; then
32105   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
32106   do
32107     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
32108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
32109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32110 $as_echo_n "checking for $ac_word... " >&6; }
32111 if ${ac_cv_prog_CXX+:} false; then :
32112   $as_echo_n "(cached) " >&6
32113 else
32114   if test -n "$CXX"; then
32115   ac_cv_prog_CXX="$CXX" # Let the user override the test.
32116 else
32117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32118 for as_dir in $PATH
32119 do
32120   IFS=$as_save_IFS
32121   test -z "$as_dir" && as_dir=.
32122     for ac_exec_ext in '' $ac_executable_extensions; do
32123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32124     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
32125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32126     break 2
32127   fi
32128 done
32129   done
32130 IFS=$as_save_IFS
32131
32132 fi
32133 fi
32134 CXX=$ac_cv_prog_CXX
32135 if test -n "$CXX"; then
32136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
32137 $as_echo "$CXX" >&6; }
32138 else
32139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32140 $as_echo "no" >&6; }
32141 fi
32142
32143
32144     test -n "$CXX" && break
32145   done
32146 fi
32147 if test -z "$CXX"; then
32148   ac_ct_CXX=$CXX
32149   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
32150 do
32151   # Extract the first word of "$ac_prog", so it can be a program name with args.
32152 set dummy $ac_prog; ac_word=$2
32153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32154 $as_echo_n "checking for $ac_word... " >&6; }
32155 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
32156   $as_echo_n "(cached) " >&6
32157 else
32158   if test -n "$ac_ct_CXX"; then
32159   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
32160 else
32161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32162 for as_dir in $PATH
32163 do
32164   IFS=$as_save_IFS
32165   test -z "$as_dir" && as_dir=.
32166     for ac_exec_ext in '' $ac_executable_extensions; do
32167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32168     ac_cv_prog_ac_ct_CXX="$ac_prog"
32169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32170     break 2
32171   fi
32172 done
32173   done
32174 IFS=$as_save_IFS
32175
32176 fi
32177 fi
32178 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
32179 if test -n "$ac_ct_CXX"; then
32180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
32181 $as_echo "$ac_ct_CXX" >&6; }
32182 else
32183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32184 $as_echo "no" >&6; }
32185 fi
32186
32187
32188   test -n "$ac_ct_CXX" && break
32189 done
32190
32191   if test "x$ac_ct_CXX" = x; then
32192     CXX=":"
32193   else
32194     case $cross_compiling:$ac_tool_warned in
32195 yes:)
32196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32198 ac_tool_warned=yes ;;
32199 esac
32200     CXX=$ac_ct_CXX
32201   fi
32202 fi
32203
32204     fi
32205   fi
32206   if test "$CXX" != no; then
32207             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
32208 $as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; }
32209     ac_ext=cpp
32210 ac_cpp='$CXXCPP $CPPFLAGS'
32211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32214
32215
32216
32217     echo 'int main () { return 0; }' > conftest.$ac_ext
32218     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
32219   (eval $ac_link) 2>&5
32220   ac_status=$?
32221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32222   test $ac_status = 0; } && test -s conftest$ac_exeext; then
32223       gl_cv_prog_ansicxx_works=yes
32224       if (./conftest; exit) 2>/dev/null; then
32225         gl_cv_prog_ansicxx_cross=no
32226       else
32227         gl_cv_prog_ansicxx_cross=yes
32228       fi
32229     else
32230       gl_cv_prog_ansicxx_works=no
32231     fi
32232     rm -fr conftest*
32233     ac_ext=c
32234 ac_cpp='$CPP $CPPFLAGS'
32235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32238
32239     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_works" >&5
32240 $as_echo "$gl_cv_prog_ansicxx_works" >&6; }
32241     if test $gl_cv_prog_ansicxx_works = no; then
32242       CXX=no
32243     else
32244                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports namespaces" >&5
32245 $as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; }
32246       ac_ext=cpp
32247 ac_cpp='$CXXCPP $CPPFLAGS'
32248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32251
32252       cat <<EOF > conftest.$ac_ext
32253 #include <iostream>
32254 namespace test { using namespace std; }
32255 std::ostream* ptr;
32256 int main () { return 0; }
32257 EOF
32258       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
32259   (eval $ac_link) 2>&5
32260   ac_status=$?
32261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32262   test $ac_status = 0; } && test -s conftest$ac_exeext; then
32263         gl_cv_prog_ansicxx_namespaces=yes
32264       else
32265         gl_cv_prog_ansicxx_namespaces=no
32266       fi
32267       rm -fr conftest*
32268       ac_ext=c
32269 ac_cpp='$CPP $CPPFLAGS'
32270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32273
32274       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_namespaces" >&5
32275 $as_echo "$gl_cv_prog_ansicxx_namespaces" >&6; }
32276       if test $gl_cv_prog_ansicxx_namespaces = no; then
32277         CXX=no
32278       fi
32279     fi
32280   fi
32281
32282
32283
32284    if test "$CXX" != no; then
32285   ANSICXX_TRUE=
32286   ANSICXX_FALSE='#'
32287 else
32288   ANSICXX_TRUE='#'
32289   ANSICXX_FALSE=
32290 fi
32291
32292
32293   if test "$CXX" != no; then
32294
32295 depcc="$CXX"  am_compiler_list=
32296
32297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
32298 $as_echo_n "checking dependency style of $depcc... " >&6; }
32299 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
32300   $as_echo_n "(cached) " >&6
32301 else
32302   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
32303   # We make a subdir and do the tests there.  Otherwise we can end up
32304   # making bogus files that we don't know about and never remove.  For
32305   # instance it was reported that on HP-UX the gcc test will end up
32306   # making a dummy file named 'D' -- because '-MD' means "put the output
32307   # in D".
32308   rm -rf conftest.dir
32309   mkdir conftest.dir
32310   # Copy depcomp to subdir because otherwise we won't find it if we're
32311   # using a relative directory.
32312   cp "$am_depcomp" conftest.dir
32313   cd conftest.dir
32314   # We will build objects and dependencies in a subdirectory because
32315   # it helps to detect inapplicable dependency modes.  For instance
32316   # both Tru64's cc and ICC support -MD to output dependencies as a
32317   # side effect of compilation, but ICC will put the dependencies in
32318   # the current directory while Tru64 will put them in the object
32319   # directory.
32320   mkdir sub
32321
32322   am_cv_CXX_dependencies_compiler_type=none
32323   if test "$am_compiler_list" = ""; then
32324      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
32325   fi
32326   am__universal=false
32327   case " $depcc " in #(
32328      *\ -arch\ *\ -arch\ *) am__universal=true ;;
32329      esac
32330
32331   for depmode in $am_compiler_list; do
32332     # Setup a source with many dependencies, because some compilers
32333     # like to wrap large dependency lists on column 80 (with \), and
32334     # we should not choose a depcomp mode which is confused by this.
32335     #
32336     # We need to recreate these files for each test, as the compiler may
32337     # overwrite some of them when testing with obscure command lines.
32338     # This happens at least with the AIX C compiler.
32339     : > sub/conftest.c
32340     for i in 1 2 3 4 5 6; do
32341       echo '#include "conftst'$i'.h"' >> sub/conftest.c
32342       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
32343       # Solaris 10 /bin/sh.
32344       echo '/* dummy */' > sub/conftst$i.h
32345     done
32346     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
32347
32348     # We check with '-c' and '-o' for the sake of the "dashmstdout"
32349     # mode.  It turns out that the SunPro C++ compiler does not properly
32350     # handle '-M -o', and we need to detect this.  Also, some Intel
32351     # versions had trouble with output in subdirs.
32352     am__obj=sub/conftest.${OBJEXT-o}
32353     am__minus_obj="-o $am__obj"
32354     case $depmode in
32355     gcc)
32356       # This depmode causes a compiler race in universal mode.
32357       test "$am__universal" = false || continue
32358       ;;
32359     nosideeffect)
32360       # After this tag, mechanisms are not by side-effect, so they'll
32361       # only be used when explicitly requested.
32362       if test "x$enable_dependency_tracking" = xyes; then
32363         continue
32364       else
32365         break
32366       fi
32367       ;;
32368     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
32369       # This compiler won't grok '-c -o', but also, the minuso test has
32370       # not run yet.  These depmodes are late enough in the game, and
32371       # so weak that their functioning should not be impacted.
32372       am__obj=conftest.${OBJEXT-o}
32373       am__minus_obj=
32374       ;;
32375     none) break ;;
32376     esac
32377     if depmode=$depmode \
32378        source=sub/conftest.c object=$am__obj \
32379        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
32380        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
32381          >/dev/null 2>conftest.err &&
32382        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
32383        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
32384        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
32385        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
32386       # icc doesn't choke on unknown options, it will just issue warnings
32387       # or remarks (even with -Werror).  So we grep stderr for any message
32388       # that says an option was ignored or not supported.
32389       # When given -MP, icc 7.0 and 7.1 complain thusly:
32390       #   icc: Command line warning: ignoring option '-M'; no argument required
32391       # The diagnosis changed in icc 8.0:
32392       #   icc: Command line remark: option '-MP' not supported
32393       if (grep 'ignoring option' conftest.err ||
32394           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
32395         am_cv_CXX_dependencies_compiler_type=$depmode
32396         break
32397       fi
32398     fi
32399   done
32400
32401   cd ..
32402   rm -rf conftest.dir
32403 else
32404   am_cv_CXX_dependencies_compiler_type=none
32405 fi
32406
32407 fi
32408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
32409 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
32410 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
32411
32412  if
32413   test "x$enable_dependency_tracking" != xno \
32414   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
32415   am__fastdepCXX_TRUE=
32416   am__fastdepCXX_FALSE='#'
32417 else
32418   am__fastdepCXX_TRUE='#'
32419   am__fastdepCXX_FALSE=
32420 fi
32421
32422
32423   else
32424      if false; then
32425   am__fastdepCXX_TRUE=
32426   am__fastdepCXX_FALSE='#'
32427 else
32428   am__fastdepCXX_TRUE='#'
32429   am__fastdepCXX_FALSE=
32430 fi
32431
32432   fi
32433
32434
32435 LIBSCHED=
32436 if test $gl_threads_api = posix; then
32437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
32438 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
32439 if ${ac_cv_lib_rt_sched_yield+:} false; then :
32440   $as_echo_n "(cached) " >&6
32441 else
32442   ac_check_lib_save_LIBS=$LIBS
32443 LIBS="-lrt  $LIBS"
32444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32445 /* end confdefs.h.  */
32446
32447 /* Override any GCC internal prototype to avoid an error.
32448    Use char because int might match the return type of a GCC
32449    builtin and then its argument prototype would still apply.  */
32450 #ifdef __cplusplus
32451 extern "C"
32452 #endif
32453 char sched_yield ();
32454 int
32455 main ()
32456 {
32457 return sched_yield ();
32458   ;
32459   return 0;
32460 }
32461 _ACEOF
32462 if ac_fn_c_try_link "$LINENO"; then :
32463   ac_cv_lib_rt_sched_yield=yes
32464 else
32465   ac_cv_lib_rt_sched_yield=no
32466 fi
32467 rm -f core conftest.err conftest.$ac_objext \
32468     conftest$ac_exeext conftest.$ac_ext
32469 LIBS=$ac_check_lib_save_LIBS
32470 fi
32471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
32472 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
32473 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
32474   LIBSCHED=-lrt
32475 else
32476        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
32477 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
32478 if ${ac_cv_lib_posix4_sched_yield+:} false; then :
32479   $as_echo_n "(cached) " >&6
32480 else
32481   ac_check_lib_save_LIBS=$LIBS
32482 LIBS="-lposix4  $LIBS"
32483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32484 /* end confdefs.h.  */
32485
32486 /* Override any GCC internal prototype to avoid an error.
32487    Use char because int might match the return type of a GCC
32488    builtin and then its argument prototype would still apply.  */
32489 #ifdef __cplusplus
32490 extern "C"
32491 #endif
32492 char sched_yield ();
32493 int
32494 main ()
32495 {
32496 return sched_yield ();
32497   ;
32498   return 0;
32499 }
32500 _ACEOF
32501 if ac_fn_c_try_link "$LINENO"; then :
32502   ac_cv_lib_posix4_sched_yield=yes
32503 else
32504   ac_cv_lib_posix4_sched_yield=no
32505 fi
32506 rm -f core conftest.err conftest.$ac_objext \
32507     conftest$ac_exeext conftest.$ac_ext
32508 LIBS=$ac_check_lib_save_LIBS
32509 fi
32510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
32511 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
32512 if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
32513   LIBSCHED=-lposix4
32514 fi
32515
32516 fi
32517
32518 fi
32519
32520
32521 # Check whether --enable-libasprintf was given.
32522 if test "${enable_libasprintf+set}" = set; then :
32523   enableval=$enable_libasprintf; if test "$enableval" != no; then
32524      SUBDIR_libasprintf=libasprintf
32525    else
32526      SUBDIR_libasprintf=
32527    fi
32528
32529 else
32530   SUBDIR_libasprintf=libasprintf
32531 fi
32532
32533 if test "$CXX" = "no"; then
32534   SUBDIR_libasprintf=
32535 fi
32536  if test -n "$SUBDIR_libasprintf"; then
32537   ENABLE_LIBASPRINTF_TRUE=
32538   ENABLE_LIBASPRINTF_FALSE='#'
32539 else
32540   ENABLE_LIBASPRINTF_TRUE='#'
32541   ENABLE_LIBASPRINTF_FALSE=
32542 fi
32543
32544
32545
32546
32547 subdirs="$subdirs libasprintf"
32548
32549
32550 ac_config_files="$ac_config_files Makefile"
32551
32552
32553 ac_config_files="$ac_config_files doc/Makefile"
32554
32555
32556 ac_config_files="$ac_config_files intl/Makefile"
32557
32558
32559 ac_config_files="$ac_config_files intl-java/Makefile"
32560
32561
32562 ac_config_files="$ac_config_files intl-csharp/Makefile"
32563
32564
32565 ac_config_files="$ac_config_files gnulib-lib/Makefile"
32566
32567
32568 ac_config_files="$ac_config_files src/Makefile"
32569
32570 ac_config_files="$ac_config_files src/gettext.sh"
32571
32572
32573 ac_config_files="$ac_config_files po/Makefile.in"
32574
32575
32576 ac_config_files="$ac_config_files man/Makefile"
32577
32578 ac_config_files="$ac_config_files man/x-to-1"
32579
32580
32581 ac_config_files="$ac_config_files m4/Makefile"
32582
32583
32584 ac_config_files="$ac_config_files tests/Makefile"
32585
32586
32587 cat >confcache <<\_ACEOF
32588 # This file is a shell script that caches the results of configure
32589 # tests run on this system so they can be shared between configure
32590 # scripts and configure runs, see configure's option --config-cache.
32591 # It is not useful on other systems.  If it contains results you don't
32592 # want to keep, you may remove or edit it.
32593 #
32594 # config.status only pays attention to the cache file if you give it
32595 # the --recheck option to rerun configure.
32596 #
32597 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32598 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32599 # following values.
32600
32601 _ACEOF
32602
32603 # The following way of writing the cache mishandles newlines in values,
32604 # but we know of no workaround that is simple, portable, and efficient.
32605 # So, we kill variables containing newlines.
32606 # Ultrix sh set writes to stderr and can't be redirected directly,
32607 # and sets the high bit in the cache file unless we assign to the vars.
32608 (
32609   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32610     eval ac_val=\$$ac_var
32611     case $ac_val in #(
32612     *${as_nl}*)
32613       case $ac_var in #(
32614       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32615 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32616       esac
32617       case $ac_var in #(
32618       _ | IFS | as_nl) ;; #(
32619       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32620       *) { eval $ac_var=; unset $ac_var;} ;;
32621       esac ;;
32622     esac
32623   done
32624
32625   (set) 2>&1 |
32626     case $as_nl`(ac_space=' '; set) 2>&1` in #(
32627     *${as_nl}ac_space=\ *)
32628       # `set' does not quote correctly, so add quotes: double-quote
32629       # substitution turns \\\\ into \\, and sed turns \\ into \.
32630       sed -n \
32631         "s/'/'\\\\''/g;
32632           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32633       ;; #(
32634     *)
32635       # `set' quotes correctly as required by POSIX, so do not add quotes.
32636       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32637       ;;
32638     esac |
32639     sort
32640 ) |
32641   sed '
32642      /^ac_cv_env_/b end
32643      t clear
32644      :clear
32645      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32646      t end
32647      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32648      :end' >>confcache
32649 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32650   if test -w "$cache_file"; then
32651     if test "x$cache_file" != "x/dev/null"; then
32652       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32653 $as_echo "$as_me: updating cache $cache_file" >&6;}
32654       if test ! -f "$cache_file" || test -h "$cache_file"; then
32655         cat confcache >"$cache_file"
32656       else
32657         case $cache_file in #(
32658         */* | ?:*)
32659           mv -f confcache "$cache_file"$$ &&
32660           mv -f "$cache_file"$$ "$cache_file" ;; #(
32661         *)
32662           mv -f confcache "$cache_file" ;;
32663         esac
32664       fi
32665     fi
32666   else
32667     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32668 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32669   fi
32670 fi
32671 rm -f confcache
32672
32673 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32674 # Let make expand exec_prefix.
32675 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32676
32677 DEFS=-DHAVE_CONFIG_H
32678
32679 ac_libobjs=
32680 ac_ltlibobjs=
32681 U=
32682 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32683   # 1. Remove the extension, and $U if already installed.
32684   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32685   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32686   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32687   #    will be set to the directory where LIBOBJS objects are built.
32688   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32689   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32690 done
32691 LIBOBJS=$ac_libobjs
32692
32693 LTLIBOBJS=$ac_ltlibobjs
32694
32695
32696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
32697 $as_echo_n "checking that generated files are newer than configure... " >&6; }
32698    if test -n "$am_sleep_pid"; then
32699      # Hide warnings about reused PIDs.
32700      wait $am_sleep_pid 2>/dev/null
32701    fi
32702    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
32703 $as_echo "done" >&6; }
32704  if test -n "$EXEEXT"; then
32705   am__EXEEXT_TRUE=
32706   am__EXEEXT_FALSE='#'
32707 else
32708   am__EXEEXT_TRUE='#'
32709   am__EXEEXT_FALSE=
32710 fi
32711
32712 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32713   as_fn_error $? "conditional \"AMDEP\" was never defined.
32714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32715 fi
32716 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32717   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32719 fi
32720 if test -z "${WOE32_TRUE}" && test -z "${WOE32_FALSE}"; then
32721   as_fn_error $? "conditional \"WOE32\" was never defined.
32722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32723 fi
32724 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
32725   as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
32726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32727 fi
32728 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
32729   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
32730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32731 fi
32732 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
32733   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
32734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32735 fi
32736 if test -z "${ANSICXX_TRUE}" && test -z "${ANSICXX_FALSE}"; then
32737   as_fn_error $? "conditional \"ANSICXX\" was never defined.
32738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32739 fi
32740 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32741   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32743 fi
32744 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32745   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32747 fi
32748 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
32749   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
32750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32751 fi
32752 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
32753   as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
32754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32755 fi
32756 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
32757   as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
32758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32759 fi
32760 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
32761   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
32762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32763 fi
32764 if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
32765   as_fn_error $? "conditional \"RELOCATABLE_VIA_LD\" was never defined.
32766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32767 fi
32768 if test -z "${RELOCATABLE_VIA_WRAPPER_TRUE}" && test -z "${RELOCATABLE_VIA_WRAPPER_FALSE}"; then
32769   as_fn_error $? "conditional \"RELOCATABLE_VIA_WRAPPER\" was never defined.
32770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32771 fi
32772 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
32773   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
32774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32775 fi
32776 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
32777   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
32778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32779 fi
32780 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
32781   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
32782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32783 fi
32784 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then
32785   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined.
32786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32787 fi
32788 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then
32789   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined.
32790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32791 fi
32792 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
32793   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
32794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32795 fi
32796
32797     gl_libobjs=
32798     gl_ltlibobjs=
32799     if test -n "$gl_LIBOBJS"; then
32800       # Remove the extension.
32801       sed_drop_objext='s/\.o$//;s/\.obj$//'
32802       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
32803         gl_libobjs="$gl_libobjs $i.$ac_objext"
32804         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
32805       done
32806     fi
32807     gl_LIBOBJS=$gl_libobjs
32808
32809     gl_LTLIBOBJS=$gl_ltlibobjs
32810
32811
32812
32813     gltests_libobjs=
32814     gltests_ltlibobjs=
32815     if test -n "$gltests_LIBOBJS"; then
32816       # Remove the extension.
32817       sed_drop_objext='s/\.o$//;s/\.obj$//'
32818       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
32819         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
32820         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
32821       done
32822     fi
32823     gltests_LIBOBJS=$gltests_libobjs
32824
32825     gltests_LTLIBOBJS=$gltests_ltlibobjs
32826
32827
32828 if test -z "${WOE32DLL_TRUE}" && test -z "${WOE32DLL_FALSE}"; then
32829   as_fn_error $? "conditional \"WOE32DLL\" was never defined.
32830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32831 fi
32832 if test -z "${ANSICXX_TRUE}" && test -z "${ANSICXX_FALSE}"; then
32833   as_fn_error $? "conditional \"ANSICXX\" was never defined.
32834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32835 fi
32836 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32837   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32839 fi
32840 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32841   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32843 fi
32844 if test -z "${ENABLE_LIBASPRINTF_TRUE}" && test -z "${ENABLE_LIBASPRINTF_FALSE}"; then
32845   as_fn_error $? "conditional \"ENABLE_LIBASPRINTF\" was never defined.
32846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32847 fi
32848
32849 : "${CONFIG_STATUS=./config.status}"
32850 ac_write_fail=0
32851 ac_clean_files_save=$ac_clean_files
32852 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32853 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32854 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32855 as_write_fail=0
32856 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32857 #! $SHELL
32858 # Generated by $as_me.
32859 # Run this file to recreate the current configuration.
32860 # Compiler output produced by configure, useful for debugging
32861 # configure, is in config.log if it exists.
32862
32863 debug=false
32864 ac_cs_recheck=false
32865 ac_cs_silent=false
32866
32867 SHELL=\${CONFIG_SHELL-$SHELL}
32868 export SHELL
32869 _ASEOF
32870 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32871 ## -------------------- ##
32872 ## M4sh Initialization. ##
32873 ## -------------------- ##
32874
32875 # Be more Bourne compatible
32876 DUALCASE=1; export DUALCASE # for MKS sh
32877 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32878   emulate sh
32879   NULLCMD=:
32880   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32881   # is contrary to our usage.  Disable this feature.
32882   alias -g '${1+"$@"}'='"$@"'
32883   setopt NO_GLOB_SUBST
32884 else
32885   case `(set -o) 2>/dev/null` in #(
32886   *posix*) :
32887     set -o posix ;; #(
32888   *) :
32889      ;;
32890 esac
32891 fi
32892
32893
32894 as_nl='
32895 '
32896 export as_nl
32897 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32898 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32899 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32900 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32901 # Prefer a ksh shell builtin over an external printf program on Solaris,
32902 # but without wasting forks for bash or zsh.
32903 if test -z "$BASH_VERSION$ZSH_VERSION" \
32904     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32905   as_echo='print -r --'
32906   as_echo_n='print -rn --'
32907 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32908   as_echo='printf %s\n'
32909   as_echo_n='printf %s'
32910 else
32911   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32912     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32913     as_echo_n='/usr/ucb/echo -n'
32914   else
32915     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32916     as_echo_n_body='eval
32917       arg=$1;
32918       case $arg in #(
32919       *"$as_nl"*)
32920         expr "X$arg" : "X\\(.*\\)$as_nl";
32921         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32922       esac;
32923       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32924     '
32925     export as_echo_n_body
32926     as_echo_n='sh -c $as_echo_n_body as_echo'
32927   fi
32928   export as_echo_body
32929   as_echo='sh -c $as_echo_body as_echo'
32930 fi
32931
32932 # The user is always right.
32933 if test "${PATH_SEPARATOR+set}" != set; then
32934   PATH_SEPARATOR=:
32935   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32936     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32937       PATH_SEPARATOR=';'
32938   }
32939 fi
32940
32941
32942 # IFS
32943 # We need space, tab and new line, in precisely that order.  Quoting is
32944 # there to prevent editors from complaining about space-tab.
32945 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32946 # splitting by setting IFS to empty value.)
32947 IFS=" ""        $as_nl"
32948
32949 # Find who we are.  Look in the path if we contain no directory separator.
32950 as_myself=
32951 case $0 in #((
32952   *[\\/]* ) as_myself=$0 ;;
32953   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32954 for as_dir in $PATH
32955 do
32956   IFS=$as_save_IFS
32957   test -z "$as_dir" && as_dir=.
32958     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32959   done
32960 IFS=$as_save_IFS
32961
32962      ;;
32963 esac
32964 # We did not find ourselves, most probably we were run as `sh COMMAND'
32965 # in which case we are not to be found in the path.
32966 if test "x$as_myself" = x; then
32967   as_myself=$0
32968 fi
32969 if test ! -f "$as_myself"; then
32970   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32971   exit 1
32972 fi
32973
32974 # Unset variables that we do not need and which cause bugs (e.g. in
32975 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
32976 # suppresses any "Segmentation fault" message there.  '((' could
32977 # trigger a bug in pdksh 5.2.14.
32978 for as_var in BASH_ENV ENV MAIL MAILPATH
32979 do eval test x\${$as_var+set} = xset \
32980   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32981 done
32982 PS1='$ '
32983 PS2='> '
32984 PS4='+ '
32985
32986 # NLS nuisances.
32987 LC_ALL=C
32988 export LC_ALL
32989 LANGUAGE=C
32990 export LANGUAGE
32991
32992 # CDPATH.
32993 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32994
32995
32996 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32997 # ----------------------------------------
32998 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32999 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33000 # script with STATUS, using 1 if that was 0.
33001 as_fn_error ()
33002 {
33003   as_status=$1; test $as_status -eq 0 && as_status=1
33004   if test "$4"; then
33005     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33006     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33007   fi
33008   $as_echo "$as_me: error: $2" >&2
33009   as_fn_exit $as_status
33010 } # as_fn_error
33011
33012
33013 # as_fn_set_status STATUS
33014 # -----------------------
33015 # Set $? to STATUS, without forking.
33016 as_fn_set_status ()
33017 {
33018   return $1
33019 } # as_fn_set_status
33020
33021 # as_fn_exit STATUS
33022 # -----------------
33023 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33024 as_fn_exit ()
33025 {
33026   set +e
33027   as_fn_set_status $1
33028   exit $1
33029 } # as_fn_exit
33030
33031 # as_fn_unset VAR
33032 # ---------------
33033 # Portably unset VAR.
33034 as_fn_unset ()
33035 {
33036   { eval $1=; unset $1;}
33037 }
33038 as_unset=as_fn_unset
33039 # as_fn_append VAR VALUE
33040 # ----------------------
33041 # Append the text in VALUE to the end of the definition contained in VAR. Take
33042 # advantage of any shell optimizations that allow amortized linear growth over
33043 # repeated appends, instead of the typical quadratic growth present in naive
33044 # implementations.
33045 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33046   eval 'as_fn_append ()
33047   {
33048     eval $1+=\$2
33049   }'
33050 else
33051   as_fn_append ()
33052   {
33053     eval $1=\$$1\$2
33054   }
33055 fi # as_fn_append
33056
33057 # as_fn_arith ARG...
33058 # ------------------
33059 # Perform arithmetic evaluation on the ARGs, and store the result in the
33060 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33061 # must be portable across $(()) and expr.
33062 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33063   eval 'as_fn_arith ()
33064   {
33065     as_val=$(( $* ))
33066   }'
33067 else
33068   as_fn_arith ()
33069   {
33070     as_val=`expr "$@" || test $? -eq 1`
33071   }
33072 fi # as_fn_arith
33073
33074
33075 if expr a : '\(a\)' >/dev/null 2>&1 &&
33076    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33077   as_expr=expr
33078 else
33079   as_expr=false
33080 fi
33081
33082 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33083   as_basename=basename
33084 else
33085   as_basename=false
33086 fi
33087
33088 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33089   as_dirname=dirname
33090 else
33091   as_dirname=false
33092 fi
33093
33094 as_me=`$as_basename -- "$0" ||
33095 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33096          X"$0" : 'X\(//\)$' \| \
33097          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33098 $as_echo X/"$0" |
33099     sed '/^.*\/\([^/][^/]*\)\/*$/{
33100             s//\1/
33101             q
33102           }
33103           /^X\/\(\/\/\)$/{
33104             s//\1/
33105             q
33106           }
33107           /^X\/\(\/\).*/{
33108             s//\1/
33109             q
33110           }
33111           s/.*/./; q'`
33112
33113 # Avoid depending upon Character Ranges.
33114 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33115 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33116 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33117 as_cr_digits='0123456789'
33118 as_cr_alnum=$as_cr_Letters$as_cr_digits
33119
33120 ECHO_C= ECHO_N= ECHO_T=
33121 case `echo -n x` in #(((((
33122 -n*)
33123   case `echo 'xy\c'` in
33124   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
33125   xy)  ECHO_C='\c';;
33126   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
33127        ECHO_T=' ';;
33128   esac;;
33129 *)
33130   ECHO_N='-n';;
33131 esac
33132
33133 rm -f conf$$ conf$$.exe conf$$.file
33134 if test -d conf$$.dir; then
33135   rm -f conf$$.dir/conf$$.file
33136 else
33137   rm -f conf$$.dir
33138   mkdir conf$$.dir 2>/dev/null
33139 fi
33140 if (echo >conf$$.file) 2>/dev/null; then
33141   if ln -s conf$$.file conf$$ 2>/dev/null; then
33142     as_ln_s='ln -s'
33143     # ... but there are two gotchas:
33144     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33145     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33146     # In both cases, we have to default to `cp -pR'.
33147     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33148       as_ln_s='cp -pR'
33149   elif ln conf$$.file conf$$ 2>/dev/null; then
33150     as_ln_s=ln
33151   else
33152     as_ln_s='cp -pR'
33153   fi
33154 else
33155   as_ln_s='cp -pR'
33156 fi
33157 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33158 rmdir conf$$.dir 2>/dev/null
33159
33160
33161 # as_fn_mkdir_p
33162 # -------------
33163 # Create "$as_dir" as a directory, including parents if necessary.
33164 as_fn_mkdir_p ()
33165 {
33166
33167   case $as_dir in #(
33168   -*) as_dir=./$as_dir;;
33169   esac
33170   test -d "$as_dir" || eval $as_mkdir_p || {
33171     as_dirs=
33172     while :; do
33173       case $as_dir in #(
33174       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33175       *) as_qdir=$as_dir;;
33176       esac
33177       as_dirs="'$as_qdir' $as_dirs"
33178       as_dir=`$as_dirname -- "$as_dir" ||
33179 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33180          X"$as_dir" : 'X\(//\)[^/]' \| \
33181          X"$as_dir" : 'X\(//\)$' \| \
33182          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33183 $as_echo X"$as_dir" |
33184     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33185             s//\1/
33186             q
33187           }
33188           /^X\(\/\/\)[^/].*/{
33189             s//\1/
33190             q
33191           }
33192           /^X\(\/\/\)$/{
33193             s//\1/
33194             q
33195           }
33196           /^X\(\/\).*/{
33197             s//\1/
33198             q
33199           }
33200           s/.*/./; q'`
33201       test -d "$as_dir" && break
33202     done
33203     test -z "$as_dirs" || eval "mkdir $as_dirs"
33204   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33205
33206
33207 } # as_fn_mkdir_p
33208 if mkdir -p . 2>/dev/null; then
33209   as_mkdir_p='mkdir -p "$as_dir"'
33210 else
33211   test -d ./-p && rmdir ./-p
33212   as_mkdir_p=false
33213 fi
33214
33215
33216 # as_fn_executable_p FILE
33217 # -----------------------
33218 # Test if FILE is an executable regular file.
33219 as_fn_executable_p ()
33220 {
33221   test -f "$1" && test -x "$1"
33222 } # as_fn_executable_p
33223 as_test_x='test -x'
33224 as_executable_p=as_fn_executable_p
33225
33226 # Sed expression to map a string onto a valid CPP name.
33227 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33228
33229 # Sed expression to map a string onto a valid variable name.
33230 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33231
33232
33233 exec 6>&1
33234 ## ----------------------------------- ##
33235 ## Main body of $CONFIG_STATUS script. ##
33236 ## ----------------------------------- ##
33237 _ASEOF
33238 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33239
33240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33241 # Save the log message, to keep $0 and so on meaningful, and to
33242 # report actual input values of CONFIG_FILES etc. instead of their
33243 # values after options handling.
33244 ac_log="
33245 This file was extended by gettext-runtime $as_me 0.19.8.1, which was
33246 generated by GNU Autoconf 2.69.  Invocation command line was
33247
33248   CONFIG_FILES    = $CONFIG_FILES
33249   CONFIG_HEADERS  = $CONFIG_HEADERS
33250   CONFIG_LINKS    = $CONFIG_LINKS
33251   CONFIG_COMMANDS = $CONFIG_COMMANDS
33252   $ $0 $@
33253
33254 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33255 "
33256
33257 _ACEOF
33258
33259 case $ac_config_files in *"
33260 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33261 esac
33262
33263 case $ac_config_headers in *"
33264 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33265 esac
33266
33267
33268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33269 # Files that config.status was made for.
33270 config_files="$ac_config_files"
33271 config_headers="$ac_config_headers"
33272 config_commands="$ac_config_commands"
33273
33274 _ACEOF
33275
33276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33277 ac_cs_usage="\
33278 \`$as_me' instantiates files and other configuration actions
33279 from templates according to the current configuration.  Unless the files
33280 and actions are specified as TAGs, all are instantiated by default.
33281
33282 Usage: $0 [OPTION]... [TAG]...
33283
33284   -h, --help       print this help, then exit
33285   -V, --version    print version number and configuration settings, then exit
33286       --config     print configuration, then exit
33287   -q, --quiet, --silent
33288                    do not print progress messages
33289   -d, --debug      don't remove temporary files
33290       --recheck    update $as_me by reconfiguring in the same conditions
33291       --file=FILE[:TEMPLATE]
33292                    instantiate the configuration file FILE
33293       --header=FILE[:TEMPLATE]
33294                    instantiate the configuration header FILE
33295
33296 Configuration files:
33297 $config_files
33298
33299 Configuration headers:
33300 $config_headers
33301
33302 Configuration commands:
33303 $config_commands
33304
33305 Report bugs to <bug-gnu-gettext@gnu.org>."
33306
33307 _ACEOF
33308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33309 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33310 ac_cs_version="\\
33311 gettext-runtime config.status 0.19.8.1
33312 configured by $0, generated by GNU Autoconf 2.69,
33313   with options \\"\$ac_cs_config\\"
33314
33315 Copyright (C) 2012 Free Software Foundation, Inc.
33316 This config.status script is free software; the Free Software Foundation
33317 gives unlimited permission to copy, distribute and modify it."
33318
33319 ac_pwd='$ac_pwd'
33320 srcdir='$srcdir'
33321 INSTALL='$INSTALL'
33322 MKDIR_P='$MKDIR_P'
33323 AWK='$AWK'
33324 test -n "\$AWK" || AWK=awk
33325 _ACEOF
33326
33327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33328 # The default lists apply if the user does not specify any file.
33329 ac_need_defaults=:
33330 while test $# != 0
33331 do
33332   case $1 in
33333   --*=?*)
33334     ac_option=`expr "X$1" : 'X\([^=]*\)='`
33335     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33336     ac_shift=:
33337     ;;
33338   --*=)
33339     ac_option=`expr "X$1" : 'X\([^=]*\)='`
33340     ac_optarg=
33341     ac_shift=:
33342     ;;
33343   *)
33344     ac_option=$1
33345     ac_optarg=$2
33346     ac_shift=shift
33347     ;;
33348   esac
33349
33350   case $ac_option in
33351   # Handling of the options.
33352   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33353     ac_cs_recheck=: ;;
33354   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33355     $as_echo "$ac_cs_version"; exit ;;
33356   --config | --confi | --conf | --con | --co | --c )
33357     $as_echo "$ac_cs_config"; exit ;;
33358   --debug | --debu | --deb | --de | --d | -d )
33359     debug=: ;;
33360   --file | --fil | --fi | --f )
33361     $ac_shift
33362     case $ac_optarg in
33363     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33364     '') as_fn_error $? "missing file argument" ;;
33365     esac
33366     as_fn_append CONFIG_FILES " '$ac_optarg'"
33367     ac_need_defaults=false;;
33368   --header | --heade | --head | --hea )
33369     $ac_shift
33370     case $ac_optarg in
33371     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33372     esac
33373     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33374     ac_need_defaults=false;;
33375   --he | --h)
33376     # Conflict between --help and --header
33377     as_fn_error $? "ambiguous option: \`$1'
33378 Try \`$0 --help' for more information.";;
33379   --help | --hel | -h )
33380     $as_echo "$ac_cs_usage"; exit ;;
33381   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33382   | -silent | --silent | --silen | --sile | --sil | --si | --s)
33383     ac_cs_silent=: ;;
33384
33385   # This is an error.
33386   -*) as_fn_error $? "unrecognized option: \`$1'
33387 Try \`$0 --help' for more information." ;;
33388
33389   *) as_fn_append ac_config_targets " $1"
33390      ac_need_defaults=false ;;
33391
33392   esac
33393   shift
33394 done
33395
33396 ac_configure_extra_args=
33397
33398 if $ac_cs_silent; then
33399   exec 6>/dev/null
33400   ac_configure_extra_args="$ac_configure_extra_args --silent"
33401 fi
33402
33403 _ACEOF
33404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33405 if \$ac_cs_recheck; then
33406   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33407   shift
33408   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33409   CONFIG_SHELL='$SHELL'
33410   export CONFIG_SHELL
33411   exec "\$@"
33412 fi
33413
33414 _ACEOF
33415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33416 exec 5>>config.log
33417 {
33418   echo
33419   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33420 ## Running $as_me. ##
33421 _ASBOX
33422   $as_echo "$ac_log"
33423 } >&5
33424
33425 _ACEOF
33426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33427 #
33428 # INIT-COMMANDS
33429 #
33430 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33431
33432
33433 # The HP-UX ksh and POSIX shell print the target directory to stdout
33434 # if CDPATH is set.
33435 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33436
33437 sed_quote_subst='$sed_quote_subst'
33438 double_quote_subst='$double_quote_subst'
33439 delay_variable_subst='$delay_variable_subst'
33440 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33441 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33442 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33443 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33444 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33445 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33446 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33447 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33448 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33449 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
33450 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33451 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33452 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
33453 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33454 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33455 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33456 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33457 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33458 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33459 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33460 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33461 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33462 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33463 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33464 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33465 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33466 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33467 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33468 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33469 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33470 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33471 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33472 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33473 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
33474 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
33475 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33476 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33477 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33478 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33479 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
33480 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
33481 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
33482 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33483 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33484 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
33485 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33486 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33487 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33488 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33489 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33490 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33491 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33492 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33493 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33494 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33495 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33496 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33497 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
33498 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33499 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
33500 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
33501 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
33502 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
33503 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
33504 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33505 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33506 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33507 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33508 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33509 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33510 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33511 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33512 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
33513 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33514 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33515 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33516 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33517 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33518 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33519 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33520 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33521 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33522 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33523 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33524 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33525 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33526 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33527 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33528 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33529 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33530 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33531 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33532 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33533 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33534 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33535 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33536 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33537 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33538 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33539 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33540 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33541 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33542 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33543 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33544 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33545 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33546 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33547 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33548 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33549 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
33550 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33551 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33552 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33553 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33554 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33555 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33556 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33557 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33558 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33559 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33560 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33561 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33562 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33563 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33564 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33565 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33566 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33567 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33568 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
33569 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
33570 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33571 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33572 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33573 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33574 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33575 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33576 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
33577 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
33578 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
33579 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
33580 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
33581 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
33582 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
33583 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
33584 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
33585 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
33586 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
33587 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
33588 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
33589 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
33590 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
33591 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
33592 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
33593 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
33594 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
33595 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
33596 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
33597 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
33598 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
33599 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
33600 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
33601 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
33602 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
33603 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
33604 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
33605 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
33606 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
33607 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
33608 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
33609 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
33610 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
33611 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
33612 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
33613 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
33614 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
33615 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
33616 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
33617 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
33618
33619 LTCC='$LTCC'
33620 LTCFLAGS='$LTCFLAGS'
33621 compiler='$compiler_DEFAULT'
33622
33623 # A function that is used when there is no print builtin or printf.
33624 func_fallback_echo ()
33625 {
33626   eval 'cat <<_LTECHO_EOF
33627 \$1
33628 _LTECHO_EOF'
33629 }
33630
33631 # Quote evaled strings.
33632 for var in AS \
33633 DLLTOOL \
33634 OBJDUMP \
33635 SHELL \
33636 ECHO \
33637 PATH_SEPARATOR \
33638 SED \
33639 GREP \
33640 EGREP \
33641 FGREP \
33642 LD \
33643 NM \
33644 LN_S \
33645 lt_SP2NL \
33646 lt_NL2SP \
33647 reload_flag \
33648 deplibs_check_method \
33649 file_magic_cmd \
33650 file_magic_glob \
33651 want_nocaseglob \
33652 sharedlib_from_linklib_cmd \
33653 AR \
33654 AR_FLAGS \
33655 archiver_list_spec \
33656 STRIP \
33657 RANLIB \
33658 CC \
33659 CFLAGS \
33660 compiler \
33661 lt_cv_sys_global_symbol_pipe \
33662 lt_cv_sys_global_symbol_to_cdecl \
33663 lt_cv_sys_global_symbol_to_import \
33664 lt_cv_sys_global_symbol_to_c_name_address \
33665 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33666 lt_cv_nm_interface \
33667 nm_file_list_spec \
33668 lt_cv_truncate_bin \
33669 lt_prog_compiler_no_builtin_flag \
33670 lt_prog_compiler_pic \
33671 lt_prog_compiler_wl \
33672 lt_prog_compiler_static \
33673 lt_cv_prog_compiler_c_o \
33674 need_locks \
33675 MANIFEST_TOOL \
33676 DSYMUTIL \
33677 NMEDIT \
33678 LIPO \
33679 OTOOL \
33680 OTOOL64 \
33681 shrext_cmds \
33682 export_dynamic_flag_spec \
33683 whole_archive_flag_spec \
33684 compiler_needs_object \
33685 with_gnu_ld \
33686 allow_undefined_flag \
33687 no_undefined_flag \
33688 hardcode_libdir_flag_spec \
33689 hardcode_libdir_separator \
33690 exclude_expsyms \
33691 include_expsyms \
33692 file_list_spec \
33693 variables_saved_for_relink \
33694 libname_spec \
33695 library_names_spec \
33696 soname_spec \
33697 install_override_mode \
33698 finish_eval \
33699 old_striplib \
33700 striplib \
33701 LD_RC \
33702 reload_flag_RC \
33703 compiler_RC \
33704 lt_prog_compiler_no_builtin_flag_RC \
33705 lt_prog_compiler_pic_RC \
33706 lt_prog_compiler_wl_RC \
33707 lt_prog_compiler_static_RC \
33708 lt_cv_prog_compiler_c_o_RC \
33709 export_dynamic_flag_spec_RC \
33710 whole_archive_flag_spec_RC \
33711 compiler_needs_object_RC \
33712 with_gnu_ld_RC \
33713 allow_undefined_flag_RC \
33714 no_undefined_flag_RC \
33715 hardcode_libdir_flag_spec_RC \
33716 hardcode_libdir_separator_RC \
33717 exclude_expsyms_RC \
33718 include_expsyms_RC \
33719 file_list_spec_RC; do
33720     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33721     *[\\\\\\\`\\"\\\$]*)
33722       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
33723       ;;
33724     *)
33725       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33726       ;;
33727     esac
33728 done
33729
33730 # Double-quote double-evaled strings.
33731 for var in reload_cmds \
33732 old_postinstall_cmds \
33733 old_postuninstall_cmds \
33734 old_archive_cmds \
33735 extract_expsyms_cmds \
33736 old_archive_from_new_cmds \
33737 old_archive_from_expsyms_cmds \
33738 archive_cmds \
33739 archive_expsym_cmds \
33740 module_cmds \
33741 module_expsym_cmds \
33742 export_symbols_cmds \
33743 prelink_cmds \
33744 postlink_cmds \
33745 postinstall_cmds \
33746 postuninstall_cmds \
33747 finish_cmds \
33748 sys_lib_search_path_spec \
33749 configure_time_dlsearch_path \
33750 configure_time_lt_sys_library_path \
33751 reload_cmds_RC \
33752 old_archive_cmds_RC \
33753 old_archive_from_new_cmds_RC \
33754 old_archive_from_expsyms_cmds_RC \
33755 archive_cmds_RC \
33756 archive_expsym_cmds_RC \
33757 module_cmds_RC \
33758 module_expsym_cmds_RC \
33759 export_symbols_cmds_RC \
33760 prelink_cmds_RC \
33761 postlink_cmds_RC; do
33762     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33763     *[\\\\\\\`\\"\\\$]*)
33764       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
33765       ;;
33766     *)
33767       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33768       ;;
33769     esac
33770 done
33771
33772 ac_aux_dir='$ac_aux_dir'
33773
33774 # See if we are running on zsh, and set the options that allow our
33775 # commands through without removal of \ escapes INIT.
33776 if test -n "\${ZSH_VERSION+set}"; then
33777    setopt NO_GLOB_SUBST
33778 fi
33779
33780
33781     PACKAGE='$PACKAGE'
33782     VERSION='$VERSION'
33783     RM='$RM'
33784     ofile='$ofile'
33785
33786
33787
33788
33789
33790 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
33791     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
33792     # from automake < 1.5.
33793     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
33794     # Capture the value of LINGUAS because we need it to compute CATALOGS.
33795     LINGUAS="${LINGUAS-%UNSET%}"
33796
33797
33798 _ACEOF
33799
33800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33801
33802 # Handling of arguments.
33803 for ac_config_target in $ac_config_targets
33804 do
33805   case $ac_config_target in
33806     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
33807     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33808     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33809     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
33810     "csharpcomp.sh") CONFIG_FILES="$CONFIG_FILES csharpcomp.sh:../build-aux/csharpcomp.sh.in" ;;
33811     "javacomp.sh") CONFIG_FILES="$CONFIG_FILES javacomp.sh:../build-aux/javacomp.sh.in" ;;
33812     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33813     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
33814     "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
33815     "intl-java/Makefile") CONFIG_FILES="$CONFIG_FILES intl-java/Makefile" ;;
33816     "intl-csharp/Makefile") CONFIG_FILES="$CONFIG_FILES intl-csharp/Makefile" ;;
33817     "gnulib-lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-lib/Makefile" ;;
33818     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
33819     "src/gettext.sh") CONFIG_FILES="$CONFIG_FILES src/gettext.sh" ;;
33820     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
33821     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
33822     "man/x-to-1") CONFIG_FILES="$CONFIG_FILES man/x-to-1" ;;
33823     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
33824     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
33825
33826   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33827   esac
33828 done
33829
33830
33831 # If the user did not use the arguments to specify the items to instantiate,
33832 # then the envvar interface is used.  Set only those that are not.
33833 # We use the long form for the default assignment because of an extremely
33834 # bizarre bug on SunOS 4.1.3.
33835 if $ac_need_defaults; then
33836   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33837   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33838   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33839 fi
33840
33841 # Have a temporary directory for convenience.  Make it in the build tree
33842 # simply because there is no reason against having it here, and in addition,
33843 # creating and moving files from /tmp can sometimes cause problems.
33844 # Hook for its removal unless debugging.
33845 # Note that there is a small window in which the directory will not be cleaned:
33846 # after its creation but before its name has been assigned to `$tmp'.
33847 $debug ||
33848 {
33849   tmp= ac_tmp=
33850   trap 'exit_status=$?
33851   : "${ac_tmp:=$tmp}"
33852   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
33853 ' 0
33854   trap 'as_fn_exit 1' 1 2 13 15
33855 }
33856 # Create a (secure) tmp directory for tmp files.
33857
33858 {
33859   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33860   test -d "$tmp"
33861 }  ||
33862 {
33863   tmp=./conf$$-$RANDOM
33864   (umask 077 && mkdir "$tmp")
33865 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33866 ac_tmp=$tmp
33867
33868 # Set up the scripts for CONFIG_FILES section.
33869 # No need to generate them if there are no CONFIG_FILES.
33870 # This happens for instance with `./config.status config.h'.
33871 if test -n "$CONFIG_FILES"; then
33872
33873
33874 ac_cr=`echo X | tr X '\015'`
33875 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33876 # But we know of no other shell where ac_cr would be empty at this
33877 # point, so we can use a bashism as a fallback.
33878 if test "x$ac_cr" = x; then
33879   eval ac_cr=\$\'\\r\'
33880 fi
33881 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33882 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33883   ac_cs_awk_cr='\\r'
33884 else
33885   ac_cs_awk_cr=$ac_cr
33886 fi
33887
33888 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
33889 _ACEOF
33890
33891
33892 {
33893   echo "cat >conf$$subs.awk <<_ACEOF" &&
33894   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33895   echo "_ACEOF"
33896 } >conf$$subs.sh ||
33897   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33898 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33899 ac_delim='%!_!# '
33900 for ac_last_try in false false false false false :; do
33901   . ./conf$$subs.sh ||
33902     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33903
33904   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33905   if test $ac_delim_n = $ac_delim_num; then
33906     break
33907   elif $ac_last_try; then
33908     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33909   else
33910     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33911   fi
33912 done
33913 rm -f conf$$subs.sh
33914
33915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33916 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
33917 _ACEOF
33918 sed -n '
33919 h
33920 s/^/S["/; s/!.*/"]=/
33921 p
33922 g
33923 s/^[^!]*!//
33924 :repl
33925 t repl
33926 s/'"$ac_delim"'$//
33927 t delim
33928 :nl
33929 h
33930 s/\(.\{148\}\)..*/\1/
33931 t more1
33932 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33933 p
33934 n
33935 b repl
33936 :more1
33937 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33938 p
33939 g
33940 s/.\{148\}//
33941 t nl
33942 :delim
33943 h
33944 s/\(.\{148\}\)..*/\1/
33945 t more2
33946 s/["\\]/\\&/g; s/^/"/; s/$/"/
33947 p
33948 b
33949 :more2
33950 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33951 p
33952 g
33953 s/.\{148\}//
33954 t delim
33955 ' <conf$$subs.awk | sed '
33956 /^[^""]/{
33957   N
33958   s/\n//
33959 }
33960 ' >>$CONFIG_STATUS || ac_write_fail=1
33961 rm -f conf$$subs.awk
33962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33963 _ACAWK
33964 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
33965   for (key in S) S_is_set[key] = 1
33966   FS = "\a"
33967
33968 }
33969 {
33970   line = $ 0
33971   nfields = split(line, field, "@")
33972   substed = 0
33973   len = length(field[1])
33974   for (i = 2; i < nfields; i++) {
33975     key = field[i]
33976     keylen = length(key)
33977     if (S_is_set[key]) {
33978       value = S[key]
33979       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33980       len += length(value) + length(field[++i])
33981       substed = 1
33982     } else
33983       len += 1 + keylen
33984   }
33985
33986   print line
33987 }
33988
33989 _ACAWK
33990 _ACEOF
33991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33992 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33993   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33994 else
33995   cat
33996 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
33997   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
33998 _ACEOF
33999
34000 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34001 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34002 # trailing colons and then remove the whole line if VPATH becomes empty
34003 # (actually we leave an empty line to preserve line numbers).
34004 if test "x$srcdir" = x.; then
34005   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
34006 h
34007 s///
34008 s/^/:/
34009 s/[      ]*$/:/
34010 s/:\$(srcdir):/:/g
34011 s/:\${srcdir}:/:/g
34012 s/:@srcdir@:/:/g
34013 s/^:*//
34014 s/:*$//
34015 x
34016 s/\(=[   ]*\).*/\1/
34017 G
34018 s/\n//
34019 s/^[^=]*=[       ]*$//
34020 }'
34021 fi
34022
34023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34024 fi # test -n "$CONFIG_FILES"
34025
34026 # Set up the scripts for CONFIG_HEADERS section.
34027 # No need to generate them if there are no CONFIG_HEADERS.
34028 # This happens for instance with `./config.status Makefile'.
34029 if test -n "$CONFIG_HEADERS"; then
34030 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
34031 BEGIN {
34032 _ACEOF
34033
34034 # Transform confdefs.h into an awk script `defines.awk', embedded as
34035 # here-document in config.status, that substitutes the proper values into
34036 # config.h.in to produce config.h.
34037
34038 # Create a delimiter string that does not exist in confdefs.h, to ease
34039 # handling of long lines.
34040 ac_delim='%!_!# '
34041 for ac_last_try in false false :; do
34042   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
34043   if test -z "$ac_tt"; then
34044     break
34045   elif $ac_last_try; then
34046     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34047   else
34048     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34049   fi
34050 done
34051
34052 # For the awk script, D is an array of macro values keyed by name,
34053 # likewise P contains macro parameters if any.  Preserve backslash
34054 # newline sequences.
34055
34056 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34057 sed -n '
34058 s/.\{148\}/&'"$ac_delim"'/g
34059 t rset
34060 :rset
34061 s/^[     ]*#[    ]*define[       ][      ]*/ /
34062 t def
34063 d
34064 :def
34065 s/\\$//
34066 t bsnl
34067 s/["\\]/\\&/g
34068 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
34069 D["\1"]=" \3"/p
34070 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
34071 d
34072 :bsnl
34073 s/["\\]/\\&/g
34074 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
34075 D["\1"]=" \3\\\\\\n"\\/p
34076 t cont
34077 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34078 t cont
34079 d
34080 :cont
34081 n
34082 s/.\{148\}/&'"$ac_delim"'/g
34083 t clear
34084 :clear
34085 s/\\$//
34086 t bsnlc
34087 s/["\\]/\\&/g; s/^/"/; s/$/"/p
34088 d
34089 :bsnlc
34090 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34091 b cont
34092 ' <confdefs.h | sed '
34093 s/'"$ac_delim"'/"\\\
34094 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34095
34096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34097   for (key in D) D_is_set[key] = 1
34098   FS = "\a"
34099 }
34100 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34101   line = \$ 0
34102   split(line, arg, " ")
34103   if (arg[1] == "#") {
34104     defundef = arg[2]
34105     mac1 = arg[3]
34106   } else {
34107     defundef = substr(arg[1], 2)
34108     mac1 = arg[2]
34109   }
34110   split(mac1, mac2, "(") #)
34111   macro = mac2[1]
34112   prefix = substr(line, 1, index(line, defundef) - 1)
34113   if (D_is_set[macro]) {
34114     # Preserve the white space surrounding the "#".
34115     print prefix "define", macro P[macro] D[macro]
34116     next
34117   } else {
34118     # Replace #undef with comments.  This is necessary, for example,
34119     # in the case of _POSIX_SOURCE, which is predefined and required
34120     # on some systems where configure will not decide to define it.
34121     if (defundef == "undef") {
34122       print "/*", prefix defundef, macro, "*/"
34123       next
34124     }
34125   }
34126 }
34127 { print }
34128 _ACAWK
34129 _ACEOF
34130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34131   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34132 fi # test -n "$CONFIG_HEADERS"
34133
34134
34135 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
34136 shift
34137 for ac_tag
34138 do
34139   case $ac_tag in
34140   :[FHLC]) ac_mode=$ac_tag; continue;;
34141   esac
34142   case $ac_mode$ac_tag in
34143   :[FHL]*:*);;
34144   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34145   :[FH]-) ac_tag=-:-;;
34146   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34147   esac
34148   ac_save_IFS=$IFS
34149   IFS=:
34150   set x $ac_tag
34151   IFS=$ac_save_IFS
34152   shift
34153   ac_file=$1
34154   shift
34155
34156   case $ac_mode in
34157   :L) ac_source=$1;;
34158   :[FH])
34159     ac_file_inputs=
34160     for ac_f
34161     do
34162       case $ac_f in
34163       -) ac_f="$ac_tmp/stdin";;
34164       *) # Look for the file first in the build tree, then in the source tree
34165          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34166          # because $ac_f cannot contain `:'.
34167          test -f "$ac_f" ||
34168            case $ac_f in
34169            [\\/$]*) false;;
34170            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34171            esac ||
34172            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34173       esac
34174       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34175       as_fn_append ac_file_inputs " '$ac_f'"
34176     done
34177
34178     # Let's still pretend it is `configure' which instantiates (i.e., don't
34179     # use $as_me), people would be surprised to read:
34180     #    /* config.h.  Generated by config.status.  */
34181     configure_input='Generated from '`
34182           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34183         `' by configure.'
34184     if test x"$ac_file" != x-; then
34185       configure_input="$ac_file.  $configure_input"
34186       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34187 $as_echo "$as_me: creating $ac_file" >&6;}
34188     fi
34189     # Neutralize special characters interpreted by sed in replacement strings.
34190     case $configure_input in #(
34191     *\&* | *\|* | *\\* )
34192        ac_sed_conf_input=`$as_echo "$configure_input" |
34193        sed 's/[\\\\&|]/\\\\&/g'`;; #(
34194     *) ac_sed_conf_input=$configure_input;;
34195     esac
34196
34197     case $ac_tag in
34198     *:-:* | *:-) cat >"$ac_tmp/stdin" \
34199       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34200     esac
34201     ;;
34202   esac
34203
34204   ac_dir=`$as_dirname -- "$ac_file" ||
34205 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34206          X"$ac_file" : 'X\(//\)[^/]' \| \
34207          X"$ac_file" : 'X\(//\)$' \| \
34208          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34209 $as_echo X"$ac_file" |
34210     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34211             s//\1/
34212             q
34213           }
34214           /^X\(\/\/\)[^/].*/{
34215             s//\1/
34216             q
34217           }
34218           /^X\(\/\/\)$/{
34219             s//\1/
34220             q
34221           }
34222           /^X\(\/\).*/{
34223             s//\1/
34224             q
34225           }
34226           s/.*/./; q'`
34227   as_dir="$ac_dir"; as_fn_mkdir_p
34228   ac_builddir=.
34229
34230 case "$ac_dir" in
34231 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34232 *)
34233   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34234   # A ".." for each directory in $ac_dir_suffix.
34235   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34236   case $ac_top_builddir_sub in
34237   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34238   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34239   esac ;;
34240 esac
34241 ac_abs_top_builddir=$ac_pwd
34242 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34243 # for backward compatibility:
34244 ac_top_builddir=$ac_top_build_prefix
34245
34246 case $srcdir in
34247   .)  # We are building in place.
34248     ac_srcdir=.
34249     ac_top_srcdir=$ac_top_builddir_sub
34250     ac_abs_top_srcdir=$ac_pwd ;;
34251   [\\/]* | ?:[\\/]* )  # Absolute name.
34252     ac_srcdir=$srcdir$ac_dir_suffix;
34253     ac_top_srcdir=$srcdir
34254     ac_abs_top_srcdir=$srcdir ;;
34255   *) # Relative name.
34256     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34257     ac_top_srcdir=$ac_top_build_prefix$srcdir
34258     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34259 esac
34260 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34261
34262
34263   case $ac_mode in
34264   :F)
34265   #
34266   # CONFIG_FILE
34267   #
34268
34269   case $INSTALL in
34270   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34271   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34272   esac
34273   ac_MKDIR_P=$MKDIR_P
34274   case $MKDIR_P in
34275   [\\/$]* | ?:[\\/]* ) ;;
34276   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34277   esac
34278 _ACEOF
34279
34280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34281 # If the template does not know about datarootdir, expand it.
34282 # FIXME: This hack should be removed a few years after 2.60.
34283 ac_datarootdir_hack=; ac_datarootdir_seen=
34284 ac_sed_dataroot='
34285 /datarootdir/ {
34286   p
34287   q
34288 }
34289 /@datadir@/p
34290 /@docdir@/p
34291 /@infodir@/p
34292 /@localedir@/p
34293 /@mandir@/p'
34294 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34295 *datarootdir*) ac_datarootdir_seen=yes;;
34296 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34297   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34298 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34299 _ACEOF
34300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34301   ac_datarootdir_hack='
34302   s&@datadir@&$datadir&g
34303   s&@docdir@&$docdir&g
34304   s&@infodir@&$infodir&g
34305   s&@localedir@&$localedir&g
34306   s&@mandir@&$mandir&g
34307   s&\\\${datarootdir}&$datarootdir&g' ;;
34308 esac
34309 _ACEOF
34310
34311 # Neutralize VPATH when `$srcdir' = `.'.
34312 # Shell code in configure.ac might set extrasub.
34313 # FIXME: do we really want to maintain this feature?
34314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34315 ac_sed_extra="$ac_vpsub
34316 $extrasub
34317 _ACEOF
34318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34319 :t
34320 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34321 s|@configure_input@|$ac_sed_conf_input|;t t
34322 s&@top_builddir@&$ac_top_builddir_sub&;t t
34323 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34324 s&@srcdir@&$ac_srcdir&;t t
34325 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34326 s&@top_srcdir@&$ac_top_srcdir&;t t
34327 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34328 s&@builddir@&$ac_builddir&;t t
34329 s&@abs_builddir@&$ac_abs_builddir&;t t
34330 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34331 s&@INSTALL@&$ac_INSTALL&;t t
34332 s&@MKDIR_P@&$ac_MKDIR_P&;t t
34333 $ac_datarootdir_hack
34334 "
34335 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
34336   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34337
34338 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34339   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
34340   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
34341       "$ac_tmp/out"`; test -z "$ac_out"; } &&
34342   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34343 which seems to be undefined.  Please make sure it is defined" >&5
34344 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34345 which seems to be undefined.  Please make sure it is defined" >&2;}
34346
34347   rm -f "$ac_tmp/stdin"
34348   case $ac_file in
34349   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34350   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34351   esac \
34352   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34353  ;;
34354   :H)
34355   #
34356   # CONFIG_HEADER
34357   #
34358   if test x"$ac_file" != x-; then
34359     {
34360       $as_echo "/* $configure_input  */" \
34361       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34362     } >"$ac_tmp/config.h" \
34363       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34364     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34365       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34366 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34367     else
34368       rm -f "$ac_file"
34369       mv "$ac_tmp/config.h" "$ac_file" \
34370         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34371     fi
34372   else
34373     $as_echo "/* $configure_input  */" \
34374       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34375       || as_fn_error $? "could not create -" "$LINENO" 5
34376   fi
34377 # Compute "$ac_file"'s index in $config_headers.
34378 _am_arg="$ac_file"
34379 _am_stamp_count=1
34380 for _am_header in $config_headers :; do
34381   case $_am_header in
34382     $_am_arg | $_am_arg:* )
34383       break ;;
34384     * )
34385       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34386   esac
34387 done
34388 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34389 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34390          X"$_am_arg" : 'X\(//\)[^/]' \| \
34391          X"$_am_arg" : 'X\(//\)$' \| \
34392          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34393 $as_echo X"$_am_arg" |
34394     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34395             s//\1/
34396             q
34397           }
34398           /^X\(\/\/\)[^/].*/{
34399             s//\1/
34400             q
34401           }
34402           /^X\(\/\/\)$/{
34403             s//\1/
34404             q
34405           }
34406           /^X\(\/\).*/{
34407             s//\1/
34408             q
34409           }
34410           s/.*/./; q'`/stamp-h$_am_stamp_count
34411  ;;
34412
34413   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34414 $as_echo "$as_me: executing $ac_file commands" >&6;}
34415  ;;
34416   esac
34417
34418
34419   case $ac_file$ac_mode in
34420     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34421   # Older Autoconf quotes --file arguments for eval, but not when files
34422   # are listed without --file.  Let's play safe and only enable the eval
34423   # if we detect the quoting.
34424   case $CONFIG_FILES in
34425   *\'*) eval set x "$CONFIG_FILES" ;;
34426   *)   set x $CONFIG_FILES ;;
34427   esac
34428   shift
34429   for mf
34430   do
34431     # Strip MF so we end up with the name of the file.
34432     mf=`echo "$mf" | sed -e 's/:.*$//'`
34433     # Check whether this is an Automake generated Makefile or not.
34434     # We used to match only the files named 'Makefile.in', but
34435     # some people rename them; so instead we look at the file content.
34436     # Grep'ing the first line is not enough: some people post-process
34437     # each Makefile.in and add a new line on top of each file to say so.
34438     # Grep'ing the whole file is not good either: AIX grep has a line
34439     # limit of 2048, but all sed's we know have understand at least 4000.
34440     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34441       dirpart=`$as_dirname -- "$mf" ||
34442 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34443          X"$mf" : 'X\(//\)[^/]' \| \
34444          X"$mf" : 'X\(//\)$' \| \
34445          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34446 $as_echo X"$mf" |
34447     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34448             s//\1/
34449             q
34450           }
34451           /^X\(\/\/\)[^/].*/{
34452             s//\1/
34453             q
34454           }
34455           /^X\(\/\/\)$/{
34456             s//\1/
34457             q
34458           }
34459           /^X\(\/\).*/{
34460             s//\1/
34461             q
34462           }
34463           s/.*/./; q'`
34464     else
34465       continue
34466     fi
34467     # Extract the definition of DEPDIR, am__include, and am__quote
34468     # from the Makefile without running 'make'.
34469     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34470     test -z "$DEPDIR" && continue
34471     am__include=`sed -n 's/^am__include = //p' < "$mf"`
34472     test -z "$am__include" && continue
34473     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34474     # Find all dependency output files, they are included files with
34475     # $(DEPDIR) in their names.  We invoke sed twice because it is the
34476     # simplest approach to changing $(DEPDIR) to its actual value in the
34477     # expansion.
34478     for file in `sed -n "
34479       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34480          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
34481       # Make sure the directory exists.
34482       test -f "$dirpart/$file" && continue
34483       fdir=`$as_dirname -- "$file" ||
34484 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34485          X"$file" : 'X\(//\)[^/]' \| \
34486          X"$file" : 'X\(//\)$' \| \
34487          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34488 $as_echo X"$file" |
34489     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34490             s//\1/
34491             q
34492           }
34493           /^X\(\/\/\)[^/].*/{
34494             s//\1/
34495             q
34496           }
34497           /^X\(\/\/\)$/{
34498             s//\1/
34499             q
34500           }
34501           /^X\(\/\).*/{
34502             s//\1/
34503             q
34504           }
34505           s/.*/./; q'`
34506       as_dir=$dirpart/$fdir; as_fn_mkdir_p
34507       # echo "creating $dirpart/$file"
34508       echo '# dummy' > "$dirpart/$file"
34509     done
34510   done
34511 }
34512  ;;
34513     "libtool":C)
34514
34515     # See if we are running on zsh, and set the options that allow our
34516     # commands through without removal of \ escapes.
34517     if test -n "${ZSH_VERSION+set}"; then
34518       setopt NO_GLOB_SUBST
34519     fi
34520
34521     cfgfile=${ofile}T
34522     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34523     $RM "$cfgfile"
34524
34525     cat <<_LT_EOF >> "$cfgfile"
34526 #! $SHELL
34527 # Generated automatically by $as_me ($PACKAGE) $VERSION
34528 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34529 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
34530
34531 # Provide generalized library-building support services.
34532 # Written by Gordon Matzigkeit, 1996
34533
34534 # Copyright (C) 2014 Free Software Foundation, Inc.
34535 # This is free software; see the source for copying conditions.  There is NO
34536 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34537
34538 # GNU Libtool is free software; you can redistribute it and/or modify
34539 # it under the terms of the GNU General Public License as published by
34540 # the Free Software Foundation; either version 2 of of the License, or
34541 # (at your option) any later version.
34542 #
34543 # As a special exception to the GNU General Public License, if you
34544 # distribute this file as part of a program or library that is built
34545 # using GNU Libtool, you may include this file under the  same
34546 # distribution terms that you use for the rest of that program.
34547 #
34548 # GNU Libtool is distributed in the hope that it will be useful, but
34549 # WITHOUT ANY WARRANTY; without even the implied warranty of
34550 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
34551 # GNU General Public License for more details.
34552 #
34553 # You should have received a copy of the GNU General Public License
34554 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
34555
34556
34557 # The names of the tagged configurations supported by this script.
34558 available_tags='RC '
34559
34560 # Configured defaults for sys_lib_dlsearch_path munging.
34561 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
34562
34563 # ### BEGIN LIBTOOL CONFIG
34564
34565 # Which release of libtool.m4 was used?
34566 macro_version=$macro_version
34567 macro_revision=$macro_revision
34568
34569 # Assembler program.
34570 AS=$lt_AS
34571
34572 # DLL creation program.
34573 DLLTOOL=$lt_DLLTOOL
34574
34575 # Object dumper program.
34576 OBJDUMP=$lt_OBJDUMP
34577
34578 # Whether or not to build shared libraries.
34579 build_libtool_libs=$enable_shared
34580
34581 # Whether or not to build static libraries.
34582 build_old_libs=$enable_static
34583
34584 # What type of objects to build.
34585 pic_mode=$pic_mode
34586
34587 # Whether or not to optimize for fast installation.
34588 fast_install=$enable_fast_install
34589
34590 # Shared archive member basename,for filename based shared library versioning on AIX.
34591 shared_archive_member_spec=$shared_archive_member_spec
34592
34593 # Shell to use when invoking shell scripts.
34594 SHELL=$lt_SHELL
34595
34596 # An echo program that protects backslashes.
34597 ECHO=$lt_ECHO
34598
34599 # The PATH separator for the build system.
34600 PATH_SEPARATOR=$lt_PATH_SEPARATOR
34601
34602 # The host system.
34603 host_alias=$host_alias
34604 host=$host
34605 host_os=$host_os
34606
34607 # The build system.
34608 build_alias=$build_alias
34609 build=$build
34610 build_os=$build_os
34611
34612 # A sed program that does not truncate output.
34613 SED=$lt_SED
34614
34615 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
34616 Xsed="\$SED -e 1s/^X//"
34617
34618 # A grep program that handles long lines.
34619 GREP=$lt_GREP
34620
34621 # An ERE matcher.
34622 EGREP=$lt_EGREP
34623
34624 # A literal string matcher.
34625 FGREP=$lt_FGREP
34626
34627 # A BSD- or MS-compatible name lister.
34628 NM=$lt_NM
34629
34630 # Whether we need soft or hard links.
34631 LN_S=$lt_LN_S
34632
34633 # What is the maximum length of a command?
34634 max_cmd_len=$max_cmd_len
34635
34636 # Object file suffix (normally "o").
34637 objext=$ac_objext
34638
34639 # Executable file suffix (normally "").
34640 exeext=$exeext
34641
34642 # whether the shell understands "unset".
34643 lt_unset=$lt_unset
34644
34645 # turn spaces into newlines.
34646 SP2NL=$lt_lt_SP2NL
34647
34648 # turn newlines into spaces.
34649 NL2SP=$lt_lt_NL2SP
34650
34651 # convert \$build file names to \$host format.
34652 to_host_file_cmd=$lt_cv_to_host_file_cmd
34653
34654 # convert \$build files to toolchain format.
34655 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
34656
34657 # Method to check whether dependent libraries are shared objects.
34658 deplibs_check_method=$lt_deplibs_check_method
34659
34660 # Command to use when deplibs_check_method = "file_magic".
34661 file_magic_cmd=$lt_file_magic_cmd
34662
34663 # How to find potential files when deplibs_check_method = "file_magic".
34664 file_magic_glob=$lt_file_magic_glob
34665
34666 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
34667 want_nocaseglob=$lt_want_nocaseglob
34668
34669 # Command to associate shared and link libraries.
34670 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
34671
34672 # The archiver.
34673 AR=$lt_AR
34674
34675 # Flags to create an archive.
34676 AR_FLAGS=$lt_AR_FLAGS
34677
34678 # How to feed a file listing to the archiver.
34679 archiver_list_spec=$lt_archiver_list_spec
34680
34681 # A symbol stripping program.
34682 STRIP=$lt_STRIP
34683
34684 # Commands used to install an old-style archive.
34685 RANLIB=$lt_RANLIB
34686 old_postinstall_cmds=$lt_old_postinstall_cmds
34687 old_postuninstall_cmds=$lt_old_postuninstall_cmds
34688
34689 # Whether to use a lock for old archive extraction.
34690 lock_old_archive_extraction=$lock_old_archive_extraction
34691
34692 # A C compiler.
34693 LTCC=$lt_CC
34694
34695 # LTCC compiler flags.
34696 LTCFLAGS=$lt_CFLAGS
34697
34698 # Take the output of nm and produce a listing of raw symbols and C names.
34699 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34700
34701 # Transform the output of nm in a proper C declaration.
34702 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34703
34704 # Transform the output of nm into a list of symbols to manually relocate.
34705 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
34706
34707 # Transform the output of nm in a C name address pair.
34708 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34709
34710 # Transform the output of nm in a C name address pair when lib prefix is needed.
34711 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34712
34713 # The name lister interface.
34714 nm_interface=$lt_lt_cv_nm_interface
34715
34716 # Specify filename containing input files for \$NM.
34717 nm_file_list_spec=$lt_nm_file_list_spec
34718
34719 # The root where to search for dependent libraries,and where our libraries should be installed.
34720 lt_sysroot=$lt_sysroot
34721
34722 # Command to truncate a binary pipe.
34723 lt_truncate_bin=$lt_lt_cv_truncate_bin
34724
34725 # The name of the directory that contains temporary libtool files.
34726 objdir=$objdir
34727
34728 # Used to examine libraries when file_magic_cmd begins with "file".
34729 MAGIC_CMD=$MAGIC_CMD
34730
34731 # Must we lock files when doing compilation?
34732 need_locks=$lt_need_locks
34733
34734 # Manifest tool.
34735 MANIFEST_TOOL=$lt_MANIFEST_TOOL
34736
34737 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34738 DSYMUTIL=$lt_DSYMUTIL
34739
34740 # Tool to change global to local symbols on Mac OS X.
34741 NMEDIT=$lt_NMEDIT
34742
34743 # Tool to manipulate fat objects and archives on Mac OS X.
34744 LIPO=$lt_LIPO
34745
34746 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
34747 OTOOL=$lt_OTOOL
34748
34749 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34750 OTOOL64=$lt_OTOOL64
34751
34752 # Old archive suffix (normally "a").
34753 libext=$libext
34754
34755 # Shared library suffix (normally ".so").
34756 shrext_cmds=$lt_shrext_cmds
34757
34758 # The commands to extract the exported symbol list from a shared archive.
34759 extract_expsyms_cmds=$lt_extract_expsyms_cmds
34760
34761 # Variables whose values should be saved in libtool wrapper scripts and
34762 # restored at link time.
34763 variables_saved_for_relink=$lt_variables_saved_for_relink
34764
34765 # Do we need the "lib" prefix for modules?
34766 need_lib_prefix=$need_lib_prefix
34767
34768 # Do we need a version for libraries?
34769 need_version=$need_version
34770
34771 # Library versioning type.
34772 version_type=$version_type
34773
34774 # Shared library runtime path variable.
34775 runpath_var=$runpath_var
34776
34777 # Shared library path variable.
34778 shlibpath_var=$shlibpath_var
34779
34780 # Is shlibpath searched before the hard-coded library search path?
34781 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34782
34783 # Format of library name prefix.
34784 libname_spec=$lt_libname_spec
34785
34786 # List of archive names.  First name is the real one, the rest are links.
34787 # The last name is the one that the linker finds with -lNAME
34788 library_names_spec=$lt_library_names_spec
34789
34790 # The coded name of the library, if different from the real name.
34791 soname_spec=$lt_soname_spec
34792
34793 # Permission mode override for installation of shared libraries.
34794 install_override_mode=$lt_install_override_mode
34795
34796 # Command to use after installation of a shared archive.
34797 postinstall_cmds=$lt_postinstall_cmds
34798
34799 # Command to use after uninstallation of a shared archive.
34800 postuninstall_cmds=$lt_postuninstall_cmds
34801
34802 # Commands used to finish a libtool library installation in a directory.
34803 finish_cmds=$lt_finish_cmds
34804
34805 # As "finish_cmds", except a single script fragment to be evaled but
34806 # not shown.
34807 finish_eval=$lt_finish_eval
34808
34809 # Whether we should hardcode library paths into libraries.
34810 hardcode_into_libs=$hardcode_into_libs
34811
34812 # Compile-time system search path for libraries.
34813 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34814
34815 # Detected run-time system search path for libraries.
34816 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
34817
34818 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
34819 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
34820
34821 # Whether dlopen is supported.
34822 dlopen_support=$enable_dlopen
34823
34824 # Whether dlopen of programs is supported.
34825 dlopen_self=$enable_dlopen_self
34826
34827 # Whether dlopen of statically linked programs is supported.
34828 dlopen_self_static=$enable_dlopen_self_static
34829
34830 # Commands to strip libraries.
34831 old_striplib=$lt_old_striplib
34832 striplib=$lt_striplib
34833
34834
34835 # The linker used to build libraries.
34836 LD=$lt_LD
34837
34838 # How to create reloadable object files.
34839 reload_flag=$lt_reload_flag
34840 reload_cmds=$lt_reload_cmds
34841
34842 # Commands used to build an old-style archive.
34843 old_archive_cmds=$lt_old_archive_cmds
34844
34845 # A language specific compiler.
34846 CC=$lt_compiler
34847
34848 # Is the compiler the GNU compiler?
34849 with_gcc=$GCC
34850
34851 # Compiler flag to turn off builtin functions.
34852 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34853
34854 # Additional compiler flags for building library objects.
34855 pic_flag=$lt_lt_prog_compiler_pic
34856
34857 # How to pass a linker flag through the compiler.
34858 wl=$lt_lt_prog_compiler_wl
34859
34860 # Compiler flag to prevent dynamic linking.
34861 link_static_flag=$lt_lt_prog_compiler_static
34862
34863 # Does compiler simultaneously support -c and -o options?
34864 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34865
34866 # Whether or not to add -lc for building shared libraries.
34867 build_libtool_need_lc=$archive_cmds_need_lc
34868
34869 # Whether or not to disallow shared libs when runtime libs are static.
34870 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34871
34872 # Compiler flag to allow reflexive dlopens.
34873 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34874
34875 # Compiler flag to generate shared objects directly from archives.
34876 whole_archive_flag_spec=$lt_whole_archive_flag_spec
34877
34878 # Whether the compiler copes with passing no objects directly.
34879 compiler_needs_object=$lt_compiler_needs_object
34880
34881 # Create an old-style archive from a shared archive.
34882 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34883
34884 # Create a temporary old-style archive to link instead of a shared archive.
34885 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34886
34887 # Commands used to build a shared archive.
34888 archive_cmds=$lt_archive_cmds
34889 archive_expsym_cmds=$lt_archive_expsym_cmds
34890
34891 # Commands used to build a loadable module if different from building
34892 # a shared archive.
34893 module_cmds=$lt_module_cmds
34894 module_expsym_cmds=$lt_module_expsym_cmds
34895
34896 # Whether we are building with GNU ld or not.
34897 with_gnu_ld=$lt_with_gnu_ld
34898
34899 # Flag that allows shared libraries with undefined symbols to be built.
34900 allow_undefined_flag=$lt_allow_undefined_flag
34901
34902 # Flag that enforces no undefined symbols.
34903 no_undefined_flag=$lt_no_undefined_flag
34904
34905 # Flag to hardcode \$libdir into a binary during linking.
34906 # This must work even if \$libdir does not exist
34907 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34908
34909 # Whether we need a single "-rpath" flag with a separated argument.
34910 hardcode_libdir_separator=$lt_hardcode_libdir_separator
34911
34912 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34913 # DIR into the resulting binary.
34914 hardcode_direct=$hardcode_direct
34915
34916 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
34917 # DIR into the resulting binary and the resulting library dependency is
34918 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
34919 # library is relocated.
34920 hardcode_direct_absolute=$hardcode_direct_absolute
34921
34922 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34923 # into the resulting binary.
34924 hardcode_minus_L=$hardcode_minus_L
34925
34926 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34927 # into the resulting binary.
34928 hardcode_shlibpath_var=$hardcode_shlibpath_var
34929
34930 # Set to "yes" if building a shared library automatically hardcodes DIR
34931 # into the library and all subsequent libraries and executables linked
34932 # against it.
34933 hardcode_automatic=$hardcode_automatic
34934
34935 # Set to yes if linker adds runtime paths of dependent libraries
34936 # to runtime path list.
34937 inherit_rpath=$inherit_rpath
34938
34939 # Whether libtool must link a program against all its dependency libraries.
34940 link_all_deplibs=$link_all_deplibs
34941
34942 # Set to "yes" if exported symbols are required.
34943 always_export_symbols=$always_export_symbols
34944
34945 # The commands to list exported symbols.
34946 export_symbols_cmds=$lt_export_symbols_cmds
34947
34948 # Symbols that should not be listed in the preloaded symbols.
34949 exclude_expsyms=$lt_exclude_expsyms
34950
34951 # Symbols that must always be exported.
34952 include_expsyms=$lt_include_expsyms
34953
34954 # Commands necessary for linking programs (against libraries) with templates.
34955 prelink_cmds=$lt_prelink_cmds
34956
34957 # Commands necessary for finishing linking programs.
34958 postlink_cmds=$lt_postlink_cmds
34959
34960 # Specify filename containing input files.
34961 file_list_spec=$lt_file_list_spec
34962
34963 # How to hardcode a shared library path into an executable.
34964 hardcode_action=$hardcode_action
34965
34966 # ### END LIBTOOL CONFIG
34967
34968 _LT_EOF
34969
34970     cat <<'_LT_EOF' >> "$cfgfile"
34971
34972 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
34973
34974 # func_munge_path_list VARIABLE PATH
34975 # -----------------------------------
34976 # VARIABLE is name of variable containing _space_ separated list of
34977 # directories to be munged by the contents of PATH, which is string
34978 # having a format:
34979 # "DIR[:DIR]:"
34980 #       string "DIR[ DIR]" will be prepended to VARIABLE
34981 # ":DIR[:DIR]"
34982 #       string "DIR[ DIR]" will be appended to VARIABLE
34983 # "DIRP[:DIRP]::[DIRA:]DIRA"
34984 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
34985 #       "DIRA[ DIRA]" will be appended to VARIABLE
34986 # "DIR[:DIR]"
34987 #       VARIABLE will be replaced by "DIR[ DIR]"
34988 func_munge_path_list ()
34989 {
34990     case x$2 in
34991     x)
34992         ;;
34993     *:)
34994         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
34995         ;;
34996     x:*)
34997         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
34998         ;;
34999     *::*)
35000         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
35001         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
35002         ;;
35003     *)
35004         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
35005         ;;
35006     esac
35007 }
35008
35009
35010 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
35011 func_cc_basename ()
35012 {
35013     for cc_temp in $*""; do
35014       case $cc_temp in
35015         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
35016         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
35017         \-*) ;;
35018         *) break;;
35019       esac
35020     done
35021     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
35022 }
35023
35024
35025 # ### END FUNCTIONS SHARED WITH CONFIGURE
35026
35027 _LT_EOF
35028
35029   case $host_os in
35030   aix3*)
35031     cat <<\_LT_EOF >> "$cfgfile"
35032 # AIX sometimes has problems with the GCC collect2 program.  For some
35033 # reason, if we set the COLLECT_NAMES environment variable, the problems
35034 # vanish in a puff of smoke.
35035 if test set != "${COLLECT_NAMES+set}"; then
35036   COLLECT_NAMES=
35037   export COLLECT_NAMES
35038 fi
35039 _LT_EOF
35040     ;;
35041   esac
35042
35043
35044 ltmain=$ac_aux_dir/ltmain.sh
35045
35046
35047   # We use sed instead of cat because bash on DJGPP gets confused if
35048   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
35049   # text mode, it properly converts lines to CR/LF.  This bash problem
35050   # is reportedly fixed, but why not run on old versions too?
35051   sed '$q' "$ltmain" >> "$cfgfile" \
35052      || (rm -f "$cfgfile"; exit 1)
35053
35054    mv -f "$cfgfile" "$ofile" ||
35055     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35056   chmod +x "$ofile"
35057
35058
35059     cat <<_LT_EOF >> "$ofile"
35060
35061 # ### BEGIN LIBTOOL TAG CONFIG: RC
35062
35063 # The linker used to build libraries.
35064 LD=$lt_LD_RC
35065
35066 # How to create reloadable object files.
35067 reload_flag=$lt_reload_flag_RC
35068 reload_cmds=$lt_reload_cmds_RC
35069
35070 # Commands used to build an old-style archive.
35071 old_archive_cmds=$lt_old_archive_cmds_RC
35072
35073 # A language specific compiler.
35074 CC=$lt_compiler_RC
35075
35076 # Is the compiler the GNU compiler?
35077 with_gcc=$GCC_RC
35078
35079 # Compiler flag to turn off builtin functions.
35080 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
35081
35082 # Additional compiler flags for building library objects.
35083 pic_flag=$lt_lt_prog_compiler_pic_RC
35084
35085 # How to pass a linker flag through the compiler.
35086 wl=$lt_lt_prog_compiler_wl_RC
35087
35088 # Compiler flag to prevent dynamic linking.
35089 link_static_flag=$lt_lt_prog_compiler_static_RC
35090
35091 # Does compiler simultaneously support -c and -o options?
35092 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
35093
35094 # Whether or not to add -lc for building shared libraries.
35095 build_libtool_need_lc=$archive_cmds_need_lc_RC
35096
35097 # Whether or not to disallow shared libs when runtime libs are static.
35098 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
35099
35100 # Compiler flag to allow reflexive dlopens.
35101 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
35102
35103 # Compiler flag to generate shared objects directly from archives.
35104 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
35105
35106 # Whether the compiler copes with passing no objects directly.
35107 compiler_needs_object=$lt_compiler_needs_object_RC
35108
35109 # Create an old-style archive from a shared archive.
35110 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
35111
35112 # Create a temporary old-style archive to link instead of a shared archive.
35113 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
35114
35115 # Commands used to build a shared archive.
35116 archive_cmds=$lt_archive_cmds_RC
35117 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
35118
35119 # Commands used to build a loadable module if different from building
35120 # a shared archive.
35121 module_cmds=$lt_module_cmds_RC
35122 module_expsym_cmds=$lt_module_expsym_cmds_RC
35123
35124 # Whether we are building with GNU ld or not.
35125 with_gnu_ld=$lt_with_gnu_ld_RC
35126
35127 # Flag that allows shared libraries with undefined symbols to be built.
35128 allow_undefined_flag=$lt_allow_undefined_flag_RC
35129
35130 # Flag that enforces no undefined symbols.
35131 no_undefined_flag=$lt_no_undefined_flag_RC
35132
35133 # Flag to hardcode \$libdir into a binary during linking.
35134 # This must work even if \$libdir does not exist
35135 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
35136
35137 # Whether we need a single "-rpath" flag with a separated argument.
35138 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
35139
35140 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35141 # DIR into the resulting binary.
35142 hardcode_direct=$hardcode_direct_RC
35143
35144 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35145 # DIR into the resulting binary and the resulting library dependency is
35146 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
35147 # library is relocated.
35148 hardcode_direct_absolute=$hardcode_direct_absolute_RC
35149
35150 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35151 # into the resulting binary.
35152 hardcode_minus_L=$hardcode_minus_L_RC
35153
35154 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35155 # into the resulting binary.
35156 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
35157
35158 # Set to "yes" if building a shared library automatically hardcodes DIR
35159 # into the library and all subsequent libraries and executables linked
35160 # against it.
35161 hardcode_automatic=$hardcode_automatic_RC
35162
35163 # Set to yes if linker adds runtime paths of dependent libraries
35164 # to runtime path list.
35165 inherit_rpath=$inherit_rpath_RC
35166
35167 # Whether libtool must link a program against all its dependency libraries.
35168 link_all_deplibs=$link_all_deplibs_RC
35169
35170 # Set to "yes" if exported symbols are required.
35171 always_export_symbols=$always_export_symbols_RC
35172
35173 # The commands to list exported symbols.
35174 export_symbols_cmds=$lt_export_symbols_cmds_RC
35175
35176 # Symbols that should not be listed in the preloaded symbols.
35177 exclude_expsyms=$lt_exclude_expsyms_RC
35178
35179 # Symbols that must always be exported.
35180 include_expsyms=$lt_include_expsyms_RC
35181
35182 # Commands necessary for linking programs (against libraries) with templates.
35183 prelink_cmds=$lt_prelink_cmds_RC
35184
35185 # Commands necessary for finishing linking programs.
35186 postlink_cmds=$lt_postlink_cmds_RC
35187
35188 # Specify filename containing input files.
35189 file_list_spec=$lt_file_list_spec_RC
35190
35191 # How to hardcode a shared library path into an executable.
35192 hardcode_action=$hardcode_action_RC
35193
35194 # ### END LIBTOOL TAG CONFIG: RC
35195 _LT_EOF
35196
35197  ;;
35198     "po-directories":C)
35199     for ac_file in $CONFIG_FILES; do
35200       # Support "outfile[:infile[:infile...]]"
35201       case "$ac_file" in
35202         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35203       esac
35204       # PO directories have a Makefile.in generated from Makefile.in.in.
35205       case "$ac_file" in */Makefile.in)
35206         # Adjust a relative srcdir.
35207         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35208         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
35209         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35210         # In autoconf-2.13 it is called $ac_given_srcdir.
35211         # In autoconf-2.50 it is called $srcdir.
35212         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35213         case "$ac_given_srcdir" in
35214           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35215           /*) top_srcdir="$ac_given_srcdir" ;;
35216           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
35217         esac
35218         # Treat a directory as a PO directory if and only if it has a
35219         # POTFILES.in file. This allows packages to have multiple PO
35220         # directories under different names or in different locations.
35221         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35222           rm -f "$ac_dir/POTFILES"
35223           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35224           gt_tab=`printf '\t'`
35225           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
35226           POMAKEFILEDEPS="POTFILES.in"
35227           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35228           # on $ac_dir but don't depend on user-specified configuration
35229           # parameters.
35230           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35231             # The LINGUAS file contains the set of available languages.
35232             if test -n "$OBSOLETE_ALL_LINGUAS"; then
35233               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35234             fi
35235             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35236             # Hide the ALL_LINGUAS assignment from automake < 1.5.
35237             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35238             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35239           else
35240             # The set of available languages was given in configure.in.
35241             # Hide the ALL_LINGUAS assignment from automake < 1.5.
35242             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35243           fi
35244           # Compute POFILES
35245           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35246           # Compute UPDATEPOFILES
35247           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35248           # Compute DUMMYPOFILES
35249           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35250           # Compute GMOFILES
35251           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35252           case "$ac_given_srcdir" in
35253             .) srcdirpre= ;;
35254             *) srcdirpre='$(srcdir)/' ;;
35255           esac
35256           POFILES=
35257           UPDATEPOFILES=
35258           DUMMYPOFILES=
35259           GMOFILES=
35260           for lang in $ALL_LINGUAS; do
35261             POFILES="$POFILES $srcdirpre$lang.po"
35262             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35263             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35264             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35265           done
35266           # CATALOGS depends on both $ac_dir and the user's LINGUAS
35267           # environment variable.
35268           INST_LINGUAS=
35269           if test -n "$ALL_LINGUAS"; then
35270             for presentlang in $ALL_LINGUAS; do
35271               useit=no
35272               if test "%UNSET%" != "$LINGUAS"; then
35273                 desiredlanguages="$LINGUAS"
35274               else
35275                 desiredlanguages="$ALL_LINGUAS"
35276               fi
35277               for desiredlang in $desiredlanguages; do
35278                 # Use the presentlang catalog if desiredlang is
35279                 #   a. equal to presentlang, or
35280                 #   b. a variant of presentlang (because in this case,
35281                 #      presentlang can be used as a fallback for messages
35282                 #      which are not translated in the desiredlang catalog).
35283                 case "$desiredlang" in
35284                   "$presentlang"*) useit=yes;;
35285                 esac
35286               done
35287               if test $useit = yes; then
35288                 INST_LINGUAS="$INST_LINGUAS $presentlang"
35289               fi
35290             done
35291           fi
35292           CATALOGS=
35293           if test -n "$INST_LINGUAS"; then
35294             for lang in $INST_LINGUAS; do
35295               CATALOGS="$CATALOGS $lang.gmo"
35296             done
35297           fi
35298           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
35299           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"
35300           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
35301             if test -f "$f"; then
35302               case "$f" in
35303                 *.orig | *.bak | *~) ;;
35304                 *) cat "$f" >> "$ac_dir/Makefile" ;;
35305               esac
35306             fi
35307           done
35308         fi
35309         ;;
35310       esac
35311     done ;;
35312     "src/gettext.sh":F) chmod a+x src/gettext.sh ;;
35313     "man/Makefile":F)
35314   sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
35315   mv $ac_file.tmp $ac_file
35316  ;;
35317
35318   esac
35319 done # for ac_tag
35320
35321
35322 as_fn_exit 0
35323 _ACEOF
35324 ac_clean_files=$ac_clean_files_save
35325
35326 test $ac_write_fail = 0 ||
35327   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35328
35329
35330 # configure is writing to config.log, and then calls config.status.
35331 # config.status does its own redirection, appending to config.log.
35332 # Unfortunately, on DOS this fails, as config.log is still kept open
35333 # by configure, so config.status won't be able to write to it; its
35334 # output is simply discarded.  So we exec the FD to /dev/null,
35335 # effectively closing config.log, so it can be properly (re)opened and
35336 # appended to by config.status.  When coming back to configure, we
35337 # need to make the FD available again.
35338 if test "$no_create" != yes; then
35339   ac_cs_success=:
35340   ac_config_status_args=
35341   test "$silent" = yes &&
35342     ac_config_status_args="$ac_config_status_args --quiet"
35343   exec 5>/dev/null
35344   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35345   exec 5>>config.log
35346   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35347   # would make configure fail if this is the last instruction.
35348   $ac_cs_success || as_fn_exit 1
35349 fi
35350
35351 #
35352 # CONFIG_SUBDIRS section.
35353 #
35354 if test "$no_recursion" != yes; then
35355
35356   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
35357   # so they do not pile up.
35358   ac_sub_configure_args=
35359   ac_prev=
35360   eval "set x $ac_configure_args"
35361   shift
35362   for ac_arg
35363   do
35364     if test -n "$ac_prev"; then
35365       ac_prev=
35366       continue
35367     fi
35368     case $ac_arg in
35369     -cache-file | --cache-file | --cache-fil | --cache-fi \
35370     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35371       ac_prev=cache_file ;;
35372     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35373     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35374     | --c=*)
35375       ;;
35376     --config-cache | -C)
35377       ;;
35378     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35379       ac_prev=srcdir ;;
35380     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35381       ;;
35382     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35383       ac_prev=prefix ;;
35384     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35385       ;;
35386     --disable-option-checking)
35387       ;;
35388     *)
35389       case $ac_arg in
35390       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35391       esac
35392       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
35393     esac
35394   done
35395
35396   # Always prepend --prefix to ensure using the same prefix
35397   # in subdir configurations.
35398   ac_arg="--prefix=$prefix"
35399   case $ac_arg in
35400   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35401   esac
35402   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
35403
35404   # Pass --silent
35405   if test "$silent" = yes; then
35406     ac_sub_configure_args="--silent $ac_sub_configure_args"
35407   fi
35408
35409   # Always prepend --disable-option-checking to silence warnings, since
35410   # different subdirs can have different --enable and --with options.
35411   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
35412
35413   ac_popdir=`pwd`
35414   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35415
35416     # Do not complain, so a configure script can configure whichever
35417     # parts of a large source tree are present.
35418     test -d "$srcdir/$ac_dir" || continue
35419
35420     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35421     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
35422     $as_echo "$ac_msg" >&6
35423     as_dir="$ac_dir"; as_fn_mkdir_p
35424     ac_builddir=.
35425
35426 case "$ac_dir" in
35427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35428 *)
35429   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35430   # A ".." for each directory in $ac_dir_suffix.
35431   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35432   case $ac_top_builddir_sub in
35433   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35434   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35435   esac ;;
35436 esac
35437 ac_abs_top_builddir=$ac_pwd
35438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35439 # for backward compatibility:
35440 ac_top_builddir=$ac_top_build_prefix
35441
35442 case $srcdir in
35443   .)  # We are building in place.
35444     ac_srcdir=.
35445     ac_top_srcdir=$ac_top_builddir_sub
35446     ac_abs_top_srcdir=$ac_pwd ;;
35447   [\\/]* | ?:[\\/]* )  # Absolute name.
35448     ac_srcdir=$srcdir$ac_dir_suffix;
35449     ac_top_srcdir=$srcdir
35450     ac_abs_top_srcdir=$srcdir ;;
35451   *) # Relative name.
35452     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35453     ac_top_srcdir=$ac_top_build_prefix$srcdir
35454     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35455 esac
35456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35457
35458
35459     cd "$ac_dir"
35460
35461     # Check for guested configure; otherwise get Cygnus style configure.
35462     if test -f "$ac_srcdir/configure.gnu"; then
35463       ac_sub_configure=$ac_srcdir/configure.gnu
35464     elif test -f "$ac_srcdir/configure"; then
35465       ac_sub_configure=$ac_srcdir/configure
35466     elif test -f "$ac_srcdir/configure.in"; then
35467       # This should be Cygnus configure.
35468       ac_sub_configure=$ac_aux_dir/configure
35469     else
35470       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
35471 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35472       ac_sub_configure=
35473     fi
35474
35475     # The recursion is here.
35476     if test -n "$ac_sub_configure"; then
35477       # Make the cache file name correct relative to the subdirectory.
35478       case $cache_file in
35479       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
35480       *) # Relative name.
35481         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
35482       esac
35483
35484       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35485 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
35486       # The eval makes quoting arguments work.
35487       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35488            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
35489         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
35490     fi
35491
35492     cd "$ac_popdir"
35493   done
35494 fi
35495 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35496   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35497 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35498 fi
35499