Imported Upstream version 0.18.3.2
[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.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     PATH=/empty FPATH=/empty; export PATH FPATH
206     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="intl/dcigettext.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 gl_use_threads_default=
633 gt_needs=
634 ac_header_list=
635 ac_func_list=
636 gl_getopt_required=POSIX
637 gl_getopt_required=POSIX
638 enable_option_checking=no
639 ac_subst_vars='gltests_LTLIBOBJS
640 gltests_LIBOBJS
641 gl_LTLIBOBJS
642 gl_LIBOBJS
643 am__EXEEXT_FALSE
644 am__EXEEXT_TRUE
645 LTLIBOBJS
646 LIBOBJS
647 subdirs
648 ENABLE_LIBASPRINTF_FALSE
649 ENABLE_LIBASPRINTF_TRUE
650 LIBSCHED
651 CROSS_COMPILING
652 PERL
653 INTL_EXPORTS_FLAGS
654 WOE32DLL_FALSE
655 WOE32DLL_TRUE
656 LIBGRT_LTLIBDEPS
657 LIBGRT_LIBDEPS
658 gltests_WITNESS
659 HAVE_FEATURES_H
660 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
661 NEXT_WCHAR_H
662 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
663 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
664 LIBUNISTRING_UNIWIDTH_H
665 LIBUNISTRING_UNITYPES_H
666 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE
667 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE
668 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE
669 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE
670 LIBUNISTRING_UNISTR_H
671 HAVE_UNISTD_H
672 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
673 NEXT_UNISTD_H
674 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
675 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
676 TIME_H_DEFINES_STRUCT_TIMESPEC
677 NEXT_AS_FIRST_DIRECTIVE_TIME_H
678 NEXT_TIME_H
679 REPLACE_TIMEGM
680 REPLACE_NANOSLEEP
681 REPLACE_MKTIME
682 REPLACE_LOCALTIME_R
683 HAVE_TIMEGM
684 HAVE_STRPTIME
685 HAVE_NANOSLEEP
686 HAVE_DECL_LOCALTIME_R
687 GNULIB_TIME_R
688 GNULIB_TIMEGM
689 GNULIB_STRPTIME
690 GNULIB_NANOSLEEP
691 GNULIB_MKTIME
692 WINDOWS_64_BIT_OFF_T
693 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
694 NEXT_SYS_TYPES_H
695 WINDOWS_64_BIT_ST_SIZE
696 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
697 NEXT_SYS_STAT_H
698 NEXT_AS_FIRST_DIRECTIVE_STRING_H
699 NEXT_STRING_H
700 HAVE_WINSOCK2_H
701 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
702 NEXT_STDLIB_H
703 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
704 NEXT_STDIO_H
705 GL_GENERATE_STDINT_H_FALSE
706 GL_GENERATE_STDINT_H_TRUE
707 STDINT_H
708 WINT_T_SUFFIX
709 WCHAR_T_SUFFIX
710 SIG_ATOMIC_T_SUFFIX
711 SIZE_T_SUFFIX
712 PTRDIFF_T_SUFFIX
713 HAVE_SIGNED_WINT_T
714 HAVE_SIGNED_WCHAR_T
715 HAVE_SIGNED_SIG_ATOMIC_T
716 BITSIZEOF_WINT_T
717 BITSIZEOF_WCHAR_T
718 BITSIZEOF_SIG_ATOMIC_T
719 BITSIZEOF_SIZE_T
720 BITSIZEOF_PTRDIFF_T
721 HAVE_SYS_BITYPES_H
722 HAVE_SYS_INTTYPES_H
723 HAVE_STDINT_H
724 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
725 NEXT_STDINT_H
726 HAVE_SYS_TYPES_H
727 HAVE_INTTYPES_H
728 HAVE_WCHAR_H
729 HAVE_UNSIGNED_LONG_LONG_INT
730 HAVE_LONG_LONG_INT
731 HAVE__BOOL
732 GL_GENERATE_STDBOOL_H_FALSE
733 GL_GENERATE_STDBOOL_H_TRUE
734 STDBOOL_H
735 ASM_SYMBOL_PREFIX
736 REPLACE_VSPRINTF
737 REPLACE_VSNPRINTF
738 REPLACE_VPRINTF
739 REPLACE_VFPRINTF
740 REPLACE_VDPRINTF
741 REPLACE_VASPRINTF
742 REPLACE_TMPFILE
743 REPLACE_STDIO_WRITE_FUNCS
744 REPLACE_STDIO_READ_FUNCS
745 REPLACE_SPRINTF
746 REPLACE_SNPRINTF
747 REPLACE_RENAMEAT
748 REPLACE_RENAME
749 REPLACE_REMOVE
750 REPLACE_PRINTF
751 REPLACE_POPEN
752 REPLACE_PERROR
753 REPLACE_OBSTACK_PRINTF
754 REPLACE_GETLINE
755 REPLACE_GETDELIM
756 REPLACE_FTELLO
757 REPLACE_FTELL
758 REPLACE_FSEEKO
759 REPLACE_FSEEK
760 REPLACE_FREOPEN
761 REPLACE_FPURGE
762 REPLACE_FPRINTF
763 REPLACE_FOPEN
764 REPLACE_FFLUSH
765 REPLACE_FDOPEN
766 REPLACE_FCLOSE
767 REPLACE_DPRINTF
768 HAVE_VDPRINTF
769 HAVE_VASPRINTF
770 HAVE_RENAMEAT
771 HAVE_POPEN
772 HAVE_PCLOSE
773 HAVE_FTELLO
774 HAVE_FSEEKO
775 HAVE_DPRINTF
776 HAVE_DECL_VSNPRINTF
777 HAVE_DECL_SNPRINTF
778 HAVE_DECL_OBSTACK_PRINTF
779 HAVE_DECL_GETLINE
780 HAVE_DECL_GETDELIM
781 HAVE_DECL_FTELLO
782 HAVE_DECL_FSEEKO
783 HAVE_DECL_FPURGE
784 GNULIB_VSPRINTF_POSIX
785 GNULIB_VSNPRINTF
786 GNULIB_VPRINTF_POSIX
787 GNULIB_VPRINTF
788 GNULIB_VFPRINTF_POSIX
789 GNULIB_VFPRINTF
790 GNULIB_VDPRINTF
791 GNULIB_VSCANF
792 GNULIB_VFSCANF
793 GNULIB_VASPRINTF
794 GNULIB_TMPFILE
795 GNULIB_STDIO_H_SIGPIPE
796 GNULIB_STDIO_H_NONBLOCKING
797 GNULIB_SPRINTF_POSIX
798 GNULIB_SNPRINTF
799 GNULIB_SCANF
800 GNULIB_RENAMEAT
801 GNULIB_RENAME
802 GNULIB_REMOVE
803 GNULIB_PUTS
804 GNULIB_PUTCHAR
805 GNULIB_PUTC
806 GNULIB_PRINTF_POSIX
807 GNULIB_PRINTF
808 GNULIB_POPEN
809 GNULIB_PERROR
810 GNULIB_PCLOSE
811 GNULIB_OBSTACK_PRINTF_POSIX
812 GNULIB_OBSTACK_PRINTF
813 GNULIB_GETLINE
814 GNULIB_GETDELIM
815 GNULIB_GETCHAR
816 GNULIB_GETC
817 GNULIB_FWRITE
818 GNULIB_FTELLO
819 GNULIB_FTELL
820 GNULIB_FSEEKO
821 GNULIB_FSEEK
822 GNULIB_FSCANF
823 GNULIB_FREOPEN
824 GNULIB_FREAD
825 GNULIB_FPUTS
826 GNULIB_FPUTC
827 GNULIB_FPURGE
828 GNULIB_FPRINTF_POSIX
829 GNULIB_FPRINTF
830 GNULIB_FOPEN
831 GNULIB_FGETS
832 GNULIB_FGETC
833 GNULIB_FFLUSH
834 GNULIB_FDOPEN
835 GNULIB_FCLOSE
836 GNULIB_DPRINTF
837 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
838 NEXT_SIGNAL_H
839 RELOCATABLE_STRIP
840 RELOCATABLE_BUILD_DIR
841 RELOCATABLE_SRC_DIR
842 RELOCATABLE_CONFIG_H_DIR
843 RELOCATABLE_LIBRARY_PATH
844 RELOCATABLE_VIA_WRAPPER_FALSE
845 RELOCATABLE_VIA_WRAPPER_TRUE
846 RELOCATABLE_VIA_LD_FALSE
847 RELOCATABLE_VIA_LD_TRUE
848 INSTALL_PROGRAM_ENV
849 RELOCATABLE_LDFLAGS
850 RELOCATABLE
851 REPLACE_RAISE
852 REPLACE_PTHREAD_SIGMASK
853 HAVE_SIGHANDLER_T
854 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
855 HAVE_STRUCT_SIGACTION_SA_SIGACTION
856 HAVE_SIGACTION
857 HAVE_SIGINFO_T
858 HAVE_SIGSET_T
859 HAVE_RAISE
860 HAVE_PTHREAD_SIGMASK
861 HAVE_POSIX_SIGNALBLOCKING
862 GNULIB_SIGACTION
863 GNULIB_SIGPROCMASK
864 GNULIB_SIGNAL_H_SIGPIPE
865 GNULIB_RAISE
866 GNULIB_PTHREAD_SIGMASK
867 APPLE_UNIVERSAL_BUILD
868 HAVE_MSVC_INVALID_PARAMETER_HANDLER
869 UNDEFINE_STRTOK_R
870 REPLACE_STRTOK_R
871 REPLACE_STRSIGNAL
872 REPLACE_STRNLEN
873 REPLACE_STRNDUP
874 REPLACE_STRNCAT
875 REPLACE_STRERROR_R
876 REPLACE_STRERROR
877 REPLACE_STRCHRNUL
878 REPLACE_STRCASESTR
879 REPLACE_STRSTR
880 REPLACE_STRDUP
881 REPLACE_STPNCPY
882 REPLACE_MEMMEM
883 REPLACE_MEMCHR
884 HAVE_STRVERSCMP
885 HAVE_DECL_STRSIGNAL
886 HAVE_DECL_STRERROR_R
887 HAVE_DECL_STRTOK_R
888 HAVE_STRCASESTR
889 HAVE_STRSEP
890 HAVE_STRPBRK
891 HAVE_DECL_STRNLEN
892 HAVE_DECL_STRNDUP
893 HAVE_DECL_STRDUP
894 HAVE_STRCHRNUL
895 HAVE_STPNCPY
896 HAVE_STPCPY
897 HAVE_RAWMEMCHR
898 HAVE_DECL_MEMRCHR
899 HAVE_MEMPCPY
900 HAVE_DECL_MEMMEM
901 HAVE_MEMCHR
902 HAVE_FFSLL
903 HAVE_FFSL
904 HAVE_MBSLEN
905 GNULIB_STRVERSCMP
906 GNULIB_STRSIGNAL
907 GNULIB_STRERROR_R
908 GNULIB_STRERROR
909 GNULIB_MBSTOK_R
910 GNULIB_MBSSEP
911 GNULIB_MBSSPN
912 GNULIB_MBSPBRK
913 GNULIB_MBSCSPN
914 GNULIB_MBSCASESTR
915 GNULIB_MBSPCASECMP
916 GNULIB_MBSNCASECMP
917 GNULIB_MBSCASECMP
918 GNULIB_MBSSTR
919 GNULIB_MBSRCHR
920 GNULIB_MBSCHR
921 GNULIB_MBSNLEN
922 GNULIB_MBSLEN
923 GNULIB_STRTOK_R
924 GNULIB_STRCASESTR
925 GNULIB_STRSTR
926 GNULIB_STRSEP
927 GNULIB_STRPBRK
928 GNULIB_STRNLEN
929 GNULIB_STRNDUP
930 GNULIB_STRNCAT
931 GNULIB_STRDUP
932 GNULIB_STRCHRNUL
933 GNULIB_STPNCPY
934 GNULIB_STPCPY
935 GNULIB_RAWMEMCHR
936 GNULIB_MEMRCHR
937 GNULIB_MEMPCPY
938 GNULIB_MEMMEM
939 GNULIB_MEMCHR
940 GNULIB_FFSLL
941 GNULIB_FFSL
942 LOCALE_FR_UTF8
943 LOCALE_ZH_CN
944 LOCALE_JA
945 REPLACE_WCSWIDTH
946 REPLACE_WCWIDTH
947 REPLACE_WCSNRTOMBS
948 REPLACE_WCSRTOMBS
949 REPLACE_WCRTOMB
950 REPLACE_MBSNRTOWCS
951 REPLACE_MBSRTOWCS
952 REPLACE_MBRLEN
953 REPLACE_MBRTOWC
954 REPLACE_MBSINIT
955 REPLACE_WCTOB
956 REPLACE_BTOWC
957 REPLACE_MBSTATE_T
958 HAVE_DECL_WCWIDTH
959 HAVE_DECL_WCTOB
960 HAVE_WCSWIDTH
961 HAVE_WCSTOK
962 HAVE_WCSSTR
963 HAVE_WCSPBRK
964 HAVE_WCSSPN
965 HAVE_WCSCSPN
966 HAVE_WCSRCHR
967 HAVE_WCSCHR
968 HAVE_WCSDUP
969 HAVE_WCSXFRM
970 HAVE_WCSCOLL
971 HAVE_WCSNCASECMP
972 HAVE_WCSCASECMP
973 HAVE_WCSNCMP
974 HAVE_WCSCMP
975 HAVE_WCSNCAT
976 HAVE_WCSCAT
977 HAVE_WCPNCPY
978 HAVE_WCSNCPY
979 HAVE_WCPCPY
980 HAVE_WCSCPY
981 HAVE_WCSNLEN
982 HAVE_WCSLEN
983 HAVE_WMEMSET
984 HAVE_WMEMMOVE
985 HAVE_WMEMCPY
986 HAVE_WMEMCMP
987 HAVE_WMEMCHR
988 HAVE_WCSNRTOMBS
989 HAVE_WCSRTOMBS
990 HAVE_WCRTOMB
991 HAVE_MBSNRTOWCS
992 HAVE_MBSRTOWCS
993 HAVE_MBRLEN
994 HAVE_MBRTOWC
995 HAVE_MBSINIT
996 HAVE_BTOWC
997 GNULIB_WCSWIDTH
998 GNULIB_WCSTOK
999 GNULIB_WCSSTR
1000 GNULIB_WCSPBRK
1001 GNULIB_WCSSPN
1002 GNULIB_WCSCSPN
1003 GNULIB_WCSRCHR
1004 GNULIB_WCSCHR
1005 GNULIB_WCSDUP
1006 GNULIB_WCSXFRM
1007 GNULIB_WCSCOLL
1008 GNULIB_WCSNCASECMP
1009 GNULIB_WCSCASECMP
1010 GNULIB_WCSNCMP
1011 GNULIB_WCSCMP
1012 GNULIB_WCSNCAT
1013 GNULIB_WCSCAT
1014 GNULIB_WCPNCPY
1015 GNULIB_WCSNCPY
1016 GNULIB_WCPCPY
1017 GNULIB_WCSCPY
1018 GNULIB_WCSNLEN
1019 GNULIB_WCSLEN
1020 GNULIB_WMEMSET
1021 GNULIB_WMEMMOVE
1022 GNULIB_WMEMCPY
1023 GNULIB_WMEMCMP
1024 GNULIB_WMEMCHR
1025 GNULIB_WCWIDTH
1026 GNULIB_WCSNRTOMBS
1027 GNULIB_WCSRTOMBS
1028 GNULIB_WCRTOMB
1029 GNULIB_MBSNRTOWCS
1030 GNULIB_MBSRTOWCS
1031 GNULIB_MBRLEN
1032 GNULIB_MBRTOWC
1033 GNULIB_MBSINIT
1034 GNULIB_WCTOB
1035 GNULIB_BTOWC
1036 REPLACE_UTIMENSAT
1037 REPLACE_STAT
1038 REPLACE_MKNOD
1039 REPLACE_MKFIFO
1040 REPLACE_MKDIR
1041 REPLACE_LSTAT
1042 REPLACE_FUTIMENS
1043 REPLACE_FSTATAT
1044 REPLACE_FSTAT
1045 HAVE_UTIMENSAT
1046 HAVE_MKNODAT
1047 HAVE_MKNOD
1048 HAVE_MKFIFOAT
1049 HAVE_MKFIFO
1050 HAVE_MKDIRAT
1051 HAVE_LSTAT
1052 HAVE_LCHMOD
1053 HAVE_FUTIMENS
1054 HAVE_FSTATAT
1055 HAVE_FCHMODAT
1056 GNULIB_UTIMENSAT
1057 GNULIB_STAT
1058 GNULIB_MKNODAT
1059 GNULIB_MKNOD
1060 GNULIB_MKFIFOAT
1061 GNULIB_MKFIFO
1062 GNULIB_MKDIRAT
1063 GNULIB_LSTAT
1064 GNULIB_LCHMOD
1065 GNULIB_FUTIMENS
1066 GNULIB_FSTATAT
1067 GNULIB_FSTAT
1068 GNULIB_FCHMODAT
1069 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
1070 NEXT_LOCALE_H
1071 HAVE_XLOCALE_H
1072 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1073 NEXT_STDDEF_H
1074 GL_GENERATE_STDDEF_H_FALSE
1075 GL_GENERATE_STDDEF_H_TRUE
1076 STDDEF_H
1077 HAVE_WCHAR_T
1078 REPLACE_NULL
1079 REPLACE_STRUCT_LCONV
1080 REPLACE_DUPLOCALE
1081 REPLACE_SETLOCALE
1082 REPLACE_LOCALECONV
1083 HAVE_DUPLOCALE
1084 GNULIB_DUPLOCALE
1085 GNULIB_SETLOCALE
1086 GNULIB_LOCALECONV
1087 LOCALCHARSET_TESTS_ENVIRONMENT
1088 REPLACE_TOWLOWER
1089 REPLACE_ISWCNTRL
1090 HAVE_WCTYPE_H
1091 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
1092 NEXT_WCTYPE_H
1093 HAVE_WINT_T
1094 HAVE_ISWCNTRL
1095 REPLACE_ISWBLANK
1096 HAVE_WCTRANS_T
1097 HAVE_WCTYPE_T
1098 HAVE_ISWBLANK
1099 GNULIB_TOWCTRANS
1100 GNULIB_WCTRANS
1101 GNULIB_ISWCTYPE
1102 GNULIB_WCTYPE
1103 GNULIB_ISWBLANK
1104 NEXT_AS_FIRST_DIRECTIVE_ICONV_H
1105 NEXT_ICONV_H
1106 GNULIB_GL_UNISTD_H_GETOPT
1107 GETOPT_H
1108 HAVE_GETOPT_H
1109 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1110 NEXT_GETOPT_H
1111 EOVERFLOW_VALUE
1112 EOVERFLOW_HIDDEN
1113 ENOLINK_VALUE
1114 ENOLINK_HIDDEN
1115 EMULTIHOP_VALUE
1116 EMULTIHOP_HIDDEN
1117 GL_GENERATE_ERRNO_H_FALSE
1118 GL_GENERATE_ERRNO_H_TRUE
1119 ERRNO_H
1120 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1121 NEXT_ERRNO_H
1122 PRAGMA_COLUMNS
1123 PRAGMA_SYSTEM_HEADER
1124 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1125 INCLUDE_NEXT
1126 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1127 UNISTD_H_HAVE_WINSOCK2_H
1128 REPLACE_WRITE
1129 REPLACE_USLEEP
1130 REPLACE_UNLINKAT
1131 REPLACE_UNLINK
1132 REPLACE_TTYNAME_R
1133 REPLACE_SYMLINK
1134 REPLACE_SLEEP
1135 REPLACE_RMDIR
1136 REPLACE_READLINK
1137 REPLACE_READ
1138 REPLACE_PWRITE
1139 REPLACE_PREAD
1140 REPLACE_LSEEK
1141 REPLACE_LINKAT
1142 REPLACE_LINK
1143 REPLACE_LCHOWN
1144 REPLACE_ISATTY
1145 REPLACE_GETPAGESIZE
1146 REPLACE_GETGROUPS
1147 REPLACE_GETLOGIN_R
1148 REPLACE_GETDOMAINNAME
1149 REPLACE_GETCWD
1150 REPLACE_FTRUNCATE
1151 REPLACE_FCHOWNAT
1152 REPLACE_DUP2
1153 REPLACE_DUP
1154 REPLACE_CLOSE
1155 REPLACE_CHOWN
1156 HAVE_SYS_PARAM_H
1157 HAVE_OS_H
1158 HAVE_DECL_TTYNAME_R
1159 HAVE_DECL_SETHOSTNAME
1160 HAVE_DECL_GETUSERSHELL
1161 HAVE_DECL_GETPAGESIZE
1162 HAVE_DECL_GETLOGIN_R
1163 HAVE_DECL_GETDOMAINNAME
1164 HAVE_DECL_FDATASYNC
1165 HAVE_DECL_FCHDIR
1166 HAVE_DECL_ENVIRON
1167 HAVE_USLEEP
1168 HAVE_UNLINKAT
1169 HAVE_SYMLINKAT
1170 HAVE_SYMLINK
1171 HAVE_SLEEP
1172 HAVE_SETHOSTNAME
1173 HAVE_READLINKAT
1174 HAVE_READLINK
1175 HAVE_PWRITE
1176 HAVE_PREAD
1177 HAVE_PIPE2
1178 HAVE_PIPE
1179 HAVE_LINKAT
1180 HAVE_LINK
1181 HAVE_LCHOWN
1182 HAVE_GROUP_MEMBER
1183 HAVE_GETPAGESIZE
1184 HAVE_GETLOGIN
1185 HAVE_GETHOSTNAME
1186 HAVE_GETGROUPS
1187 HAVE_GETDTABLESIZE
1188 HAVE_FTRUNCATE
1189 HAVE_FSYNC
1190 HAVE_FDATASYNC
1191 HAVE_FCHOWNAT
1192 HAVE_FCHDIR
1193 HAVE_FACCESSAT
1194 HAVE_EUIDACCESS
1195 HAVE_DUP3
1196 HAVE_DUP2
1197 HAVE_CHOWN
1198 GNULIB_WRITE
1199 GNULIB_USLEEP
1200 GNULIB_UNLINKAT
1201 GNULIB_UNLINK
1202 GNULIB_UNISTD_H_SIGPIPE
1203 GNULIB_UNISTD_H_NONBLOCKING
1204 GNULIB_TTYNAME_R
1205 GNULIB_SYMLINKAT
1206 GNULIB_SYMLINK
1207 GNULIB_SLEEP
1208 GNULIB_SETHOSTNAME
1209 GNULIB_RMDIR
1210 GNULIB_READLINKAT
1211 GNULIB_READLINK
1212 GNULIB_READ
1213 GNULIB_PWRITE
1214 GNULIB_PREAD
1215 GNULIB_PIPE2
1216 GNULIB_PIPE
1217 GNULIB_LSEEK
1218 GNULIB_LINKAT
1219 GNULIB_LINK
1220 GNULIB_LCHOWN
1221 GNULIB_ISATTY
1222 GNULIB_GROUP_MEMBER
1223 GNULIB_GETUSERSHELL
1224 GNULIB_GETPAGESIZE
1225 GNULIB_GETLOGIN_R
1226 GNULIB_GETLOGIN
1227 GNULIB_GETHOSTNAME
1228 GNULIB_GETGROUPS
1229 GNULIB_GETDTABLESIZE
1230 GNULIB_GETDOMAINNAME
1231 GNULIB_GETCWD
1232 GNULIB_FTRUNCATE
1233 GNULIB_FSYNC
1234 GNULIB_FDATASYNC
1235 GNULIB_FCHOWNAT
1236 GNULIB_FCHDIR
1237 GNULIB_FACCESSAT
1238 GNULIB_EUIDACCESS
1239 GNULIB_ENVIRON
1240 GNULIB_DUP3
1241 GNULIB_DUP2
1242 GNULIB_DUP
1243 GNULIB_CLOSE
1244 GNULIB_CHOWN
1245 GNULIB_CHDIR
1246 pkglibexecdir
1247 lispdir
1248 REPLACE_WCTOMB
1249 REPLACE_UNSETENV
1250 REPLACE_STRTOD
1251 REPLACE_SETENV
1252 REPLACE_REALPATH
1253 REPLACE_REALLOC
1254 REPLACE_RANDOM_R
1255 REPLACE_PUTENV
1256 REPLACE_PTSNAME_R
1257 REPLACE_PTSNAME
1258 REPLACE_MKSTEMP
1259 REPLACE_MBTOWC
1260 REPLACE_MALLOC
1261 REPLACE_CANONICALIZE_FILE_NAME
1262 REPLACE_CALLOC
1263 HAVE_DECL_UNSETENV
1264 HAVE_UNLOCKPT
1265 HAVE_SYS_LOADAVG_H
1266 HAVE_STRUCT_RANDOM_DATA
1267 HAVE_STRTOULL
1268 HAVE_STRTOLL
1269 HAVE_STRTOD
1270 HAVE_DECL_SETENV
1271 HAVE_SETENV
1272 HAVE_SECURE_GETENV
1273 HAVE_RPMATCH
1274 HAVE_REALPATH
1275 HAVE_RANDOM_R
1276 HAVE_RANDOM_H
1277 HAVE_RANDOM
1278 HAVE_PTSNAME_R
1279 HAVE_PTSNAME
1280 HAVE_POSIX_OPENPT
1281 HAVE_MKSTEMPS
1282 HAVE_MKSTEMP
1283 HAVE_MKOSTEMPS
1284 HAVE_MKOSTEMP
1285 HAVE_MKDTEMP
1286 HAVE_GRANTPT
1287 HAVE_GETSUBOPT
1288 HAVE_DECL_GETLOADAVG
1289 HAVE_CANONICALIZE_FILE_NAME
1290 HAVE_ATOLL
1291 HAVE__EXIT
1292 GNULIB_WCTOMB
1293 GNULIB_UNSETENV
1294 GNULIB_UNLOCKPT
1295 GNULIB_SYSTEM_POSIX
1296 GNULIB_STRTOULL
1297 GNULIB_STRTOLL
1298 GNULIB_STRTOD
1299 GNULIB_SETENV
1300 GNULIB_SECURE_GETENV
1301 GNULIB_RPMATCH
1302 GNULIB_REALPATH
1303 GNULIB_REALLOC_POSIX
1304 GNULIB_RANDOM_R
1305 GNULIB_RANDOM
1306 GNULIB_PUTENV
1307 GNULIB_PTSNAME_R
1308 GNULIB_PTSNAME
1309 GNULIB_POSIX_OPENPT
1310 GNULIB_MKSTEMPS
1311 GNULIB_MKSTEMP
1312 GNULIB_MKOSTEMPS
1313 GNULIB_MKOSTEMP
1314 GNULIB_MKDTEMP
1315 GNULIB_MBTOWC
1316 GNULIB_MALLOC_POSIX
1317 GNULIB_GRANTPT
1318 GNULIB_GETSUBOPT
1319 GNULIB_GETLOADAVG
1320 GNULIB_CANONICALIZE_FILE_NAME
1321 GNULIB_CALLOC_POSIX
1322 GNULIB_ATOLL
1323 GNULIB__EXIT
1324 am__fastdepCXX_FALSE
1325 am__fastdepCXX_TRUE
1326 CXXDEPMODE
1327 ANSICXX_FALSE
1328 ANSICXX_TRUE
1329 CXXFLAGS
1330 ac_ct_CXX
1331 CXX
1332 CXX_CHOICE
1333 GL_GENERATE_ALLOCA_H_FALSE
1334 GL_GENERATE_ALLOCA_H_TRUE
1335 ALLOCA_H
1336 GL_COND_LIBTOOL_FALSE
1337 GL_COND_LIBTOOL_TRUE
1338 POSUB
1339 LTLIBINTL
1340 LIBINTL
1341 INTLLIBS
1342 INTL_LIBTOOL_SUFFIX_PREFIX
1343 INTLOBJS
1344 GENCAT
1345 INSTOBJEXT
1346 DATADIRNAME
1347 CATOBJEXT
1348 USE_INCLUDED_LIBINTL
1349 BUILD_INCLUDED_LIBINTL
1350 LTLIBC
1351 WINDRES
1352 WOE32
1353 WOE32DLL
1354 HAVE_WPRINTF
1355 HAVE_NEWLOCALE
1356 HAVE_SNPRINTF
1357 HAVE_ASPRINTF
1358 HAVE_POSIX_PRINTF
1359 INTL_DEFAULT_VERBOSITY
1360 INTL_MACOSX_LIBS
1361 GLIBC21
1362 INTLBISON
1363 GL_GENERATE_ICONV_H_FALSE
1364 GL_GENERATE_ICONV_H_TRUE
1365 ICONV_H
1366 REPLACE_ICONV_UTF
1367 REPLACE_ICONV_OPEN
1368 REPLACE_ICONV
1369 ICONV_CONST
1370 GNULIB_ICONV
1371 LTLIBICONV
1372 LIBICONV
1373 LTLIBMULTITHREAD
1374 LIBMULTITHREAD
1375 LTLIBTHREAD
1376 LIBTHREAD
1377 LIBPTH_PREFIX
1378 LTLIBPTH
1379 LIBPTH
1380 PRI_MACROS_BROKEN
1381 ALLOCA
1382 HAVE_VISIBILITY
1383 CFLAG_VISIBILITY
1384 GLIBC2
1385 XGETTEXT_EXTRA_OPTIONS
1386 MSGMERGE
1387 XGETTEXT_015
1388 XGETTEXT
1389 GMSGFMT_015
1390 MSGFMT_015
1391 GMSGFMT
1392 MSGFMT
1393 GETTEXT_MACRO_VERSION
1394 USE_NLS
1395 WOE32_FALSE
1396 WOE32_TRUE
1397 RC
1398 OTOOL64
1399 OTOOL
1400 LIPO
1401 NMEDIT
1402 DSYMUTIL
1403 MANIFEST_TOOL
1404 ac_ct_AR
1405 LN_S
1406 NM
1407 ac_ct_DUMPBIN
1408 DUMPBIN
1409 LD
1410 FGREP
1411 SED
1412 LIBTOOL
1413 OBJDUMP
1414 DLLTOOL
1415 AS
1416 RANLIB
1417 ARFLAGS
1418 AR
1419 host_os
1420 host_vendor
1421 host_cpu
1422 host
1423 build_os
1424 build_vendor
1425 build_cpu
1426 build
1427 BUILDCSHARP
1428 CSHARPCOMPFLAGS
1429 HAVE_CSC
1430 HAVE_MCS
1431 HAVE_CSCC
1432 HAVE_CSC_IN_PATH
1433 HAVE_MCS_IN_PATH
1434 HAVE_CSCC_IN_PATH
1435 CSHARP_CHOICE
1436 BUILDJAVA
1437 JAR
1438 HAVE_JIKES
1439 HAVE_JAVAC
1440 HAVE_GCJ_C
1441 HAVE_JAVAC_ENVVAR
1442 CLASSPATH_SEPARATOR
1443 CLASSPATH
1444 CONF_JAVAC
1445 HAVE_JIKES_IN_PATH
1446 HAVE_JAVAC_IN_PATH
1447 HAVE_GCJ_IN_PATH
1448 EGREP
1449 GREP
1450 CPP
1451 JAVA_CHOICE
1452 YFLAGS
1453 YACC
1454 am__fastdepCC_FALSE
1455 am__fastdepCC_TRUE
1456 CCDEPMODE
1457 am__nodep
1458 AMDEPBACKSLASH
1459 AMDEP_FALSE
1460 AMDEP_TRUE
1461 am__quote
1462 am__include
1463 DEPDIR
1464 OBJEXT
1465 EXEEXT
1466 ac_ct_CC
1467 CPPFLAGS
1468 LDFLAGS
1469 CFLAGS
1470 CC
1471 AM_BACKSLASH
1472 AM_DEFAULT_VERBOSITY
1473 AM_DEFAULT_V
1474 AM_V
1475 am__untar
1476 am__tar
1477 AMTAR
1478 am__leading_dot
1479 SET_MAKE
1480 AWK
1481 mkdir_p
1482 MKDIR_P
1483 INSTALL_STRIP_PROGRAM
1484 STRIP
1485 install_sh
1486 MAKEINFO
1487 AUTOHEADER
1488 AUTOMAKE
1489 AUTOCONF
1490 ACLOCAL
1491 VERSION
1492 PACKAGE
1493 CYGPATH_W
1494 am__isrc
1495 INSTALL_DATA
1496 INSTALL_SCRIPT
1497 INSTALL_PROGRAM
1498 target_alias
1499 host_alias
1500 build_alias
1501 LIBS
1502 ECHO_T
1503 ECHO_N
1504 ECHO_C
1505 DEFS
1506 mandir
1507 localedir
1508 libdir
1509 psdir
1510 pdfdir
1511 dvidir
1512 htmldir
1513 infodir
1514 docdir
1515 oldincludedir
1516 includedir
1517 localstatedir
1518 sharedstatedir
1519 sysconfdir
1520 datadir
1521 datarootdir
1522 libexecdir
1523 sbindir
1524 bindir
1525 program_transform_name
1526 prefix
1527 exec_prefix
1528 PACKAGE_URL
1529 PACKAGE_BUGREPORT
1530 PACKAGE_STRING
1531 PACKAGE_VERSION
1532 PACKAGE_TARNAME
1533 PACKAGE_NAME
1534 PATH_SEPARATOR
1535 SHELL'
1536 ac_subst_files=''
1537 ac_user_opts='
1538 enable_option_checking
1539 enable_silent_rules
1540 enable_dependency_tracking
1541 enable_java
1542 enable_native_java
1543 enable_csharp
1544 enable_largefile
1545 enable_threads
1546 enable_shared
1547 enable_static
1548 with_pic
1549 enable_fast_install
1550 with_gnu_ld
1551 with_sysroot
1552 enable_libtool_lock
1553 enable_nls
1554 enable_rpath
1555 with_libpth_prefix
1556 with_libiconv_prefix
1557 with_included_gettext
1558 with_libintl_prefix
1559 enable_c__
1560 enable_relocatable
1561 enable_libasprintf
1562 '
1563       ac_precious_vars='build_alias
1564 host_alias
1565 target_alias
1566 CC
1567 CFLAGS
1568 LDFLAGS
1569 LIBS
1570 CPPFLAGS
1571 YACC
1572 YFLAGS
1573 CPP
1574 CXX
1575 CXXFLAGS'
1576 ac_subdirs_all='libasprintf'
1577
1578 # Initialize some variables set by options.
1579 ac_init_help=
1580 ac_init_version=false
1581 ac_unrecognized_opts=
1582 ac_unrecognized_sep=
1583 # The variables have the same names as the options, with
1584 # dashes changed to underlines.
1585 cache_file=/dev/null
1586 exec_prefix=NONE
1587 no_create=
1588 no_recursion=
1589 prefix=NONE
1590 program_prefix=NONE
1591 program_suffix=NONE
1592 program_transform_name=s,x,x,
1593 silent=
1594 site=
1595 srcdir=
1596 verbose=
1597 x_includes=NONE
1598 x_libraries=NONE
1599
1600 # Installation directory options.
1601 # These are left unexpanded so users can "make install exec_prefix=/foo"
1602 # and all the variables that are supposed to be based on exec_prefix
1603 # by default will actually change.
1604 # Use braces instead of parens because sh, perl, etc. also accept them.
1605 # (The list follows the same order as the GNU Coding Standards.)
1606 bindir='${exec_prefix}/bin'
1607 sbindir='${exec_prefix}/sbin'
1608 libexecdir='${exec_prefix}/libexec'
1609 datarootdir='${prefix}/share'
1610 datadir='${datarootdir}'
1611 sysconfdir='${prefix}/etc'
1612 sharedstatedir='${prefix}/com'
1613 localstatedir='${prefix}/var'
1614 includedir='${prefix}/include'
1615 oldincludedir='/usr/include'
1616 docdir='${datarootdir}/doc/${PACKAGE}'
1617 infodir='${datarootdir}/info'
1618 htmldir='${docdir}'
1619 dvidir='${docdir}'
1620 pdfdir='${docdir}'
1621 psdir='${docdir}'
1622 libdir='${exec_prefix}/lib'
1623 localedir='${datarootdir}/locale'
1624 mandir='${datarootdir}/man'
1625
1626 ac_prev=
1627 ac_dashdash=
1628 for ac_option
1629 do
1630   # If the previous option needs an argument, assign it.
1631   if test -n "$ac_prev"; then
1632     eval $ac_prev=\$ac_option
1633     ac_prev=
1634     continue
1635   fi
1636
1637   case $ac_option in
1638   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1639   *=)   ac_optarg= ;;
1640   *)    ac_optarg=yes ;;
1641   esac
1642
1643   # Accept the important Cygnus configure options, so we can diagnose typos.
1644
1645   case $ac_dashdash$ac_option in
1646   --)
1647     ac_dashdash=yes ;;
1648
1649   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1650     ac_prev=bindir ;;
1651   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1652     bindir=$ac_optarg ;;
1653
1654   -build | --build | --buil | --bui | --bu)
1655     ac_prev=build_alias ;;
1656   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1657     build_alias=$ac_optarg ;;
1658
1659   -cache-file | --cache-file | --cache-fil | --cache-fi \
1660   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1661     ac_prev=cache_file ;;
1662   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1663   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1664     cache_file=$ac_optarg ;;
1665
1666   --config-cache | -C)
1667     cache_file=config.cache ;;
1668
1669   -datadir | --datadir | --datadi | --datad)
1670     ac_prev=datadir ;;
1671   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1672     datadir=$ac_optarg ;;
1673
1674   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1675   | --dataroo | --dataro | --datar)
1676     ac_prev=datarootdir ;;
1677   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1678   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1679     datarootdir=$ac_optarg ;;
1680
1681   -disable-* | --disable-*)
1682     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1683     # Reject names that are not valid shell variable names.
1684     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1685       as_fn_error $? "invalid feature name: $ac_useropt"
1686     ac_useropt_orig=$ac_useropt
1687     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1688     case $ac_user_opts in
1689       *"
1690 "enable_$ac_useropt"
1691 "*) ;;
1692       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1693          ac_unrecognized_sep=', ';;
1694     esac
1695     eval enable_$ac_useropt=no ;;
1696
1697   -docdir | --docdir | --docdi | --doc | --do)
1698     ac_prev=docdir ;;
1699   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1700     docdir=$ac_optarg ;;
1701
1702   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1703     ac_prev=dvidir ;;
1704   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1705     dvidir=$ac_optarg ;;
1706
1707   -enable-* | --enable-*)
1708     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1709     # Reject names that are not valid shell variable names.
1710     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1711       as_fn_error $? "invalid feature name: $ac_useropt"
1712     ac_useropt_orig=$ac_useropt
1713     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1714     case $ac_user_opts in
1715       *"
1716 "enable_$ac_useropt"
1717 "*) ;;
1718       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1719          ac_unrecognized_sep=', ';;
1720     esac
1721     eval enable_$ac_useropt=\$ac_optarg ;;
1722
1723   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1724   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1725   | --exec | --exe | --ex)
1726     ac_prev=exec_prefix ;;
1727   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1728   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1729   | --exec=* | --exe=* | --ex=*)
1730     exec_prefix=$ac_optarg ;;
1731
1732   -gas | --gas | --ga | --g)
1733     # Obsolete; use --with-gas.
1734     with_gas=yes ;;
1735
1736   -help | --help | --hel | --he | -h)
1737     ac_init_help=long ;;
1738   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1739     ac_init_help=recursive ;;
1740   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1741     ac_init_help=short ;;
1742
1743   -host | --host | --hos | --ho)
1744     ac_prev=host_alias ;;
1745   -host=* | --host=* | --hos=* | --ho=*)
1746     host_alias=$ac_optarg ;;
1747
1748   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1749     ac_prev=htmldir ;;
1750   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1751   | --ht=*)
1752     htmldir=$ac_optarg ;;
1753
1754   -includedir | --includedir | --includedi | --included | --include \
1755   | --includ | --inclu | --incl | --inc)
1756     ac_prev=includedir ;;
1757   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1758   | --includ=* | --inclu=* | --incl=* | --inc=*)
1759     includedir=$ac_optarg ;;
1760
1761   -infodir | --infodir | --infodi | --infod | --info | --inf)
1762     ac_prev=infodir ;;
1763   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1764     infodir=$ac_optarg ;;
1765
1766   -libdir | --libdir | --libdi | --libd)
1767     ac_prev=libdir ;;
1768   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1769     libdir=$ac_optarg ;;
1770
1771   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1772   | --libexe | --libex | --libe)
1773     ac_prev=libexecdir ;;
1774   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1775   | --libexe=* | --libex=* | --libe=*)
1776     libexecdir=$ac_optarg ;;
1777
1778   -localedir | --localedir | --localedi | --localed | --locale)
1779     ac_prev=localedir ;;
1780   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1781     localedir=$ac_optarg ;;
1782
1783   -localstatedir | --localstatedir | --localstatedi | --localstated \
1784   | --localstate | --localstat | --localsta | --localst | --locals)
1785     ac_prev=localstatedir ;;
1786   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1787   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1788     localstatedir=$ac_optarg ;;
1789
1790   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1791     ac_prev=mandir ;;
1792   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1793     mandir=$ac_optarg ;;
1794
1795   -nfp | --nfp | --nf)
1796     # Obsolete; use --without-fp.
1797     with_fp=no ;;
1798
1799   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1800   | --no-cr | --no-c | -n)
1801     no_create=yes ;;
1802
1803   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1804   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1805     no_recursion=yes ;;
1806
1807   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1808   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1809   | --oldin | --oldi | --old | --ol | --o)
1810     ac_prev=oldincludedir ;;
1811   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1812   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1813   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1814     oldincludedir=$ac_optarg ;;
1815
1816   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1817     ac_prev=prefix ;;
1818   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1819     prefix=$ac_optarg ;;
1820
1821   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1822   | --program-pre | --program-pr | --program-p)
1823     ac_prev=program_prefix ;;
1824   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1825   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1826     program_prefix=$ac_optarg ;;
1827
1828   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1829   | --program-suf | --program-su | --program-s)
1830     ac_prev=program_suffix ;;
1831   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1832   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1833     program_suffix=$ac_optarg ;;
1834
1835   -program-transform-name | --program-transform-name \
1836   | --program-transform-nam | --program-transform-na \
1837   | --program-transform-n | --program-transform- \
1838   | --program-transform | --program-transfor \
1839   | --program-transfo | --program-transf \
1840   | --program-trans | --program-tran \
1841   | --progr-tra | --program-tr | --program-t)
1842     ac_prev=program_transform_name ;;
1843   -program-transform-name=* | --program-transform-name=* \
1844   | --program-transform-nam=* | --program-transform-na=* \
1845   | --program-transform-n=* | --program-transform-=* \
1846   | --program-transform=* | --program-transfor=* \
1847   | --program-transfo=* | --program-transf=* \
1848   | --program-trans=* | --program-tran=* \
1849   | --progr-tra=* | --program-tr=* | --program-t=*)
1850     program_transform_name=$ac_optarg ;;
1851
1852   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1853     ac_prev=pdfdir ;;
1854   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1855     pdfdir=$ac_optarg ;;
1856
1857   -psdir | --psdir | --psdi | --psd | --ps)
1858     ac_prev=psdir ;;
1859   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1860     psdir=$ac_optarg ;;
1861
1862   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1863   | -silent | --silent | --silen | --sile | --sil)
1864     silent=yes ;;
1865
1866   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1867     ac_prev=sbindir ;;
1868   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1869   | --sbi=* | --sb=*)
1870     sbindir=$ac_optarg ;;
1871
1872   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1873   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1874   | --sharedst | --shareds | --shared | --share | --shar \
1875   | --sha | --sh)
1876     ac_prev=sharedstatedir ;;
1877   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1878   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1879   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1880   | --sha=* | --sh=*)
1881     sharedstatedir=$ac_optarg ;;
1882
1883   -site | --site | --sit)
1884     ac_prev=site ;;
1885   -site=* | --site=* | --sit=*)
1886     site=$ac_optarg ;;
1887
1888   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1889     ac_prev=srcdir ;;
1890   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1891     srcdir=$ac_optarg ;;
1892
1893   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1894   | --syscon | --sysco | --sysc | --sys | --sy)
1895     ac_prev=sysconfdir ;;
1896   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1897   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1898     sysconfdir=$ac_optarg ;;
1899
1900   -target | --target | --targe | --targ | --tar | --ta | --t)
1901     ac_prev=target_alias ;;
1902   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1903     target_alias=$ac_optarg ;;
1904
1905   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1906     verbose=yes ;;
1907
1908   -version | --version | --versio | --versi | --vers | -V)
1909     ac_init_version=: ;;
1910
1911   -with-* | --with-*)
1912     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1913     # Reject names that are not valid shell variable names.
1914     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1915       as_fn_error $? "invalid package name: $ac_useropt"
1916     ac_useropt_orig=$ac_useropt
1917     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1918     case $ac_user_opts in
1919       *"
1920 "with_$ac_useropt"
1921 "*) ;;
1922       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1923          ac_unrecognized_sep=', ';;
1924     esac
1925     eval with_$ac_useropt=\$ac_optarg ;;
1926
1927   -without-* | --without-*)
1928     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1929     # Reject names that are not valid shell variable names.
1930     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1931       as_fn_error $? "invalid package name: $ac_useropt"
1932     ac_useropt_orig=$ac_useropt
1933     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1934     case $ac_user_opts in
1935       *"
1936 "with_$ac_useropt"
1937 "*) ;;
1938       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1939          ac_unrecognized_sep=', ';;
1940     esac
1941     eval with_$ac_useropt=no ;;
1942
1943   --x)
1944     # Obsolete; use --with-x.
1945     with_x=yes ;;
1946
1947   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1948   | --x-incl | --x-inc | --x-in | --x-i)
1949     ac_prev=x_includes ;;
1950   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1951   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1952     x_includes=$ac_optarg ;;
1953
1954   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1955   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1956     ac_prev=x_libraries ;;
1957   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1958   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1959     x_libraries=$ac_optarg ;;
1960
1961   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1962 Try \`$0 --help' for more information"
1963     ;;
1964
1965   *=*)
1966     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1967     # Reject names that are not valid shell variable names.
1968     case $ac_envvar in #(
1969       '' | [0-9]* | *[!_$as_cr_alnum]* )
1970       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1971     esac
1972     eval $ac_envvar=\$ac_optarg
1973     export $ac_envvar ;;
1974
1975   *)
1976     # FIXME: should be removed in autoconf 3.0.
1977     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1978     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1979       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1980     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1981     ;;
1982
1983   esac
1984 done
1985
1986 if test -n "$ac_prev"; then
1987   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1988   as_fn_error $? "missing argument to $ac_option"
1989 fi
1990
1991 if test -n "$ac_unrecognized_opts"; then
1992   case $enable_option_checking in
1993     no) ;;
1994     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1995     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1996   esac
1997 fi
1998
1999 # Check all directory arguments for consistency.
2000 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
2001                 datadir sysconfdir sharedstatedir localstatedir includedir \
2002                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2003                 libdir localedir mandir
2004 do
2005   eval ac_val=\$$ac_var
2006   # Remove trailing slashes.
2007   case $ac_val in
2008     */ )
2009       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2010       eval $ac_var=\$ac_val;;
2011   esac
2012   # Be sure to have absolute directory names.
2013   case $ac_val in
2014     [\\/$]* | ?:[\\/]* )  continue;;
2015     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2016   esac
2017   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2018 done
2019
2020 # There might be people who depend on the old broken behavior: `$host'
2021 # used to hold the argument of --host etc.
2022 # FIXME: To remove some day.
2023 build=$build_alias
2024 host=$host_alias
2025 target=$target_alias
2026
2027 # FIXME: To remove some day.
2028 if test "x$host_alias" != x; then
2029   if test "x$build_alias" = x; then
2030     cross_compiling=maybe
2031   elif test "x$build_alias" != "x$host_alias"; then
2032     cross_compiling=yes
2033   fi
2034 fi
2035
2036 ac_tool_prefix=
2037 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2038
2039 test "$silent" = yes && exec 6>/dev/null
2040
2041
2042 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2043 ac_ls_di=`ls -di .` &&
2044 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2045   as_fn_error $? "working directory cannot be determined"
2046 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2047   as_fn_error $? "pwd does not report name of working directory"
2048
2049
2050 # Find the source files, if location was not specified.
2051 if test -z "$srcdir"; then
2052   ac_srcdir_defaulted=yes
2053   # Try the directory containing this script, then the parent directory.
2054   ac_confdir=`$as_dirname -- "$as_myself" ||
2055 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2056          X"$as_myself" : 'X\(//\)[^/]' \| \
2057          X"$as_myself" : 'X\(//\)$' \| \
2058          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2059 $as_echo X"$as_myself" |
2060     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2061             s//\1/
2062             q
2063           }
2064           /^X\(\/\/\)[^/].*/{
2065             s//\1/
2066             q
2067           }
2068           /^X\(\/\/\)$/{
2069             s//\1/
2070             q
2071           }
2072           /^X\(\/\).*/{
2073             s//\1/
2074             q
2075           }
2076           s/.*/./; q'`
2077   srcdir=$ac_confdir
2078   if test ! -r "$srcdir/$ac_unique_file"; then
2079     srcdir=..
2080   fi
2081 else
2082   ac_srcdir_defaulted=no
2083 fi
2084 if test ! -r "$srcdir/$ac_unique_file"; then
2085   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2086   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2087 fi
2088 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2089 ac_abs_confdir=`(
2090         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2091         pwd)`
2092 # When building in place, set srcdir=.
2093 if test "$ac_abs_confdir" = "$ac_pwd"; then
2094   srcdir=.
2095 fi
2096 # Remove unnecessary trailing slashes from srcdir.
2097 # Double slashes in file names in object file debugging info
2098 # mess up M-x gdb in Emacs.
2099 case $srcdir in
2100 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2101 esac
2102 for ac_var in $ac_precious_vars; do
2103   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2104   eval ac_env_${ac_var}_value=\$${ac_var}
2105   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2106   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2107 done
2108
2109 #
2110 # Report the --help message.
2111 #
2112 if test "$ac_init_help" = "long"; then
2113   # Omit some internal or obsolete options to make the list less imposing.
2114   # This message is too long to be a string in the A/UX 3.1 sh.
2115   cat <<_ACEOF
2116 \`configure' configures this package to adapt to many kinds of systems.
2117
2118 Usage: $0 [OPTION]... [VAR=VALUE]...
2119
2120 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2121 VAR=VALUE.  See below for descriptions of some of the useful variables.
2122
2123 Defaults for the options are specified in brackets.
2124
2125 Configuration:
2126   -h, --help              display this help and exit
2127       --help=short        display options specific to this package
2128       --help=recursive    display the short help of all the included packages
2129   -V, --version           display version information and exit
2130   -q, --quiet, --silent   do not print \`checking ...' messages
2131       --cache-file=FILE   cache test results in FILE [disabled]
2132   -C, --config-cache      alias for \`--cache-file=config.cache'
2133   -n, --no-create         do not create output files
2134       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2135
2136 Installation directories:
2137   --prefix=PREFIX         install architecture-independent files in PREFIX
2138                           [$ac_default_prefix]
2139   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2140                           [PREFIX]
2141
2142 By default, \`make install' will install all the files in
2143 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2144 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2145 for instance \`--prefix=\$HOME'.
2146
2147 For better control, use the options below.
2148
2149 Fine tuning of the installation directories:
2150   --bindir=DIR            user executables [EPREFIX/bin]
2151   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2152   --libexecdir=DIR        program executables [EPREFIX/libexec]
2153   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2154   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2155   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2156   --libdir=DIR            object code libraries [EPREFIX/lib]
2157   --includedir=DIR        C header files [PREFIX/include]
2158   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2159   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2160   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2161   --infodir=DIR           info documentation [DATAROOTDIR/info]
2162   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2163   --mandir=DIR            man documentation [DATAROOTDIR/man]
2164   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
2165   --htmldir=DIR           html documentation [DOCDIR]
2166   --dvidir=DIR            dvi documentation [DOCDIR]
2167   --pdfdir=DIR            pdf documentation [DOCDIR]
2168   --psdir=DIR             ps documentation [DOCDIR]
2169 _ACEOF
2170
2171   cat <<\_ACEOF
2172
2173 Program names:
2174   --program-prefix=PREFIX            prepend PREFIX to installed program names
2175   --program-suffix=SUFFIX            append SUFFIX to installed program names
2176   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2177
2178 System types:
2179   --build=BUILD     configure for building on BUILD [guessed]
2180   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2181 _ACEOF
2182 fi
2183
2184 if test -n "$ac_init_help"; then
2185
2186   cat <<\_ACEOF
2187
2188 Optional Features:
2189   --disable-option-checking  ignore unrecognized --enable/--with options
2190   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2191   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2192   --enable-silent-rules   less verbose build output (undo: "make V=1")
2193   --disable-silent-rules  verbose build output (undo: "make V=0")
2194   --enable-dependency-tracking
2195                           do not reject slow dependency extractors
2196   --disable-dependency-tracking
2197                           speeds up one-time build
2198   --disable-java          do not build Java sources
2199   --disable-native-java   do not compile Java to native executables
2200   --enable-csharp[=IMPL]  choose preferred C# implementation (pnet or mono)
2201   --disable-largefile     omit support for large files
2202   --enable-threads={posix|solaris|pth|windows}
2203                           specify multithreading API
2204   --disable-threads       build without multithread safety
2205   --enable-shared[=PKGS]  build shared libraries [default=yes]
2206   --enable-static[=PKGS]  build static libraries [default=yes]
2207   --enable-fast-install[=PKGS]
2208                           optimize for fast installation [default=yes]
2209   --disable-libtool-lock  avoid locking (might break parallel builds)
2210   --disable-nls           do not use Native Language Support
2211   --disable-rpath         do not hardcode runtime library paths
2212   --disable-c++           do not build C++ sources
2213   --enable-relocatable    install a package that can be moved in the file
2214                           system
2215   --disable-libasprintf   do not build libasprintf
2216
2217 Optional Packages:
2218   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2219   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2220   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2221                           both]
2222   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2223   --with-sysroot=DIR Search for dependent libraries within DIR
2224                         (or the compiler's sysroot if not specified).
2225   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2226   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2227   --without-libpth-prefix     don't search for libpth in includedir and libdir
2228   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2229   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2230   --with-included-gettext use the GNU gettext library included here
2231   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2232   --without-libintl-prefix     don't search for libintl in includedir and libdir
2233
2234 Some influential environment variables:
2235   CC          C compiler command
2236   CFLAGS      C compiler flags
2237   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2238               nonstandard directory <lib dir>
2239   LIBS        libraries to pass to the linker, e.g. -l<library>
2240   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2241               you have headers in a nonstandard directory <include dir>
2242   YACC        The `Yet Another Compiler Compiler' implementation to use.
2243               Defaults to the first program found out of: `bison -y', `byacc',
2244               `yacc'.
2245   YFLAGS      The list of arguments that will be passed by default to $YACC.
2246               This script will default YFLAGS to the empty string to avoid a
2247               default value of `-d' given by some make applications.
2248   CPP         C preprocessor
2249   CXX         C++ compiler command
2250   CXXFLAGS    C++ compiler flags
2251
2252 Use these variables to override the choices made by `configure' or to help
2253 it to find libraries and programs with nonstandard names/locations.
2254
2255 Report bugs to the package provider.
2256 _ACEOF
2257 ac_status=$?
2258 fi
2259
2260 if test "$ac_init_help" = "recursive"; then
2261   # If there are subdirs, report their specific --help.
2262   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2263     test -d "$ac_dir" ||
2264       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2265       continue
2266     ac_builddir=.
2267
2268 case "$ac_dir" in
2269 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2270 *)
2271   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2272   # A ".." for each directory in $ac_dir_suffix.
2273   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2274   case $ac_top_builddir_sub in
2275   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2276   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2277   esac ;;
2278 esac
2279 ac_abs_top_builddir=$ac_pwd
2280 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2281 # for backward compatibility:
2282 ac_top_builddir=$ac_top_build_prefix
2283
2284 case $srcdir in
2285   .)  # We are building in place.
2286     ac_srcdir=.
2287     ac_top_srcdir=$ac_top_builddir_sub
2288     ac_abs_top_srcdir=$ac_pwd ;;
2289   [\\/]* | ?:[\\/]* )  # Absolute name.
2290     ac_srcdir=$srcdir$ac_dir_suffix;
2291     ac_top_srcdir=$srcdir
2292     ac_abs_top_srcdir=$srcdir ;;
2293   *) # Relative name.
2294     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2295     ac_top_srcdir=$ac_top_build_prefix$srcdir
2296     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2297 esac
2298 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2299
2300     cd "$ac_dir" || { ac_status=$?; continue; }
2301     # Check for guested configure.
2302     if test -f "$ac_srcdir/configure.gnu"; then
2303       echo &&
2304       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2305     elif test -f "$ac_srcdir/configure"; then
2306       echo &&
2307       $SHELL "$ac_srcdir/configure" --help=recursive
2308     else
2309       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2310     fi || ac_status=$?
2311     cd "$ac_pwd" || { ac_status=$?; break; }
2312   done
2313 fi
2314
2315 test -n "$ac_init_help" && exit $ac_status
2316 if $ac_init_version; then
2317   cat <<\_ACEOF
2318 configure
2319 generated by GNU Autoconf 2.69
2320
2321 Copyright (C) 2012 Free Software Foundation, Inc.
2322 This configure script is free software; the Free Software Foundation
2323 gives unlimited permission to copy, distribute and modify it.
2324 _ACEOF
2325   exit
2326 fi
2327
2328 ## ------------------------ ##
2329 ## Autoconf initialization. ##
2330 ## ------------------------ ##
2331
2332 # ac_fn_c_try_compile LINENO
2333 # --------------------------
2334 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2335 ac_fn_c_try_compile ()
2336 {
2337   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2338   rm -f conftest.$ac_objext
2339   if { { ac_try="$ac_compile"
2340 case "(($ac_try" in
2341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2342   *) ac_try_echo=$ac_try;;
2343 esac
2344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2345 $as_echo "$ac_try_echo"; } >&5
2346   (eval "$ac_compile") 2>conftest.err
2347   ac_status=$?
2348   if test -s conftest.err; then
2349     grep -v '^ *+' conftest.err >conftest.er1
2350     cat conftest.er1 >&5
2351     mv -f conftest.er1 conftest.err
2352   fi
2353   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2354   test $ac_status = 0; } && {
2355          test -z "$ac_c_werror_flag" ||
2356          test ! -s conftest.err
2357        } && test -s conftest.$ac_objext; then :
2358   ac_retval=0
2359 else
2360   $as_echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2362
2363         ac_retval=1
2364 fi
2365   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2366   as_fn_set_status $ac_retval
2367
2368 } # ac_fn_c_try_compile
2369
2370 # ac_fn_c_try_cpp LINENO
2371 # ----------------------
2372 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2373 ac_fn_c_try_cpp ()
2374 {
2375   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2376   if { { ac_try="$ac_cpp conftest.$ac_ext"
2377 case "(($ac_try" in
2378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379   *) ac_try_echo=$ac_try;;
2380 esac
2381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2382 $as_echo "$ac_try_echo"; } >&5
2383   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2384   ac_status=$?
2385   if test -s conftest.err; then
2386     grep -v '^ *+' conftest.err >conftest.er1
2387     cat conftest.er1 >&5
2388     mv -f conftest.er1 conftest.err
2389   fi
2390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2391   test $ac_status = 0; } > conftest.i && {
2392          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2393          test ! -s conftest.err
2394        }; then :
2395   ac_retval=0
2396 else
2397   $as_echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2399
2400     ac_retval=1
2401 fi
2402   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2403   as_fn_set_status $ac_retval
2404
2405 } # ac_fn_c_try_cpp
2406
2407 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2408 # -------------------------------------------------------
2409 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2410 # the include files in INCLUDES and setting the cache variable VAR
2411 # accordingly.
2412 ac_fn_c_check_header_mongrel ()
2413 {
2414   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2415   if eval \${$3+:} false; then :
2416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2417 $as_echo_n "checking for $2... " >&6; }
2418 if eval \${$3+:} false; then :
2419   $as_echo_n "(cached) " >&6
2420 fi
2421 eval ac_res=\$$3
2422                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2423 $as_echo "$ac_res" >&6; }
2424 else
2425   # Is the header compilable?
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2427 $as_echo_n "checking $2 usability... " >&6; }
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h.  */
2430 $4
2431 #include <$2>
2432 _ACEOF
2433 if ac_fn_c_try_compile "$LINENO"; then :
2434   ac_header_compiler=yes
2435 else
2436   ac_header_compiler=no
2437 fi
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2440 $as_echo "$ac_header_compiler" >&6; }
2441
2442 # Is the header present?
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2444 $as_echo_n "checking $2 presence... " >&6; }
2445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446 /* end confdefs.h.  */
2447 #include <$2>
2448 _ACEOF
2449 if ac_fn_c_try_cpp "$LINENO"; then :
2450   ac_header_preproc=yes
2451 else
2452   ac_header_preproc=no
2453 fi
2454 rm -f conftest.err conftest.i conftest.$ac_ext
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2456 $as_echo "$ac_header_preproc" >&6; }
2457
2458 # So?  What about this header?
2459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2460   yes:no: )
2461     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2462 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2463     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2464 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2465     ;;
2466   no:yes:* )
2467     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2468 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2469     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2470 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2471     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2472 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2473     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2474 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2475     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2476 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2477     ;;
2478 esac
2479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2480 $as_echo_n "checking for $2... " >&6; }
2481 if eval \${$3+:} false; then :
2482   $as_echo_n "(cached) " >&6
2483 else
2484   eval "$3=\$ac_header_compiler"
2485 fi
2486 eval ac_res=\$$3
2487                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2488 $as_echo "$ac_res" >&6; }
2489 fi
2490   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2491
2492 } # ac_fn_c_check_header_mongrel
2493
2494 # ac_fn_c_try_run LINENO
2495 # ----------------------
2496 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2497 # that executables *can* be run.
2498 ac_fn_c_try_run ()
2499 {
2500   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501   if { { ac_try="$ac_link"
2502 case "(($ac_try" in
2503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504   *) ac_try_echo=$ac_try;;
2505 esac
2506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2507 $as_echo "$ac_try_echo"; } >&5
2508   (eval "$ac_link") 2>&5
2509   ac_status=$?
2510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2511   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2512   { { case "(($ac_try" in
2513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514   *) ac_try_echo=$ac_try;;
2515 esac
2516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2517 $as_echo "$ac_try_echo"; } >&5
2518   (eval "$ac_try") 2>&5
2519   ac_status=$?
2520   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2521   test $ac_status = 0; }; }; then :
2522   ac_retval=0
2523 else
2524   $as_echo "$as_me: program exited with status $ac_status" >&5
2525        $as_echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2527
2528        ac_retval=$ac_status
2529 fi
2530   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2531   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2532   as_fn_set_status $ac_retval
2533
2534 } # ac_fn_c_try_run
2535
2536 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2537 # -------------------------------------------------------
2538 # Tests whether HEADER exists and can be compiled using the include files in
2539 # INCLUDES, setting the cache variable VAR accordingly.
2540 ac_fn_c_check_header_compile ()
2541 {
2542   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2544 $as_echo_n "checking for $2... " >&6; }
2545 if eval \${$3+:} false; then :
2546   $as_echo_n "(cached) " >&6
2547 else
2548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2549 /* end confdefs.h.  */
2550 $4
2551 #include <$2>
2552 _ACEOF
2553 if ac_fn_c_try_compile "$LINENO"; then :
2554   eval "$3=yes"
2555 else
2556   eval "$3=no"
2557 fi
2558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559 fi
2560 eval ac_res=\$$3
2561                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2562 $as_echo "$ac_res" >&6; }
2563   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2564
2565 } # ac_fn_c_check_header_compile
2566
2567 # ac_fn_c_try_link LINENO
2568 # -----------------------
2569 # Try to link conftest.$ac_ext, and return whether this succeeded.
2570 ac_fn_c_try_link ()
2571 {
2572   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573   rm -f conftest.$ac_objext conftest$ac_exeext
2574   if { { ac_try="$ac_link"
2575 case "(($ac_try" in
2576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577   *) ac_try_echo=$ac_try;;
2578 esac
2579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2580 $as_echo "$ac_try_echo"; } >&5
2581   (eval "$ac_link") 2>conftest.err
2582   ac_status=$?
2583   if test -s conftest.err; then
2584     grep -v '^ *+' conftest.err >conftest.er1
2585     cat conftest.er1 >&5
2586     mv -f conftest.er1 conftest.err
2587   fi
2588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2589   test $ac_status = 0; } && {
2590          test -z "$ac_c_werror_flag" ||
2591          test ! -s conftest.err
2592        } && test -s conftest$ac_exeext && {
2593          test "$cross_compiling" = yes ||
2594          test -x conftest$ac_exeext
2595        }; then :
2596   ac_retval=0
2597 else
2598   $as_echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2600
2601         ac_retval=1
2602 fi
2603   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2604   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2605   # interfere with the next link command; also delete a directory that is
2606   # left behind by Apple's compiler.  We do this before executing the actions.
2607   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2608   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2609   as_fn_set_status $ac_retval
2610
2611 } # ac_fn_c_try_link
2612
2613 # ac_fn_c_check_func LINENO FUNC VAR
2614 # ----------------------------------
2615 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2616 ac_fn_c_check_func ()
2617 {
2618   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2620 $as_echo_n "checking for $2... " >&6; }
2621 if eval \${$3+:} false; then :
2622   $as_echo_n "(cached) " >&6
2623 else
2624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2625 /* end confdefs.h.  */
2626 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2627    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2628 #define $2 innocuous_$2
2629
2630 /* System header to define __stub macros and hopefully few prototypes,
2631     which can conflict with char $2 (); below.
2632     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2633     <limits.h> exists even on freestanding compilers.  */
2634
2635 #ifdef __STDC__
2636 # include <limits.h>
2637 #else
2638 # include <assert.h>
2639 #endif
2640
2641 #undef $2
2642
2643 /* Override any GCC internal prototype to avoid an error.
2644    Use char because int might match the return type of a GCC
2645    builtin and then its argument prototype would still apply.  */
2646 #ifdef __cplusplus
2647 extern "C"
2648 #endif
2649 char $2 ();
2650 /* The GNU C library defines this for functions which it implements
2651     to always fail with ENOSYS.  Some functions are actually named
2652     something starting with __ and the normal name is an alias.  */
2653 #if defined __stub_$2 || defined __stub___$2
2654 choke me
2655 #endif
2656
2657 int
2658 main ()
2659 {
2660 return $2 ();
2661   ;
2662   return 0;
2663 }
2664 _ACEOF
2665 if ac_fn_c_try_link "$LINENO"; then :
2666   eval "$3=yes"
2667 else
2668   eval "$3=no"
2669 fi
2670 rm -f core conftest.err conftest.$ac_objext \
2671     conftest$ac_exeext conftest.$ac_ext
2672 fi
2673 eval ac_res=\$$3
2674                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2675 $as_echo "$ac_res" >&6; }
2676   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2677
2678 } # ac_fn_c_check_func
2679
2680 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2681 # -------------------------------------------
2682 # Tests whether TYPE exists after having included INCLUDES, setting cache
2683 # variable VAR accordingly.
2684 ac_fn_c_check_type ()
2685 {
2686   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2688 $as_echo_n "checking for $2... " >&6; }
2689 if eval \${$3+:} false; then :
2690   $as_echo_n "(cached) " >&6
2691 else
2692   eval "$3=no"
2693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694 /* end confdefs.h.  */
2695 $4
2696 int
2697 main ()
2698 {
2699 if (sizeof ($2))
2700          return 0;
2701   ;
2702   return 0;
2703 }
2704 _ACEOF
2705 if ac_fn_c_try_compile "$LINENO"; then :
2706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707 /* end confdefs.h.  */
2708 $4
2709 int
2710 main ()
2711 {
2712 if (sizeof (($2)))
2713             return 0;
2714   ;
2715   return 0;
2716 }
2717 _ACEOF
2718 if ac_fn_c_try_compile "$LINENO"; then :
2719
2720 else
2721   eval "$3=yes"
2722 fi
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 fi
2725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2726 fi
2727 eval ac_res=\$$3
2728                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2729 $as_echo "$ac_res" >&6; }
2730   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2731
2732 } # ac_fn_c_check_type
2733
2734 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2735 # ---------------------------------------------
2736 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2737 # accordingly.
2738 ac_fn_c_check_decl ()
2739 {
2740   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2741   as_decl_name=`echo $2|sed 's/ *(.*//'`
2742   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2744 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2745 if eval \${$3+:} false; then :
2746   $as_echo_n "(cached) " >&6
2747 else
2748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2749 /* end confdefs.h.  */
2750 $4
2751 int
2752 main ()
2753 {
2754 #ifndef $as_decl_name
2755 #ifdef __cplusplus
2756   (void) $as_decl_use;
2757 #else
2758   (void) $as_decl_name;
2759 #endif
2760 #endif
2761
2762   ;
2763   return 0;
2764 }
2765 _ACEOF
2766 if ac_fn_c_try_compile "$LINENO"; then :
2767   eval "$3=yes"
2768 else
2769   eval "$3=no"
2770 fi
2771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772 fi
2773 eval ac_res=\$$3
2774                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2775 $as_echo "$ac_res" >&6; }
2776   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2777
2778 } # ac_fn_c_check_decl
2779
2780 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2781 # --------------------------------------------
2782 # Tries to find the compile-time value of EXPR in a program that includes
2783 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2784 # computed
2785 ac_fn_c_compute_int ()
2786 {
2787   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2788   if test "$cross_compiling" = yes; then
2789     # Depending upon the size, compute the lo and hi bounds.
2790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791 /* end confdefs.h.  */
2792 $4
2793 int
2794 main ()
2795 {
2796 static int test_array [1 - 2 * !(($2) >= 0)];
2797 test_array [0] = 0;
2798 return test_array [0];
2799
2800   ;
2801   return 0;
2802 }
2803 _ACEOF
2804 if ac_fn_c_try_compile "$LINENO"; then :
2805   ac_lo=0 ac_mid=0
2806   while :; do
2807     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2808 /* end confdefs.h.  */
2809 $4
2810 int
2811 main ()
2812 {
2813 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2814 test_array [0] = 0;
2815 return test_array [0];
2816
2817   ;
2818   return 0;
2819 }
2820 _ACEOF
2821 if ac_fn_c_try_compile "$LINENO"; then :
2822   ac_hi=$ac_mid; break
2823 else
2824   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2825                         if test $ac_lo -le $ac_mid; then
2826                           ac_lo= ac_hi=
2827                           break
2828                         fi
2829                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2830 fi
2831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2832   done
2833 else
2834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835 /* end confdefs.h.  */
2836 $4
2837 int
2838 main ()
2839 {
2840 static int test_array [1 - 2 * !(($2) < 0)];
2841 test_array [0] = 0;
2842 return test_array [0];
2843
2844   ;
2845   return 0;
2846 }
2847 _ACEOF
2848 if ac_fn_c_try_compile "$LINENO"; then :
2849   ac_hi=-1 ac_mid=-1
2850   while :; do
2851     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852 /* end confdefs.h.  */
2853 $4
2854 int
2855 main ()
2856 {
2857 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2858 test_array [0] = 0;
2859 return test_array [0];
2860
2861   ;
2862   return 0;
2863 }
2864 _ACEOF
2865 if ac_fn_c_try_compile "$LINENO"; then :
2866   ac_lo=$ac_mid; break
2867 else
2868   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2869                         if test $ac_mid -le $ac_hi; then
2870                           ac_lo= ac_hi=
2871                           break
2872                         fi
2873                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2874 fi
2875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2876   done
2877 else
2878   ac_lo= ac_hi=
2879 fi
2880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2881 fi
2882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2883 # Binary search between lo and hi bounds.
2884 while test "x$ac_lo" != "x$ac_hi"; do
2885   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887 /* end confdefs.h.  */
2888 $4
2889 int
2890 main ()
2891 {
2892 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2893 test_array [0] = 0;
2894 return test_array [0];
2895
2896   ;
2897   return 0;
2898 }
2899 _ACEOF
2900 if ac_fn_c_try_compile "$LINENO"; then :
2901   ac_hi=$ac_mid
2902 else
2903   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2904 fi
2905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2906 done
2907 case $ac_lo in #((
2908 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2909 '') ac_retval=1 ;;
2910 esac
2911   else
2912     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2913 /* end confdefs.h.  */
2914 $4
2915 static long int longval () { return $2; }
2916 static unsigned long int ulongval () { return $2; }
2917 #include <stdio.h>
2918 #include <stdlib.h>
2919 int
2920 main ()
2921 {
2922
2923   FILE *f = fopen ("conftest.val", "w");
2924   if (! f)
2925     return 1;
2926   if (($2) < 0)
2927     {
2928       long int i = longval ();
2929       if (i != ($2))
2930         return 1;
2931       fprintf (f, "%ld", i);
2932     }
2933   else
2934     {
2935       unsigned long int i = ulongval ();
2936       if (i != ($2))
2937         return 1;
2938       fprintf (f, "%lu", i);
2939     }
2940   /* Do not output a trailing newline, as this causes \r\n confusion
2941      on some platforms.  */
2942   return ferror (f) || fclose (f) != 0;
2943
2944   ;
2945   return 0;
2946 }
2947 _ACEOF
2948 if ac_fn_c_try_run "$LINENO"; then :
2949   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2950 else
2951   ac_retval=1
2952 fi
2953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2954   conftest.$ac_objext conftest.beam conftest.$ac_ext
2955 rm -f conftest.val
2956
2957   fi
2958   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2959   as_fn_set_status $ac_retval
2960
2961 } # ac_fn_c_compute_int
2962 cat >config.log <<_ACEOF
2963 This file contains any messages produced by compilers while
2964 running configure, to aid debugging if configure makes a mistake.
2965
2966 It was created by $as_me, which was
2967 generated by GNU Autoconf 2.69.  Invocation command line was
2968
2969   $ $0 $@
2970
2971 _ACEOF
2972 exec 5>>config.log
2973 {
2974 cat <<_ASUNAME
2975 ## --------- ##
2976 ## Platform. ##
2977 ## --------- ##
2978
2979 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2980 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2981 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2982 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2983 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2984
2985 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2986 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2987
2988 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2989 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2990 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2991 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2992 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2993 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2994 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2995
2996 _ASUNAME
2997
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3000 do
3001   IFS=$as_save_IFS
3002   test -z "$as_dir" && as_dir=.
3003     $as_echo "PATH: $as_dir"
3004   done
3005 IFS=$as_save_IFS
3006
3007 } >&5
3008
3009 cat >&5 <<_ACEOF
3010
3011
3012 ## ----------- ##
3013 ## Core tests. ##
3014 ## ----------- ##
3015
3016 _ACEOF
3017
3018
3019 # Keep a trace of the command line.
3020 # Strip out --no-create and --no-recursion so they do not pile up.
3021 # Strip out --silent because we don't want to record it for future runs.
3022 # Also quote any args containing shell meta-characters.
3023 # Make two passes to allow for proper duplicate-argument suppression.
3024 ac_configure_args=
3025 ac_configure_args0=
3026 ac_configure_args1=
3027 ac_must_keep_next=false
3028 for ac_pass in 1 2
3029 do
3030   for ac_arg
3031   do
3032     case $ac_arg in
3033     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3034     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3035     | -silent | --silent | --silen | --sile | --sil)
3036       continue ;;
3037     *\'*)
3038       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3039     esac
3040     case $ac_pass in
3041     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3042     2)
3043       as_fn_append ac_configure_args1 " '$ac_arg'"
3044       if test $ac_must_keep_next = true; then
3045         ac_must_keep_next=false # Got value, back to normal.
3046       else
3047         case $ac_arg in
3048           *=* | --config-cache | -C | -disable-* | --disable-* \
3049           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3050           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3051           | -with-* | --with-* | -without-* | --without-* | --x)
3052             case "$ac_configure_args0 " in
3053               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3054             esac
3055             ;;
3056           -* ) ac_must_keep_next=true ;;
3057         esac
3058       fi
3059       as_fn_append ac_configure_args " '$ac_arg'"
3060       ;;
3061     esac
3062   done
3063 done
3064 { ac_configure_args0=; unset ac_configure_args0;}
3065 { ac_configure_args1=; unset ac_configure_args1;}
3066
3067 # When interrupted or exit'd, cleanup temporary files, and complete
3068 # config.log.  We remove comments because anyway the quotes in there
3069 # would cause problems or look ugly.
3070 # WARNING: Use '\'' to represent an apostrophe within the trap.
3071 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3072 trap 'exit_status=$?
3073   # Save into config.log some information that might help in debugging.
3074   {
3075     echo
3076
3077     $as_echo "## ---------------- ##
3078 ## Cache variables. ##
3079 ## ---------------- ##"
3080     echo
3081     # The following way of writing the cache mishandles newlines in values,
3082 (
3083   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3084     eval ac_val=\$$ac_var
3085     case $ac_val in #(
3086     *${as_nl}*)
3087       case $ac_var in #(
3088       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3089 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3090       esac
3091       case $ac_var in #(
3092       _ | IFS | as_nl) ;; #(
3093       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3094       *) { eval $ac_var=; unset $ac_var;} ;;
3095       esac ;;
3096     esac
3097   done
3098   (set) 2>&1 |
3099     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3100     *${as_nl}ac_space=\ *)
3101       sed -n \
3102         "s/'\''/'\''\\\\'\'''\''/g;
3103           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3104       ;; #(
3105     *)
3106       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3107       ;;
3108     esac |
3109     sort
3110 )
3111     echo
3112
3113     $as_echo "## ----------------- ##
3114 ## Output variables. ##
3115 ## ----------------- ##"
3116     echo
3117     for ac_var in $ac_subst_vars
3118     do
3119       eval ac_val=\$$ac_var
3120       case $ac_val in
3121       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3122       esac
3123       $as_echo "$ac_var='\''$ac_val'\''"
3124     done | sort
3125     echo
3126
3127     if test -n "$ac_subst_files"; then
3128       $as_echo "## ------------------- ##
3129 ## File substitutions. ##
3130 ## ------------------- ##"
3131       echo
3132       for ac_var in $ac_subst_files
3133       do
3134         eval ac_val=\$$ac_var
3135         case $ac_val in
3136         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3137         esac
3138         $as_echo "$ac_var='\''$ac_val'\''"
3139       done | sort
3140       echo
3141     fi
3142
3143     if test -s confdefs.h; then
3144       $as_echo "## ----------- ##
3145 ## confdefs.h. ##
3146 ## ----------- ##"
3147       echo
3148       cat confdefs.h
3149       echo
3150     fi
3151     test "$ac_signal" != 0 &&
3152       $as_echo "$as_me: caught signal $ac_signal"
3153     $as_echo "$as_me: exit $exit_status"
3154   } >&5
3155   rm -f core *.core core.conftest.* &&
3156     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3157     exit $exit_status
3158 ' 0
3159 for ac_signal in 1 2 13 15; do
3160   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3161 done
3162 ac_signal=0
3163
3164 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3165 rm -f -r conftest* confdefs.h
3166
3167 $as_echo "/* confdefs.h */" > confdefs.h
3168
3169 # Predefined preprocessor variables.
3170
3171 cat >>confdefs.h <<_ACEOF
3172 #define PACKAGE_NAME "$PACKAGE_NAME"
3173 _ACEOF
3174
3175 cat >>confdefs.h <<_ACEOF
3176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3177 _ACEOF
3178
3179 cat >>confdefs.h <<_ACEOF
3180 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3181 _ACEOF
3182
3183 cat >>confdefs.h <<_ACEOF
3184 #define PACKAGE_STRING "$PACKAGE_STRING"
3185 _ACEOF
3186
3187 cat >>confdefs.h <<_ACEOF
3188 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3189 _ACEOF
3190
3191 cat >>confdefs.h <<_ACEOF
3192 #define PACKAGE_URL "$PACKAGE_URL"
3193 _ACEOF
3194
3195
3196 # Let the site file select an alternate cache file if it wants to.
3197 # Prefer an explicitly selected file to automatically selected ones.
3198 ac_site_file1=NONE
3199 ac_site_file2=NONE
3200 if test -n "$CONFIG_SITE"; then
3201   # We do not want a PATH search for config.site.
3202   case $CONFIG_SITE in #((
3203     -*)  ac_site_file1=./$CONFIG_SITE;;
3204     */*) ac_site_file1=$CONFIG_SITE;;
3205     *)   ac_site_file1=./$CONFIG_SITE;;
3206   esac
3207 elif test "x$prefix" != xNONE; then
3208   ac_site_file1=$prefix/share/config.site
3209   ac_site_file2=$prefix/etc/config.site
3210 else
3211   ac_site_file1=$ac_default_prefix/share/config.site
3212   ac_site_file2=$ac_default_prefix/etc/config.site
3213 fi
3214 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3215 do
3216   test "x$ac_site_file" = xNONE && continue
3217   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3218     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3219 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3220     sed 's/^/| /' "$ac_site_file" >&5
3221     . "$ac_site_file" \
3222       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3224 as_fn_error $? "failed to load site script $ac_site_file
3225 See \`config.log' for more details" "$LINENO" 5; }
3226   fi
3227 done
3228
3229 if test -r "$cache_file"; then
3230   # Some versions of bash will fail to source /dev/null (special files
3231   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3232   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3233     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3234 $as_echo "$as_me: loading cache $cache_file" >&6;}
3235     case $cache_file in
3236       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3237       *)                      . "./$cache_file";;
3238     esac
3239   fi
3240 else
3241   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3242 $as_echo "$as_me: creating cache $cache_file" >&6;}
3243   >$cache_file
3244 fi
3245
3246 gt_needs="$gt_needs need-ngettext"
3247 as_fn_append ac_header_list " stdlib.h"
3248 as_fn_append ac_header_list " unistd.h"
3249 as_fn_append ac_header_list " sys/param.h"
3250 as_fn_append ac_func_list " symlink"
3251 as_fn_append ac_header_list " string.h"
3252 as_fn_append ac_func_list " canonicalize_file_name"
3253 as_fn_append ac_func_list " getcwd"
3254 as_fn_append ac_func_list " readlink"
3255 as_fn_append ac_func_list " realpath"
3256 as_fn_append ac_func_list " readlinkat"
3257 gl_getopt_required=GNU
3258 as_fn_append ac_header_list " getopt.h"
3259 as_fn_append ac_header_list " iconv.h"
3260 as_fn_append ac_func_list " iswcntrl"
3261 as_fn_append ac_header_list " wctype.h"
3262 as_fn_append ac_func_list " iswblank"
3263 as_fn_append ac_header_list " xlocale.h"
3264 as_fn_append ac_func_list " lstat"
3265 as_fn_append ac_func_list " mbsinit"
3266 as_fn_append ac_func_list " mbrtowc"
3267 as_fn_append ac_func_list " mbslen"
3268 as_fn_append ac_header_list " sys/mman.h"
3269 as_fn_append ac_func_list " mprotect"
3270 as_fn_append ac_func_list " _set_invalid_parameter_handler"
3271 as_fn_append ac_func_list " setenv"
3272 as_fn_append ac_header_list " wchar.h"
3273 as_fn_append ac_header_list " stdint.h"
3274 as_fn_append ac_header_list " sys/socket.h"
3275 as_fn_append ac_header_list " sys/stat.h"
3276 as_fn_append ac_header_list " sys/time.h"
3277 as_fn_append ac_header_list " features.h"
3278 as_fn_append ac_func_list " wcwidth"
3279 # Check that the precious variables saved in the cache have kept the same
3280 # value.
3281 ac_cache_corrupted=false
3282 for ac_var in $ac_precious_vars; do
3283   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3284   eval ac_new_set=\$ac_env_${ac_var}_set
3285   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3286   eval ac_new_val=\$ac_env_${ac_var}_value
3287   case $ac_old_set,$ac_new_set in
3288     set,)
3289       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3290 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3291       ac_cache_corrupted=: ;;
3292     ,set)
3293       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3294 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3295       ac_cache_corrupted=: ;;
3296     ,);;
3297     *)
3298       if test "x$ac_old_val" != "x$ac_new_val"; then
3299         # differences in whitespace do not lead to failure.
3300         ac_old_val_w=`echo x $ac_old_val`
3301         ac_new_val_w=`echo x $ac_new_val`
3302         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3303           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3304 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3305           ac_cache_corrupted=:
3306         else
3307           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3308 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3309           eval $ac_var=\$ac_old_val
3310         fi
3311         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3312 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3313         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3314 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3315       fi;;
3316   esac
3317   # Pass precious variables to config.status.
3318   if test "$ac_new_set" = set; then
3319     case $ac_new_val in
3320     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3321     *) ac_arg=$ac_var=$ac_new_val ;;
3322     esac
3323     case " $ac_configure_args " in
3324       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3325       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3326     esac
3327   fi
3328 done
3329 if $ac_cache_corrupted; then
3330   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3332   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3333 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3334   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3335 fi
3336 ## -------------------- ##
3337 ## Main body of script. ##
3338 ## -------------------- ##
3339
3340 ac_ext=c
3341 ac_cpp='$CPP $CPPFLAGS'
3342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345
3346
3347
3348 ac_aux_dir=
3349 for ac_dir in ../build-aux "$srcdir"/../build-aux; do
3350   if test -f "$ac_dir/install-sh"; then
3351     ac_aux_dir=$ac_dir
3352     ac_install_sh="$ac_aux_dir/install-sh -c"
3353     break
3354   elif test -f "$ac_dir/install.sh"; then
3355     ac_aux_dir=$ac_dir
3356     ac_install_sh="$ac_aux_dir/install.sh -c"
3357     break
3358   elif test -f "$ac_dir/shtool"; then
3359     ac_aux_dir=$ac_dir
3360     ac_install_sh="$ac_aux_dir/shtool install -c"
3361     break
3362   fi
3363 done
3364 if test -z "$ac_aux_dir"; then
3365   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../build-aux \"$srcdir\"/../build-aux" "$LINENO" 5
3366 fi
3367
3368 # These three variables are undocumented and unsupported,
3369 # and are intended to be withdrawn in a future Autoconf release.
3370 # They can cause serious problems if a builder's source tree is in a directory
3371 # whose full name contains unusual characters.
3372 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3373 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3374 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3375
3376
3377 . $srcdir/../version.sh
3378
3379
3380
3381
3382
3383
3384 am__api_version='1.14'
3385
3386 # Find a good install program.  We prefer a C program (faster),
3387 # so one script is as good as another.  But avoid the broken or
3388 # incompatible versions:
3389 # SysV /etc/install, /usr/sbin/install
3390 # SunOS /usr/etc/install
3391 # IRIX /sbin/install
3392 # AIX /bin/install
3393 # AmigaOS /C/install, which installs bootblocks on floppy discs
3394 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3395 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3396 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3397 # OS/2's system install, which has a completely different semantic
3398 # ./install, which can be erroneously created by make from ./install.sh.
3399 # Reject install programs that cannot install multiple files.
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3401 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3402 if test -z "$INSTALL"; then
3403 if ${ac_cv_path_install+:} false; then :
3404   $as_echo_n "(cached) " >&6
3405 else
3406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3408 do
3409   IFS=$as_save_IFS
3410   test -z "$as_dir" && as_dir=.
3411     # Account for people who put trailing slashes in PATH elements.
3412 case $as_dir/ in #((
3413   ./ | .// | /[cC]/* | \
3414   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3415   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3416   /usr/ucb/* ) ;;
3417   *)
3418     # OSF1 and SCO ODT 3.0 have their own names for install.
3419     # Don't use installbsd from OSF since it installs stuff as root
3420     # by default.
3421     for ac_prog in ginstall scoinst install; do
3422       for ac_exec_ext in '' $ac_executable_extensions; do
3423         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3424           if test $ac_prog = install &&
3425             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3426             # AIX install.  It has an incompatible calling convention.
3427             :
3428           elif test $ac_prog = install &&
3429             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3430             # program-specific install script used by HP pwplus--don't use.
3431             :
3432           else
3433             rm -rf conftest.one conftest.two conftest.dir
3434             echo one > conftest.one
3435             echo two > conftest.two
3436             mkdir conftest.dir
3437             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3438               test -s conftest.one && test -s conftest.two &&
3439               test -s conftest.dir/conftest.one &&
3440               test -s conftest.dir/conftest.two
3441             then
3442               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3443               break 3
3444             fi
3445           fi
3446         fi
3447       done
3448     done
3449     ;;
3450 esac
3451
3452   done
3453 IFS=$as_save_IFS
3454
3455 rm -rf conftest.one conftest.two conftest.dir
3456
3457 fi
3458   if test "${ac_cv_path_install+set}" = set; then
3459     INSTALL=$ac_cv_path_install
3460   else
3461     # As a last resort, use the slow shell script.  Don't cache a
3462     # value for INSTALL within a source directory, because that will
3463     # break other packages using the cache if that directory is
3464     # removed, or if the value is a relative name.
3465     INSTALL=$ac_install_sh
3466   fi
3467 fi
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3469 $as_echo "$INSTALL" >&6; }
3470
3471 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3472 # It thinks the first close brace ends the variable substitution.
3473 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3474
3475 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3476
3477 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3478
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3480 $as_echo_n "checking whether build environment is sane... " >&6; }
3481 # Reject unsafe characters in $srcdir or the absolute working directory
3482 # name.  Accept space and tab only in the latter.
3483 am_lf='
3484 '
3485 case `pwd` in
3486   *[\\\"\#\$\&\'\`$am_lf]*)
3487     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3488 esac
3489 case $srcdir in
3490   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3491     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3492 esac
3493
3494 # Do 'set' in a subshell so we don't clobber the current shell's
3495 # arguments.  Must try -L first in case configure is actually a
3496 # symlink; some systems play weird games with the mod time of symlinks
3497 # (eg FreeBSD returns the mod time of the symlink's containing
3498 # directory).
3499 if (
3500    am_has_slept=no
3501    for am_try in 1 2; do
3502      echo "timestamp, slept: $am_has_slept" > conftest.file
3503      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3504      if test "$*" = "X"; then
3505         # -L didn't work.
3506         set X `ls -t "$srcdir/configure" conftest.file`
3507      fi
3508      if test "$*" != "X $srcdir/configure conftest.file" \
3509         && test "$*" != "X conftest.file $srcdir/configure"; then
3510
3511         # If neither matched, then we have a broken ls.  This can happen
3512         # if, for instance, CONFIG_SHELL is bash and it inherits a
3513         # broken ls alias from the environment.  This has actually
3514         # happened.  Such a system could not be considered "sane".
3515         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3516   alias in your environment" "$LINENO" 5
3517      fi
3518      if test "$2" = conftest.file || test $am_try -eq 2; then
3519        break
3520      fi
3521      # Just in case.
3522      sleep 1
3523      am_has_slept=yes
3524    done
3525    test "$2" = conftest.file
3526    )
3527 then
3528    # Ok.
3529    :
3530 else
3531    as_fn_error $? "newly created file is older than distributed files!
3532 Check your system clock" "$LINENO" 5
3533 fi
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3535 $as_echo "yes" >&6; }
3536 # If we didn't sleep, we still need to ensure time stamps of config.status and
3537 # generated files are strictly newer.
3538 am_sleep_pid=
3539 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3540   ( sleep 1 ) &
3541   am_sleep_pid=$!
3542 fi
3543
3544 rm -f conftest.file
3545
3546 test "$program_prefix" != NONE &&
3547   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3548 # Use a double $ so make ignores it.
3549 test "$program_suffix" != NONE &&
3550   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3551 # Double any \ or $.
3552 # By default was `s,x,x', remove it if useless.
3553 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3554 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3555
3556 # expand $ac_aux_dir to an absolute path
3557 am_aux_dir=`cd $ac_aux_dir && pwd`
3558
3559 if test x"${MISSING+set}" != xset; then
3560   case $am_aux_dir in
3561   *\ * | *\     *)
3562     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3563   *)
3564     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3565   esac
3566 fi
3567 # Use eval to expand $SHELL
3568 if eval "$MISSING --is-lightweight"; then
3569   am_missing_run="$MISSING "
3570 else
3571   am_missing_run=
3572   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3573 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3574 fi
3575
3576 if test x"${install_sh}" != xset; then
3577   case $am_aux_dir in
3578   *\ * | *\     *)
3579     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3580   *)
3581     install_sh="\${SHELL} $am_aux_dir/install-sh"
3582   esac
3583 fi
3584
3585 # Installed binaries are usually stripped using 'strip' when the user
3586 # run "make install-strip".  However 'strip' might not be the right
3587 # tool to use in cross-compilation environments, therefore Automake
3588 # will honor the 'STRIP' environment variable to overrule this program.
3589 if test "$cross_compiling" != no; then
3590   if test -n "$ac_tool_prefix"; then
3591   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3592 set dummy ${ac_tool_prefix}strip; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if ${ac_cv_prog_STRIP+:} false; then :
3596   $as_echo_n "(cached) " >&6
3597 else
3598   if test -n "$STRIP"; then
3599   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3600 else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3603 do
3604   IFS=$as_save_IFS
3605   test -z "$as_dir" && as_dir=.
3606     for ac_exec_ext in '' $ac_executable_extensions; do
3607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610     break 2
3611   fi
3612 done
3613   done
3614 IFS=$as_save_IFS
3615
3616 fi
3617 fi
3618 STRIP=$ac_cv_prog_STRIP
3619 if test -n "$STRIP"; then
3620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3621 $as_echo "$STRIP" >&6; }
3622 else
3623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3625 fi
3626
3627
3628 fi
3629 if test -z "$ac_cv_prog_STRIP"; then
3630   ac_ct_STRIP=$STRIP
3631   # Extract the first word of "strip", so it can be a program name with args.
3632 set dummy strip; ac_word=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3636   $as_echo_n "(cached) " >&6
3637 else
3638   if test -n "$ac_ct_STRIP"; then
3639   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3640 else
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644   IFS=$as_save_IFS
3645   test -z "$as_dir" && as_dir=.
3646     for ac_exec_ext in '' $ac_executable_extensions; do
3647   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3648     ac_cv_prog_ac_ct_STRIP="strip"
3649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3650     break 2
3651   fi
3652 done
3653   done
3654 IFS=$as_save_IFS
3655
3656 fi
3657 fi
3658 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3659 if test -n "$ac_ct_STRIP"; then
3660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3661 $as_echo "$ac_ct_STRIP" >&6; }
3662 else
3663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664 $as_echo "no" >&6; }
3665 fi
3666
3667   if test "x$ac_ct_STRIP" = x; then
3668     STRIP=":"
3669   else
3670     case $cross_compiling:$ac_tool_warned in
3671 yes:)
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3674 ac_tool_warned=yes ;;
3675 esac
3676     STRIP=$ac_ct_STRIP
3677   fi
3678 else
3679   STRIP="$ac_cv_prog_STRIP"
3680 fi
3681
3682 fi
3683 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3684
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3686 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3687 if test -z "$MKDIR_P"; then
3688   if ${ac_cv_path_mkdir+:} false; then :
3689   $as_echo_n "(cached) " >&6
3690 else
3691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3693 do
3694   IFS=$as_save_IFS
3695   test -z "$as_dir" && as_dir=.
3696     for ac_prog in mkdir gmkdir; do
3697          for ac_exec_ext in '' $ac_executable_extensions; do
3698            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3699            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3700              'mkdir (GNU coreutils) '* | \
3701              'mkdir (coreutils) '* | \
3702              'mkdir (fileutils) '4.1*)
3703                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3704                break 3;;
3705            esac
3706          done
3707        done
3708   done
3709 IFS=$as_save_IFS
3710
3711 fi
3712
3713   test -d ./--version && rmdir ./--version
3714   if test "${ac_cv_path_mkdir+set}" = set; then
3715     MKDIR_P="$ac_cv_path_mkdir -p"
3716   else
3717     # As a last resort, use the slow shell script.  Don't cache a
3718     # value for MKDIR_P within a source directory, because that will
3719     # break other packages using the cache if that directory is
3720     # removed, or if the value is a relative name.
3721     MKDIR_P="$ac_install_sh -d"
3722   fi
3723 fi
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3725 $as_echo "$MKDIR_P" >&6; }
3726
3727 for ac_prog in gawk mawk nawk awk
3728 do
3729   # Extract the first word of "$ac_prog", so it can be a program name with args.
3730 set dummy $ac_prog; ac_word=$2
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3732 $as_echo_n "checking for $ac_word... " >&6; }
3733 if ${ac_cv_prog_AWK+:} false; then :
3734   $as_echo_n "(cached) " >&6
3735 else
3736   if test -n "$AWK"; then
3737   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3738 else
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH
3741 do
3742   IFS=$as_save_IFS
3743   test -z "$as_dir" && as_dir=.
3744     for ac_exec_ext in '' $ac_executable_extensions; do
3745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3746     ac_cv_prog_AWK="$ac_prog"
3747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3748     break 2
3749   fi
3750 done
3751   done
3752 IFS=$as_save_IFS
3753
3754 fi
3755 fi
3756 AWK=$ac_cv_prog_AWK
3757 if test -n "$AWK"; then
3758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3759 $as_echo "$AWK" >&6; }
3760 else
3761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 $as_echo "no" >&6; }
3763 fi
3764
3765
3766   test -n "$AWK" && break
3767 done
3768
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3770 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3771 set x ${MAKE-make}
3772 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3773 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3774   $as_echo_n "(cached) " >&6
3775 else
3776   cat >conftest.make <<\_ACEOF
3777 SHELL = /bin/sh
3778 all:
3779         @echo '@@@%%%=$(MAKE)=@@@%%%'
3780 _ACEOF
3781 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3782 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3783   *@@@%%%=?*=@@@%%%*)
3784     eval ac_cv_prog_make_${ac_make}_set=yes;;
3785   *)
3786     eval ac_cv_prog_make_${ac_make}_set=no;;
3787 esac
3788 rm -f conftest.make
3789 fi
3790 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3792 $as_echo "yes" >&6; }
3793   SET_MAKE=
3794 else
3795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796 $as_echo "no" >&6; }
3797   SET_MAKE="MAKE=${MAKE-make}"
3798 fi
3799
3800 rm -rf .tst 2>/dev/null
3801 mkdir .tst 2>/dev/null
3802 if test -d .tst; then
3803   am__leading_dot=.
3804 else
3805   am__leading_dot=_
3806 fi
3807 rmdir .tst 2>/dev/null
3808
3809 # Check whether --enable-silent-rules was given.
3810 if test "${enable_silent_rules+set}" = set; then :
3811   enableval=$enable_silent_rules;
3812 fi
3813
3814 case $enable_silent_rules in # (((
3815   yes) AM_DEFAULT_VERBOSITY=0;;
3816    no) AM_DEFAULT_VERBOSITY=1;;
3817     *) AM_DEFAULT_VERBOSITY=1;;
3818 esac
3819 am_make=${MAKE-make}
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3821 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3822 if ${am_cv_make_support_nested_variables+:} false; then :
3823   $as_echo_n "(cached) " >&6
3824 else
3825   if $as_echo 'TRUE=$(BAR$(V))
3826 BAR0=false
3827 BAR1=true
3828 V=1
3829 am__doit:
3830         @$(TRUE)
3831 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3832   am_cv_make_support_nested_variables=yes
3833 else
3834   am_cv_make_support_nested_variables=no
3835 fi
3836 fi
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3838 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3839 if test $am_cv_make_support_nested_variables = yes; then
3840     AM_V='$(V)'
3841   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3842 else
3843   AM_V=$AM_DEFAULT_VERBOSITY
3844   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3845 fi
3846 AM_BACKSLASH='\'
3847
3848
3849
3850   if test "`cd $srcdir && pwd`" != "`pwd`"; then
3851   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3852   # is not polluted with repeated "-I."
3853   am__isrc=' -I$(srcdir)'
3854   # test to see if srcdir already configured
3855   if test -f $srcdir/config.status; then
3856     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3857   fi
3858 fi
3859
3860 # test whether we have cygpath
3861 if test -z "$CYGPATH_W"; then
3862   if (cygpath --version) >/dev/null 2>/dev/null; then
3863     CYGPATH_W='cygpath -w'
3864   else
3865     CYGPATH_W=echo
3866   fi
3867 fi
3868
3869
3870 # Define the identity of the package.
3871  PACKAGE=''
3872  VERSION=''
3873
3874
3875 # Some tools Automake needs.
3876
3877 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3878
3879
3880 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3881
3882
3883 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3884
3885
3886 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3887
3888
3889 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3890
3891 # For better backward compatibility.  To be removed once Automake 1.9.x
3892 # dies out for good.  For more background, see:
3893 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3894 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3895 mkdir_p='$(MKDIR_P)'
3896
3897 # We need awk for the "check" target.  The system "awk" is bad on
3898 # some platforms.
3899 # Always define AMTAR for backward compatibility.  Yes, it's still used
3900 # in the wild :-(  We should find a proper way to deprecate it ...
3901 AMTAR='$${TAR-tar}'
3902
3903
3904 # We'll loop over all known methods to create a tar archive until one works.
3905 _am_tools='gnutar  pax cpio none'
3906
3907 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3908
3909
3910
3911
3912
3913
3914 # POSIX will say in a future version that running "rm -f" with no argument
3915 # is OK; and we want to be able to make that assumption in our Makefile
3916 # recipes.  So use an aggressive probe to check that the usage we want is
3917 # actually supported "in the wild" to an acceptable degree.
3918 # See automake bug#10828.
3919 # To make any issue more visible, cause the running configure to be aborted
3920 # by default if the 'rm' program in use doesn't match our expectations; the
3921 # user can still override this though.
3922 if rm -f && rm -fr && rm -rf; then : OK; else
3923   cat >&2 <<'END'
3924 Oops!
3925
3926 Your 'rm' program seems unable to run without file operands specified
3927 on the command line, even when the '-f' option is present.  This is contrary
3928 to the behaviour of most rm programs out there, and not conforming with
3929 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3930
3931 Please tell bug-automake@gnu.org about your system, including the value
3932 of your $PATH and any error possibly output before this message.  This
3933 can help us improve future automake versions.
3934
3935 END
3936   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3937     echo 'Configuration will proceed anyway, since you have set the' >&2
3938     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3939     echo >&2
3940   else
3941     cat >&2 <<'END'
3942 Aborting the configuration process, to ensure you take notice of the issue.
3943
3944 You can download and install GNU coreutils to get an 'rm' implementation
3945 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3946
3947 If you want to complete the configuration process using your problematic
3948 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3949 to "yes", and re-run configure.
3950
3951 END
3952     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3953   fi
3954 fi
3955     PACKAGE=gettext-runtime
3956
3957      VERSION=$VERSION_NUMBER
3958
3959
3960
3961 cat >>confdefs.h <<_ACEOF
3962 #define PACKAGE "$PACKAGE"
3963 _ACEOF
3964
3965
3966 cat >>confdefs.h <<_ACEOF
3967 #define VERSION "$VERSION"
3968 _ACEOF
3969
3970
3971
3972 ac_config_headers="$ac_config_headers config.h"
3973
3974
3975 test "$docdir" != '${datarootdir}/doc/${PACKAGE}' || docdir='${datarootdir}/doc/gettext'
3976
3977 ac_ext=c
3978 ac_cpp='$CPP $CPPFLAGS'
3979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3982 if test -n "$ac_tool_prefix"; then
3983   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3984 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986 $as_echo_n "checking for $ac_word... " >&6; }
3987 if ${ac_cv_prog_CC+:} false; then :
3988   $as_echo_n "(cached) " >&6
3989 else
3990   if test -n "$CC"; then
3991   ac_cv_prog_CC="$CC" # Let the user override the test.
3992 else
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3995 do
3996   IFS=$as_save_IFS
3997   test -z "$as_dir" && as_dir=.
3998     for ac_exec_ext in '' $ac_executable_extensions; do
3999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4000     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002     break 2
4003   fi
4004 done
4005   done
4006 IFS=$as_save_IFS
4007
4008 fi
4009 fi
4010 CC=$ac_cv_prog_CC
4011 if test -n "$CC"; then
4012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4013 $as_echo "$CC" >&6; }
4014 else
4015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 $as_echo "no" >&6; }
4017 fi
4018
4019
4020 fi
4021 if test -z "$ac_cv_prog_CC"; then
4022   ac_ct_CC=$CC
4023   # Extract the first word of "gcc", so it can be a program name with args.
4024 set dummy gcc; ac_word=$2
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4026 $as_echo_n "checking for $ac_word... " >&6; }
4027 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4028   $as_echo_n "(cached) " >&6
4029 else
4030   if test -n "$ac_ct_CC"; then
4031   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4032 else
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4035 do
4036   IFS=$as_save_IFS
4037   test -z "$as_dir" && as_dir=.
4038     for ac_exec_ext in '' $ac_executable_extensions; do
4039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040     ac_cv_prog_ac_ct_CC="gcc"
4041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4042     break 2
4043   fi
4044 done
4045   done
4046 IFS=$as_save_IFS
4047
4048 fi
4049 fi
4050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4051 if test -n "$ac_ct_CC"; then
4052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4053 $as_echo "$ac_ct_CC" >&6; }
4054 else
4055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056 $as_echo "no" >&6; }
4057 fi
4058
4059   if test "x$ac_ct_CC" = x; then
4060     CC=""
4061   else
4062     case $cross_compiling:$ac_tool_warned in
4063 yes:)
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4066 ac_tool_warned=yes ;;
4067 esac
4068     CC=$ac_ct_CC
4069   fi
4070 else
4071   CC="$ac_cv_prog_CC"
4072 fi
4073
4074 if test -z "$CC"; then
4075           if test -n "$ac_tool_prefix"; then
4076     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4077 set dummy ${ac_tool_prefix}cc; ac_word=$2
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079 $as_echo_n "checking for $ac_word... " >&6; }
4080 if ${ac_cv_prog_CC+:} false; then :
4081   $as_echo_n "(cached) " >&6
4082 else
4083   if test -n "$CC"; then
4084   ac_cv_prog_CC="$CC" # Let the user override the test.
4085 else
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4088 do
4089   IFS=$as_save_IFS
4090   test -z "$as_dir" && as_dir=.
4091     for ac_exec_ext in '' $ac_executable_extensions; do
4092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4093     ac_cv_prog_CC="${ac_tool_prefix}cc"
4094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4095     break 2
4096   fi
4097 done
4098   done
4099 IFS=$as_save_IFS
4100
4101 fi
4102 fi
4103 CC=$ac_cv_prog_CC
4104 if test -n "$CC"; then
4105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4106 $as_echo "$CC" >&6; }
4107 else
4108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 $as_echo "no" >&6; }
4110 fi
4111
4112
4113   fi
4114 fi
4115 if test -z "$CC"; then
4116   # Extract the first word of "cc", so it can be a program name with args.
4117 set dummy cc; ac_word=$2
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119 $as_echo_n "checking for $ac_word... " >&6; }
4120 if ${ac_cv_prog_CC+:} false; then :
4121   $as_echo_n "(cached) " >&6
4122 else
4123   if test -n "$CC"; then
4124   ac_cv_prog_CC="$CC" # Let the user override the test.
4125 else
4126   ac_prog_rejected=no
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130   IFS=$as_save_IFS
4131   test -z "$as_dir" && as_dir=.
4132     for ac_exec_ext in '' $ac_executable_extensions; do
4133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4135        ac_prog_rejected=yes
4136        continue
4137      fi
4138     ac_cv_prog_CC="cc"
4139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4140     break 2
4141   fi
4142 done
4143   done
4144 IFS=$as_save_IFS
4145
4146 if test $ac_prog_rejected = yes; then
4147   # We found a bogon in the path, so make sure we never use it.
4148   set dummy $ac_cv_prog_CC
4149   shift
4150   if test $# != 0; then
4151     # We chose a different compiler from the bogus one.
4152     # However, it has the same basename, so the bogon will be chosen
4153     # first if we set CC to just the basename; use the full file name.
4154     shift
4155     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4156   fi
4157 fi
4158 fi
4159 fi
4160 CC=$ac_cv_prog_CC
4161 if test -n "$CC"; then
4162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4163 $as_echo "$CC" >&6; }
4164 else
4165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4166 $as_echo "no" >&6; }
4167 fi
4168
4169
4170 fi
4171 if test -z "$CC"; then
4172   if test -n "$ac_tool_prefix"; then
4173   for ac_prog in cl.exe
4174   do
4175     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4176 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4178 $as_echo_n "checking for $ac_word... " >&6; }
4179 if ${ac_cv_prog_CC+:} false; then :
4180   $as_echo_n "(cached) " >&6
4181 else
4182   if test -n "$CC"; then
4183   ac_cv_prog_CC="$CC" # Let the user override the test.
4184 else
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4187 do
4188   IFS=$as_save_IFS
4189   test -z "$as_dir" && as_dir=.
4190     for ac_exec_ext in '' $ac_executable_extensions; do
4191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4192     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4194     break 2
4195   fi
4196 done
4197   done
4198 IFS=$as_save_IFS
4199
4200 fi
4201 fi
4202 CC=$ac_cv_prog_CC
4203 if test -n "$CC"; then
4204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4205 $as_echo "$CC" >&6; }
4206 else
4207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4208 $as_echo "no" >&6; }
4209 fi
4210
4211
4212     test -n "$CC" && break
4213   done
4214 fi
4215 if test -z "$CC"; then
4216   ac_ct_CC=$CC
4217   for ac_prog in cl.exe
4218 do
4219   # Extract the first word of "$ac_prog", so it can be a program name with args.
4220 set dummy $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_ac_ct_CC+:} false; then :
4224   $as_echo_n "(cached) " >&6
4225 else
4226   if test -n "$ac_ct_CC"; then
4227   ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4247 if test -n "$ac_ct_CC"; then
4248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4249 $as_echo "$ac_ct_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 "$ac_ct_CC" && break
4257 done
4258
4259   if test "x$ac_ct_CC" = x; then
4260     CC=""
4261   else
4262     case $cross_compiling:$ac_tool_warned in
4263 yes:)
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4266 ac_tool_warned=yes ;;
4267 esac
4268     CC=$ac_ct_CC
4269   fi
4270 fi
4271
4272 fi
4273
4274
4275 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4277 as_fn_error $? "no acceptable C compiler found in \$PATH
4278 See \`config.log' for more details" "$LINENO" 5; }
4279
4280 # Provide some information about the compiler.
4281 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4282 set X $ac_compile
4283 ac_compiler=$2
4284 for ac_option in --version -v -V -qversion; do
4285   { { ac_try="$ac_compiler $ac_option >&5"
4286 case "(($ac_try" in
4287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288   *) ac_try_echo=$ac_try;;
4289 esac
4290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4291 $as_echo "$ac_try_echo"; } >&5
4292   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4293   ac_status=$?
4294   if test -s conftest.err; then
4295     sed '10a\
4296 ... rest of stderr output deleted ...
4297          10q' conftest.err >conftest.er1
4298     cat conftest.er1 >&5
4299   fi
4300   rm -f conftest.er1 conftest.err
4301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302   test $ac_status = 0; }
4303 done
4304
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h.  */
4307
4308 int
4309 main ()
4310 {
4311
4312   ;
4313   return 0;
4314 }
4315 _ACEOF
4316 ac_clean_files_save=$ac_clean_files
4317 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4318 # Try to create an executable without -o first, disregard a.out.
4319 # It will help us diagnose broken compilers, and finding out an intuition
4320 # of exeext.
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4322 $as_echo_n "checking whether the C compiler works... " >&6; }
4323 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4324
4325 # The possible output files:
4326 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4327
4328 ac_rmfiles=
4329 for ac_file in $ac_files
4330 do
4331   case $ac_file in
4332     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4333     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4334   esac
4335 done
4336 rm -f $ac_rmfiles
4337
4338 if { { ac_try="$ac_link_default"
4339 case "(($ac_try" in
4340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341   *) ac_try_echo=$ac_try;;
4342 esac
4343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4344 $as_echo "$ac_try_echo"; } >&5
4345   (eval "$ac_link_default") 2>&5
4346   ac_status=$?
4347   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4348   test $ac_status = 0; }; then :
4349   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4350 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4351 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4352 # so that the user can short-circuit this test for compilers unknown to
4353 # Autoconf.
4354 for ac_file in $ac_files ''
4355 do
4356   test -f "$ac_file" || continue
4357   case $ac_file in
4358     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4359         ;;
4360     [ab].out )
4361         # We found the default executable, but exeext='' is most
4362         # certainly right.
4363         break;;
4364     *.* )
4365         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4366         then :; else
4367            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4368         fi
4369         # We set ac_cv_exeext here because the later test for it is not
4370         # safe: cross compilers may not add the suffix if given an `-o'
4371         # argument, so we may need to know it at that point already.
4372         # Even if this section looks crufty: it has the advantage of
4373         # actually working.
4374         break;;
4375     * )
4376         break;;
4377   esac
4378 done
4379 test "$ac_cv_exeext" = no && ac_cv_exeext=
4380
4381 else
4382   ac_file=''
4383 fi
4384 if test -z "$ac_file"; then :
4385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4387 $as_echo "$as_me: failed program was:" >&5
4388 sed 's/^/| /' conftest.$ac_ext >&5
4389
4390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4392 as_fn_error 77 "C compiler cannot create executables
4393 See \`config.log' for more details" "$LINENO" 5; }
4394 else
4395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4396 $as_echo "yes" >&6; }
4397 fi
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4399 $as_echo_n "checking for C compiler default output file name... " >&6; }
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4401 $as_echo "$ac_file" >&6; }
4402 ac_exeext=$ac_cv_exeext
4403
4404 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4405 ac_clean_files=$ac_clean_files_save
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4407 $as_echo_n "checking for suffix of executables... " >&6; }
4408 if { { ac_try="$ac_link"
4409 case "(($ac_try" in
4410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411   *) ac_try_echo=$ac_try;;
4412 esac
4413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 $as_echo "$ac_try_echo"; } >&5
4415   (eval "$ac_link") 2>&5
4416   ac_status=$?
4417   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418   test $ac_status = 0; }; then :
4419   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4420 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4421 # work properly (i.e., refer to `conftest.exe'), while it won't with
4422 # `rm'.
4423 for ac_file in conftest.exe conftest conftest.*; do
4424   test -f "$ac_file" || continue
4425   case $ac_file in
4426     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4427     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4428           break;;
4429     * ) break;;
4430   esac
4431 done
4432 else
4433   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4436 See \`config.log' for more details" "$LINENO" 5; }
4437 fi
4438 rm -f conftest conftest$ac_cv_exeext
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4440 $as_echo "$ac_cv_exeext" >&6; }
4441
4442 rm -f conftest.$ac_ext
4443 EXEEXT=$ac_cv_exeext
4444 ac_exeext=$EXEEXT
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h.  */
4447 #include <stdio.h>
4448 int
4449 main ()
4450 {
4451 FILE *f = fopen ("conftest.out", "w");
4452  return ferror (f) || fclose (f) != 0;
4453
4454   ;
4455   return 0;
4456 }
4457 _ACEOF
4458 ac_clean_files="$ac_clean_files conftest.out"
4459 # Check that the compiler produces executables we can run.  If not, either
4460 # the compiler is broken, or we cross compile.
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4462 $as_echo_n "checking whether we are cross compiling... " >&6; }
4463 if test "$cross_compiling" != yes; then
4464   { { ac_try="$ac_link"
4465 case "(($ac_try" in
4466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467   *) ac_try_echo=$ac_try;;
4468 esac
4469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4470 $as_echo "$ac_try_echo"; } >&5
4471   (eval "$ac_link") 2>&5
4472   ac_status=$?
4473   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4474   test $ac_status = 0; }
4475   if { ac_try='./conftest$ac_cv_exeext'
4476   { { case "(($ac_try" in
4477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478   *) ac_try_echo=$ac_try;;
4479 esac
4480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4481 $as_echo "$ac_try_echo"; } >&5
4482   (eval "$ac_try") 2>&5
4483   ac_status=$?
4484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4485   test $ac_status = 0; }; }; then
4486     cross_compiling=no
4487   else
4488     if test "$cross_compiling" = maybe; then
4489         cross_compiling=yes
4490     else
4491         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4493 as_fn_error $? "cannot run C compiled programs.
4494 If you meant to cross compile, use \`--host'.
4495 See \`config.log' for more details" "$LINENO" 5; }
4496     fi
4497   fi
4498 fi
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4500 $as_echo "$cross_compiling" >&6; }
4501
4502 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4503 ac_clean_files=$ac_clean_files_save
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4505 $as_echo_n "checking for suffix of object files... " >&6; }
4506 if ${ac_cv_objext+:} false; then :
4507   $as_echo_n "(cached) " >&6
4508 else
4509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h.  */
4511
4512 int
4513 main ()
4514 {
4515
4516   ;
4517   return 0;
4518 }
4519 _ACEOF
4520 rm -f conftest.o conftest.obj
4521 if { { ac_try="$ac_compile"
4522 case "(($ac_try" in
4523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524   *) ac_try_echo=$ac_try;;
4525 esac
4526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4527 $as_echo "$ac_try_echo"; } >&5
4528   (eval "$ac_compile") 2>&5
4529   ac_status=$?
4530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4531   test $ac_status = 0; }; then :
4532   for ac_file in conftest.o conftest.obj conftest.*; do
4533   test -f "$ac_file" || continue;
4534   case $ac_file in
4535     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4536     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4537        break;;
4538   esac
4539 done
4540 else
4541   $as_echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4543
4544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4546 as_fn_error $? "cannot compute suffix of object files: cannot compile
4547 See \`config.log' for more details" "$LINENO" 5; }
4548 fi
4549 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4550 fi
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4552 $as_echo "$ac_cv_objext" >&6; }
4553 OBJEXT=$ac_cv_objext
4554 ac_objext=$OBJEXT
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4556 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4557 if ${ac_cv_c_compiler_gnu+:} false; then :
4558   $as_echo_n "(cached) " >&6
4559 else
4560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h.  */
4562
4563 int
4564 main ()
4565 {
4566 #ifndef __GNUC__
4567        choke me
4568 #endif
4569
4570   ;
4571   return 0;
4572 }
4573 _ACEOF
4574 if ac_fn_c_try_compile "$LINENO"; then :
4575   ac_compiler_gnu=yes
4576 else
4577   ac_compiler_gnu=no
4578 fi
4579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4581
4582 fi
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4584 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4585 if test $ac_compiler_gnu = yes; then
4586   GCC=yes
4587 else
4588   GCC=
4589 fi
4590 ac_test_CFLAGS=${CFLAGS+set}
4591 ac_save_CFLAGS=$CFLAGS
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4593 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4594 if ${ac_cv_prog_cc_g+:} false; then :
4595   $as_echo_n "(cached) " >&6
4596 else
4597   ac_save_c_werror_flag=$ac_c_werror_flag
4598    ac_c_werror_flag=yes
4599    ac_cv_prog_cc_g=no
4600    CFLAGS="-g"
4601    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h.  */
4603
4604 int
4605 main ()
4606 {
4607
4608   ;
4609   return 0;
4610 }
4611 _ACEOF
4612 if ac_fn_c_try_compile "$LINENO"; then :
4613   ac_cv_prog_cc_g=yes
4614 else
4615   CFLAGS=""
4616       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h.  */
4618
4619 int
4620 main ()
4621 {
4622
4623   ;
4624   return 0;
4625 }
4626 _ACEOF
4627 if ac_fn_c_try_compile "$LINENO"; then :
4628
4629 else
4630   ac_c_werror_flag=$ac_save_c_werror_flag
4631          CFLAGS="-g"
4632          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h.  */
4634
4635 int
4636 main ()
4637 {
4638
4639   ;
4640   return 0;
4641 }
4642 _ACEOF
4643 if ac_fn_c_try_compile "$LINENO"; then :
4644   ac_cv_prog_cc_g=yes
4645 fi
4646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4647 fi
4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649 fi
4650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4651    ac_c_werror_flag=$ac_save_c_werror_flag
4652 fi
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4654 $as_echo "$ac_cv_prog_cc_g" >&6; }
4655 if test "$ac_test_CFLAGS" = set; then
4656   CFLAGS=$ac_save_CFLAGS
4657 elif test $ac_cv_prog_cc_g = yes; then
4658   if test "$GCC" = yes; then
4659     CFLAGS="-g -O2"
4660   else
4661     CFLAGS="-g"
4662   fi
4663 else
4664   if test "$GCC" = yes; then
4665     CFLAGS="-O2"
4666   else
4667     CFLAGS=
4668   fi
4669 fi
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4671 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4672 if ${ac_cv_prog_cc_c89+:} false; then :
4673   $as_echo_n "(cached) " >&6
4674 else
4675   ac_cv_prog_cc_c89=no
4676 ac_save_CC=$CC
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h.  */
4679 #include <stdarg.h>
4680 #include <stdio.h>
4681 struct stat;
4682 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4683 struct buf { int x; };
4684 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4685 static char *e (p, i)
4686      char **p;
4687      int i;
4688 {
4689   return p[i];
4690 }
4691 static char *f (char * (*g) (char **, int), char **p, ...)
4692 {
4693   char *s;
4694   va_list v;
4695   va_start (v,p);
4696   s = g (p, va_arg (v,int));
4697   va_end (v);
4698   return s;
4699 }
4700
4701 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4702    function prototypes and stuff, but not '\xHH' hex character constants.
4703    These don't provoke an error unfortunately, instead are silently treated
4704    as 'x'.  The following induces an error, until -std is added to get
4705    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4706    array size at least.  It's necessary to write '\x00'==0 to get something
4707    that's true only with -std.  */
4708 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4709
4710 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4711    inside strings and character constants.  */
4712 #define FOO(x) 'x'
4713 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4714
4715 int test (int i, double x);
4716 struct s1 {int (*f) (int a);};
4717 struct s2 {int (*f) (double a);};
4718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4719 int argc;
4720 char **argv;
4721 int
4722 main ()
4723 {
4724 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4725   ;
4726   return 0;
4727 }
4728 _ACEOF
4729 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4730         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4731 do
4732   CC="$ac_save_CC $ac_arg"
4733   if ac_fn_c_try_compile "$LINENO"; then :
4734   ac_cv_prog_cc_c89=$ac_arg
4735 fi
4736 rm -f core conftest.err conftest.$ac_objext
4737   test "x$ac_cv_prog_cc_c89" != "xno" && break
4738 done
4739 rm -f conftest.$ac_ext
4740 CC=$ac_save_CC
4741
4742 fi
4743 # AC_CACHE_VAL
4744 case "x$ac_cv_prog_cc_c89" in
4745   x)
4746     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4747 $as_echo "none needed" >&6; } ;;
4748   xno)
4749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4750 $as_echo "unsupported" >&6; } ;;
4751   *)
4752     CC="$CC $ac_cv_prog_cc_c89"
4753     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4754 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4755 esac
4756 if test "x$ac_cv_prog_cc_c89" != xno; then :
4757
4758 fi
4759
4760 ac_ext=c
4761 ac_cpp='$CPP $CPPFLAGS'
4762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4765
4766 ac_ext=c
4767 ac_cpp='$CPP $CPPFLAGS'
4768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4772 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4773 if ${am_cv_prog_cc_c_o+:} false; then :
4774   $as_echo_n "(cached) " >&6
4775 else
4776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h.  */
4778
4779 int
4780 main ()
4781 {
4782
4783   ;
4784   return 0;
4785 }
4786 _ACEOF
4787   # Make sure it works both with $CC and with simple cc.
4788   # Following AC_PROG_CC_C_O, we do the test twice because some
4789   # compilers refuse to overwrite an existing .o file with -o,
4790   # though they will create one.
4791   am_cv_prog_cc_c_o=yes
4792   for am_i in 1 2; do
4793     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4794    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4795    ac_status=$?
4796    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797    (exit $ac_status); } \
4798          && test -f conftest2.$ac_objext; then
4799       : OK
4800     else
4801       am_cv_prog_cc_c_o=no
4802       break
4803     fi
4804   done
4805   rm -f core conftest*
4806   unset am_i
4807 fi
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4809 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4810 if test "$am_cv_prog_cc_c_o" != yes; then
4811    # Losing compiler, so override with the script.
4812    # FIXME: It is wrong to rewrite CC.
4813    # But if we don't then we get into trouble of one sort or another.
4814    # A longer-term fix would be to have automake use am__CC in this case,
4815    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4816    CC="$am_aux_dir/compile $CC"
4817 fi
4818 ac_ext=c
4819 ac_cpp='$CPP $CPPFLAGS'
4820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4823
4824 DEPDIR="${am__leading_dot}deps"
4825
4826 ac_config_commands="$ac_config_commands depfiles"
4827
4828
4829 am_make=${MAKE-make}
4830 cat > confinc << 'END'
4831 am__doit:
4832         @echo this is the am__doit target
4833 .PHONY: am__doit
4834 END
4835 # If we don't find an include directive, just comment out the code.
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4837 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4838 am__include="#"
4839 am__quote=
4840 _am_result=none
4841 # First try GNU make style include.
4842 echo "include confinc" > confmf
4843 # Ignore all kinds of additional output from 'make'.
4844 case `$am_make -s -f confmf 2> /dev/null` in #(
4845 *the\ am__doit\ target*)
4846   am__include=include
4847   am__quote=
4848   _am_result=GNU
4849   ;;
4850 esac
4851 # Now try BSD make style include.
4852 if test "$am__include" = "#"; then
4853    echo '.include "confinc"' > confmf
4854    case `$am_make -s -f confmf 2> /dev/null` in #(
4855    *the\ am__doit\ target*)
4856      am__include=.include
4857      am__quote="\""
4858      _am_result=BSD
4859      ;;
4860    esac
4861 fi
4862
4863
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4865 $as_echo "$_am_result" >&6; }
4866 rm -f confinc confmf
4867
4868 # Check whether --enable-dependency-tracking was given.
4869 if test "${enable_dependency_tracking+set}" = set; then :
4870   enableval=$enable_dependency_tracking;
4871 fi
4872
4873 if test "x$enable_dependency_tracking" != xno; then
4874   am_depcomp="$ac_aux_dir/depcomp"
4875   AMDEPBACKSLASH='\'
4876   am__nodep='_no'
4877 fi
4878  if test "x$enable_dependency_tracking" != xno; then
4879   AMDEP_TRUE=
4880   AMDEP_FALSE='#'
4881 else
4882   AMDEP_TRUE='#'
4883   AMDEP_FALSE=
4884 fi
4885
4886
4887
4888 depcc="$CC"   am_compiler_list=
4889
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4891 $as_echo_n "checking dependency style of $depcc... " >&6; }
4892 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4893   $as_echo_n "(cached) " >&6
4894 else
4895   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4896   # We make a subdir and do the tests there.  Otherwise we can end up
4897   # making bogus files that we don't know about and never remove.  For
4898   # instance it was reported that on HP-UX the gcc test will end up
4899   # making a dummy file named 'D' -- because '-MD' means "put the output
4900   # in D".
4901   rm -rf conftest.dir
4902   mkdir conftest.dir
4903   # Copy depcomp to subdir because otherwise we won't find it if we're
4904   # using a relative directory.
4905   cp "$am_depcomp" conftest.dir
4906   cd conftest.dir
4907   # We will build objects and dependencies in a subdirectory because
4908   # it helps to detect inapplicable dependency modes.  For instance
4909   # both Tru64's cc and ICC support -MD to output dependencies as a
4910   # side effect of compilation, but ICC will put the dependencies in
4911   # the current directory while Tru64 will put them in the object
4912   # directory.
4913   mkdir sub
4914
4915   am_cv_CC_dependencies_compiler_type=none
4916   if test "$am_compiler_list" = ""; then
4917      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4918   fi
4919   am__universal=false
4920   case " $depcc " in #(
4921      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4922      esac
4923
4924   for depmode in $am_compiler_list; do
4925     # Setup a source with many dependencies, because some compilers
4926     # like to wrap large dependency lists on column 80 (with \), and
4927     # we should not choose a depcomp mode which is confused by this.
4928     #
4929     # We need to recreate these files for each test, as the compiler may
4930     # overwrite some of them when testing with obscure command lines.
4931     # This happens at least with the AIX C compiler.
4932     : > sub/conftest.c
4933     for i in 1 2 3 4 5 6; do
4934       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4935       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4936       # Solaris 10 /bin/sh.
4937       echo '/* dummy */' > sub/conftst$i.h
4938     done
4939     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4940
4941     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4942     # mode.  It turns out that the SunPro C++ compiler does not properly
4943     # handle '-M -o', and we need to detect this.  Also, some Intel
4944     # versions had trouble with output in subdirs.
4945     am__obj=sub/conftest.${OBJEXT-o}
4946     am__minus_obj="-o $am__obj"
4947     case $depmode in
4948     gcc)
4949       # This depmode causes a compiler race in universal mode.
4950       test "$am__universal" = false || continue
4951       ;;
4952     nosideeffect)
4953       # After this tag, mechanisms are not by side-effect, so they'll
4954       # only be used when explicitly requested.
4955       if test "x$enable_dependency_tracking" = xyes; then
4956         continue
4957       else
4958         break
4959       fi
4960       ;;
4961     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4962       # This compiler won't grok '-c -o', but also, the minuso test has
4963       # not run yet.  These depmodes are late enough in the game, and
4964       # so weak that their functioning should not be impacted.
4965       am__obj=conftest.${OBJEXT-o}
4966       am__minus_obj=
4967       ;;
4968     none) break ;;
4969     esac
4970     if depmode=$depmode \
4971        source=sub/conftest.c object=$am__obj \
4972        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4973        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4974          >/dev/null 2>conftest.err &&
4975        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4976        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4977        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4978        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4979       # icc doesn't choke on unknown options, it will just issue warnings
4980       # or remarks (even with -Werror).  So we grep stderr for any message
4981       # that says an option was ignored or not supported.
4982       # When given -MP, icc 7.0 and 7.1 complain thusly:
4983       #   icc: Command line warning: ignoring option '-M'; no argument required
4984       # The diagnosis changed in icc 8.0:
4985       #   icc: Command line remark: option '-MP' not supported
4986       if (grep 'ignoring option' conftest.err ||
4987           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4988         am_cv_CC_dependencies_compiler_type=$depmode
4989         break
4990       fi
4991     fi
4992   done
4993
4994   cd ..
4995   rm -rf conftest.dir
4996 else
4997   am_cv_CC_dependencies_compiler_type=none
4998 fi
4999
5000 fi
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5002 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5003 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5004
5005  if
5006   test "x$enable_dependency_tracking" != xno \
5007   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5008   am__fastdepCC_TRUE=
5009   am__fastdepCC_FALSE='#'
5010 else
5011   am__fastdepCC_TRUE='#'
5012   am__fastdepCC_FALSE=
5013 fi
5014
5015
5016
5017 for ac_prog in 'bison -y' byacc
5018 do
5019   # Extract the first word of "$ac_prog", so it can be a program name with args.
5020 set dummy $ac_prog; ac_word=$2
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if ${ac_cv_prog_YACC+:} false; then :
5024   $as_echo_n "(cached) " >&6
5025 else
5026   if test -n "$YACC"; then
5027   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5028 else
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032   IFS=$as_save_IFS
5033   test -z "$as_dir" && as_dir=.
5034     for ac_exec_ext in '' $ac_executable_extensions; do
5035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036     ac_cv_prog_YACC="$ac_prog"
5037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038     break 2
5039   fi
5040 done
5041   done
5042 IFS=$as_save_IFS
5043
5044 fi
5045 fi
5046 YACC=$ac_cv_prog_YACC
5047 if test -n "$YACC"; then
5048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5049 $as_echo "$YACC" >&6; }
5050 else
5051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052 $as_echo "no" >&6; }
5053 fi
5054
5055
5056   test -n "$YACC" && break
5057 done
5058 test -n "$YACC" || YACC="yacc"
5059
5060
5061
5062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5
5063 $as_echo_n "checking whether to use Java... " >&6; }
5064   # Check whether --enable-java was given.
5065 if test "${enable_java+set}" = set; then :
5066   enableval=$enable_java; JAVA_CHOICE="$enableval"
5067 else
5068   JAVA_CHOICE=yes
5069 fi
5070
5071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5
5072 $as_echo "$JAVA_CHOICE" >&6; }
5073   if test "$JAVA_CHOICE" = yes; then
5074     # Check whether --enable-native-java was given.
5075 if test "${enable_native_java+set}" = set; then :
5076   enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
5077 fi
5078
5079   fi
5080
5081
5082
5083
5084 ac_ext=c
5085 ac_cpp='$CPP $CPPFLAGS'
5086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5090 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5091 # On Suns, sometimes $CPP names a directory.
5092 if test -n "$CPP" && test -d "$CPP"; then
5093   CPP=
5094 fi
5095 if test -z "$CPP"; then
5096   if ${ac_cv_prog_CPP+:} false; then :
5097   $as_echo_n "(cached) " >&6
5098 else
5099       # Double quotes because CPP needs to be expanded
5100     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5101     do
5102       ac_preproc_ok=false
5103 for ac_c_preproc_warn_flag in '' yes
5104 do
5105   # Use a header file that comes with gcc, so configuring glibc
5106   # with a fresh cross-compiler works.
5107   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5108   # <limits.h> exists even on freestanding compilers.
5109   # On the NeXT, cc -E runs the code through the compiler's parser,
5110   # not just through cpp. "Syntax error" is here to catch this case.
5111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h.  */
5113 #ifdef __STDC__
5114 # include <limits.h>
5115 #else
5116 # include <assert.h>
5117 #endif
5118                      Syntax error
5119 _ACEOF
5120 if ac_fn_c_try_cpp "$LINENO"; then :
5121
5122 else
5123   # Broken: fails on valid input.
5124 continue
5125 fi
5126 rm -f conftest.err conftest.i conftest.$ac_ext
5127
5128   # OK, works on sane cases.  Now check whether nonexistent headers
5129   # can be detected and how.
5130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h.  */
5132 #include <ac_nonexistent.h>
5133 _ACEOF
5134 if ac_fn_c_try_cpp "$LINENO"; then :
5135   # Broken: success on invalid input.
5136 continue
5137 else
5138   # Passes both tests.
5139 ac_preproc_ok=:
5140 break
5141 fi
5142 rm -f conftest.err conftest.i conftest.$ac_ext
5143
5144 done
5145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5146 rm -f conftest.i conftest.err conftest.$ac_ext
5147 if $ac_preproc_ok; then :
5148   break
5149 fi
5150
5151     done
5152     ac_cv_prog_CPP=$CPP
5153
5154 fi
5155   CPP=$ac_cv_prog_CPP
5156 else
5157   ac_cv_prog_CPP=$CPP
5158 fi
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5160 $as_echo "$CPP" >&6; }
5161 ac_preproc_ok=false
5162 for ac_c_preproc_warn_flag in '' yes
5163 do
5164   # Use a header file that comes with gcc, so configuring glibc
5165   # with a fresh cross-compiler works.
5166   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5167   # <limits.h> exists even on freestanding compilers.
5168   # On the NeXT, cc -E runs the code through the compiler's parser,
5169   # not just through cpp. "Syntax error" is here to catch this case.
5170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h.  */
5172 #ifdef __STDC__
5173 # include <limits.h>
5174 #else
5175 # include <assert.h>
5176 #endif
5177                      Syntax error
5178 _ACEOF
5179 if ac_fn_c_try_cpp "$LINENO"; then :
5180
5181 else
5182   # Broken: fails on valid input.
5183 continue
5184 fi
5185 rm -f conftest.err conftest.i conftest.$ac_ext
5186
5187   # OK, works on sane cases.  Now check whether nonexistent headers
5188   # can be detected and how.
5189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190 /* end confdefs.h.  */
5191 #include <ac_nonexistent.h>
5192 _ACEOF
5193 if ac_fn_c_try_cpp "$LINENO"; then :
5194   # Broken: success on invalid input.
5195 continue
5196 else
5197   # Passes both tests.
5198 ac_preproc_ok=:
5199 break
5200 fi
5201 rm -f conftest.err conftest.i conftest.$ac_ext
5202
5203 done
5204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5205 rm -f conftest.i conftest.err conftest.$ac_ext
5206 if $ac_preproc_ok; then :
5207
5208 else
5209   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5211 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5212 See \`config.log' for more details" "$LINENO" 5; }
5213 fi
5214
5215 ac_ext=c
5216 ac_cpp='$CPP $CPPFLAGS'
5217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5220
5221
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5223 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5224 if ${ac_cv_path_GREP+:} false; then :
5225   $as_echo_n "(cached) " >&6
5226 else
5227   if test -z "$GREP"; then
5228   ac_path_GREP_found=false
5229   # Loop through the user's path and test for each of PROGNAME-LIST
5230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5232 do
5233   IFS=$as_save_IFS
5234   test -z "$as_dir" && as_dir=.
5235     for ac_prog in grep ggrep; do
5236     for ac_exec_ext in '' $ac_executable_extensions; do
5237       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5238       as_fn_executable_p "$ac_path_GREP" || continue
5239 # Check for GNU ac_path_GREP and select it if it is found.
5240   # Check for GNU $ac_path_GREP
5241 case `"$ac_path_GREP" --version 2>&1` in
5242 *GNU*)
5243   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5244 *)
5245   ac_count=0
5246   $as_echo_n 0123456789 >"conftest.in"
5247   while :
5248   do
5249     cat "conftest.in" "conftest.in" >"conftest.tmp"
5250     mv "conftest.tmp" "conftest.in"
5251     cp "conftest.in" "conftest.nl"
5252     $as_echo 'GREP' >> "conftest.nl"
5253     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5254     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5255     as_fn_arith $ac_count + 1 && ac_count=$as_val
5256     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5257       # Best one so far, save it but keep looking for a better one
5258       ac_cv_path_GREP="$ac_path_GREP"
5259       ac_path_GREP_max=$ac_count
5260     fi
5261     # 10*(2^10) chars as input seems more than enough
5262     test $ac_count -gt 10 && break
5263   done
5264   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5265 esac
5266
5267       $ac_path_GREP_found && break 3
5268     done
5269   done
5270   done
5271 IFS=$as_save_IFS
5272   if test -z "$ac_cv_path_GREP"; then
5273     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5274   fi
5275 else
5276   ac_cv_path_GREP=$GREP
5277 fi
5278
5279 fi
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5281 $as_echo "$ac_cv_path_GREP" >&6; }
5282  GREP="$ac_cv_path_GREP"
5283
5284
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5286 $as_echo_n "checking for egrep... " >&6; }
5287 if ${ac_cv_path_EGREP+:} false; then :
5288   $as_echo_n "(cached) " >&6
5289 else
5290   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5291    then ac_cv_path_EGREP="$GREP -E"
5292    else
5293      if test -z "$EGREP"; then
5294   ac_path_EGREP_found=false
5295   # Loop through the user's path and test for each of PROGNAME-LIST
5296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5298 do
5299   IFS=$as_save_IFS
5300   test -z "$as_dir" && as_dir=.
5301     for ac_prog in egrep; do
5302     for ac_exec_ext in '' $ac_executable_extensions; do
5303       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5304       as_fn_executable_p "$ac_path_EGREP" || continue
5305 # Check for GNU ac_path_EGREP and select it if it is found.
5306   # Check for GNU $ac_path_EGREP
5307 case `"$ac_path_EGREP" --version 2>&1` in
5308 *GNU*)
5309   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5310 *)
5311   ac_count=0
5312   $as_echo_n 0123456789 >"conftest.in"
5313   while :
5314   do
5315     cat "conftest.in" "conftest.in" >"conftest.tmp"
5316     mv "conftest.tmp" "conftest.in"
5317     cp "conftest.in" "conftest.nl"
5318     $as_echo 'EGREP' >> "conftest.nl"
5319     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5320     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5321     as_fn_arith $ac_count + 1 && ac_count=$as_val
5322     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5323       # Best one so far, save it but keep looking for a better one
5324       ac_cv_path_EGREP="$ac_path_EGREP"
5325       ac_path_EGREP_max=$ac_count
5326     fi
5327     # 10*(2^10) chars as input seems more than enough
5328     test $ac_count -gt 10 && break
5329   done
5330   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5331 esac
5332
5333       $ac_path_EGREP_found && break 3
5334     done
5335   done
5336   done
5337 IFS=$as_save_IFS
5338   if test -z "$ac_cv_path_EGREP"; then
5339     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5340   fi
5341 else
5342   ac_cv_path_EGREP=$EGREP
5343 fi
5344
5345    fi
5346 fi
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5348 $as_echo "$ac_cv_path_EGREP" >&6; }
5349  EGREP="$ac_cv_path_EGREP"
5350
5351
5352
5353
5354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h.  */
5356
5357 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
5358   yes
5359 #endif
5360
5361 _ACEOF
5362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5363   $EGREP "yes" >/dev/null 2>&1; then :
5364   CLASSPATH_SEPARATOR=';'
5365 else
5366   CLASSPATH_SEPARATOR=':'
5367 fi
5368 rm -f conftest*
5369
5370   source_version=1.3
5371   test -n "$source_version" || {
5372     as_fn_error $? "missing source-version argument to gt_JAVACOMP" "$LINENO" 5
5373   }
5374   target_version=1.1
5375   case "$source_version" in
5376     1.3) goodcode='class conftest {}'
5377          failcode='class conftestfail { static { assert(true); } }' ;;
5378     1.4) goodcode='class conftest     { static { assert(true); } }'
5379          failcode='class conftestfail<T> { T foo() { return null; } }' ;;
5380     1.5) goodcode='class conftest<T>     { T foo() { return null; } }'
5381          failcode='class conftestfail syntax error' ;;
5382     *) as_fn_error $? "invalid source-version argument to gt_JAVACOMP: $source_version" "$LINENO" 5 ;;
5383   esac
5384   case "$target_version" in
5385     1.1) cfversion=45 ;;
5386     1.2) cfversion=46 ;;
5387     1.3) cfversion=47 ;;
5388     1.4) cfversion=48 ;;
5389     1.5) cfversion=49 ;;
5390     1.6) cfversion=50 ;;
5391     *) as_fn_error $? "invalid target-version argument to gt_JAVACOMP: $target_version" "$LINENO" 5 ;;
5392   esac
5393   # Function to output the classfile version of a file (8th byte) in decimal.
5394   if od -A x < /dev/null >/dev/null 2>/dev/null; then
5395     # Use POSIX od.
5396     func_classfile_version ()
5397     {
5398       od -A n -t d1 -j 7 -N 1 "$1"
5399     }
5400   else
5401     # Use BSD hexdump.
5402     func_classfile_version ()
5403     {
5404       dd if="$1" bs=1 count=1 skip=7 2>/dev/null | hexdump -e '1/1 "%3d "'
5405       echo
5406     }
5407   fi
5408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java compiler" >&5
5409 $as_echo_n "checking for Java compiler... " >&6; }
5410                                                                                         CONF_JAVAC=
5411   HAVE_JAVAC_ENVVAR=
5412   HAVE_GCJ_C=
5413   HAVE_JAVAC=
5414   HAVE_JIKES=
5415   HAVE_JAVACOMP=
5416   cat > conftestlib.java <<EOF
5417 public class conftestlib {
5418   public static void main (String[] args) {
5419   }
5420 }
5421 EOF
5422   echo "$goodcode" > conftest.java
5423   echo "$failcode" > conftestfail.java
5424         if test -n "$JAVAC"; then
5425         if $JAVAC --version 2>/dev/null | sed -e 1q | grep gcj > /dev/null; then
5426             if $JAVAC --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
5427                         rm -f conftest.class
5428         if { echo "$as_me:5428: $JAVAC -d . conftest.java" >&5
5429              $JAVAC -d . conftest.java >&5 2>&1
5430            } \
5431            && test -f conftest.class \
5432            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5433                     rm -f conftest.class
5434           rm -f conftestfail.class
5435           if { echo "$as_me:5435: $JAVAC -fsource=$source_version -d . conftest.java" >&5
5436                $JAVAC -fsource="$source_version" -d . conftest.java >&5 2>&1
5437              } \
5438              && test -f conftest.class \
5439              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5440              && { echo "$as_me:5440: $JAVAC -d . conftestfail.java" >&5
5441                   $JAVAC -d . conftestfail.java >&5 2>&1
5442                 } \
5443              && test -f conftestfail.class \
5444              && ! { echo "$as_me:5444: $JAVAC -fsource=$source_version -d . conftestfail.java" >&5
5445                     $JAVAC -fsource="$source_version" -d . conftestfail.java >&5 2>&1
5446                   }; then
5447             CONF_JAVAC="$JAVAC -fsource=$source_version"
5448             HAVE_JAVAC_ENVVAR=1
5449             HAVE_JAVACOMP=1
5450           else
5451             CONF_JAVAC="$JAVAC"
5452             HAVE_JAVAC_ENVVAR=1
5453             HAVE_JAVACOMP=1
5454           fi
5455         else
5456                     rm -f conftest.class
5457           rm -f conftestfail.class
5458           if { echo "$as_me:5458: $JAVAC -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
5459                $JAVAC -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
5460              } \
5461              && test -f conftest.class \
5462              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5463             CONF_JAVAC="$JAVAC -fsource=$source_version -ftarget=$target_version"
5464             HAVE_JAVAC_ENVVAR=1
5465             HAVE_JAVACOMP=1
5466           fi
5467         fi
5468       else
5469                 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
5470                     rm -f conftest.class
5471           if { echo "$as_me:5471: $JAVAC -d . conftest.java" >&5
5472                $JAVAC -d . conftest.java >&5 2>&1
5473              } \
5474              && test -f conftest.class; then
5475             CONF_JAVAC="$JAVAC"
5476             HAVE_JAVAC_ENVVAR=1
5477             HAVE_JAVACOMP=1
5478           fi
5479         else
5480           if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
5481                                     javac_works=
5482             rm -f conftest.class
5483             if { echo "$as_me:5483: $JAVAC -d . conftest.java" >&5
5484                  $JAVAC -d . conftest.java >&5 2>&1
5485                } \
5486                && test -f conftest.class; then
5487               javac_works=1
5488             fi
5489             javac_noassert_works=
5490             rm -f conftest.class
5491             if { echo "$as_me:5491: $JAVAC -fno-assert -d . conftest.java" >&5
5492                  $JAVAC -fno-assert -d . conftest.java >&5 2>&1
5493                } \
5494                && test -f conftest.class; then
5495               javac_noassert_works=1
5496             fi
5497             if test -n "$javac_works" && test -n "$javac_noassert_works"; then
5498               rm -f conftestfail.class
5499               if { echo "$as_me:5499: $JAVAC -d . conftestfail.java" >&5
5500                    $JAVAC -d . conftestfail.java >&5 2>&1
5501                  } \
5502                  && test -f conftestfail.class \
5503                  && ! { echo "$as_me:5503: $JAVAC -fno-assert -d . conftestfail.java" >&5
5504                         $JAVAC -fno-assert -d . conftestfail.java >&5 2>&1
5505                       }; then
5506                                 javac_works=
5507               fi
5508             fi
5509             if test -n "$javac_works"; then
5510               CONF_JAVAC="$JAVAC"
5511               HAVE_JAVAC_ENVVAR=1
5512               HAVE_JAVACOMP=1
5513             else
5514               if test -n "$javac_noassert_works"; then
5515                 CONF_JAVAC="$JAVAC -fno-assert"
5516                 HAVE_JAVAC_ENVVAR=1
5517                 HAVE_JAVACOMP=1
5518               fi
5519             fi
5520           fi
5521         fi
5522       fi
5523     else
5524                   rm -f conftest.class
5525       if { echo "$as_me:5525: $JAVAC -d . conftest.java" >&5
5526            $JAVAC -d . conftest.java >&5 2>&1
5527          } \
5528          && test -f conftest.class \
5529          && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5530                 rm -f conftest.class
5531         rm -f conftestfail.class
5532         if { echo "$as_me:5532: $JAVAC -source $source_version -d . conftest.java" >&5
5533              $JAVAC -source "$source_version" -d . conftest.java >&5 2>&1
5534            } \
5535            && test -f conftest.class \
5536            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5537            && { echo "$as_me:5537: $JAVAC -d . conftestfail.java" >&5
5538                 $JAVAC -d . conftestfail.java >&5 2>&1
5539               } \
5540            && test -f conftestfail.class \
5541            && ! { echo "$as_me:5541: $JAVAC -source $source_version -d . conftestfail.java" >&5
5542                   $JAVAC -source "$source_version" -d . conftestfail.java >&5 2>&1
5543                 }; then
5544           CONF_JAVAC="$JAVAC -source $source_version"
5545           HAVE_JAVAC_ENVVAR=1
5546           HAVE_JAVACOMP=1
5547         else
5548           CONF_JAVAC="$JAVAC"
5549           HAVE_JAVAC_ENVVAR=1
5550           HAVE_JAVACOMP=1
5551         fi
5552       else
5553                         rm -f conftest.class
5554         if { echo "$as_me:5554: $JAVAC -target $target_version -d . conftest.java" >&5
5555              $JAVAC -target "$target_version" -d . conftest.java >&5 2>&1
5556            } \
5557            && test -f conftest.class \
5558            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5559                     rm -f conftest.class
5560           rm -f conftestfail.class
5561           if { echo "$as_me:5561: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
5562                $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
5563              } \
5564              && test -f conftest.class \
5565              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5566              && { echo "$as_me:5566: $JAVAC -target $target_version -d . conftestfail.java" >&5
5567                   $JAVAC -target "$target_version" -d . conftestfail.java >&5 2>&1
5568                 } \
5569              && test -f conftestfail.class \
5570              && ! { echo "$as_me:5570: $JAVAC -target $target_version -source $source_version -d . conftestfail.java" >&5
5571                     $JAVAC -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
5572                   }; then
5573             CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
5574             HAVE_JAVAC_ENVVAR=1
5575             HAVE_JAVACOMP=1
5576           else
5577             CONF_JAVAC="$JAVAC -target $target_version"
5578             HAVE_JAVAC_ENVVAR=1
5579             HAVE_JAVACOMP=1
5580           fi
5581         else
5582                                         rm -f conftest.class
5583           if { echo "$as_me:5583: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
5584                $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
5585              } \
5586              && test -f conftest.class \
5587              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5588             CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
5589             HAVE_JAVAC_ENVVAR=1
5590             HAVE_JAVACOMP=1
5591           fi
5592         fi
5593       fi
5594     fi
5595   fi
5596   if test -z "$HAVE_JAVACOMP"; then
5597                 # Extract the first word of "gcj", so it can be a program name with args.
5598 set dummy gcj; ac_word=$2
5599 :
5600 if ${ac_cv_prog_HAVE_GCJ_IN_PATH+:} false; then :
5601   $as_echo_n "(cached) " >&6
5602 else
5603   if test -n "$HAVE_GCJ_IN_PATH"; then
5604   ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the test.
5605 else
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH
5608 do
5609   IFS=$as_save_IFS
5610   test -z "$as_dir" && as_dir=.
5611     for ac_exec_ext in '' $ac_executable_extensions; do
5612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5613     ac_cv_prog_HAVE_GCJ_IN_PATH="yes"
5614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5615     break 2
5616   fi
5617 done
5618   done
5619 IFS=$as_save_IFS
5620
5621 fi
5622 fi
5623 HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH
5624 if test -n "$HAVE_GCJ_IN_PATH"; then
5625   :
5626 else
5627   :
5628 fi
5629
5630
5631     # Extract the first word of "javac", so it can be a program name with args.
5632 set dummy javac; ac_word=$2
5633 :
5634 if ${ac_cv_prog_HAVE_JAVAC_IN_PATH+:} false; then :
5635   $as_echo_n "(cached) " >&6
5636 else
5637   if test -n "$HAVE_JAVAC_IN_PATH"; then
5638   ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override the test.
5639 else
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH
5642 do
5643   IFS=$as_save_IFS
5644   test -z "$as_dir" && as_dir=.
5645     for ac_exec_ext in '' $ac_executable_extensions; do
5646   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5647     ac_cv_prog_HAVE_JAVAC_IN_PATH="yes"
5648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649     break 2
5650   fi
5651 done
5652   done
5653 IFS=$as_save_IFS
5654
5655 fi
5656 fi
5657 HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH
5658 if test -n "$HAVE_JAVAC_IN_PATH"; then
5659   :
5660 else
5661   :
5662 fi
5663
5664
5665     # Extract the first word of "jikes", so it can be a program name with args.
5666 set dummy jikes; ac_word=$2
5667 :
5668 if ${ac_cv_prog_HAVE_JIKES_IN_PATH+:} false; then :
5669   $as_echo_n "(cached) " >&6
5670 else
5671   if test -n "$HAVE_JIKES_IN_PATH"; then
5672   ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override the test.
5673 else
5674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675 for as_dir in $PATH
5676 do
5677   IFS=$as_save_IFS
5678   test -z "$as_dir" && as_dir=.
5679     for ac_exec_ext in '' $ac_executable_extensions; do
5680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5681     ac_cv_prog_HAVE_JIKES_IN_PATH="yes"
5682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683     break 2
5684   fi
5685 done
5686   done
5687 IFS=$as_save_IFS
5688
5689 fi
5690 fi
5691 HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH
5692 if test -n "$HAVE_JIKES_IN_PATH"; then
5693   :
5694 else
5695   :
5696 fi
5697
5698
5699                 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_GCJ_IN_PATH"; then
5700             if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[01]/d' | grep '^[3-9]' >/dev/null; then
5701                 if { echo "$as_me:5701: gcj -C -d . conftestlib.java" >&5
5702              gcj -C -d . conftestlib.java >&5 2>&1
5703            }; then
5704                     if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
5705                                     rm -f conftest.class
5706             if { echo "$as_me:5706: gcj -C -d . conftest.java" >&5
5707                  gcj -C -d . conftest.java >&5 2>&1
5708                } \
5709                && test -f conftest.class \
5710                && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5711                             rm -f conftest.class
5712               rm -f conftestfail.class
5713               if { echo "$as_me:5713: gcj -C -fsource=$source_version -d . conftest.java" >&5
5714                    gcj -C -fsource="$source_version" -d . conftest.java >&5 2>&1
5715                  } \
5716                  && test -f conftest.class \
5717                  && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5718                  && { echo "$as_me:5718: gcj -C -d . conftestfail.java" >&5
5719                       gcj -C -d . conftestfail.java >&5 2>&1
5720                     } \
5721                  && test -f conftestfail.class \
5722                  && ! { echo "$as_me:5722: gcj -C -fsource=$source_version -d . conftestfail.java" >&5
5723                         gcj -C -fsource="$source_version" -d . conftestfail.java >&5 2>&1
5724                       }; then
5725                 CONF_JAVAC="gcj -C -fsource=$source_version"
5726                 HAVE_JAVAC_ENVVAR=1
5727                 HAVE_JAVACOMP=1
5728               else
5729                 CONF_JAVAC="gcj -C"
5730                 HAVE_JAVAC_ENVVAR=1
5731                 HAVE_JAVACOMP=1
5732               fi
5733             else
5734                             rm -f conftest.class
5735               rm -f conftestfail.class
5736               if { echo "$as_me:5736: gcj -C -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
5737                    gcj -C -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
5738                  } \
5739                  && test -f conftest.class \
5740                  && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5741                 CONF_JAVAC="gcj -C -fsource=$source_version -ftarget=$target_version"
5742                 HAVE_JAVAC_ENVVAR=1
5743                 HAVE_JAVACOMP=1
5744               fi
5745             fi
5746           else
5747                                                 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
5748               rm -f conftest.class
5749               if { echo "$as_me:5749: gcj -C -d . conftest.java" >&5
5750                    gcj -C -d . conftest.java >&5 2>&1
5751                  } \
5752                  && test -f conftest.class; then
5753                 CONF_JAVAC="gcj -C"
5754                 HAVE_GCJ_C=1
5755                 HAVE_JAVACOMP=1
5756               fi
5757             else
5758               if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
5759                                                 rm -f conftest.class
5760                 if { echo "$as_me:5760: gcj -C -fno-assert -d . conftest.java" >&5
5761                      gcj -C -fno-assert -d . conftest.java >&5 2>&1
5762                    } \
5763                    && test -f conftest.class; then
5764                   CONF_JAVAC="gcj -C -fno-assert"
5765                   HAVE_GCJ_C=1
5766                   HAVE_JAVACOMP=1
5767                 else
5768                   rm -f conftest.class
5769                   if { echo "$as_me:5769: gcj -C -d . conftest.java" >&5
5770                        gcj -C -d . conftest.java >&5 2>&1
5771                      } \
5772                      && test -f conftest.class; then
5773                     CONF_JAVAC="gcj -C"
5774                     HAVE_GCJ_C=1
5775                     HAVE_JAVACOMP=1
5776                   fi
5777                 fi
5778               fi
5779             fi
5780           fi
5781         fi
5782       fi
5783     fi
5784     if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JAVAC_IN_PATH"; then
5785             if { javac -version >/dev/null 2>/dev/null || test $? -le 2; } \
5786          && ( 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
5787                                 rm -f conftest.class
5788         if { echo "$as_me:5788: javac -d . conftest.java" >&5
5789              javac -d . conftest.java >&5 2>&1
5790            } \
5791            && test -f conftest.class \
5792            && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5793                     rm -f conftest.class
5794           rm -f conftestfail.class
5795           if { echo "$as_me:5795: javac -source $source_version -d . conftest.java" >&5
5796                javac -source "$source_version" -d . conftest.java >&5 2>&1
5797              } \
5798              && test -f conftest.class \
5799              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5800              && { echo "$as_me:5800: javac -d . conftestfail.java" >&5
5801                   javac -d . conftestfail.java >&5 2>&1
5802                 } \
5803              && test -f conftestfail.class \
5804              && ! { echo "$as_me:5804: javac -source $source_version -d . conftestfail.java" >&5
5805                     javac -source "$source_version" -d . conftestfail.java >&5 2>&1
5806                   }; then
5807             CONF_JAVAC="javac -source $source_version"
5808             HAVE_JAVAC=1
5809             HAVE_JAVACOMP=1
5810           else
5811             CONF_JAVAC="javac"
5812             HAVE_JAVAC=1
5813             HAVE_JAVACOMP=1
5814           fi
5815         else
5816                               rm -f conftest.class
5817           if { echo "$as_me:5817: javac -target $target_version -d . conftest.java" >&5
5818                javac -target "$target_version" -d . conftest.java >&5 2>&1
5819              } \
5820              && test -f conftest.class \
5821              && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5822                         rm -f conftest.class
5823             rm -f conftestfail.class
5824             if { echo "$as_me:5824: javac -target $target_version -source $source_version -d . conftest.java" >&5
5825                  javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
5826                } \
5827                && test -f conftest.class \
5828                && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5829                && { echo "$as_me:5829: javac -target $target_version -d . conftestfail.java" >&5
5830                     javac -target "$target_version" -d . conftestfail.java >&5 2>&1
5831                   } \
5832                && test -f conftestfail.class \
5833                && ! { echo "$as_me:5833: javac -target $target_version -source $source_version -d . conftestfail.java" >&5
5834                       javac -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
5835                     }; then
5836               CONF_JAVAC="javac -target $target_version -source $source_version"
5837               HAVE_JAVAC=1
5838               HAVE_JAVACOMP=1
5839             else
5840               CONF_JAVAC="javac -target $target_version"
5841               HAVE_JAVAC=1
5842               HAVE_JAVACOMP=1
5843             fi
5844           else
5845                                                 rm -f conftest.class
5846             if { echo "$as_me:5846: javac -target $target_version -source $source_version -d . conftest.java" >&5
5847                  javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
5848                } \
5849                && test -f conftest.class \
5850                && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5851               CONF_JAVAC="javac -target $target_version -source $source_version"
5852               HAVE_JAVAC=1
5853               HAVE_JAVACOMP=1
5854             fi
5855           fi
5856         fi
5857       fi
5858     fi
5859     if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JIKES_IN_PATH"; then
5860             if { jikes >/dev/null 2>/dev/null || test $? = 1; } \
5861          && (
5862               # See if the existing CLASSPATH is sufficient to make jikes work.
5863               unset JAVA_HOME
5864               jikes conftestlib.java >&5 2>&1
5865               error=$?
5866               rm -f conftestlib.class
5867               exit $error
5868             ); then
5869                                 if test "$source_version" = 1.3; then
5870           CONF_JAVAC="jikes"
5871           HAVE_JIKES=1
5872           HAVE_JAVACOMP=1
5873         fi
5874       fi
5875     fi
5876   fi
5877   rm -f conftest*.java conftest*.class
5878   if test -n "$HAVE_JAVACOMP"; then
5879     ac_result="$CONF_JAVAC"
5880   else
5881     ac_result="no"
5882   fi
5883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
5884 $as_echo "$ac_result" >&6; }
5885
5886
5887
5888
5889
5890
5891
5892
5893 # Extract the first word of "jar", so it can be a program name with args.
5894 set dummy jar; ac_word=$2
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if ${ac_cv_prog_JAR+:} false; then :
5898   $as_echo_n "(cached) " >&6
5899 else
5900   if test -n "$JAR"; then
5901   ac_cv_prog_JAR="$JAR" # Let the user override the test.
5902 else
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5905 do
5906   IFS=$as_save_IFS
5907   test -z "$as_dir" && as_dir=.
5908     for ac_exec_ext in '' $ac_executable_extensions; do
5909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910     ac_cv_prog_JAR="jar"
5911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5912     break 2
5913   fi
5914 done
5915   done
5916 IFS=$as_save_IFS
5917
5918 fi
5919 fi
5920 JAR=$ac_cv_prog_JAR
5921 if test -n "$JAR"; then
5922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5923 $as_echo "$JAR" >&6; }
5924 else
5925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5927 fi
5928
5929
5930 if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then
5931   BUILDJAVA=yes
5932 else
5933   BUILDJAVA=no
5934 fi
5935
5936
5937
5938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred C# implementation" >&5
5939 $as_echo_n "checking for preferred C# implementation... " >&6; }
5940   # Check whether --enable-csharp was given.
5941 if test "${enable_csharp+set}" = set; then :
5942   enableval=$enable_csharp; CSHARP_CHOICE="$enableval"
5943 else
5944   CSHARP_CHOICE=any
5945 fi
5946
5947
5948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARP_CHOICE" >&5
5949 $as_echo "$CSHARP_CHOICE" >&6; }
5950   case "$CSHARP_CHOICE" in
5951     pnet)
5952
5953 $as_echo "#define CSHARP_CHOICE_PNET 1" >>confdefs.h
5954
5955       ;;
5956     mono)
5957
5958 $as_echo "#define CSHARP_CHOICE_MONO 1" >>confdefs.h
5959
5960       ;;
5961   esac
5962
5963
5964
5965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# compiler" >&5
5966 $as_echo_n "checking for C# compiler... " >&6; }
5967   HAVE_CSHARPCOMP=1
5968         # Extract the first word of "cscc", so it can be a program name with args.
5969 set dummy cscc; ac_word=$2
5970 :
5971 if ${ac_cv_prog_HAVE_CSCC_IN_PATH+:} false; then :
5972   $as_echo_n "(cached) " >&6
5973 else
5974   if test -n "$HAVE_CSCC_IN_PATH"; then
5975   ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test.
5976 else
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 for as_dir in $PATH
5979 do
5980   IFS=$as_save_IFS
5981   test -z "$as_dir" && as_dir=.
5982     for ac_exec_ext in '' $ac_executable_extensions; do
5983   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5984     ac_cv_prog_HAVE_CSCC_IN_PATH="yes"
5985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5986     break 2
5987   fi
5988 done
5989   done
5990 IFS=$as_save_IFS
5991
5992 fi
5993 fi
5994 HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH
5995 if test -n "$HAVE_CSCC_IN_PATH"; then
5996   :
5997 else
5998   :
5999 fi
6000
6001
6002   # Extract the first word of "mcs", so it can be a program name with args.
6003 set dummy mcs; ac_word=$2
6004 :
6005 if ${ac_cv_prog_HAVE_MCS_IN_PATH+:} false; then :
6006   $as_echo_n "(cached) " >&6
6007 else
6008   if test -n "$HAVE_MCS_IN_PATH"; then
6009   ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test.
6010 else
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH
6013 do
6014   IFS=$as_save_IFS
6015   test -z "$as_dir" && as_dir=.
6016     for ac_exec_ext in '' $ac_executable_extensions; do
6017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6018     ac_cv_prog_HAVE_MCS_IN_PATH="yes"
6019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6020     break 2
6021   fi
6022 done
6023   done
6024 IFS=$as_save_IFS
6025
6026 fi
6027 fi
6028 HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH
6029 if test -n "$HAVE_MCS_IN_PATH"; then
6030   :
6031 else
6032   :
6033 fi
6034
6035
6036   # Extract the first word of "csc", so it can be a program name with args.
6037 set dummy csc; ac_word=$2
6038 :
6039 if ${ac_cv_prog_HAVE_CSC_IN_PATH+:} false; then :
6040   $as_echo_n "(cached) " >&6
6041 else
6042   if test -n "$HAVE_CSC_IN_PATH"; then
6043   ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test.
6044 else
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH
6047 do
6048   IFS=$as_save_IFS
6049   test -z "$as_dir" && as_dir=.
6050     for ac_exec_ext in '' $ac_executable_extensions; do
6051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6052     ac_cv_prog_HAVE_CSC_IN_PATH="yes"
6053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054     break 2
6055   fi
6056 done
6057   done
6058 IFS=$as_save_IFS
6059
6060 fi
6061 fi
6062 HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH
6063 if test -n "$HAVE_CSC_IN_PATH"; then
6064   :
6065 else
6066   :
6067 fi
6068
6069
6070         for impl in "$CSHARP_CHOICE" pnet mono sscli no; do
6071     case "$impl" in
6072       pnet)
6073         if test -n "$HAVE_CSCC_IN_PATH" \
6074            && cscc --version >/dev/null 2>/dev/null \
6075            && (
6076              # See if pnetlib is well installed.
6077              echo 'class ConfTest { static void Main() { } }' > conftest.cs
6078              cscc -o conftest.exe conftest.cs 2>/dev/null
6079              error=$?
6080              rm -f conftest.cs conftest.exe
6081              exit $error
6082             ); then
6083           HAVE_CSCC=1
6084           ac_result="cscc"
6085           break
6086         fi
6087         ;;
6088       mono)
6089         if test -n "$HAVE_MCS_IN_PATH" \
6090            && mcs --version >/dev/null 2>/dev/null \
6091            && mcs --version 2>/dev/null | grep Mono >/dev/null; then
6092           HAVE_MCS=1
6093           ac_result="mcs"
6094           break
6095         fi
6096         ;;
6097       sscli)
6098         if test -n "$HAVE_CSC_IN_PATH" \
6099            && csc -help >/dev/null 2>/dev/null \
6100            && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then
6101           HAVE_CSC=1
6102           ac_result="csc"
6103           break
6104         fi
6105         ;;
6106       no)
6107         HAVE_CSHARPCOMP=
6108         ac_result="no"
6109         break
6110         ;;
6111     esac
6112   done
6113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5
6114 $as_echo "$ac_result" >&6; }
6115
6116
6117
6118     if test -z "${CSHARPCOMPFLAGS+set}"; then
6119     CSHARPCOMPFLAGS="-O -g"
6120   fi
6121
6122
6123 if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then
6124   BUILDCSHARP=yes
6125 else
6126   BUILDCSHARP=no
6127 fi
6128
6129
6130 # Make sure we can run config.sub.
6131 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6132   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6133
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6135 $as_echo_n "checking build system type... " >&6; }
6136 if ${ac_cv_build+:} false; then :
6137   $as_echo_n "(cached) " >&6
6138 else
6139   ac_build_alias=$build_alias
6140 test "x$ac_build_alias" = x &&
6141   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6142 test "x$ac_build_alias" = x &&
6143   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6144 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6145   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6146
6147 fi
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6149 $as_echo "$ac_cv_build" >&6; }
6150 case $ac_cv_build in
6151 *-*-*) ;;
6152 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6153 esac
6154 build=$ac_cv_build
6155 ac_save_IFS=$IFS; IFS='-'
6156 set x $ac_cv_build
6157 shift
6158 build_cpu=$1
6159 build_vendor=$2
6160 shift; shift
6161 # Remember, the first character of IFS is used to create $*,
6162 # except with old shells:
6163 build_os=$*
6164 IFS=$ac_save_IFS
6165 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6166
6167
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6169 $as_echo_n "checking host system type... " >&6; }
6170 if ${ac_cv_host+:} false; then :
6171   $as_echo_n "(cached) " >&6
6172 else
6173   if test "x$host_alias" = x; then
6174   ac_cv_host=$ac_cv_build
6175 else
6176   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6177     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6178 fi
6179
6180 fi
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6182 $as_echo "$ac_cv_host" >&6; }
6183 case $ac_cv_host in
6184 *-*-*) ;;
6185 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6186 esac
6187 host=$ac_cv_host
6188 ac_save_IFS=$IFS; IFS='-'
6189 set x $ac_cv_host
6190 shift
6191 host_cpu=$1
6192 host_vendor=$2
6193 shift; shift
6194 # Remember, the first character of IFS is used to create $*,
6195 # except with old shells:
6196 host_os=$*
6197 IFS=$ac_save_IFS
6198 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6199
6200
6201
6202
6203
6204
6205
6206
6207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6208 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
6209 if ${gl_cv_c_amsterdam_compiler+:} false; then :
6210   $as_echo_n "(cached) " >&6
6211 else
6212
6213       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h.  */
6215
6216 #ifdef __ACK__
6217 Amsterdam
6218 #endif
6219
6220 _ACEOF
6221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6222   $EGREP "Amsterdam" >/dev/null 2>&1; then :
6223   gl_cv_c_amsterdam_compiler=yes
6224 else
6225   gl_cv_c_amsterdam_compiler=no
6226 fi
6227 rm -f conftest*
6228
6229
6230 fi
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6232 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
6233   if test -z "$AR"; then
6234     if test $gl_cv_c_amsterdam_compiler = yes; then
6235       AR='cc -c.a'
6236       if test -z "$ARFLAGS"; then
6237         ARFLAGS='-o'
6238       fi
6239     else
6240                   if test -n "$ac_tool_prefix"; then
6241   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6242 set dummy ${ac_tool_prefix}ar; ac_word=$2
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244 $as_echo_n "checking for $ac_word... " >&6; }
6245 if ${ac_cv_prog_AR+:} false; then :
6246   $as_echo_n "(cached) " >&6
6247 else
6248   if test -n "$AR"; then
6249   ac_cv_prog_AR="$AR" # Let the user override the test.
6250 else
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 for as_dir in $PATH
6253 do
6254   IFS=$as_save_IFS
6255   test -z "$as_dir" && as_dir=.
6256     for ac_exec_ext in '' $ac_executable_extensions; do
6257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6258     ac_cv_prog_AR="${ac_tool_prefix}ar"
6259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6260     break 2
6261   fi
6262 done
6263   done
6264 IFS=$as_save_IFS
6265
6266 fi
6267 fi
6268 AR=$ac_cv_prog_AR
6269 if test -n "$AR"; then
6270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6271 $as_echo "$AR" >&6; }
6272 else
6273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274 $as_echo "no" >&6; }
6275 fi
6276
6277
6278 fi
6279 if test -z "$ac_cv_prog_AR"; then
6280   ac_ct_AR=$AR
6281   # Extract the first word of "ar", so it can be a program name with args.
6282 set dummy ar; ac_word=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6286   $as_echo_n "(cached) " >&6
6287 else
6288   if test -n "$ac_ct_AR"; then
6289   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6290 else
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 for as_dir in $PATH
6293 do
6294   IFS=$as_save_IFS
6295   test -z "$as_dir" && as_dir=.
6296     for ac_exec_ext in '' $ac_executable_extensions; do
6297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298     ac_cv_prog_ac_ct_AR="ar"
6299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6300     break 2
6301   fi
6302 done
6303   done
6304 IFS=$as_save_IFS
6305
6306 fi
6307 fi
6308 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6309 if test -n "$ac_ct_AR"; then
6310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6311 $as_echo "$ac_ct_AR" >&6; }
6312 else
6313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6315 fi
6316
6317   if test "x$ac_ct_AR" = x; then
6318     AR="ar"
6319   else
6320     case $cross_compiling:$ac_tool_warned in
6321 yes:)
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6324 ac_tool_warned=yes ;;
6325 esac
6326     AR=$ac_ct_AR
6327   fi
6328 else
6329   AR="$ac_cv_prog_AR"
6330 fi
6331
6332       if test -z "$ARFLAGS"; then
6333         ARFLAGS='cru'
6334       fi
6335     fi
6336   else
6337     if test -z "$ARFLAGS"; then
6338       ARFLAGS='cru'
6339     fi
6340   fi
6341
6342
6343   if test -z "$RANLIB"; then
6344     if test $gl_cv_c_amsterdam_compiler = yes; then
6345       RANLIB=':'
6346     else
6347             if test -n "$ac_tool_prefix"; then
6348   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6349 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351 $as_echo_n "checking for $ac_word... " >&6; }
6352 if ${ac_cv_prog_RANLIB+:} false; then :
6353   $as_echo_n "(cached) " >&6
6354 else
6355   if test -n "$RANLIB"; then
6356   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6357 else
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 for as_dir in $PATH
6360 do
6361   IFS=$as_save_IFS
6362   test -z "$as_dir" && as_dir=.
6363     for ac_exec_ext in '' $ac_executable_extensions; do
6364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6365     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6367     break 2
6368   fi
6369 done
6370   done
6371 IFS=$as_save_IFS
6372
6373 fi
6374 fi
6375 RANLIB=$ac_cv_prog_RANLIB
6376 if test -n "$RANLIB"; then
6377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6378 $as_echo "$RANLIB" >&6; }
6379 else
6380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381 $as_echo "no" >&6; }
6382 fi
6383
6384
6385 fi
6386 if test -z "$ac_cv_prog_RANLIB"; then
6387   ac_ct_RANLIB=$RANLIB
6388   # Extract the first word of "ranlib", so it can be a program name with args.
6389 set dummy ranlib; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6393   $as_echo_n "(cached) " >&6
6394 else
6395   if test -n "$ac_ct_RANLIB"; then
6396   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6400 do
6401   IFS=$as_save_IFS
6402   test -z "$as_dir" && as_dir=.
6403     for ac_exec_ext in '' $ac_executable_extensions; do
6404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405     ac_cv_prog_ac_ct_RANLIB="ranlib"
6406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407     break 2
6408   fi
6409 done
6410   done
6411 IFS=$as_save_IFS
6412
6413 fi
6414 fi
6415 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6416 if test -n "$ac_ct_RANLIB"; then
6417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6418 $as_echo "$ac_ct_RANLIB" >&6; }
6419 else
6420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6422 fi
6423
6424   if test "x$ac_ct_RANLIB" = x; then
6425     RANLIB=":"
6426   else
6427     case $cross_compiling:$ac_tool_warned in
6428 yes:)
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6431 ac_tool_warned=yes ;;
6432 esac
6433     RANLIB=$ac_ct_RANLIB
6434   fi
6435 else
6436   RANLIB="$ac_cv_prog_RANLIB"
6437 fi
6438
6439     fi
6440   fi
6441
6442
6443
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6445 $as_echo_n "checking for ANSI C header files... " >&6; }
6446 if ${ac_cv_header_stdc+:} false; then :
6447   $as_echo_n "(cached) " >&6
6448 else
6449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h.  */
6451 #include <stdlib.h>
6452 #include <stdarg.h>
6453 #include <string.h>
6454 #include <float.h>
6455
6456 int
6457 main ()
6458 {
6459
6460   ;
6461   return 0;
6462 }
6463 _ACEOF
6464 if ac_fn_c_try_compile "$LINENO"; then :
6465   ac_cv_header_stdc=yes
6466 else
6467   ac_cv_header_stdc=no
6468 fi
6469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6470
6471 if test $ac_cv_header_stdc = yes; then
6472   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h.  */
6475 #include <string.h>
6476
6477 _ACEOF
6478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6479   $EGREP "memchr" >/dev/null 2>&1; then :
6480
6481 else
6482   ac_cv_header_stdc=no
6483 fi
6484 rm -f conftest*
6485
6486 fi
6487
6488 if test $ac_cv_header_stdc = yes; then
6489   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h.  */
6492 #include <stdlib.h>
6493
6494 _ACEOF
6495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6496   $EGREP "free" >/dev/null 2>&1; then :
6497
6498 else
6499   ac_cv_header_stdc=no
6500 fi
6501 rm -f conftest*
6502
6503 fi
6504
6505 if test $ac_cv_header_stdc = yes; then
6506   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6507   if test "$cross_compiling" = yes; then :
6508   :
6509 else
6510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h.  */
6512 #include <ctype.h>
6513 #include <stdlib.h>
6514 #if ((' ' & 0x0FF) == 0x020)
6515 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6516 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6517 #else
6518 # define ISLOWER(c) \
6519                    (('a' <= (c) && (c) <= 'i') \
6520                      || ('j' <= (c) && (c) <= 'r') \
6521                      || ('s' <= (c) && (c) <= 'z'))
6522 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6523 #endif
6524
6525 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6526 int
6527 main ()
6528 {
6529   int i;
6530   for (i = 0; i < 256; i++)
6531     if (XOR (islower (i), ISLOWER (i))
6532         || toupper (i) != TOUPPER (i))
6533       return 2;
6534   return 0;
6535 }
6536 _ACEOF
6537 if ac_fn_c_try_run "$LINENO"; then :
6538
6539 else
6540   ac_cv_header_stdc=no
6541 fi
6542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6543   conftest.$ac_objext conftest.beam conftest.$ac_ext
6544 fi
6545
6546 fi
6547 fi
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6549 $as_echo "$ac_cv_header_stdc" >&6; }
6550 if test $ac_cv_header_stdc = yes; then
6551
6552 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6553
6554 fi
6555
6556 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6557 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6558                   inttypes.h stdint.h unistd.h
6559 do :
6560   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6561 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6562 "
6563 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6564   cat >>confdefs.h <<_ACEOF
6565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6566 _ACEOF
6567
6568 fi
6569
6570 done
6571
6572
6573
6574   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6575 if test "x$ac_cv_header_minix_config_h" = xyes; then :
6576   MINIX=yes
6577 else
6578   MINIX=
6579 fi
6580
6581
6582   if test "$MINIX" = yes; then
6583
6584 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6585
6586
6587 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6588
6589
6590 $as_echo "#define _MINIX 1" >>confdefs.h
6591
6592
6593 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
6594
6595   fi
6596
6597
6598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6599 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6600 if ${ac_cv_safe_to_define___extensions__+:} false; then :
6601   $as_echo_n "(cached) " >&6
6602 else
6603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h.  */
6605
6606 #         define __EXTENSIONS__ 1
6607           $ac_includes_default
6608 int
6609 main ()
6610 {
6611
6612   ;
6613   return 0;
6614 }
6615 _ACEOF
6616 if ac_fn_c_try_compile "$LINENO"; then :
6617   ac_cv_safe_to_define___extensions__=yes
6618 else
6619   ac_cv_safe_to_define___extensions__=no
6620 fi
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 fi
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6624 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6625   test $ac_cv_safe_to_define___extensions__ = yes &&
6626     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6627
6628   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6629
6630   $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6631
6632   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6633
6634   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6635
6636   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6637
6638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6639 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6640 if ${ac_cv_should_define__xopen_source+:} false; then :
6641   $as_echo_n "(cached) " >&6
6642 else
6643   ac_cv_should_define__xopen_source=no
6644      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h.  */
6646
6647           #include <wchar.h>
6648           mbstate_t x;
6649 int
6650 main ()
6651 {
6652
6653   ;
6654   return 0;
6655 }
6656 _ACEOF
6657 if ac_fn_c_try_compile "$LINENO"; then :
6658
6659 else
6660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h.  */
6662
6663              #define _XOPEN_SOURCE 500
6664              #include <wchar.h>
6665              mbstate_t x;
6666 int
6667 main ()
6668 {
6669
6670   ;
6671   return 0;
6672 }
6673 _ACEOF
6674 if ac_fn_c_try_compile "$LINENO"; then :
6675   ac_cv_should_define__xopen_source=yes
6676 fi
6677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678 fi
6679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6680 fi
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6682 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
6683   test $ac_cv_should_define__xopen_source = yes &&
6684     $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6685
6686
6687
6688
6689
6690
6691
6692
6693 # Check whether --enable-largefile was given.
6694 if test "${enable_largefile+set}" = set; then :
6695   enableval=$enable_largefile;
6696 fi
6697
6698 if test "$enable_largefile" != no; then
6699
6700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6701 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6702 if ${ac_cv_sys_largefile_CC+:} false; then :
6703   $as_echo_n "(cached) " >&6
6704 else
6705   ac_cv_sys_largefile_CC=no
6706      if test "$GCC" != yes; then
6707        ac_save_CC=$CC
6708        while :; do
6709          # IRIX 6.2 and later do not support large files by default,
6710          # so use the C compiler's -n32 option if that helps.
6711          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h.  */
6713 #include <sys/types.h>
6714  /* Check that off_t can represent 2**63 - 1 correctly.
6715     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6716     since some C++ compilers masquerading as C compilers
6717     incorrectly reject 9223372036854775807.  */
6718 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6719   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6720                        && LARGE_OFF_T % 2147483647 == 1)
6721                       ? 1 : -1];
6722 int
6723 main ()
6724 {
6725
6726   ;
6727   return 0;
6728 }
6729 _ACEOF
6730          if ac_fn_c_try_compile "$LINENO"; then :
6731   break
6732 fi
6733 rm -f core conftest.err conftest.$ac_objext
6734          CC="$CC -n32"
6735          if ac_fn_c_try_compile "$LINENO"; then :
6736   ac_cv_sys_largefile_CC=' -n32'; break
6737 fi
6738 rm -f core conftest.err conftest.$ac_objext
6739          break
6740        done
6741        CC=$ac_save_CC
6742        rm -f conftest.$ac_ext
6743     fi
6744 fi
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6746 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6747   if test "$ac_cv_sys_largefile_CC" != no; then
6748     CC=$CC$ac_cv_sys_largefile_CC
6749   fi
6750
6751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6752 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6753 if ${ac_cv_sys_file_offset_bits+:} false; then :
6754   $as_echo_n "(cached) " >&6
6755 else
6756   while :; do
6757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h.  */
6759 #include <sys/types.h>
6760  /* Check that off_t can represent 2**63 - 1 correctly.
6761     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6762     since some C++ compilers masquerading as C compilers
6763     incorrectly reject 9223372036854775807.  */
6764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6765   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6766                        && LARGE_OFF_T % 2147483647 == 1)
6767                       ? 1 : -1];
6768 int
6769 main ()
6770 {
6771
6772   ;
6773   return 0;
6774 }
6775 _ACEOF
6776 if ac_fn_c_try_compile "$LINENO"; then :
6777   ac_cv_sys_file_offset_bits=no; break
6778 fi
6779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h.  */
6782 #define _FILE_OFFSET_BITS 64
6783 #include <sys/types.h>
6784  /* Check that off_t can represent 2**63 - 1 correctly.
6785     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6786     since some C++ compilers masquerading as C compilers
6787     incorrectly reject 9223372036854775807.  */
6788 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6789   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6790                        && LARGE_OFF_T % 2147483647 == 1)
6791                       ? 1 : -1];
6792 int
6793 main ()
6794 {
6795
6796   ;
6797   return 0;
6798 }
6799 _ACEOF
6800 if ac_fn_c_try_compile "$LINENO"; then :
6801   ac_cv_sys_file_offset_bits=64; break
6802 fi
6803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6804   ac_cv_sys_file_offset_bits=unknown
6805   break
6806 done
6807 fi
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6809 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6810 case $ac_cv_sys_file_offset_bits in #(
6811   no | unknown) ;;
6812   *)
6813 cat >>confdefs.h <<_ACEOF
6814 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6815 _ACEOF
6816 ;;
6817 esac
6818 rm -rf conftest*
6819   if test $ac_cv_sys_file_offset_bits = unknown; then
6820     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6821 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6822 if ${ac_cv_sys_large_files+:} false; then :
6823   $as_echo_n "(cached) " >&6
6824 else
6825   while :; do
6826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h.  */
6828 #include <sys/types.h>
6829  /* Check that off_t can represent 2**63 - 1 correctly.
6830     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6831     since some C++ compilers masquerading as C compilers
6832     incorrectly reject 9223372036854775807.  */
6833 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6834   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6835                        && LARGE_OFF_T % 2147483647 == 1)
6836                       ? 1 : -1];
6837 int
6838 main ()
6839 {
6840
6841   ;
6842   return 0;
6843 }
6844 _ACEOF
6845 if ac_fn_c_try_compile "$LINENO"; then :
6846   ac_cv_sys_large_files=no; break
6847 fi
6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h.  */
6851 #define _LARGE_FILES 1
6852 #include <sys/types.h>
6853  /* Check that off_t can represent 2**63 - 1 correctly.
6854     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6855     since some C++ compilers masquerading as C compilers
6856     incorrectly reject 9223372036854775807.  */
6857 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6858   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6859                        && LARGE_OFF_T % 2147483647 == 1)
6860                       ? 1 : -1];
6861 int
6862 main ()
6863 {
6864
6865   ;
6866   return 0;
6867 }
6868 _ACEOF
6869 if ac_fn_c_try_compile "$LINENO"; then :
6870   ac_cv_sys_large_files=1; break
6871 fi
6872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873   ac_cv_sys_large_files=unknown
6874   break
6875 done
6876 fi
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6878 $as_echo "$ac_cv_sys_large_files" >&6; }
6879 case $ac_cv_sys_large_files in #(
6880   no | unknown) ;;
6881   *)
6882 cat >>confdefs.h <<_ACEOF
6883 #define _LARGE_FILES $ac_cv_sys_large_files
6884 _ACEOF
6885 ;;
6886 esac
6887 rm -rf conftest*
6888   fi
6889
6890
6891 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
6892
6893 fi
6894
6895
6896
6897
6898
6899
6900   # Check whether --enable-threads was given.
6901 if test "${enable_threads+set}" = set; then :
6902   enableval=$enable_threads; gl_use_threads=$enableval
6903 else
6904   if test -n "$gl_use_threads_default"; then
6905        gl_use_threads="$gl_use_threads_default"
6906      else
6907        case "$host_os" in
6908                                                                osf*) gl_use_threads=no ;;
6909          cygwin*)
6910                case `uname -r` in
6911                  1.[0-5].*) gl_use_threads=no ;;
6912                  *)         gl_use_threads=yes ;;
6913                esac
6914                ;;
6915          *)    gl_use_threads=yes ;;
6916        esac
6917      fi
6918
6919 fi
6920
6921   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6922     # For using <pthread.h>:
6923     case "$host_os" in
6924       osf*)
6925         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6926         # groks <pthread.h>. cc also understands the flag -pthread, but
6927         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6928         # 2. putting a flag into CPPFLAGS that has an effect on the linker
6929         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
6930         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6931         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
6932         ;;
6933     esac
6934     # Some systems optimize for single-threaded programs by default, and
6935     # need special flags to disable these optimizations. For example, the
6936     # definition of 'errno' in <errno.h>.
6937     case "$host_os" in
6938       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
6939       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
6940     esac
6941   fi
6942
6943
6944
6945
6946   # Code from module alloca-opt:
6947   # Code from module allocator:
6948   # Code from module ansi-c++-opt:
6949   # Code from module areadlink:
6950   # Code from module atexit:
6951   # Code from module basename:
6952   # Code from module c-ctype:
6953   # Code from module c-strcase:
6954   # Code from module canonicalize-lgpl:
6955   # Code from module careadlinkat:
6956   # Code from module closeout:
6957   # Code from module configmake:
6958   # Code from module csharpcomp-script:
6959   # Code from module dosname:
6960   # Code from module double-slash-root:
6961   # Code from module environ:
6962   # Code from module errno:
6963   # Code from module error:
6964   # Code from module extensions:
6965
6966   # Code from module extern-inline:
6967   # Code from module fwriteerror:
6968   # Code from module getopt-gnu:
6969   # Code from module getopt-posix:
6970   # Code from module gettext-h:
6971   # Code from module gettext-runtime-misc:
6972   # Code from module gperf:
6973   # Code from module havelib:
6974   # Code from module iconv:
6975   # Code from module iconv-h:
6976   # Code from module iconv_open:
6977   # Code from module include_next:
6978   # Code from module inline:
6979   # Code from module intprops:
6980   # Code from module iswblank:
6981   # Code from module java:
6982   # Code from module javacomp-script:
6983   # Code from module largefile:
6984
6985   # Code from module localcharset:
6986   # Code from module locale:
6987   # Code from module localename:
6988   # Code from module lock:
6989   # Code from module lstat:
6990   # Code from module malloca:
6991   # Code from module mbchar:
6992   # Code from module mbiter:
6993   # Code from module mbrtowc:
6994   # Code from module mbsinit:
6995   # Code from module mbslen:
6996   # Code from module mbsstr:
6997   # Code from module mbuiter:
6998   # Code from module memchr:
6999   # Code from module memmove:
7000   # Code from module msvc-inval:
7001   # Code from module msvc-nothrow:
7002   # Code from module multiarch:
7003   # Code from module nocrash:
7004   # Code from module pathmax:
7005   # Code from module progname:
7006   # Code from module propername:
7007   # Code from module raise:
7008   # Code from module readlink:
7009   # Code from module relocatable-prog:
7010   # Code from module relocatable-prog-wrapper:
7011   # Code from module setlocale:
7012   # Code from module signal-h:
7013   # Code from module sigpipe:
7014   # Code from module sigprocmask:
7015   # Code from module snippet/_Noreturn:
7016   # Code from module snippet/arg-nonnull:
7017   # Code from module snippet/c++defs:
7018   # Code from module snippet/unused-parameter:
7019   # Code from module snippet/warn-on-use:
7020   # Code from module ssize_t:
7021   # Code from module stat:
7022   # Code from module stdbool:
7023   # Code from module stddef:
7024   # Code from module stdint:
7025   # Code from module stdio:
7026   # Code from module stdlib:
7027   # Code from module streq:
7028   # Code from module strerror:
7029   # Code from module strerror-override:
7030   # Code from module striconv:
7031   # Code from module string:
7032   # Code from module strnlen:
7033   # Code from module strnlen1:
7034   # Code from module strtoul:
7035   # Code from module sys_stat:
7036   # Code from module sys_types:
7037   # Code from module threadlib:
7038
7039
7040
7041   # Code from module time:
7042   # Code from module trim:
7043   # Code from module unistd:
7044   # Code from module unistr/base:
7045   # Code from module unistr/u8-mbtoucr:
7046   # Code from module unistr/u8-uctomb:
7047   # Code from module unitypes:
7048   # Code from module uniwidth/base:
7049   # Code from module uniwidth/width:
7050   # Code from module unlocked-io:
7051   # Code from module verify:
7052   # Code from module wchar:
7053   # Code from module wctype-h:
7054   # Code from module wcwidth:
7055   # Code from module xalloc:
7056   # Code from module xreadlink:
7057   # Code from module xstriconv:
7058
7059
7060
7061
7062
7063   case "$host_os" in
7064     mingw* | cygwin*)
7065       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for auto-import of symbols" >&5
7066 $as_echo_n "checking for auto-import of symbols... " >&6; }
7067       if ${gl_cv_ld_autoimport+:} false; then :
7068   $as_echo_n "(cached) " >&6
7069 else
7070
7071         gl_save_LDFLAGS="$LDFLAGS"
7072         LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
7073         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074 /* end confdefs.h.  */
7075
7076 int
7077 main ()
7078 {
7079
7080   ;
7081   return 0;
7082 }
7083 _ACEOF
7084 if ac_fn_c_try_link "$LINENO"; then :
7085   gl_cv_ld_autoimport=yes
7086 else
7087   gl_cv_ld_autoimport=no
7088 fi
7089 rm -f core conftest.err conftest.$ac_objext \
7090     conftest$ac_exeext conftest.$ac_ext
7091         LDFLAGS="$gl_save_LDFLAGS"
7092 fi
7093
7094       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_autoimport" >&5
7095 $as_echo "$gl_cv_ld_autoimport" >&6; }
7096       if test $gl_cv_ld_autoimport = yes; then
7097         LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
7098       fi
7099       ;;
7100   esac
7101
7102
7103 case `pwd` in
7104   *\ * | *\     *)
7105     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7106 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7107 esac
7108
7109
7110
7111 macro_version='2.4.2'
7112 macro_revision='1.3337'
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126 ltmain="$ac_aux_dir/ltmain.sh"
7127
7128 # Backslashify metacharacters that are still active within
7129 # double-quoted strings.
7130 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7131
7132 # Same as above, but do not quote variable references.
7133 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7134
7135 # Sed substitution to delay expansion of an escaped shell variable in a
7136 # double_quote_subst'ed string.
7137 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7138
7139 # Sed substitution to delay expansion of an escaped single quote.
7140 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7141
7142 # Sed substitution to avoid accidental globbing in evaled expressions
7143 no_glob_subst='s/\*/\\\*/g'
7144
7145 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7146 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7147 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7148
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7150 $as_echo_n "checking how to print strings... " >&6; }
7151 # Test print first, because it will be a builtin if present.
7152 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7153    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7154   ECHO='print -r --'
7155 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7156   ECHO='printf %s\n'
7157 else
7158   # Use this function as a fallback that always works.
7159   func_fallback_echo ()
7160   {
7161     eval 'cat <<_LTECHO_EOF
7162 $1
7163 _LTECHO_EOF'
7164   }
7165   ECHO='func_fallback_echo'
7166 fi
7167
7168 # func_echo_all arg...
7169 # Invoke $ECHO with all args, space-separated.
7170 func_echo_all ()
7171 {
7172     $ECHO ""
7173 }
7174
7175 case "$ECHO" in
7176   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7177 $as_echo "printf" >&6; } ;;
7178   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7179 $as_echo "print -r" >&6; } ;;
7180   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7181 $as_echo "cat" >&6; } ;;
7182 esac
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7198 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7199 if ${ac_cv_path_SED+:} false; then :
7200   $as_echo_n "(cached) " >&6
7201 else
7202             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7203      for ac_i in 1 2 3 4 5 6 7; do
7204        ac_script="$ac_script$as_nl$ac_script"
7205      done
7206      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7207      { ac_script=; unset ac_script;}
7208      if test -z "$SED"; then
7209   ac_path_SED_found=false
7210   # Loop through the user's path and test for each of PROGNAME-LIST
7211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 for as_dir in $PATH
7213 do
7214   IFS=$as_save_IFS
7215   test -z "$as_dir" && as_dir=.
7216     for ac_prog in sed gsed; do
7217     for ac_exec_ext in '' $ac_executable_extensions; do
7218       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7219       as_fn_executable_p "$ac_path_SED" || continue
7220 # Check for GNU ac_path_SED and select it if it is found.
7221   # Check for GNU $ac_path_SED
7222 case `"$ac_path_SED" --version 2>&1` in
7223 *GNU*)
7224   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7225 *)
7226   ac_count=0
7227   $as_echo_n 0123456789 >"conftest.in"
7228   while :
7229   do
7230     cat "conftest.in" "conftest.in" >"conftest.tmp"
7231     mv "conftest.tmp" "conftest.in"
7232     cp "conftest.in" "conftest.nl"
7233     $as_echo '' >> "conftest.nl"
7234     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7235     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7236     as_fn_arith $ac_count + 1 && ac_count=$as_val
7237     if test $ac_count -gt ${ac_path_SED_max-0}; then
7238       # Best one so far, save it but keep looking for a better one
7239       ac_cv_path_SED="$ac_path_SED"
7240       ac_path_SED_max=$ac_count
7241     fi
7242     # 10*(2^10) chars as input seems more than enough
7243     test $ac_count -gt 10 && break
7244   done
7245   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7246 esac
7247
7248       $ac_path_SED_found && break 3
7249     done
7250   done
7251   done
7252 IFS=$as_save_IFS
7253   if test -z "$ac_cv_path_SED"; then
7254     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7255   fi
7256 else
7257   ac_cv_path_SED=$SED
7258 fi
7259
7260 fi
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7262 $as_echo "$ac_cv_path_SED" >&6; }
7263  SED="$ac_cv_path_SED"
7264   rm -f conftest.sed
7265
7266 test -z "$SED" && SED=sed
7267 Xsed="$SED -e 1s/^X//"
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7280 $as_echo_n "checking for fgrep... " >&6; }
7281 if ${ac_cv_path_FGREP+:} false; then :
7282   $as_echo_n "(cached) " >&6
7283 else
7284   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7285    then ac_cv_path_FGREP="$GREP -F"
7286    else
7287      if test -z "$FGREP"; then
7288   ac_path_FGREP_found=false
7289   # Loop through the user's path and test for each of PROGNAME-LIST
7290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7292 do
7293   IFS=$as_save_IFS
7294   test -z "$as_dir" && as_dir=.
7295     for ac_prog in fgrep; do
7296     for ac_exec_ext in '' $ac_executable_extensions; do
7297       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7298       as_fn_executable_p "$ac_path_FGREP" || continue
7299 # Check for GNU ac_path_FGREP and select it if it is found.
7300   # Check for GNU $ac_path_FGREP
7301 case `"$ac_path_FGREP" --version 2>&1` in
7302 *GNU*)
7303   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7304 *)
7305   ac_count=0
7306   $as_echo_n 0123456789 >"conftest.in"
7307   while :
7308   do
7309     cat "conftest.in" "conftest.in" >"conftest.tmp"
7310     mv "conftest.tmp" "conftest.in"
7311     cp "conftest.in" "conftest.nl"
7312     $as_echo 'FGREP' >> "conftest.nl"
7313     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7314     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7315     as_fn_arith $ac_count + 1 && ac_count=$as_val
7316     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7317       # Best one so far, save it but keep looking for a better one
7318       ac_cv_path_FGREP="$ac_path_FGREP"
7319       ac_path_FGREP_max=$ac_count
7320     fi
7321     # 10*(2^10) chars as input seems more than enough
7322     test $ac_count -gt 10 && break
7323   done
7324   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7325 esac
7326
7327       $ac_path_FGREP_found && break 3
7328     done
7329   done
7330   done
7331 IFS=$as_save_IFS
7332   if test -z "$ac_cv_path_FGREP"; then
7333     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7334   fi
7335 else
7336   ac_cv_path_FGREP=$FGREP
7337 fi
7338
7339    fi
7340 fi
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7342 $as_echo "$ac_cv_path_FGREP" >&6; }
7343  FGREP="$ac_cv_path_FGREP"
7344
7345
7346 test -z "$GREP" && GREP=grep
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366 # Check whether --with-gnu-ld was given.
7367 if test "${with_gnu_ld+set}" = set; then :
7368   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7369 else
7370   with_gnu_ld=no
7371 fi
7372
7373 ac_prog=ld
7374 if test "$GCC" = yes; then
7375   # Check if gcc -print-prog-name=ld gives a path.
7376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7377 $as_echo_n "checking for ld used by $CC... " >&6; }
7378   case $host in
7379   *-*-mingw*)
7380     # gcc leaves a trailing carriage return which upsets mingw
7381     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7382   *)
7383     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7384   esac
7385   case $ac_prog in
7386     # Accept absolute paths.
7387     [\\/]* | ?:[\\/]*)
7388       re_direlt='/[^/][^/]*/\.\./'
7389       # Canonicalize the pathname of ld
7390       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7391       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7392         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7393       done
7394       test -z "$LD" && LD="$ac_prog"
7395       ;;
7396   "")
7397     # If it fails, then pretend we aren't using GCC.
7398     ac_prog=ld
7399     ;;
7400   *)
7401     # If it is relative, then search for the first ld in PATH.
7402     with_gnu_ld=unknown
7403     ;;
7404   esac
7405 elif test "$with_gnu_ld" = yes; then
7406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7407 $as_echo_n "checking for GNU ld... " >&6; }
7408 else
7409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7410 $as_echo_n "checking for non-GNU ld... " >&6; }
7411 fi
7412 if ${lt_cv_path_LD+:} false; then :
7413   $as_echo_n "(cached) " >&6
7414 else
7415   if test -z "$LD"; then
7416   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7417   for ac_dir in $PATH; do
7418     IFS="$lt_save_ifs"
7419     test -z "$ac_dir" && ac_dir=.
7420     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7421       lt_cv_path_LD="$ac_dir/$ac_prog"
7422       # Check to see if the program is GNU ld.  I'd rather use --version,
7423       # but apparently some variants of GNU ld only accept -v.
7424       # Break only if it was the GNU/non-GNU ld that we prefer.
7425       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7426       *GNU* | *'with BFD'*)
7427         test "$with_gnu_ld" != no && break
7428         ;;
7429       *)
7430         test "$with_gnu_ld" != yes && break
7431         ;;
7432       esac
7433     fi
7434   done
7435   IFS="$lt_save_ifs"
7436 else
7437   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7438 fi
7439 fi
7440
7441 LD="$lt_cv_path_LD"
7442 if test -n "$LD"; then
7443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7444 $as_echo "$LD" >&6; }
7445 else
7446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7448 fi
7449 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7451 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7452 if ${lt_cv_prog_gnu_ld+:} false; then :
7453   $as_echo_n "(cached) " >&6
7454 else
7455   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7456 case `$LD -v 2>&1 </dev/null` in
7457 *GNU* | *'with BFD'*)
7458   lt_cv_prog_gnu_ld=yes
7459   ;;
7460 *)
7461   lt_cv_prog_gnu_ld=no
7462   ;;
7463 esac
7464 fi
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7466 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7467 with_gnu_ld=$lt_cv_prog_gnu_ld
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7478 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7479 if ${lt_cv_path_NM+:} false; then :
7480   $as_echo_n "(cached) " >&6
7481 else
7482   if test -n "$NM"; then
7483   # Let the user override the test.
7484   lt_cv_path_NM="$NM"
7485 else
7486   lt_nm_to_check="${ac_tool_prefix}nm"
7487   if test -n "$ac_tool_prefix" \
7488      && { test "$build" = "$host" \
7489           || { test "$build_os" = cygwin && test "$host_os" = mingw32; }; \
7490         }; then
7491     lt_nm_to_check="$lt_nm_to_check nm"
7492   fi
7493   for lt_tmp_nm in $lt_nm_to_check; do
7494     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7495     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7496       IFS="$lt_save_ifs"
7497       test -z "$ac_dir" && ac_dir=.
7498       tmp_nm="$ac_dir/$lt_tmp_nm"
7499       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7500         # Check to see if the nm accepts a BSD-compat flag.
7501         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7502         #   nm: unknown option "B" ignored
7503         # Tru64's nm complains that /dev/null is an invalid object file
7504         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7505         */dev/null* | *'Invalid file or object type'*)
7506           lt_cv_path_NM="$tmp_nm -B"
7507           break
7508           ;;
7509         *)
7510           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7511           */dev/null*)
7512             lt_cv_path_NM="$tmp_nm -p"
7513             break
7514             ;;
7515           *)
7516             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7517             continue # so that we can try to find one that supports BSD flags
7518             ;;
7519           esac
7520           ;;
7521         esac
7522       fi
7523     done
7524     IFS="$lt_save_ifs"
7525   done
7526   : ${lt_cv_path_NM=no}
7527 fi
7528 fi
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7530 $as_echo "$lt_cv_path_NM" >&6; }
7531 if test "$lt_cv_path_NM" != "no"; then
7532   NM="$lt_cv_path_NM"
7533 else
7534   # Didn't find any BSD compatible name lister, look for dumpbin.
7535   if test -n "$DUMPBIN"; then :
7536     # Let the user override the test.
7537   else
7538     if test -n "$ac_tool_prefix"; then
7539   for ac_prog in dumpbin "link -dump"
7540   do
7541     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544 $as_echo_n "checking for $ac_word... " >&6; }
7545 if ${ac_cv_prog_DUMPBIN+:} false; then :
7546   $as_echo_n "(cached) " >&6
7547 else
7548   if test -n "$DUMPBIN"; then
7549   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7550 else
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 for as_dir in $PATH
7553 do
7554   IFS=$as_save_IFS
7555   test -z "$as_dir" && as_dir=.
7556     for ac_exec_ext in '' $ac_executable_extensions; do
7557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7560     break 2
7561   fi
7562 done
7563   done
7564 IFS=$as_save_IFS
7565
7566 fi
7567 fi
7568 DUMPBIN=$ac_cv_prog_DUMPBIN
7569 if test -n "$DUMPBIN"; then
7570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7571 $as_echo "$DUMPBIN" >&6; }
7572 else
7573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 $as_echo "no" >&6; }
7575 fi
7576
7577
7578     test -n "$DUMPBIN" && break
7579   done
7580 fi
7581 if test -z "$DUMPBIN"; then
7582   ac_ct_DUMPBIN=$DUMPBIN
7583   for ac_prog in dumpbin "link -dump"
7584 do
7585   # Extract the first word of "$ac_prog", so it can be a program name with args.
7586 set dummy $ac_prog; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7590   $as_echo_n "(cached) " >&6
7591 else
7592   if test -n "$ac_ct_DUMPBIN"; then
7593   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7594 else
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598   IFS=$as_save_IFS
7599   test -z "$as_dir" && as_dir=.
7600     for ac_exec_ext in '' $ac_executable_extensions; do
7601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7602     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604     break 2
7605   fi
7606 done
7607   done
7608 IFS=$as_save_IFS
7609
7610 fi
7611 fi
7612 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7613 if test -n "$ac_ct_DUMPBIN"; then
7614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7615 $as_echo "$ac_ct_DUMPBIN" >&6; }
7616 else
7617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 fi
7620
7621
7622   test -n "$ac_ct_DUMPBIN" && break
7623 done
7624
7625   if test "x$ac_ct_DUMPBIN" = x; then
7626     DUMPBIN=":"
7627   else
7628     case $cross_compiling:$ac_tool_warned in
7629 yes:)
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7632 ac_tool_warned=yes ;;
7633 esac
7634     DUMPBIN=$ac_ct_DUMPBIN
7635   fi
7636 fi
7637
7638     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7639     *COFF*)
7640       DUMPBIN="$DUMPBIN -symbols"
7641       ;;
7642     *)
7643       DUMPBIN=:
7644       ;;
7645     esac
7646   fi
7647
7648   if test "$DUMPBIN" != ":"; then
7649     NM="$DUMPBIN"
7650   fi
7651 fi
7652 test -z "$NM" && NM=nm
7653
7654
7655
7656
7657
7658
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7660 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7661 if ${lt_cv_nm_interface+:} false; then :
7662   $as_echo_n "(cached) " >&6
7663 else
7664   lt_cv_nm_interface="BSD nm"
7665   echo "int some_variable = 0;" > conftest.$ac_ext
7666   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7667   (eval "$ac_compile" 2>conftest.err)
7668   cat conftest.err >&5
7669   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7670   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7671   cat conftest.err >&5
7672   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7673   cat conftest.out >&5
7674   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7675     lt_cv_nm_interface="MS dumpbin"
7676   fi
7677   rm -f conftest*
7678 fi
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7680 $as_echo "$lt_cv_nm_interface" >&6; }
7681
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7683 $as_echo_n "checking whether ln -s works... " >&6; }
7684 LN_S=$as_ln_s
7685 if test "$LN_S" = "ln -s"; then
7686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7687 $as_echo "yes" >&6; }
7688 else
7689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7690 $as_echo "no, using $LN_S" >&6; }
7691 fi
7692
7693 # find the maximum length of command line arguments
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7695 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7696 if ${lt_cv_sys_max_cmd_len+:} false; then :
7697   $as_echo_n "(cached) " >&6
7698 else
7699     i=0
7700   teststring="ABCD"
7701
7702   case $build_os in
7703   msdosdjgpp*)
7704     # On DJGPP, this test can blow up pretty badly due to problems in libc
7705     # (any single argument exceeding 2000 bytes causes a buffer overrun
7706     # during glob expansion).  Even if it were fixed, the result of this
7707     # check would be larger than it should be.
7708     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7709     ;;
7710
7711   gnu*)
7712     # Under GNU Hurd, this test is not required because there is
7713     # no limit to the length of command line arguments.
7714     # Libtool will interpret -1 as no limit whatsoever
7715     lt_cv_sys_max_cmd_len=-1;
7716     ;;
7717
7718   cygwin* | mingw* | cegcc*)
7719     # On Win9x/ME, this test blows up -- it succeeds, but takes
7720     # about 5 minutes as the teststring grows exponentially.
7721     # Worse, since 9x/ME are not pre-emptively multitasking,
7722     # you end up with a "frozen" computer, even though with patience
7723     # the test eventually succeeds (with a max line length of 256k).
7724     # Instead, let's just punt: use the minimum linelength reported by
7725     # all of the supported platforms: 8192 (on NT/2K/XP).
7726     lt_cv_sys_max_cmd_len=8192;
7727     ;;
7728
7729   mint*)
7730     # On MiNT this can take a long time and run out of memory.
7731     lt_cv_sys_max_cmd_len=8192;
7732     ;;
7733
7734   amigaos*)
7735     # On AmigaOS with pdksh, this test takes hours, literally.
7736     # So we just punt and use a minimum line length of 8192.
7737     lt_cv_sys_max_cmd_len=8192;
7738     ;;
7739
7740   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7741     # This has been around since 386BSD, at least.  Likely further.
7742     if test -x /sbin/sysctl; then
7743       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7744     elif test -x /usr/sbin/sysctl; then
7745       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7746     else
7747       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7748     fi
7749     # And add a safety zone
7750     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7751     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7752     ;;
7753
7754   interix*)
7755     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7756     lt_cv_sys_max_cmd_len=196608
7757     ;;
7758
7759   os2*)
7760     # The test takes a long time on OS/2.
7761     lt_cv_sys_max_cmd_len=8192
7762     ;;
7763
7764   osf*)
7765     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7766     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7767     # nice to cause kernel panics so lets avoid the loop below.
7768     # First set a reasonable default.
7769     lt_cv_sys_max_cmd_len=16384
7770     #
7771     if test -x /sbin/sysconfig; then
7772       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7773         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7774       esac
7775     fi
7776     ;;
7777   sco3.2v5*)
7778     lt_cv_sys_max_cmd_len=102400
7779     ;;
7780   sysv5* | sco5v6* | sysv4.2uw2*)
7781     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7782     if test -n "$kargmax"; then
7783       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7784     else
7785       lt_cv_sys_max_cmd_len=32768
7786     fi
7787     ;;
7788   *)
7789     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7790     if test -n "$lt_cv_sys_max_cmd_len"; then
7791       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7792       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7793     else
7794       # Make teststring a little bigger before we do anything with it.
7795       # a 1K string should be a reasonable start.
7796       for i in 1 2 3 4 5 6 7 8 ; do
7797         teststring=$teststring$teststring
7798       done
7799       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7800       # If test is not a shell built-in, we'll probably end up computing a
7801       # maximum length that is only half of the actual maximum length, but
7802       # we can't tell.
7803       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7804                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7805               test $i != 17 # 1/2 MB should be enough
7806       do
7807         i=`expr $i + 1`
7808         teststring=$teststring$teststring
7809       done
7810       # Only check the string length outside the loop.
7811       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7812       teststring=
7813       # Add a significant safety factor because C++ compilers can tack on
7814       # massive amounts of additional arguments before passing them to the
7815       # linker.  It appears as though 1/2 is a usable value.
7816       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7817     fi
7818     ;;
7819   esac
7820
7821 fi
7822
7823 if test -n $lt_cv_sys_max_cmd_len ; then
7824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7825 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7826 else
7827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7828 $as_echo "none" >&6; }
7829 fi
7830 max_cmd_len=$lt_cv_sys_max_cmd_len
7831
7832
7833
7834
7835
7836
7837 : ${CP="cp -f"}
7838 : ${MV="mv -f"}
7839 : ${RM="rm -f"}
7840
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7842 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7843 # Try some XSI features
7844 xsi_shell=no
7845 ( _lt_dummy="a/b/c"
7846   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7847       = c,a/b,b/c, \
7848     && eval 'test $(( 1 + 1 )) -eq 2 \
7849     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7850   && xsi_shell=yes
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7852 $as_echo "$xsi_shell" >&6; }
7853
7854
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7856 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7857 lt_shell_append=no
7858 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7859     >/dev/null 2>&1 \
7860   && lt_shell_append=yes
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7862 $as_echo "$lt_shell_append" >&6; }
7863
7864
7865 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7866   lt_unset=unset
7867 else
7868   lt_unset=false
7869 fi
7870
7871
7872
7873
7874
7875 # test EBCDIC or ASCII
7876 case `echo X|tr X '\101'` in
7877  A) # ASCII based system
7878     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7879   lt_SP2NL='tr \040 \012'
7880   lt_NL2SP='tr \015\012 \040\040'
7881   ;;
7882  *) # EBCDIC based system
7883   lt_SP2NL='tr \100 \n'
7884   lt_NL2SP='tr \r\n \100\100'
7885   ;;
7886 esac
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7897 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7898 if ${lt_cv_to_host_file_cmd+:} false; then :
7899   $as_echo_n "(cached) " >&6
7900 else
7901   case $host in
7902   *-*-mingw* )
7903     case $build in
7904       *-*-mingw* ) # actually msys
7905         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7906         ;;
7907       *-*-cygwin* )
7908         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7909         ;;
7910       * ) # otherwise, assume *nix
7911         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7912         ;;
7913     esac
7914     ;;
7915   *-*-cygwin* )
7916     case $build in
7917       *-*-mingw* ) # actually msys
7918         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7919         ;;
7920       *-*-cygwin* )
7921         lt_cv_to_host_file_cmd=func_convert_file_noop
7922         ;;
7923       * ) # otherwise, assume *nix
7924         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7925         ;;
7926     esac
7927     ;;
7928   * ) # unhandled hosts (and "normal" native builds)
7929     lt_cv_to_host_file_cmd=func_convert_file_noop
7930     ;;
7931 esac
7932
7933 fi
7934
7935 to_host_file_cmd=$lt_cv_to_host_file_cmd
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7937 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7938
7939
7940
7941
7942
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7944 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7945 if ${lt_cv_to_tool_file_cmd+:} false; then :
7946   $as_echo_n "(cached) " >&6
7947 else
7948   #assume ordinary cross tools, or native build.
7949 lt_cv_to_tool_file_cmd=func_convert_file_noop
7950 case $host in
7951   *-*-mingw* )
7952     case $build in
7953       *-*-mingw* ) # actually msys
7954         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7955         ;;
7956     esac
7957     ;;
7958 esac
7959
7960 fi
7961
7962 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7964 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7965
7966
7967
7968
7969
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7971 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7972 if ${lt_cv_ld_reload_flag+:} false; then :
7973   $as_echo_n "(cached) " >&6
7974 else
7975   lt_cv_ld_reload_flag='-r'
7976 fi
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7978 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7979 reload_flag=$lt_cv_ld_reload_flag
7980 case $reload_flag in
7981 "" | " "*) ;;
7982 *) reload_flag=" $reload_flag" ;;
7983 esac
7984 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7985 case $host_os in
7986   cygwin* | mingw* | pw32* | cegcc*)
7987     if test "$GCC" != yes; then
7988       reload_cmds=false
7989     fi
7990     ;;
7991   darwin*)
7992     if test "$GCC" = yes; then
7993       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7994     else
7995       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7996     fi
7997     ;;
7998 esac
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008 if test -n "$ac_tool_prefix"; then
8009   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8010 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if ${ac_cv_prog_OBJDUMP+:} false; then :
8014   $as_echo_n "(cached) " >&6
8015 else
8016   if test -n "$OBJDUMP"; then
8017   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8018 else
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8021 do
8022   IFS=$as_save_IFS
8023   test -z "$as_dir" && as_dir=.
8024     for ac_exec_ext in '' $ac_executable_extensions; do
8025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8026     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8028     break 2
8029   fi
8030 done
8031   done
8032 IFS=$as_save_IFS
8033
8034 fi
8035 fi
8036 OBJDUMP=$ac_cv_prog_OBJDUMP
8037 if test -n "$OBJDUMP"; then
8038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8039 $as_echo "$OBJDUMP" >&6; }
8040 else
8041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8043 fi
8044
8045
8046 fi
8047 if test -z "$ac_cv_prog_OBJDUMP"; then
8048   ac_ct_OBJDUMP=$OBJDUMP
8049   # Extract the first word of "objdump", so it can be a program name with args.
8050 set dummy objdump; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8054   $as_echo_n "(cached) " >&6
8055 else
8056   if test -n "$ac_ct_OBJDUMP"; then
8057   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8058 else
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8061 do
8062   IFS=$as_save_IFS
8063   test -z "$as_dir" && as_dir=.
8064     for ac_exec_ext in '' $ac_executable_extensions; do
8065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8066     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068     break 2
8069   fi
8070 done
8071   done
8072 IFS=$as_save_IFS
8073
8074 fi
8075 fi
8076 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8077 if test -n "$ac_ct_OBJDUMP"; then
8078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8079 $as_echo "$ac_ct_OBJDUMP" >&6; }
8080 else
8081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8083 fi
8084
8085   if test "x$ac_ct_OBJDUMP" = x; then
8086     OBJDUMP="false"
8087   else
8088     case $cross_compiling:$ac_tool_warned in
8089 yes:)
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8092 ac_tool_warned=yes ;;
8093 esac
8094     OBJDUMP=$ac_ct_OBJDUMP
8095   fi
8096 else
8097   OBJDUMP="$ac_cv_prog_OBJDUMP"
8098 fi
8099
8100 test -z "$OBJDUMP" && OBJDUMP=objdump
8101
8102
8103
8104
8105
8106
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8108 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8109 if ${lt_cv_deplibs_check_method+:} false; then :
8110   $as_echo_n "(cached) " >&6
8111 else
8112   lt_cv_file_magic_cmd='$MAGIC_CMD'
8113 lt_cv_file_magic_test_file=
8114 lt_cv_deplibs_check_method='unknown'
8115 # Need to set the preceding variable on all platforms that support
8116 # interlibrary dependencies.
8117 # 'none' -- dependencies not supported.
8118 # `unknown' -- same as none, but documents that we really don't know.
8119 # 'pass_all' -- all dependencies passed with no checks.
8120 # 'test_compile' -- check by making test program.
8121 # 'file_magic [[regex]]' -- check by looking for files in library path
8122 # which responds to the $file_magic_cmd with a given extended regex.
8123 # If you have `file' or equivalent on your system and you're not sure
8124 # whether `pass_all' will *always* work, you probably want this one.
8125
8126 case $host_os in
8127 aix[4-9]*)
8128   lt_cv_deplibs_check_method=pass_all
8129   ;;
8130
8131 beos*)
8132   lt_cv_deplibs_check_method=pass_all
8133   ;;
8134
8135 bsdi[45]*)
8136   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8137   lt_cv_file_magic_cmd='/usr/bin/file -L'
8138   lt_cv_file_magic_test_file=/shlib/libc.so
8139   ;;
8140
8141 cygwin*)
8142   # func_win32_libid is a shell function defined in ltmain.sh
8143   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8144   lt_cv_file_magic_cmd='func_win32_libid'
8145   ;;
8146
8147 mingw* | pw32*)
8148   # Base MSYS/MinGW do not provide the 'file' command needed by
8149   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8150   # unless we find 'file', for example because we are cross-compiling.
8151   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8152   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8153     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8154     lt_cv_file_magic_cmd='func_win32_libid'
8155   else
8156     # Keep this pattern in sync with the one in func_win32_libid.
8157     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8158     lt_cv_file_magic_cmd='$OBJDUMP -f'
8159   fi
8160   ;;
8161
8162 cegcc*)
8163   # use the weaker test based on 'objdump'. See mingw*.
8164   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8165   lt_cv_file_magic_cmd='$OBJDUMP -f'
8166   ;;
8167
8168 darwin* | rhapsody*)
8169   lt_cv_deplibs_check_method=pass_all
8170   ;;
8171
8172 freebsd* | dragonfly*)
8173   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8174     case $host_cpu in
8175     i*86 )
8176       # Not sure whether the presence of OpenBSD here was a mistake.
8177       # Let's accept both of them until this is cleared up.
8178       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8179       lt_cv_file_magic_cmd=/usr/bin/file
8180       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8181       ;;
8182     esac
8183   else
8184     lt_cv_deplibs_check_method=pass_all
8185   fi
8186   ;;
8187
8188 gnu*)
8189   lt_cv_deplibs_check_method=pass_all
8190   ;;
8191
8192 haiku*)
8193   lt_cv_deplibs_check_method=pass_all
8194   ;;
8195
8196 hpux10.20* | hpux11*)
8197   lt_cv_file_magic_cmd=/usr/bin/file
8198   case $host_cpu in
8199   ia64*)
8200     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8201     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8202     ;;
8203   hppa*64*)
8204     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]'
8205     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8206     ;;
8207   *)
8208     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8209     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8210     ;;
8211   esac
8212   ;;
8213
8214 interix[3-9]*)
8215   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8216   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8217   ;;
8218
8219 irix5* | irix6* | nonstopux*)
8220   case $LD in
8221   *-32|*"-32 ") libmagic=32-bit;;
8222   *-n32|*"-n32 ") libmagic=N32;;
8223   *-64|*"-64 ") libmagic=64-bit;;
8224   *) libmagic=never-match;;
8225   esac
8226   lt_cv_deplibs_check_method=pass_all
8227   ;;
8228
8229 # This must be glibc/ELF.
8230 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8231   lt_cv_deplibs_check_method=pass_all
8232   ;;
8233
8234 netbsd*)
8235   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8236     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8237   else
8238     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8239   fi
8240   ;;
8241
8242 newos6*)
8243   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8244   lt_cv_file_magic_cmd=/usr/bin/file
8245   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8246   ;;
8247
8248 *nto* | *qnx*)
8249   lt_cv_deplibs_check_method=pass_all
8250   ;;
8251
8252 openbsd*)
8253   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8254     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8255   else
8256     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8257   fi
8258   ;;
8259
8260 osf3* | osf4* | osf5*)
8261   lt_cv_deplibs_check_method=pass_all
8262   ;;
8263
8264 rdos*)
8265   lt_cv_deplibs_check_method=pass_all
8266   ;;
8267
8268 solaris*)
8269   lt_cv_deplibs_check_method=pass_all
8270   ;;
8271
8272 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8273   lt_cv_deplibs_check_method=pass_all
8274   ;;
8275
8276 sysv4 | sysv4.3*)
8277   case $host_vendor in
8278   motorola)
8279     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]'
8280     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8281     ;;
8282   ncr)
8283     lt_cv_deplibs_check_method=pass_all
8284     ;;
8285   sequent)
8286     lt_cv_file_magic_cmd='/bin/file'
8287     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8288     ;;
8289   sni)
8290     lt_cv_file_magic_cmd='/bin/file'
8291     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8292     lt_cv_file_magic_test_file=/lib/libc.so
8293     ;;
8294   siemens)
8295     lt_cv_deplibs_check_method=pass_all
8296     ;;
8297   pc)
8298     lt_cv_deplibs_check_method=pass_all
8299     ;;
8300   esac
8301   ;;
8302
8303 tpf*)
8304   lt_cv_deplibs_check_method=pass_all
8305   ;;
8306 esac
8307
8308 fi
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8310 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8311
8312 file_magic_glob=
8313 want_nocaseglob=no
8314 if test "$build" = "$host"; then
8315   case $host_os in
8316   mingw* | pw32*)
8317     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8318       want_nocaseglob=yes
8319     else
8320       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8321     fi
8322     ;;
8323   esac
8324 fi
8325
8326 file_magic_cmd=$lt_cv_file_magic_cmd
8327 deplibs_check_method=$lt_cv_deplibs_check_method
8328 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351 if test -n "$ac_tool_prefix"; then
8352   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8353 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355 $as_echo_n "checking for $ac_word... " >&6; }
8356 if ${ac_cv_prog_DLLTOOL+:} false; then :
8357   $as_echo_n "(cached) " >&6
8358 else
8359   if test -n "$DLLTOOL"; then
8360   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8361 else
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363 for as_dir in $PATH
8364 do
8365   IFS=$as_save_IFS
8366   test -z "$as_dir" && as_dir=.
8367     for ac_exec_ext in '' $ac_executable_extensions; do
8368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8369     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371     break 2
8372   fi
8373 done
8374   done
8375 IFS=$as_save_IFS
8376
8377 fi
8378 fi
8379 DLLTOOL=$ac_cv_prog_DLLTOOL
8380 if test -n "$DLLTOOL"; then
8381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8382 $as_echo "$DLLTOOL" >&6; }
8383 else
8384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8386 fi
8387
8388
8389 fi
8390 if test -z "$ac_cv_prog_DLLTOOL"; then
8391   ac_ct_DLLTOOL=$DLLTOOL
8392   # Extract the first word of "dlltool", so it can be a program name with args.
8393 set dummy dlltool; ac_word=$2
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8395 $as_echo_n "checking for $ac_word... " >&6; }
8396 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8397   $as_echo_n "(cached) " >&6
8398 else
8399   if test -n "$ac_ct_DLLTOOL"; then
8400   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8401 else
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403 for as_dir in $PATH
8404 do
8405   IFS=$as_save_IFS
8406   test -z "$as_dir" && as_dir=.
8407     for ac_exec_ext in '' $ac_executable_extensions; do
8408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8409     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8411     break 2
8412   fi
8413 done
8414   done
8415 IFS=$as_save_IFS
8416
8417 fi
8418 fi
8419 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8420 if test -n "$ac_ct_DLLTOOL"; then
8421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8422 $as_echo "$ac_ct_DLLTOOL" >&6; }
8423 else
8424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425 $as_echo "no" >&6; }
8426 fi
8427
8428   if test "x$ac_ct_DLLTOOL" = x; then
8429     DLLTOOL="false"
8430   else
8431     case $cross_compiling:$ac_tool_warned in
8432 yes:)
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8435 ac_tool_warned=yes ;;
8436 esac
8437     DLLTOOL=$ac_ct_DLLTOOL
8438   fi
8439 else
8440   DLLTOOL="$ac_cv_prog_DLLTOOL"
8441 fi
8442
8443 test -z "$DLLTOOL" && DLLTOOL=dlltool
8444
8445
8446
8447
8448
8449
8450
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8452 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8453 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8454   $as_echo_n "(cached) " >&6
8455 else
8456   lt_cv_sharedlib_from_linklib_cmd='unknown'
8457
8458 case $host_os in
8459 cygwin* | mingw* | pw32* | cegcc*)
8460   # two different shell functions defined in ltmain.sh
8461   # decide which to use based on capabilities of $DLLTOOL
8462   case `$DLLTOOL --help 2>&1` in
8463   *--identify-strict*)
8464     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8465     ;;
8466   *)
8467     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8468     ;;
8469   esac
8470   ;;
8471 *)
8472   # fallback: assume linklib IS sharedlib
8473   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
8474   ;;
8475 esac
8476
8477 fi
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8479 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8480 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8481 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8482
8483
8484
8485
8486
8487
8488
8489 if test -n "$ac_tool_prefix"; then
8490   for ac_prog in ar
8491   do
8492     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8493 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8495 $as_echo_n "checking for $ac_word... " >&6; }
8496 if ${ac_cv_prog_AR+:} false; then :
8497   $as_echo_n "(cached) " >&6
8498 else
8499   if test -n "$AR"; then
8500   ac_cv_prog_AR="$AR" # Let the user override the test.
8501 else
8502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503 for as_dir in $PATH
8504 do
8505   IFS=$as_save_IFS
8506   test -z "$as_dir" && as_dir=.
8507     for ac_exec_ext in '' $ac_executable_extensions; do
8508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8509     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8511     break 2
8512   fi
8513 done
8514   done
8515 IFS=$as_save_IFS
8516
8517 fi
8518 fi
8519 AR=$ac_cv_prog_AR
8520 if test -n "$AR"; then
8521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8522 $as_echo "$AR" >&6; }
8523 else
8524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8525 $as_echo "no" >&6; }
8526 fi
8527
8528
8529     test -n "$AR" && break
8530   done
8531 fi
8532 if test -z "$AR"; then
8533   ac_ct_AR=$AR
8534   for ac_prog in ar
8535 do
8536   # Extract the first word of "$ac_prog", so it can be a program name with args.
8537 set dummy $ac_prog; ac_word=$2
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8539 $as_echo_n "checking for $ac_word... " >&6; }
8540 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8541   $as_echo_n "(cached) " >&6
8542 else
8543   if test -n "$ac_ct_AR"; then
8544   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8545 else
8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547 for as_dir in $PATH
8548 do
8549   IFS=$as_save_IFS
8550   test -z "$as_dir" && as_dir=.
8551     for ac_exec_ext in '' $ac_executable_extensions; do
8552   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8553     ac_cv_prog_ac_ct_AR="$ac_prog"
8554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8555     break 2
8556   fi
8557 done
8558   done
8559 IFS=$as_save_IFS
8560
8561 fi
8562 fi
8563 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8564 if test -n "$ac_ct_AR"; then
8565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8566 $as_echo "$ac_ct_AR" >&6; }
8567 else
8568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569 $as_echo "no" >&6; }
8570 fi
8571
8572
8573   test -n "$ac_ct_AR" && break
8574 done
8575
8576   if test "x$ac_ct_AR" = x; then
8577     AR="false"
8578   else
8579     case $cross_compiling:$ac_tool_warned in
8580 yes:)
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8583 ac_tool_warned=yes ;;
8584 esac
8585     AR=$ac_ct_AR
8586   fi
8587 fi
8588
8589 : ${AR=ar}
8590 : ${AR_FLAGS=cru}
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8603 $as_echo_n "checking for archiver @FILE support... " >&6; }
8604 if ${lt_cv_ar_at_file+:} false; then :
8605   $as_echo_n "(cached) " >&6
8606 else
8607   lt_cv_ar_at_file=no
8608    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h.  */
8610
8611 int
8612 main ()
8613 {
8614
8615   ;
8616   return 0;
8617 }
8618 _ACEOF
8619 if ac_fn_c_try_compile "$LINENO"; then :
8620   echo conftest.$ac_objext > conftest.lst
8621       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8622       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8623   (eval $lt_ar_try) 2>&5
8624   ac_status=$?
8625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8626   test $ac_status = 0; }
8627       if test "$ac_status" -eq 0; then
8628         # Ensure the archiver fails upon bogus file names.
8629         rm -f conftest.$ac_objext libconftest.a
8630         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8631   (eval $lt_ar_try) 2>&5
8632   ac_status=$?
8633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8634   test $ac_status = 0; }
8635         if test "$ac_status" -ne 0; then
8636           lt_cv_ar_at_file=@
8637         fi
8638       fi
8639       rm -f conftest.* libconftest.a
8640
8641 fi
8642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8643
8644 fi
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8646 $as_echo "$lt_cv_ar_at_file" >&6; }
8647
8648 if test "x$lt_cv_ar_at_file" = xno; then
8649   archiver_list_spec=
8650 else
8651   archiver_list_spec=$lt_cv_ar_at_file
8652 fi
8653
8654
8655
8656
8657
8658
8659
8660 if test -n "$ac_tool_prefix"; then
8661   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8662 set dummy ${ac_tool_prefix}strip; ac_word=$2
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8664 $as_echo_n "checking for $ac_word... " >&6; }
8665 if ${ac_cv_prog_STRIP+:} false; then :
8666   $as_echo_n "(cached) " >&6
8667 else
8668   if test -n "$STRIP"; then
8669   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8670 else
8671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8672 for as_dir in $PATH
8673 do
8674   IFS=$as_save_IFS
8675   test -z "$as_dir" && as_dir=.
8676     for ac_exec_ext in '' $ac_executable_extensions; do
8677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8678     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8680     break 2
8681   fi
8682 done
8683   done
8684 IFS=$as_save_IFS
8685
8686 fi
8687 fi
8688 STRIP=$ac_cv_prog_STRIP
8689 if test -n "$STRIP"; then
8690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8691 $as_echo "$STRIP" >&6; }
8692 else
8693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8694 $as_echo "no" >&6; }
8695 fi
8696
8697
8698 fi
8699 if test -z "$ac_cv_prog_STRIP"; then
8700   ac_ct_STRIP=$STRIP
8701   # Extract the first word of "strip", so it can be a program name with args.
8702 set dummy strip; ac_word=$2
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8704 $as_echo_n "checking for $ac_word... " >&6; }
8705 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8706   $as_echo_n "(cached) " >&6
8707 else
8708   if test -n "$ac_ct_STRIP"; then
8709   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8710 else
8711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8712 for as_dir in $PATH
8713 do
8714   IFS=$as_save_IFS
8715   test -z "$as_dir" && as_dir=.
8716     for ac_exec_ext in '' $ac_executable_extensions; do
8717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8718     ac_cv_prog_ac_ct_STRIP="strip"
8719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8720     break 2
8721   fi
8722 done
8723   done
8724 IFS=$as_save_IFS
8725
8726 fi
8727 fi
8728 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8729 if test -n "$ac_ct_STRIP"; then
8730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8731 $as_echo "$ac_ct_STRIP" >&6; }
8732 else
8733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8735 fi
8736
8737   if test "x$ac_ct_STRIP" = x; then
8738     STRIP=":"
8739   else
8740     case $cross_compiling:$ac_tool_warned in
8741 yes:)
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8744 ac_tool_warned=yes ;;
8745 esac
8746     STRIP=$ac_ct_STRIP
8747   fi
8748 else
8749   STRIP="$ac_cv_prog_STRIP"
8750 fi
8751
8752 test -z "$STRIP" && STRIP=:
8753
8754
8755
8756
8757
8758
8759 if test -n "$ac_tool_prefix"; then
8760   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8761 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8763 $as_echo_n "checking for $ac_word... " >&6; }
8764 if ${ac_cv_prog_RANLIB+:} false; then :
8765   $as_echo_n "(cached) " >&6
8766 else
8767   if test -n "$RANLIB"; then
8768   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8769 else
8770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8771 for as_dir in $PATH
8772 do
8773   IFS=$as_save_IFS
8774   test -z "$as_dir" && as_dir=.
8775     for ac_exec_ext in '' $ac_executable_extensions; do
8776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8777     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8779     break 2
8780   fi
8781 done
8782   done
8783 IFS=$as_save_IFS
8784
8785 fi
8786 fi
8787 RANLIB=$ac_cv_prog_RANLIB
8788 if test -n "$RANLIB"; then
8789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8790 $as_echo "$RANLIB" >&6; }
8791 else
8792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8793 $as_echo "no" >&6; }
8794 fi
8795
8796
8797 fi
8798 if test -z "$ac_cv_prog_RANLIB"; then
8799   ac_ct_RANLIB=$RANLIB
8800   # Extract the first word of "ranlib", so it can be a program name with args.
8801 set dummy ranlib; ac_word=$2
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8803 $as_echo_n "checking for $ac_word... " >&6; }
8804 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8805   $as_echo_n "(cached) " >&6
8806 else
8807   if test -n "$ac_ct_RANLIB"; then
8808   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8809 else
8810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8811 for as_dir in $PATH
8812 do
8813   IFS=$as_save_IFS
8814   test -z "$as_dir" && as_dir=.
8815     for ac_exec_ext in '' $ac_executable_extensions; do
8816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8817     ac_cv_prog_ac_ct_RANLIB="ranlib"
8818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8819     break 2
8820   fi
8821 done
8822   done
8823 IFS=$as_save_IFS
8824
8825 fi
8826 fi
8827 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8828 if test -n "$ac_ct_RANLIB"; then
8829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8830 $as_echo "$ac_ct_RANLIB" >&6; }
8831 else
8832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8833 $as_echo "no" >&6; }
8834 fi
8835
8836   if test "x$ac_ct_RANLIB" = x; then
8837     RANLIB=":"
8838   else
8839     case $cross_compiling:$ac_tool_warned in
8840 yes:)
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8843 ac_tool_warned=yes ;;
8844 esac
8845     RANLIB=$ac_ct_RANLIB
8846   fi
8847 else
8848   RANLIB="$ac_cv_prog_RANLIB"
8849 fi
8850
8851 test -z "$RANLIB" && RANLIB=:
8852
8853
8854
8855
8856
8857
8858 # Determine commands to create old-style static archives.
8859 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8860 old_postinstall_cmds='chmod 644 $oldlib'
8861 old_postuninstall_cmds=
8862
8863 if test -n "$RANLIB"; then
8864   case $host_os in
8865   openbsd*)
8866     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8867     ;;
8868   *)
8869     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8870     ;;
8871   esac
8872   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8873 fi
8874
8875 case $host_os in
8876   darwin*)
8877     lock_old_archive_extraction=yes ;;
8878   *)
8879     lock_old_archive_extraction=no ;;
8880 esac
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920 # If no C compiler was specified, use CC.
8921 LTCC=${LTCC-"$CC"}
8922
8923 # If no C compiler flags were specified, use CFLAGS.
8924 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8925
8926 # Allow CC to be a program name with arguments.
8927 compiler=$CC
8928
8929
8930 # Check for command to grab the raw symbol name followed by C symbol from nm.
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8932 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8933 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8934   $as_echo_n "(cached) " >&6
8935 else
8936
8937 # These are sane defaults that work on at least a few old systems.
8938 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8939
8940 # Character class describing NM global symbol codes.
8941 symcode='[BCDEGRST]'
8942
8943 # Regexp to match symbols that can be accessed directly from C.
8944 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8945
8946 # Define system-specific variables.
8947 case $host_os in
8948 aix*)
8949   symcode='[BCDT]'
8950   ;;
8951 cygwin* | mingw* | pw32* | cegcc*)
8952   symcode='[ABCDGISTW]'
8953   ;;
8954 hpux*)
8955   if test "$host_cpu" = ia64; then
8956     symcode='[ABCDEGRST]'
8957   fi
8958   ;;
8959 irix* | nonstopux*)
8960   symcode='[BCDEGRST]'
8961   ;;
8962 osf*)
8963   symcode='[BCDEGQRST]'
8964   ;;
8965 solaris*)
8966   symcode='[BDRT]'
8967   ;;
8968 sco3.2v5*)
8969   symcode='[DT]'
8970   ;;
8971 sysv4.2uw2*)
8972   symcode='[DT]'
8973   ;;
8974 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8975   symcode='[ABDT]'
8976   ;;
8977 sysv4)
8978   symcode='[DFNSTU]'
8979   ;;
8980 esac
8981
8982 # If we're using GNU nm, then use its standard symbol codes.
8983 case `$NM -V 2>&1` in
8984 *GNU* | *'with BFD'*)
8985   symcode='[ABCDGIRSTW]' ;;
8986 esac
8987
8988 # Transform an extracted symbol line into a proper C declaration.
8989 # Some systems (esp. on ia64) link data and code symbols differently,
8990 # so use this general approach.
8991 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8992
8993 # Transform an extracted symbol line into symbol name and symbol address
8994 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8995 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
8996
8997 # Handle CRLF in mingw tool chain
8998 opt_cr=
8999 case $build_os in
9000 mingw*)
9001   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9002   ;;
9003 esac
9004
9005 # Try without a prefix underscore, then with it.
9006 for ac_symprfx in "" "_"; do
9007
9008   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9009   symxfrm="\\1 $ac_symprfx\\2 \\2"
9010
9011   # Write the raw and C identifiers.
9012   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9013     # Fake it for dumpbin and say T for any non-static function
9014     # and D for any global variable.
9015     # Also find C++ and __fastcall symbols from MSVC++,
9016     # which start with @ or ?.
9017     lt_cv_sys_global_symbol_pipe="$AWK '"\
9018 "     {last_section=section; section=\$ 3};"\
9019 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9020 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9021 "     \$ 0!~/External *\|/{next};"\
9022 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9023 "     {if(hide[section]) next};"\
9024 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9025 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9026 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9027 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9028 "     ' prfx=^$ac_symprfx"
9029   else
9030     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9031   fi
9032   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9033
9034   # Check to see that the pipe works correctly.
9035   pipe_works=no
9036
9037   rm -f conftest*
9038   cat > conftest.$ac_ext <<_LT_EOF
9039 #ifdef __cplusplus
9040 extern "C" {
9041 #endif
9042 char nm_test_var;
9043 void nm_test_func(void);
9044 void nm_test_func(void){}
9045 #ifdef __cplusplus
9046 }
9047 #endif
9048 int main(){nm_test_var='a';nm_test_func();return(0);}
9049 _LT_EOF
9050
9051   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9052   (eval $ac_compile) 2>&5
9053   ac_status=$?
9054   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9055   test $ac_status = 0; }; then
9056     # Now try to grab the symbols.
9057     nlist=conftest.nm
9058     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9059   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9060   ac_status=$?
9061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9062   test $ac_status = 0; } && test -s "$nlist"; then
9063       # Try sorting and uniquifying the output.
9064       if sort "$nlist" | uniq > "$nlist"T; then
9065         mv -f "$nlist"T "$nlist"
9066       else
9067         rm -f "$nlist"T
9068       fi
9069
9070       # Make sure that we snagged all the symbols we need.
9071       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9072         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9073           cat <<_LT_EOF > conftest.$ac_ext
9074 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9075 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9076 /* DATA imports from DLLs on WIN32 con't be const, because runtime
9077    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9078 # define LT_DLSYM_CONST
9079 #elif defined(__osf__)
9080 /* This system does not cope well with relocations in const data.  */
9081 # define LT_DLSYM_CONST
9082 #else
9083 # define LT_DLSYM_CONST const
9084 #endif
9085
9086 #ifdef __cplusplus
9087 extern "C" {
9088 #endif
9089
9090 _LT_EOF
9091           # Now generate the symbol file.
9092           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9093
9094           cat <<_LT_EOF >> conftest.$ac_ext
9095
9096 /* The mapping between symbol names and symbols.  */
9097 LT_DLSYM_CONST struct {
9098   const char *name;
9099   void       *address;
9100 }
9101 lt__PROGRAM__LTX_preloaded_symbols[] =
9102 {
9103   { "@PROGRAM@", (void *) 0 },
9104 _LT_EOF
9105           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9106           cat <<\_LT_EOF >> conftest.$ac_ext
9107   {0, (void *) 0}
9108 };
9109
9110 /* This works around a problem in FreeBSD linker */
9111 #ifdef FREEBSD_WORKAROUND
9112 static const void *lt_preloaded_setup() {
9113   return lt__PROGRAM__LTX_preloaded_symbols;
9114 }
9115 #endif
9116
9117 #ifdef __cplusplus
9118 }
9119 #endif
9120 _LT_EOF
9121           # Now try linking the two files.
9122           mv conftest.$ac_objext conftstm.$ac_objext
9123           lt_globsym_save_LIBS=$LIBS
9124           lt_globsym_save_CFLAGS=$CFLAGS
9125           LIBS="conftstm.$ac_objext"
9126           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9127           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9128   (eval $ac_link) 2>&5
9129   ac_status=$?
9130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9131   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9132             pipe_works=yes
9133           fi
9134           LIBS=$lt_globsym_save_LIBS
9135           CFLAGS=$lt_globsym_save_CFLAGS
9136         else
9137           echo "cannot find nm_test_func in $nlist" >&5
9138         fi
9139       else
9140         echo "cannot find nm_test_var in $nlist" >&5
9141       fi
9142     else
9143       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9144     fi
9145   else
9146     echo "$progname: failed program was:" >&5
9147     cat conftest.$ac_ext >&5
9148   fi
9149   rm -rf conftest* conftst*
9150
9151   # Do not use the global_symbol_pipe unless it works.
9152   if test "$pipe_works" = yes; then
9153     break
9154   else
9155     lt_cv_sys_global_symbol_pipe=
9156   fi
9157 done
9158
9159 fi
9160
9161 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9162   lt_cv_sys_global_symbol_to_cdecl=
9163 fi
9164 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9166 $as_echo "failed" >&6; }
9167 else
9168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9169 $as_echo "ok" >&6; }
9170 fi
9171
9172 # Response file support.
9173 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9174   nm_file_list_spec='@'
9175 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9176   nm_file_list_spec='@'
9177 fi
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9206 $as_echo_n "checking for sysroot... " >&6; }
9207
9208 # Check whether --with-sysroot was given.
9209 if test "${with_sysroot+set}" = set; then :
9210   withval=$with_sysroot;
9211 else
9212   with_sysroot=no
9213 fi
9214
9215
9216 lt_sysroot=
9217 case ${with_sysroot} in #(
9218  yes)
9219    if test "$GCC" = yes; then
9220      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9221    fi
9222    ;; #(
9223  /*)
9224    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9225    ;; #(
9226  no|'')
9227    ;; #(
9228  *)
9229    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9230 $as_echo "${with_sysroot}" >&6; }
9231    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9232    ;;
9233 esac
9234
9235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9236 $as_echo "${lt_sysroot:-no}" >&6; }
9237
9238
9239
9240
9241
9242 # Check whether --enable-libtool-lock was given.
9243 if test "${enable_libtool_lock+set}" = set; then :
9244   enableval=$enable_libtool_lock;
9245 fi
9246
9247 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9248
9249 # Some flags need to be propagated to the compiler or linker for good
9250 # libtool support.
9251 case $host in
9252 ia64-*-hpux*)
9253   # Find out which ABI we are using.
9254   echo 'int i;' > conftest.$ac_ext
9255   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9256   (eval $ac_compile) 2>&5
9257   ac_status=$?
9258   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9259   test $ac_status = 0; }; then
9260     case `/usr/bin/file conftest.$ac_objext` in
9261       *ELF-32*)
9262         HPUX_IA64_MODE="32"
9263         ;;
9264       *ELF-64*)
9265         HPUX_IA64_MODE="64"
9266         ;;
9267     esac
9268   fi
9269   rm -rf conftest*
9270   ;;
9271 *-*-irix6*)
9272   # Find out which ABI we are using.
9273   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9274   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9275   (eval $ac_compile) 2>&5
9276   ac_status=$?
9277   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9278   test $ac_status = 0; }; then
9279     if test "$lt_cv_prog_gnu_ld" = yes; then
9280       case `/usr/bin/file conftest.$ac_objext` in
9281         *32-bit*)
9282           LD="${LD-ld} -melf32bsmip"
9283           ;;
9284         *N32*)
9285           LD="${LD-ld} -melf32bmipn32"
9286           ;;
9287         *64-bit*)
9288           LD="${LD-ld} -melf64bmip"
9289         ;;
9290       esac
9291     else
9292       case `/usr/bin/file conftest.$ac_objext` in
9293         *32-bit*)
9294           LD="${LD-ld} -32"
9295           ;;
9296         *N32*)
9297           LD="${LD-ld} -n32"
9298           ;;
9299         *64-bit*)
9300           LD="${LD-ld} -64"
9301           ;;
9302       esac
9303     fi
9304   fi
9305   rm -rf conftest*
9306   ;;
9307
9308 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9309 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9310   # Find out which ABI we are using.
9311   echo 'int i;' > conftest.$ac_ext
9312   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9313   (eval $ac_compile) 2>&5
9314   ac_status=$?
9315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9316   test $ac_status = 0; }; then
9317     case `/usr/bin/file conftest.o` in
9318       *32-bit*)
9319         case $host in
9320           x86_64-*kfreebsd*-gnu)
9321             LD="${LD-ld} -m elf_i386_fbsd"
9322             ;;
9323           x86_64-*linux*)
9324             LD="${LD-ld} -m elf_i386"
9325             ;;
9326           ppc64-*linux*|powerpc64-*linux*)
9327             LD="${LD-ld} -m elf32ppclinux"
9328             ;;
9329           s390x-*linux*)
9330             LD="${LD-ld} -m elf_s390"
9331             ;;
9332           sparc64-*linux*)
9333             LD="${LD-ld} -m elf32_sparc"
9334             ;;
9335         esac
9336         ;;
9337       *64-bit*)
9338         case $host in
9339           x86_64-*kfreebsd*-gnu)
9340             LD="${LD-ld} -m elf_x86_64_fbsd"
9341             ;;
9342           x86_64-*linux*)
9343             LD="${LD-ld} -m elf_x86_64"
9344             ;;
9345           ppc*-*linux*|powerpc*-*linux*)
9346             LD="${LD-ld} -m elf64ppc"
9347             ;;
9348           s390*-*linux*|s390*-*tpf*)
9349             LD="${LD-ld} -m elf64_s390"
9350             ;;
9351           sparc*-*linux*)
9352             LD="${LD-ld} -m elf64_sparc"
9353             ;;
9354         esac
9355         ;;
9356     esac
9357   fi
9358   rm -rf conftest*
9359   ;;
9360
9361 *-*-sco3.2v5*)
9362   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9363   SAVE_CFLAGS="$CFLAGS"
9364   CFLAGS="$CFLAGS -belf"
9365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9366 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9367 if ${lt_cv_cc_needs_belf+:} false; then :
9368   $as_echo_n "(cached) " >&6
9369 else
9370   ac_ext=c
9371 ac_cpp='$CPP $CPPFLAGS'
9372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9375
9376      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h.  */
9378
9379 int
9380 main ()
9381 {
9382
9383   ;
9384   return 0;
9385 }
9386 _ACEOF
9387 if ac_fn_c_try_link "$LINENO"; then :
9388   lt_cv_cc_needs_belf=yes
9389 else
9390   lt_cv_cc_needs_belf=no
9391 fi
9392 rm -f core conftest.err conftest.$ac_objext \
9393     conftest$ac_exeext conftest.$ac_ext
9394      ac_ext=c
9395 ac_cpp='$CPP $CPPFLAGS'
9396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9399
9400 fi
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9402 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9403   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9404     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9405     CFLAGS="$SAVE_CFLAGS"
9406   fi
9407   ;;
9408 *-*solaris*)
9409   # Find out which ABI we are using.
9410   echo 'int i;' > conftest.$ac_ext
9411   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9412   (eval $ac_compile) 2>&5
9413   ac_status=$?
9414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9415   test $ac_status = 0; }; then
9416     case `/usr/bin/file conftest.o` in
9417     *64-bit*)
9418       case $lt_cv_prog_gnu_ld in
9419       yes*)
9420         case $host in
9421         i?86-*-solaris*)
9422           LD="${LD-ld} -m elf_x86_64"
9423           ;;
9424         sparc*-*-solaris*)
9425           LD="${LD-ld} -m elf64_sparc"
9426           ;;
9427         esac
9428         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9429         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9430           LD="${LD-ld}_sol2"
9431         fi
9432         ;;
9433       *)
9434         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9435           LD="${LD-ld} -64"
9436         fi
9437         ;;
9438       esac
9439       ;;
9440     esac
9441   fi
9442   rm -rf conftest*
9443   ;;
9444 esac
9445
9446 need_locks="$enable_libtool_lock"
9447
9448 if test -n "$ac_tool_prefix"; then
9449   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9450 set dummy ${ac_tool_prefix}mt; ac_word=$2
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9452 $as_echo_n "checking for $ac_word... " >&6; }
9453 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9454   $as_echo_n "(cached) " >&6
9455 else
9456   if test -n "$MANIFEST_TOOL"; then
9457   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9458 else
9459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9460 for as_dir in $PATH
9461 do
9462   IFS=$as_save_IFS
9463   test -z "$as_dir" && as_dir=.
9464     for ac_exec_ext in '' $ac_executable_extensions; do
9465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9466     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9468     break 2
9469   fi
9470 done
9471   done
9472 IFS=$as_save_IFS
9473
9474 fi
9475 fi
9476 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9477 if test -n "$MANIFEST_TOOL"; then
9478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9479 $as_echo "$MANIFEST_TOOL" >&6; }
9480 else
9481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9482 $as_echo "no" >&6; }
9483 fi
9484
9485
9486 fi
9487 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9488   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9489   # Extract the first word of "mt", so it can be a program name with args.
9490 set dummy mt; ac_word=$2
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9492 $as_echo_n "checking for $ac_word... " >&6; }
9493 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9494   $as_echo_n "(cached) " >&6
9495 else
9496   if test -n "$ac_ct_MANIFEST_TOOL"; then
9497   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9498 else
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_exec_ext in '' $ac_executable_extensions; do
9505   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9506     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9508     break 2
9509   fi
9510 done
9511   done
9512 IFS=$as_save_IFS
9513
9514 fi
9515 fi
9516 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9517 if test -n "$ac_ct_MANIFEST_TOOL"; then
9518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9519 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9520 else
9521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522 $as_echo "no" >&6; }
9523 fi
9524
9525   if test "x$ac_ct_MANIFEST_TOOL" = x; then
9526     MANIFEST_TOOL=":"
9527   else
9528     case $cross_compiling:$ac_tool_warned in
9529 yes:)
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9532 ac_tool_warned=yes ;;
9533 esac
9534     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9535   fi
9536 else
9537   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9538 fi
9539
9540 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9542 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9543 if ${lt_cv_path_mainfest_tool+:} false; then :
9544   $as_echo_n "(cached) " >&6
9545 else
9546   lt_cv_path_mainfest_tool=no
9547   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9548   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9549   cat conftest.err >&5
9550   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9551     lt_cv_path_mainfest_tool=yes
9552   fi
9553   rm -f conftest*
9554 fi
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9556 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9557 if test "x$lt_cv_path_mainfest_tool" != xyes; then
9558   MANIFEST_TOOL=:
9559 fi
9560
9561
9562
9563
9564
9565
9566   case $host_os in
9567     rhapsody* | darwin*)
9568     if test -n "$ac_tool_prefix"; then
9569   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9570 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9572 $as_echo_n "checking for $ac_word... " >&6; }
9573 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9574   $as_echo_n "(cached) " >&6
9575 else
9576   if test -n "$DSYMUTIL"; then
9577   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9578 else
9579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580 for as_dir in $PATH
9581 do
9582   IFS=$as_save_IFS
9583   test -z "$as_dir" && as_dir=.
9584     for ac_exec_ext in '' $ac_executable_extensions; do
9585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9586     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9588     break 2
9589   fi
9590 done
9591   done
9592 IFS=$as_save_IFS
9593
9594 fi
9595 fi
9596 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9597 if test -n "$DSYMUTIL"; then
9598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9599 $as_echo "$DSYMUTIL" >&6; }
9600 else
9601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602 $as_echo "no" >&6; }
9603 fi
9604
9605
9606 fi
9607 if test -z "$ac_cv_prog_DSYMUTIL"; then
9608   ac_ct_DSYMUTIL=$DSYMUTIL
9609   # Extract the first word of "dsymutil", so it can be a program name with args.
9610 set dummy dsymutil; ac_word=$2
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9612 $as_echo_n "checking for $ac_word... " >&6; }
9613 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9614   $as_echo_n "(cached) " >&6
9615 else
9616   if test -n "$ac_ct_DSYMUTIL"; then
9617   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9618 else
9619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9620 for as_dir in $PATH
9621 do
9622   IFS=$as_save_IFS
9623   test -z "$as_dir" && as_dir=.
9624     for ac_exec_ext in '' $ac_executable_extensions; do
9625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9626     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9628     break 2
9629   fi
9630 done
9631   done
9632 IFS=$as_save_IFS
9633
9634 fi
9635 fi
9636 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9637 if test -n "$ac_ct_DSYMUTIL"; then
9638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9639 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9640 else
9641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9642 $as_echo "no" >&6; }
9643 fi
9644
9645   if test "x$ac_ct_DSYMUTIL" = x; then
9646     DSYMUTIL=":"
9647   else
9648     case $cross_compiling:$ac_tool_warned in
9649 yes:)
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9652 ac_tool_warned=yes ;;
9653 esac
9654     DSYMUTIL=$ac_ct_DSYMUTIL
9655   fi
9656 else
9657   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9658 fi
9659
9660     if test -n "$ac_tool_prefix"; then
9661   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9662 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9664 $as_echo_n "checking for $ac_word... " >&6; }
9665 if ${ac_cv_prog_NMEDIT+:} false; then :
9666   $as_echo_n "(cached) " >&6
9667 else
9668   if test -n "$NMEDIT"; then
9669   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9670 else
9671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9672 for as_dir in $PATH
9673 do
9674   IFS=$as_save_IFS
9675   test -z "$as_dir" && as_dir=.
9676     for ac_exec_ext in '' $ac_executable_extensions; do
9677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9678     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9680     break 2
9681   fi
9682 done
9683   done
9684 IFS=$as_save_IFS
9685
9686 fi
9687 fi
9688 NMEDIT=$ac_cv_prog_NMEDIT
9689 if test -n "$NMEDIT"; then
9690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9691 $as_echo "$NMEDIT" >&6; }
9692 else
9693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9694 $as_echo "no" >&6; }
9695 fi
9696
9697
9698 fi
9699 if test -z "$ac_cv_prog_NMEDIT"; then
9700   ac_ct_NMEDIT=$NMEDIT
9701   # Extract the first word of "nmedit", so it can be a program name with args.
9702 set dummy nmedit; ac_word=$2
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9704 $as_echo_n "checking for $ac_word... " >&6; }
9705 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9706   $as_echo_n "(cached) " >&6
9707 else
9708   if test -n "$ac_ct_NMEDIT"; then
9709   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9710 else
9711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9712 for as_dir in $PATH
9713 do
9714   IFS=$as_save_IFS
9715   test -z "$as_dir" && as_dir=.
9716     for ac_exec_ext in '' $ac_executable_extensions; do
9717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9718     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9720     break 2
9721   fi
9722 done
9723   done
9724 IFS=$as_save_IFS
9725
9726 fi
9727 fi
9728 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9729 if test -n "$ac_ct_NMEDIT"; then
9730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9731 $as_echo "$ac_ct_NMEDIT" >&6; }
9732 else
9733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9734 $as_echo "no" >&6; }
9735 fi
9736
9737   if test "x$ac_ct_NMEDIT" = x; then
9738     NMEDIT=":"
9739   else
9740     case $cross_compiling:$ac_tool_warned in
9741 yes:)
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9744 ac_tool_warned=yes ;;
9745 esac
9746     NMEDIT=$ac_ct_NMEDIT
9747   fi
9748 else
9749   NMEDIT="$ac_cv_prog_NMEDIT"
9750 fi
9751
9752     if test -n "$ac_tool_prefix"; then
9753   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9754 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9756 $as_echo_n "checking for $ac_word... " >&6; }
9757 if ${ac_cv_prog_LIPO+:} false; then :
9758   $as_echo_n "(cached) " >&6
9759 else
9760   if test -n "$LIPO"; then
9761   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9762 else
9763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9764 for as_dir in $PATH
9765 do
9766   IFS=$as_save_IFS
9767   test -z "$as_dir" && as_dir=.
9768     for ac_exec_ext in '' $ac_executable_extensions; do
9769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9770     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9772     break 2
9773   fi
9774 done
9775   done
9776 IFS=$as_save_IFS
9777
9778 fi
9779 fi
9780 LIPO=$ac_cv_prog_LIPO
9781 if test -n "$LIPO"; then
9782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9783 $as_echo "$LIPO" >&6; }
9784 else
9785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9786 $as_echo "no" >&6; }
9787 fi
9788
9789
9790 fi
9791 if test -z "$ac_cv_prog_LIPO"; then
9792   ac_ct_LIPO=$LIPO
9793   # Extract the first word of "lipo", so it can be a program name with args.
9794 set dummy lipo; ac_word=$2
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9796 $as_echo_n "checking for $ac_word... " >&6; }
9797 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9798   $as_echo_n "(cached) " >&6
9799 else
9800   if test -n "$ac_ct_LIPO"; then
9801   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9802 else
9803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804 for as_dir in $PATH
9805 do
9806   IFS=$as_save_IFS
9807   test -z "$as_dir" && as_dir=.
9808     for ac_exec_ext in '' $ac_executable_extensions; do
9809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9810     ac_cv_prog_ac_ct_LIPO="lipo"
9811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9812     break 2
9813   fi
9814 done
9815   done
9816 IFS=$as_save_IFS
9817
9818 fi
9819 fi
9820 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9821 if test -n "$ac_ct_LIPO"; then
9822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9823 $as_echo "$ac_ct_LIPO" >&6; }
9824 else
9825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9826 $as_echo "no" >&6; }
9827 fi
9828
9829   if test "x$ac_ct_LIPO" = x; then
9830     LIPO=":"
9831   else
9832     case $cross_compiling:$ac_tool_warned in
9833 yes:)
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9836 ac_tool_warned=yes ;;
9837 esac
9838     LIPO=$ac_ct_LIPO
9839   fi
9840 else
9841   LIPO="$ac_cv_prog_LIPO"
9842 fi
9843
9844     if test -n "$ac_tool_prefix"; then
9845   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9846 set dummy ${ac_tool_prefix}otool; ac_word=$2
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848 $as_echo_n "checking for $ac_word... " >&6; }
9849 if ${ac_cv_prog_OTOOL+:} false; then :
9850   $as_echo_n "(cached) " >&6
9851 else
9852   if test -n "$OTOOL"; then
9853   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9854 else
9855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856 for as_dir in $PATH
9857 do
9858   IFS=$as_save_IFS
9859   test -z "$as_dir" && as_dir=.
9860     for ac_exec_ext in '' $ac_executable_extensions; do
9861   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9862     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9864     break 2
9865   fi
9866 done
9867   done
9868 IFS=$as_save_IFS
9869
9870 fi
9871 fi
9872 OTOOL=$ac_cv_prog_OTOOL
9873 if test -n "$OTOOL"; then
9874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9875 $as_echo "$OTOOL" >&6; }
9876 else
9877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878 $as_echo "no" >&6; }
9879 fi
9880
9881
9882 fi
9883 if test -z "$ac_cv_prog_OTOOL"; then
9884   ac_ct_OTOOL=$OTOOL
9885   # Extract the first word of "otool", so it can be a program name with args.
9886 set dummy otool; ac_word=$2
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9888 $as_echo_n "checking for $ac_word... " >&6; }
9889 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9890   $as_echo_n "(cached) " >&6
9891 else
9892   if test -n "$ac_ct_OTOOL"; then
9893   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9894 else
9895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9896 for as_dir in $PATH
9897 do
9898   IFS=$as_save_IFS
9899   test -z "$as_dir" && as_dir=.
9900     for ac_exec_ext in '' $ac_executable_extensions; do
9901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9902     ac_cv_prog_ac_ct_OTOOL="otool"
9903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9904     break 2
9905   fi
9906 done
9907   done
9908 IFS=$as_save_IFS
9909
9910 fi
9911 fi
9912 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9913 if test -n "$ac_ct_OTOOL"; then
9914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9915 $as_echo "$ac_ct_OTOOL" >&6; }
9916 else
9917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9918 $as_echo "no" >&6; }
9919 fi
9920
9921   if test "x$ac_ct_OTOOL" = x; then
9922     OTOOL=":"
9923   else
9924     case $cross_compiling:$ac_tool_warned in
9925 yes:)
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9928 ac_tool_warned=yes ;;
9929 esac
9930     OTOOL=$ac_ct_OTOOL
9931   fi
9932 else
9933   OTOOL="$ac_cv_prog_OTOOL"
9934 fi
9935
9936     if test -n "$ac_tool_prefix"; then
9937   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9938 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9940 $as_echo_n "checking for $ac_word... " >&6; }
9941 if ${ac_cv_prog_OTOOL64+:} false; then :
9942   $as_echo_n "(cached) " >&6
9943 else
9944   if test -n "$OTOOL64"; then
9945   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9946 else
9947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9948 for as_dir in $PATH
9949 do
9950   IFS=$as_save_IFS
9951   test -z "$as_dir" && as_dir=.
9952     for ac_exec_ext in '' $ac_executable_extensions; do
9953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9954     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9956     break 2
9957   fi
9958 done
9959   done
9960 IFS=$as_save_IFS
9961
9962 fi
9963 fi
9964 OTOOL64=$ac_cv_prog_OTOOL64
9965 if test -n "$OTOOL64"; then
9966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9967 $as_echo "$OTOOL64" >&6; }
9968 else
9969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970 $as_echo "no" >&6; }
9971 fi
9972
9973
9974 fi
9975 if test -z "$ac_cv_prog_OTOOL64"; then
9976   ac_ct_OTOOL64=$OTOOL64
9977   # Extract the first word of "otool64", so it can be a program name with args.
9978 set dummy otool64; ac_word=$2
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9980 $as_echo_n "checking for $ac_word... " >&6; }
9981 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9982   $as_echo_n "(cached) " >&6
9983 else
9984   if test -n "$ac_ct_OTOOL64"; then
9985   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9986 else
9987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9988 for as_dir in $PATH
9989 do
9990   IFS=$as_save_IFS
9991   test -z "$as_dir" && as_dir=.
9992     for ac_exec_ext in '' $ac_executable_extensions; do
9993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9994     ac_cv_prog_ac_ct_OTOOL64="otool64"
9995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9996     break 2
9997   fi
9998 done
9999   done
10000 IFS=$as_save_IFS
10001
10002 fi
10003 fi
10004 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10005 if test -n "$ac_ct_OTOOL64"; then
10006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10007 $as_echo "$ac_ct_OTOOL64" >&6; }
10008 else
10009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10010 $as_echo "no" >&6; }
10011 fi
10012
10013   if test "x$ac_ct_OTOOL64" = x; then
10014     OTOOL64=":"
10015   else
10016     case $cross_compiling:$ac_tool_warned in
10017 yes:)
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10020 ac_tool_warned=yes ;;
10021 esac
10022     OTOOL64=$ac_ct_OTOOL64
10023   fi
10024 else
10025   OTOOL64="$ac_cv_prog_OTOOL64"
10026 fi
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10055 $as_echo_n "checking for -single_module linker flag... " >&6; }
10056 if ${lt_cv_apple_cc_single_mod+:} false; then :
10057   $as_echo_n "(cached) " >&6
10058 else
10059   lt_cv_apple_cc_single_mod=no
10060       if test -z "${LT_MULTI_MODULE}"; then
10061         # By default we will add the -single_module flag. You can override
10062         # by either setting the environment variable LT_MULTI_MODULE
10063         # non-empty at configure time, or by adding -multi_module to the
10064         # link flags.
10065         rm -rf libconftest.dylib*
10066         echo "int foo(void){return 1;}" > conftest.c
10067         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10068 -dynamiclib -Wl,-single_module conftest.c" >&5
10069         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10070           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10071         _lt_result=$?
10072         # If there is a non-empty error log, and "single_module"
10073         # appears in it, assume the flag caused a linker warning
10074         if test -s conftest.err && $GREP single_module conftest.err; then
10075           cat conftest.err >&5
10076         # Otherwise, if the output was created with a 0 exit code from
10077         # the compiler, it worked.
10078         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
10079           lt_cv_apple_cc_single_mod=yes
10080         else
10081           cat conftest.err >&5
10082         fi
10083         rm -rf libconftest.dylib*
10084         rm -f conftest.*
10085       fi
10086 fi
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10088 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10089
10090     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10091 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10092 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10093   $as_echo_n "(cached) " >&6
10094 else
10095   lt_cv_ld_exported_symbols_list=no
10096       save_LDFLAGS=$LDFLAGS
10097       echo "_main" > conftest.sym
10098       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10099       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100 /* end confdefs.h.  */
10101
10102 int
10103 main ()
10104 {
10105
10106   ;
10107   return 0;
10108 }
10109 _ACEOF
10110 if ac_fn_c_try_link "$LINENO"; then :
10111   lt_cv_ld_exported_symbols_list=yes
10112 else
10113   lt_cv_ld_exported_symbols_list=no
10114 fi
10115 rm -f core conftest.err conftest.$ac_objext \
10116     conftest$ac_exeext conftest.$ac_ext
10117         LDFLAGS="$save_LDFLAGS"
10118
10119 fi
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10121 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10122
10123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10124 $as_echo_n "checking for -force_load linker flag... " >&6; }
10125 if ${lt_cv_ld_force_load+:} false; then :
10126   $as_echo_n "(cached) " >&6
10127 else
10128   lt_cv_ld_force_load=no
10129       cat > conftest.c << _LT_EOF
10130 int forced_loaded() { return 2;}
10131 _LT_EOF
10132       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10133       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10134       echo "$AR cru libconftest.a conftest.o" >&5
10135       $AR cru libconftest.a conftest.o 2>&5
10136       echo "$RANLIB libconftest.a" >&5
10137       $RANLIB libconftest.a 2>&5
10138       cat > conftest.c << _LT_EOF
10139 int main() { return 0;}
10140 _LT_EOF
10141       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10142       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10143       _lt_result=$?
10144       if test -s conftest.err && $GREP force_load conftest.err; then
10145         cat conftest.err >&5
10146       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10147         lt_cv_ld_force_load=yes
10148       else
10149         cat conftest.err >&5
10150       fi
10151         rm -f conftest.err libconftest.a conftest conftest.c
10152         rm -rf conftest.dSYM
10153
10154 fi
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10156 $as_echo "$lt_cv_ld_force_load" >&6; }
10157     case $host_os in
10158     rhapsody* | darwin1.[012])
10159       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10160     darwin1.*)
10161       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10162     darwin*) # darwin 5.x on
10163       # if running on 10.5 or later, the deployment target defaults
10164       # to the OS version, if on x86, and 10.4, the deployment
10165       # target defaults to 10.4. Don't you love it?
10166       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10167         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10168           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10169         10.[012]*)
10170           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10171         10.*)
10172           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10173       esac
10174     ;;
10175   esac
10176     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10177       _lt_dar_single_mod='$single_module'
10178     fi
10179     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10180       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10181     else
10182       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10183     fi
10184     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10185       _lt_dsymutil='~$DSYMUTIL $lib || :'
10186     else
10187       _lt_dsymutil=
10188     fi
10189     ;;
10190   esac
10191
10192 for ac_header in dlfcn.h
10193 do :
10194   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10195 "
10196 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10197   cat >>confdefs.h <<_ACEOF
10198 #define HAVE_DLFCN_H 1
10199 _ACEOF
10200
10201 fi
10202
10203 done
10204
10205
10206
10207
10208
10209 # Set options
10210 enable_win32_dll=yes
10211
10212 case $host in
10213 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10214   if test -n "$ac_tool_prefix"; then
10215   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10216 set dummy ${ac_tool_prefix}as; ac_word=$2
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10218 $as_echo_n "checking for $ac_word... " >&6; }
10219 if ${ac_cv_prog_AS+:} false; then :
10220   $as_echo_n "(cached) " >&6
10221 else
10222   if test -n "$AS"; then
10223   ac_cv_prog_AS="$AS" # Let the user override the test.
10224 else
10225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10226 for as_dir in $PATH
10227 do
10228   IFS=$as_save_IFS
10229   test -z "$as_dir" && as_dir=.
10230     for ac_exec_ext in '' $ac_executable_extensions; do
10231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10232     ac_cv_prog_AS="${ac_tool_prefix}as"
10233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10234     break 2
10235   fi
10236 done
10237   done
10238 IFS=$as_save_IFS
10239
10240 fi
10241 fi
10242 AS=$ac_cv_prog_AS
10243 if test -n "$AS"; then
10244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10245 $as_echo "$AS" >&6; }
10246 else
10247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248 $as_echo "no" >&6; }
10249 fi
10250
10251
10252 fi
10253 if test -z "$ac_cv_prog_AS"; then
10254   ac_ct_AS=$AS
10255   # Extract the first word of "as", so it can be a program name with args.
10256 set dummy as; ac_word=$2
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10258 $as_echo_n "checking for $ac_word... " >&6; }
10259 if ${ac_cv_prog_ac_ct_AS+:} false; then :
10260   $as_echo_n "(cached) " >&6
10261 else
10262   if test -n "$ac_ct_AS"; then
10263   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10264 else
10265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10266 for as_dir in $PATH
10267 do
10268   IFS=$as_save_IFS
10269   test -z "$as_dir" && as_dir=.
10270     for ac_exec_ext in '' $ac_executable_extensions; do
10271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10272     ac_cv_prog_ac_ct_AS="as"
10273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10274     break 2
10275   fi
10276 done
10277   done
10278 IFS=$as_save_IFS
10279
10280 fi
10281 fi
10282 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10283 if test -n "$ac_ct_AS"; then
10284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10285 $as_echo "$ac_ct_AS" >&6; }
10286 else
10287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10288 $as_echo "no" >&6; }
10289 fi
10290
10291   if test "x$ac_ct_AS" = x; then
10292     AS="false"
10293   else
10294     case $cross_compiling:$ac_tool_warned in
10295 yes:)
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10298 ac_tool_warned=yes ;;
10299 esac
10300     AS=$ac_ct_AS
10301   fi
10302 else
10303   AS="$ac_cv_prog_AS"
10304 fi
10305
10306   if test -n "$ac_tool_prefix"; then
10307   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10308 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10310 $as_echo_n "checking for $ac_word... " >&6; }
10311 if ${ac_cv_prog_DLLTOOL+:} false; then :
10312   $as_echo_n "(cached) " >&6
10313 else
10314   if test -n "$DLLTOOL"; then
10315   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10316 else
10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318 for as_dir in $PATH
10319 do
10320   IFS=$as_save_IFS
10321   test -z "$as_dir" && as_dir=.
10322     for ac_exec_ext in '' $ac_executable_extensions; do
10323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10324     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10326     break 2
10327   fi
10328 done
10329   done
10330 IFS=$as_save_IFS
10331
10332 fi
10333 fi
10334 DLLTOOL=$ac_cv_prog_DLLTOOL
10335 if test -n "$DLLTOOL"; then
10336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10337 $as_echo "$DLLTOOL" >&6; }
10338 else
10339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10340 $as_echo "no" >&6; }
10341 fi
10342
10343
10344 fi
10345 if test -z "$ac_cv_prog_DLLTOOL"; then
10346   ac_ct_DLLTOOL=$DLLTOOL
10347   # Extract the first word of "dlltool", so it can be a program name with args.
10348 set dummy dlltool; ac_word=$2
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10350 $as_echo_n "checking for $ac_word... " >&6; }
10351 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10352   $as_echo_n "(cached) " >&6
10353 else
10354   if test -n "$ac_ct_DLLTOOL"; then
10355   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10356 else
10357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358 for as_dir in $PATH
10359 do
10360   IFS=$as_save_IFS
10361   test -z "$as_dir" && as_dir=.
10362     for ac_exec_ext in '' $ac_executable_extensions; do
10363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10364     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10366     break 2
10367   fi
10368 done
10369   done
10370 IFS=$as_save_IFS
10371
10372 fi
10373 fi
10374 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10375 if test -n "$ac_ct_DLLTOOL"; then
10376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10377 $as_echo "$ac_ct_DLLTOOL" >&6; }
10378 else
10379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10380 $as_echo "no" >&6; }
10381 fi
10382
10383   if test "x$ac_ct_DLLTOOL" = x; then
10384     DLLTOOL="false"
10385   else
10386     case $cross_compiling:$ac_tool_warned in
10387 yes:)
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10390 ac_tool_warned=yes ;;
10391 esac
10392     DLLTOOL=$ac_ct_DLLTOOL
10393   fi
10394 else
10395   DLLTOOL="$ac_cv_prog_DLLTOOL"
10396 fi
10397
10398   if test -n "$ac_tool_prefix"; then
10399   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10400 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10402 $as_echo_n "checking for $ac_word... " >&6; }
10403 if ${ac_cv_prog_OBJDUMP+:} false; then :
10404   $as_echo_n "(cached) " >&6
10405 else
10406   if test -n "$OBJDUMP"; then
10407   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10408 else
10409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10410 for as_dir in $PATH
10411 do
10412   IFS=$as_save_IFS
10413   test -z "$as_dir" && as_dir=.
10414     for ac_exec_ext in '' $ac_executable_extensions; do
10415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10416     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10418     break 2
10419   fi
10420 done
10421   done
10422 IFS=$as_save_IFS
10423
10424 fi
10425 fi
10426 OBJDUMP=$ac_cv_prog_OBJDUMP
10427 if test -n "$OBJDUMP"; then
10428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10429 $as_echo "$OBJDUMP" >&6; }
10430 else
10431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10432 $as_echo "no" >&6; }
10433 fi
10434
10435
10436 fi
10437 if test -z "$ac_cv_prog_OBJDUMP"; then
10438   ac_ct_OBJDUMP=$OBJDUMP
10439   # Extract the first word of "objdump", so it can be a program name with args.
10440 set dummy objdump; ac_word=$2
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10442 $as_echo_n "checking for $ac_word... " >&6; }
10443 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10444   $as_echo_n "(cached) " >&6
10445 else
10446   if test -n "$ac_ct_OBJDUMP"; then
10447   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10448 else
10449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450 for as_dir in $PATH
10451 do
10452   IFS=$as_save_IFS
10453   test -z "$as_dir" && as_dir=.
10454     for ac_exec_ext in '' $ac_executable_extensions; do
10455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10456     ac_cv_prog_ac_ct_OBJDUMP="objdump"
10457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10458     break 2
10459   fi
10460 done
10461   done
10462 IFS=$as_save_IFS
10463
10464 fi
10465 fi
10466 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10467 if test -n "$ac_ct_OBJDUMP"; then
10468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10469 $as_echo "$ac_ct_OBJDUMP" >&6; }
10470 else
10471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10472 $as_echo "no" >&6; }
10473 fi
10474
10475   if test "x$ac_ct_OBJDUMP" = x; then
10476     OBJDUMP="false"
10477   else
10478     case $cross_compiling:$ac_tool_warned in
10479 yes:)
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10482 ac_tool_warned=yes ;;
10483 esac
10484     OBJDUMP=$ac_ct_OBJDUMP
10485   fi
10486 else
10487   OBJDUMP="$ac_cv_prog_OBJDUMP"
10488 fi
10489
10490   ;;
10491 esac
10492
10493 test -z "$AS" && AS=as
10494
10495
10496
10497
10498
10499 test -z "$DLLTOOL" && DLLTOOL=dlltool
10500
10501
10502
10503
10504
10505 test -z "$OBJDUMP" && OBJDUMP=objdump
10506
10507
10508
10509
10510
10511
10512
10513         enable_dlopen=no
10514
10515
10516
10517             # Check whether --enable-shared was given.
10518 if test "${enable_shared+set}" = set; then :
10519   enableval=$enable_shared; p=${PACKAGE-default}
10520     case $enableval in
10521     yes) enable_shared=yes ;;
10522     no) enable_shared=no ;;
10523     *)
10524       enable_shared=no
10525       # Look at the argument we got.  We use all the common list separators.
10526       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10527       for pkg in $enableval; do
10528         IFS="$lt_save_ifs"
10529         if test "X$pkg" = "X$p"; then
10530           enable_shared=yes
10531         fi
10532       done
10533       IFS="$lt_save_ifs"
10534       ;;
10535     esac
10536 else
10537   enable_shared=yes
10538 fi
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548   # Check whether --enable-static was given.
10549 if test "${enable_static+set}" = set; then :
10550   enableval=$enable_static; p=${PACKAGE-default}
10551     case $enableval in
10552     yes) enable_static=yes ;;
10553     no) enable_static=no ;;
10554     *)
10555      enable_static=no
10556       # Look at the argument we got.  We use all the common list separators.
10557       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10558       for pkg in $enableval; do
10559         IFS="$lt_save_ifs"
10560         if test "X$pkg" = "X$p"; then
10561           enable_static=yes
10562         fi
10563       done
10564       IFS="$lt_save_ifs"
10565       ;;
10566     esac
10567 else
10568   enable_static=yes
10569 fi
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580 # Check whether --with-pic was given.
10581 if test "${with_pic+set}" = set; then :
10582   withval=$with_pic; lt_p=${PACKAGE-default}
10583     case $withval in
10584     yes|no) pic_mode=$withval ;;
10585     *)
10586       pic_mode=default
10587       # Look at the argument we got.  We use all the common list separators.
10588       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10589       for lt_pkg in $withval; do
10590         IFS="$lt_save_ifs"
10591         if test "X$lt_pkg" = "X$lt_p"; then
10592           pic_mode=yes
10593         fi
10594       done
10595       IFS="$lt_save_ifs"
10596       ;;
10597     esac
10598 else
10599   pic_mode=default
10600 fi
10601
10602
10603 test -z "$pic_mode" && pic_mode=default
10604
10605
10606
10607
10608
10609
10610
10611   # Check whether --enable-fast-install was given.
10612 if test "${enable_fast_install+set}" = set; then :
10613   enableval=$enable_fast_install; p=${PACKAGE-default}
10614     case $enableval in
10615     yes) enable_fast_install=yes ;;
10616     no) enable_fast_install=no ;;
10617     *)
10618       enable_fast_install=no
10619       # Look at the argument we got.  We use all the common list separators.
10620       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10621       for pkg in $enableval; do
10622         IFS="$lt_save_ifs"
10623         if test "X$pkg" = "X$p"; then
10624           enable_fast_install=yes
10625         fi
10626       done
10627       IFS="$lt_save_ifs"
10628       ;;
10629     esac
10630 else
10631   enable_fast_install=yes
10632 fi
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644 # This can be used to rebuild libtool when needed
10645 LIBTOOL_DEPS="$ltmain"
10646
10647 # Always use our own libtool.
10648 LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679 test -z "$LN_S" && LN_S="ln -s"
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694 if test -n "${ZSH_VERSION+set}" ; then
10695    setopt NO_GLOB_SUBST
10696 fi
10697
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10699 $as_echo_n "checking for objdir... " >&6; }
10700 if ${lt_cv_objdir+:} false; then :
10701   $as_echo_n "(cached) " >&6
10702 else
10703   rm -f .libs 2>/dev/null
10704 mkdir .libs 2>/dev/null
10705 if test -d .libs; then
10706   lt_cv_objdir=.libs
10707 else
10708   # MS-DOS does not allow filenames that begin with a dot.
10709   lt_cv_objdir=_libs
10710 fi
10711 rmdir .libs 2>/dev/null
10712 fi
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10714 $as_echo "$lt_cv_objdir" >&6; }
10715 objdir=$lt_cv_objdir
10716
10717
10718
10719
10720
10721 cat >>confdefs.h <<_ACEOF
10722 #define LT_OBJDIR "$lt_cv_objdir/"
10723 _ACEOF
10724
10725
10726
10727
10728 case $host_os in
10729 aix3*)
10730   # AIX sometimes has problems with the GCC collect2 program.  For some
10731   # reason, if we set the COLLECT_NAMES environment variable, the problems
10732   # vanish in a puff of smoke.
10733   if test "X${COLLECT_NAMES+set}" != Xset; then
10734     COLLECT_NAMES=
10735     export COLLECT_NAMES
10736   fi
10737   ;;
10738 esac
10739
10740 # Global variables:
10741 ofile=libtool
10742 can_build_shared=yes
10743
10744 # All known linkers require a `.a' archive for static linking (except MSVC,
10745 # which needs '.lib').
10746 libext=a
10747
10748 with_gnu_ld="$lt_cv_prog_gnu_ld"
10749
10750 old_CC="$CC"
10751 old_CFLAGS="$CFLAGS"
10752
10753 # Set sane defaults for various variables
10754 test -z "$CC" && CC=cc
10755 test -z "$LTCC" && LTCC=$CC
10756 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10757 test -z "$LD" && LD=ld
10758 test -z "$ac_objext" && ac_objext=o
10759
10760 for cc_temp in $compiler""; do
10761   case $cc_temp in
10762     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10763     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10764     \-*) ;;
10765     *) break;;
10766   esac
10767 done
10768 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10769
10770
10771 # Only perform the check for file, if the check method requires it
10772 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10773 case $deplibs_check_method in
10774 file_magic*)
10775   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10776     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10777 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10778 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10779   $as_echo_n "(cached) " >&6
10780 else
10781   case $MAGIC_CMD in
10782 [\\/*] |  ?:[\\/]*)
10783   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10784   ;;
10785 *)
10786   lt_save_MAGIC_CMD="$MAGIC_CMD"
10787   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10788   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10789   for ac_dir in $ac_dummy; do
10790     IFS="$lt_save_ifs"
10791     test -z "$ac_dir" && ac_dir=.
10792     if test -f $ac_dir/${ac_tool_prefix}file; then
10793       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10794       if test -n "$file_magic_test_file"; then
10795         case $deplibs_check_method in
10796         "file_magic "*)
10797           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10798           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10799           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10800             $EGREP "$file_magic_regex" > /dev/null; then
10801             :
10802           else
10803             cat <<_LT_EOF 1>&2
10804
10805 *** Warning: the command libtool uses to detect shared libraries,
10806 *** $file_magic_cmd, produces output that libtool cannot recognize.
10807 *** The result is that libtool may fail to recognize shared libraries
10808 *** as such.  This will affect the creation of libtool libraries that
10809 *** depend on shared libraries, but programs linked with such libtool
10810 *** libraries will work regardless of this problem.  Nevertheless, you
10811 *** may want to report the problem to your system manager and/or to
10812 *** bug-libtool@gnu.org
10813
10814 _LT_EOF
10815           fi ;;
10816         esac
10817       fi
10818       break
10819     fi
10820   done
10821   IFS="$lt_save_ifs"
10822   MAGIC_CMD="$lt_save_MAGIC_CMD"
10823   ;;
10824 esac
10825 fi
10826
10827 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10828 if test -n "$MAGIC_CMD"; then
10829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10830 $as_echo "$MAGIC_CMD" >&6; }
10831 else
10832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10833 $as_echo "no" >&6; }
10834 fi
10835
10836
10837
10838
10839
10840 if test -z "$lt_cv_path_MAGIC_CMD"; then
10841   if test -n "$ac_tool_prefix"; then
10842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10843 $as_echo_n "checking for file... " >&6; }
10844 if ${lt_cv_path_MAGIC_CMD+:} false; then :
10845   $as_echo_n "(cached) " >&6
10846 else
10847   case $MAGIC_CMD in
10848 [\\/*] |  ?:[\\/]*)
10849   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10850   ;;
10851 *)
10852   lt_save_MAGIC_CMD="$MAGIC_CMD"
10853   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10854   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10855   for ac_dir in $ac_dummy; do
10856     IFS="$lt_save_ifs"
10857     test -z "$ac_dir" && ac_dir=.
10858     if test -f $ac_dir/file; then
10859       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10860       if test -n "$file_magic_test_file"; then
10861         case $deplibs_check_method in
10862         "file_magic "*)
10863           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10864           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10865           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10866             $EGREP "$file_magic_regex" > /dev/null; then
10867             :
10868           else
10869             cat <<_LT_EOF 1>&2
10870
10871 *** Warning: the command libtool uses to detect shared libraries,
10872 *** $file_magic_cmd, produces output that libtool cannot recognize.
10873 *** The result is that libtool may fail to recognize shared libraries
10874 *** as such.  This will affect the creation of libtool libraries that
10875 *** depend on shared libraries, but programs linked with such libtool
10876 *** libraries will work regardless of this problem.  Nevertheless, you
10877 *** may want to report the problem to your system manager and/or to
10878 *** bug-libtool@gnu.org
10879
10880 _LT_EOF
10881           fi ;;
10882         esac
10883       fi
10884       break
10885     fi
10886   done
10887   IFS="$lt_save_ifs"
10888   MAGIC_CMD="$lt_save_MAGIC_CMD"
10889   ;;
10890 esac
10891 fi
10892
10893 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10894 if test -n "$MAGIC_CMD"; then
10895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10896 $as_echo "$MAGIC_CMD" >&6; }
10897 else
10898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899 $as_echo "no" >&6; }
10900 fi
10901
10902
10903   else
10904     MAGIC_CMD=:
10905   fi
10906 fi
10907
10908   fi
10909   ;;
10910 esac
10911
10912 # Use C for the default configuration in the libtool script
10913
10914 lt_save_CC="$CC"
10915 ac_ext=c
10916 ac_cpp='$CPP $CPPFLAGS'
10917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10920
10921
10922 # Source file extension for C test sources.
10923 ac_ext=c
10924
10925 # Object file extension for compiled C test sources.
10926 objext=o
10927 objext=$objext
10928
10929 # Code to be used in simple compile tests
10930 lt_simple_compile_test_code="int some_variable = 0;"
10931
10932 # Code to be used in simple link tests
10933 lt_simple_link_test_code='int main(){return(0);}'
10934
10935
10936
10937
10938
10939
10940
10941 # If no C compiler was specified, use CC.
10942 LTCC=${LTCC-"$CC"}
10943
10944 # If no C compiler flags were specified, use CFLAGS.
10945 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10946
10947 # Allow CC to be a program name with arguments.
10948 compiler=$CC
10949
10950 # Save the default compiler, since it gets overwritten when the other
10951 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10952 compiler_DEFAULT=$CC
10953
10954 # save warnings/boilerplate of simple test code
10955 ac_outfile=conftest.$ac_objext
10956 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10957 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10958 _lt_compiler_boilerplate=`cat conftest.err`
10959 $RM conftest*
10960
10961 ac_outfile=conftest.$ac_objext
10962 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10963 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10964 _lt_linker_boilerplate=`cat conftest.err`
10965 $RM -r conftest*
10966
10967
10968 ## CAVEAT EMPTOR:
10969 ## There is no encapsulation within the following macros, do not change
10970 ## the running order or otherwise move them around unless you know exactly
10971 ## what you are doing...
10972 if test -n "$compiler"; then
10973
10974 lt_prog_compiler_no_builtin_flag=
10975
10976 if test "$GCC" = yes; then
10977   case $cc_basename in
10978   nvcc*)
10979     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10980   *)
10981     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10982   esac
10983
10984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10985 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10986 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10987   $as_echo_n "(cached) " >&6
10988 else
10989   lt_cv_prog_compiler_rtti_exceptions=no
10990    ac_outfile=conftest.$ac_objext
10991    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10992    lt_compiler_flag="-fno-rtti -fno-exceptions"
10993    # Insert the option either (1) after the last *FLAGS variable, or
10994    # (2) before a word containing "conftest.", or (3) at the end.
10995    # Note that $ac_compile itself does not contain backslashes and begins
10996    # with a dollar sign (not a hyphen), so the echo should work correctly.
10997    # The option is referenced via a variable to avoid confusing sed.
10998    lt_compile=`echo "$ac_compile" | $SED \
10999    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11000    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11001    -e 's:$: $lt_compiler_flag:'`
11002    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11003    (eval "$lt_compile" 2>conftest.err)
11004    ac_status=$?
11005    cat conftest.err >&5
11006    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007    if (exit $ac_status) && test -s "$ac_outfile"; then
11008      # The compiler can only warn and ignore the option if not recognized
11009      # So say no if there are warnings other than the usual output.
11010      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11011      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11012      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11013        lt_cv_prog_compiler_rtti_exceptions=yes
11014      fi
11015    fi
11016    $RM conftest*
11017
11018 fi
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11020 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11021
11022 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11023     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11024 else
11025     :
11026 fi
11027
11028 fi
11029
11030
11031
11032
11033
11034
11035   lt_prog_compiler_wl=
11036 lt_prog_compiler_pic=
11037 lt_prog_compiler_static=
11038
11039
11040   if test "$GCC" = yes; then
11041     lt_prog_compiler_wl='-Wl,'
11042     lt_prog_compiler_static='-static'
11043
11044     case $host_os in
11045       aix*)
11046       # All AIX code is PIC.
11047       if test "$host_cpu" = ia64; then
11048         # AIX 5 now supports IA64 processor
11049         lt_prog_compiler_static='-Bstatic'
11050       fi
11051       ;;
11052
11053     amigaos*)
11054       case $host_cpu in
11055       powerpc)
11056             # see comment about AmigaOS4 .so support
11057             lt_prog_compiler_pic='-fPIC'
11058         ;;
11059       m68k)
11060             # FIXME: we need at least 68020 code to build shared libraries, but
11061             # adding the `-m68020' flag to GCC prevents building anything better,
11062             # like `-m68040'.
11063             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11064         ;;
11065       esac
11066       ;;
11067
11068     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11069       # PIC is the default for these OSes.
11070       ;;
11071
11072     mingw* | cygwin* | pw32* | os2* | cegcc*)
11073       # This hack is so that the source file can tell whether it is being
11074       # built for inclusion in a dll (and should export symbols for example).
11075       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11076       # (--disable-auto-import) libraries
11077       lt_prog_compiler_pic='-DDLL_EXPORT'
11078       ;;
11079
11080     darwin* | rhapsody*)
11081       # PIC is the default on this platform
11082       # Common symbols not allowed in MH_DYLIB files
11083       lt_prog_compiler_pic='-fno-common'
11084       ;;
11085
11086     haiku*)
11087       # PIC is the default for Haiku.
11088       # The "-static" flag exists, but is broken.
11089       lt_prog_compiler_static=
11090       ;;
11091
11092     hpux*)
11093       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11094       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11095       # sets the default TLS model and affects inlining.
11096       case $host_cpu in
11097       hppa*64*)
11098         # +Z the default
11099         ;;
11100       *)
11101         lt_prog_compiler_pic='-fPIC'
11102         ;;
11103       esac
11104       ;;
11105
11106     interix[3-9]*)
11107       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11108       # Instead, we relocate shared libraries at runtime.
11109       ;;
11110
11111     msdosdjgpp*)
11112       # Just because we use GCC doesn't mean we suddenly get shared libraries
11113       # on systems that don't support them.
11114       lt_prog_compiler_can_build_shared=no
11115       enable_shared=no
11116       ;;
11117
11118     *nto* | *qnx*)
11119       # QNX uses GNU C++, but need to define -shared option too, otherwise
11120       # it will coredump.
11121       lt_prog_compiler_pic='-fPIC -shared'
11122       ;;
11123
11124     sysv4*MP*)
11125       if test -d /usr/nec; then
11126         lt_prog_compiler_pic=-Kconform_pic
11127       fi
11128       ;;
11129
11130     *)
11131       lt_prog_compiler_pic='-fPIC'
11132       ;;
11133     esac
11134
11135     case $cc_basename in
11136     nvcc*) # Cuda Compiler Driver 2.2
11137       lt_prog_compiler_wl='-Xlinker '
11138       if test -n "$lt_prog_compiler_pic"; then
11139         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11140       fi
11141       ;;
11142     esac
11143   else
11144     # PORTME Check for flag to pass linker flags through the system compiler.
11145     case $host_os in
11146     aix*)
11147       lt_prog_compiler_wl='-Wl,'
11148       if test "$host_cpu" = ia64; then
11149         # AIX 5 now supports IA64 processor
11150         lt_prog_compiler_static='-Bstatic'
11151       else
11152         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11153       fi
11154       ;;
11155
11156     mingw* | cygwin* | pw32* | os2* | cegcc*)
11157       # This hack is so that the source file can tell whether it is being
11158       # built for inclusion in a dll (and should export symbols for example).
11159       lt_prog_compiler_pic='-DDLL_EXPORT'
11160       ;;
11161
11162     hpux9* | hpux10* | hpux11*)
11163       lt_prog_compiler_wl='-Wl,'
11164       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11165       # not for PA HP-UX.
11166       case $host_cpu in
11167       hppa*64*|ia64*)
11168         # +Z the default
11169         ;;
11170       *)
11171         lt_prog_compiler_pic='+Z'
11172         ;;
11173       esac
11174       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11175       lt_prog_compiler_static='${wl}-a ${wl}archive'
11176       ;;
11177
11178     irix5* | irix6* | nonstopux*)
11179       lt_prog_compiler_wl='-Wl,'
11180       # PIC (with -KPIC) is the default.
11181       lt_prog_compiler_static='-non_shared'
11182       ;;
11183
11184     linux* | k*bsd*-gnu | kopensolaris*-gnu)
11185       case $cc_basename in
11186       # old Intel for x86_64 which still supported -KPIC.
11187       ecc*)
11188         lt_prog_compiler_wl='-Wl,'
11189         lt_prog_compiler_pic='-KPIC'
11190         lt_prog_compiler_static='-static'
11191         ;;
11192       # icc used to be incompatible with GCC.
11193       # ICC 10 doesn't accept -KPIC any more.
11194       icc* | ifort*)
11195         lt_prog_compiler_wl='-Wl,'
11196         lt_prog_compiler_pic='-fPIC'
11197         lt_prog_compiler_static='-static'
11198         ;;
11199       # Lahey Fortran 8.1.
11200       lf95*)
11201         lt_prog_compiler_wl='-Wl,'
11202         lt_prog_compiler_pic='--shared'
11203         lt_prog_compiler_static='--static'
11204         ;;
11205       nagfor*)
11206         # NAG Fortran compiler
11207         lt_prog_compiler_wl='-Wl,-Wl,,'
11208         lt_prog_compiler_pic='-PIC'
11209         lt_prog_compiler_static='-Bstatic'
11210         ;;
11211       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11212         # Portland Group compilers (*not* the Pentium gcc compiler,
11213         # which looks to be a dead project)
11214         lt_prog_compiler_wl='-Wl,'
11215         lt_prog_compiler_pic='-fpic'
11216         lt_prog_compiler_static='-Bstatic'
11217         ;;
11218       ccc*)
11219         lt_prog_compiler_wl='-Wl,'
11220         # All Alpha code is PIC.
11221         lt_prog_compiler_static='-non_shared'
11222         ;;
11223       xl* | bgxl* | bgf* | mpixl*)
11224         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11225         lt_prog_compiler_wl='-Wl,'
11226         lt_prog_compiler_pic='-qpic'
11227         lt_prog_compiler_static='-qstaticlink'
11228         ;;
11229       *)
11230         case `$CC -V 2>&1 | sed 5q` in
11231         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11232           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11233           lt_prog_compiler_pic='-KPIC'
11234           lt_prog_compiler_static='-Bstatic'
11235           lt_prog_compiler_wl=''
11236           ;;
11237         *Sun\ F* | *Sun*Fortran*)
11238           lt_prog_compiler_pic='-KPIC'
11239           lt_prog_compiler_static='-Bstatic'
11240           lt_prog_compiler_wl='-Qoption ld '
11241           ;;
11242         *Sun\ C*)
11243           # Sun C 5.9
11244           lt_prog_compiler_pic='-KPIC'
11245           lt_prog_compiler_static='-Bstatic'
11246           lt_prog_compiler_wl='-Wl,'
11247           ;;
11248         *Intel*\ [CF]*Compiler*)
11249           lt_prog_compiler_wl='-Wl,'
11250           lt_prog_compiler_pic='-fPIC'
11251           lt_prog_compiler_static='-static'
11252           ;;
11253         *Portland\ Group*)
11254           lt_prog_compiler_wl='-Wl,'
11255           lt_prog_compiler_pic='-fpic'
11256           lt_prog_compiler_static='-Bstatic'
11257           ;;
11258         esac
11259         ;;
11260       esac
11261       ;;
11262
11263     newsos6)
11264       lt_prog_compiler_pic='-KPIC'
11265       lt_prog_compiler_static='-Bstatic'
11266       ;;
11267
11268     *nto* | *qnx*)
11269       # QNX uses GNU C++, but need to define -shared option too, otherwise
11270       # it will coredump.
11271       lt_prog_compiler_pic='-fPIC -shared'
11272       ;;
11273
11274     osf3* | osf4* | osf5*)
11275       lt_prog_compiler_wl='-Wl,'
11276       # All OSF/1 code is PIC.
11277       lt_prog_compiler_static='-non_shared'
11278       ;;
11279
11280     rdos*)
11281       lt_prog_compiler_static='-non_shared'
11282       ;;
11283
11284     solaris*)
11285       lt_prog_compiler_pic='-KPIC'
11286       lt_prog_compiler_static='-Bstatic'
11287       case $cc_basename in
11288       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11289         lt_prog_compiler_wl='-Qoption ld ';;
11290       *)
11291         lt_prog_compiler_wl='-Wl,';;
11292       esac
11293       ;;
11294
11295     sunos4*)
11296       lt_prog_compiler_wl='-Qoption ld '
11297       lt_prog_compiler_pic='-PIC'
11298       lt_prog_compiler_static='-Bstatic'
11299       ;;
11300
11301     sysv4 | sysv4.2uw2* | sysv4.3*)
11302       lt_prog_compiler_wl='-Wl,'
11303       lt_prog_compiler_pic='-KPIC'
11304       lt_prog_compiler_static='-Bstatic'
11305       ;;
11306
11307     sysv4*MP*)
11308       if test -d /usr/nec ;then
11309         lt_prog_compiler_pic='-Kconform_pic'
11310         lt_prog_compiler_static='-Bstatic'
11311       fi
11312       ;;
11313
11314     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11315       lt_prog_compiler_wl='-Wl,'
11316       lt_prog_compiler_pic='-KPIC'
11317       lt_prog_compiler_static='-Bstatic'
11318       ;;
11319
11320     unicos*)
11321       lt_prog_compiler_wl='-Wl,'
11322       lt_prog_compiler_can_build_shared=no
11323       ;;
11324
11325     uts4*)
11326       lt_prog_compiler_pic='-pic'
11327       lt_prog_compiler_static='-Bstatic'
11328       ;;
11329
11330     *)
11331       lt_prog_compiler_can_build_shared=no
11332       ;;
11333     esac
11334   fi
11335
11336 case $host_os in
11337   # For platforms which do not support PIC, -DPIC is meaningless:
11338   *djgpp*)
11339     lt_prog_compiler_pic=
11340     ;;
11341   *)
11342     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11343     ;;
11344 esac
11345
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11347 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11348 if ${lt_cv_prog_compiler_pic+:} false; then :
11349   $as_echo_n "(cached) " >&6
11350 else
11351   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11352 fi
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11354 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11355 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11356
11357 #
11358 # Check to make sure the PIC flag actually works.
11359 #
11360 if test -n "$lt_prog_compiler_pic"; then
11361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11362 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11363 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11364   $as_echo_n "(cached) " >&6
11365 else
11366   lt_cv_prog_compiler_pic_works=no
11367    ac_outfile=conftest.$ac_objext
11368    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11369    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11370    # Insert the option either (1) after the last *FLAGS variable, or
11371    # (2) before a word containing "conftest.", or (3) at the end.
11372    # Note that $ac_compile itself does not contain backslashes and begins
11373    # with a dollar sign (not a hyphen), so the echo should work correctly.
11374    # The option is referenced via a variable to avoid confusing sed.
11375    lt_compile=`echo "$ac_compile" | $SED \
11376    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11377    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11378    -e 's:$: $lt_compiler_flag:'`
11379    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11380    (eval "$lt_compile" 2>conftest.err)
11381    ac_status=$?
11382    cat conftest.err >&5
11383    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384    if (exit $ac_status) && test -s "$ac_outfile"; then
11385      # The compiler can only warn and ignore the option if not recognized
11386      # So say no if there are warnings other than the usual output.
11387      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11388      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11389      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11390        lt_cv_prog_compiler_pic_works=yes
11391      fi
11392    fi
11393    $RM conftest*
11394
11395 fi
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11397 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11398
11399 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11400     case $lt_prog_compiler_pic in
11401      "" | " "*) ;;
11402      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11403      esac
11404 else
11405     lt_prog_compiler_pic=
11406      lt_prog_compiler_can_build_shared=no
11407 fi
11408
11409 fi
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421 #
11422 # Check to make sure the static flag actually works.
11423 #
11424 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11426 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11427 if ${lt_cv_prog_compiler_static_works+:} false; then :
11428   $as_echo_n "(cached) " >&6
11429 else
11430   lt_cv_prog_compiler_static_works=no
11431    save_LDFLAGS="$LDFLAGS"
11432    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11433    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11434    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11435      # The linker can only warn and ignore the option if not recognized
11436      # So say no if there are warnings
11437      if test -s conftest.err; then
11438        # Append any errors to the config.log.
11439        cat conftest.err 1>&5
11440        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11441        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11442        if diff conftest.exp conftest.er2 >/dev/null; then
11443          lt_cv_prog_compiler_static_works=yes
11444        fi
11445      else
11446        lt_cv_prog_compiler_static_works=yes
11447      fi
11448    fi
11449    $RM -r conftest*
11450    LDFLAGS="$save_LDFLAGS"
11451
11452 fi
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11454 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11455
11456 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11457     :
11458 else
11459     lt_prog_compiler_static=
11460 fi
11461
11462
11463
11464
11465
11466
11467
11468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11469 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11470 if ${lt_cv_prog_compiler_c_o+:} false; then :
11471   $as_echo_n "(cached) " >&6
11472 else
11473   lt_cv_prog_compiler_c_o=no
11474    $RM -r conftest 2>/dev/null
11475    mkdir conftest
11476    cd conftest
11477    mkdir out
11478    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11479
11480    lt_compiler_flag="-o out/conftest2.$ac_objext"
11481    # Insert the option either (1) after the last *FLAGS variable, or
11482    # (2) before a word containing "conftest.", or (3) at the end.
11483    # Note that $ac_compile itself does not contain backslashes and begins
11484    # with a dollar sign (not a hyphen), so the echo should work correctly.
11485    lt_compile=`echo "$ac_compile" | $SED \
11486    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11487    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11488    -e 's:$: $lt_compiler_flag:'`
11489    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11490    (eval "$lt_compile" 2>out/conftest.err)
11491    ac_status=$?
11492    cat out/conftest.err >&5
11493    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11495    then
11496      # The compiler can only warn and ignore the option if not recognized
11497      # So say no if there are warnings
11498      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11499      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11500      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11501        lt_cv_prog_compiler_c_o=yes
11502      fi
11503    fi
11504    chmod u+w . 2>&5
11505    $RM conftest*
11506    # SGI C++ compiler will create directory out/ii_files/ for
11507    # template instantiation
11508    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11509    $RM out/* && rmdir out
11510    cd ..
11511    $RM -r conftest
11512    $RM conftest*
11513
11514 fi
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11516 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11517
11518
11519
11520
11521
11522
11523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11524 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11525 if ${lt_cv_prog_compiler_c_o+:} false; then :
11526   $as_echo_n "(cached) " >&6
11527 else
11528   lt_cv_prog_compiler_c_o=no
11529    $RM -r conftest 2>/dev/null
11530    mkdir conftest
11531    cd conftest
11532    mkdir out
11533    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11534
11535    lt_compiler_flag="-o out/conftest2.$ac_objext"
11536    # Insert the option either (1) after the last *FLAGS variable, or
11537    # (2) before a word containing "conftest.", or (3) at the end.
11538    # Note that $ac_compile itself does not contain backslashes and begins
11539    # with a dollar sign (not a hyphen), so the echo should work correctly.
11540    lt_compile=`echo "$ac_compile" | $SED \
11541    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11542    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11543    -e 's:$: $lt_compiler_flag:'`
11544    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11545    (eval "$lt_compile" 2>out/conftest.err)
11546    ac_status=$?
11547    cat out/conftest.err >&5
11548    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11550    then
11551      # The compiler can only warn and ignore the option if not recognized
11552      # So say no if there are warnings
11553      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11554      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11555      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11556        lt_cv_prog_compiler_c_o=yes
11557      fi
11558    fi
11559    chmod u+w . 2>&5
11560    $RM conftest*
11561    # SGI C++ compiler will create directory out/ii_files/ for
11562    # template instantiation
11563    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11564    $RM out/* && rmdir out
11565    cd ..
11566    $RM -r conftest
11567    $RM conftest*
11568
11569 fi
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11571 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11572
11573
11574
11575
11576 hard_links="nottested"
11577 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11578   # do not overwrite the value of need_locks provided by the user
11579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11580 $as_echo_n "checking if we can lock with hard links... " >&6; }
11581   hard_links=yes
11582   $RM conftest*
11583   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11584   touch conftest.a
11585   ln conftest.a conftest.b 2>&5 || hard_links=no
11586   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11588 $as_echo "$hard_links" >&6; }
11589   if test "$hard_links" = no; then
11590     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11591 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11592     need_locks=warn
11593   fi
11594 else
11595   need_locks=no
11596 fi
11597
11598
11599
11600
11601
11602
11603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11604 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11605
11606   runpath_var=
11607   allow_undefined_flag=
11608   always_export_symbols=no
11609   archive_cmds=
11610   archive_expsym_cmds=
11611   compiler_needs_object=no
11612   enable_shared_with_static_runtimes=no
11613   export_dynamic_flag_spec=
11614   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11615   hardcode_automatic=no
11616   hardcode_direct=no
11617   hardcode_direct_absolute=no
11618   hardcode_libdir_flag_spec=
11619   hardcode_libdir_separator=
11620   hardcode_minus_L=no
11621   hardcode_shlibpath_var=unsupported
11622   inherit_rpath=no
11623   link_all_deplibs=unknown
11624   module_cmds=
11625   module_expsym_cmds=
11626   old_archive_from_new_cmds=
11627   old_archive_from_expsyms_cmds=
11628   thread_safe_flag_spec=
11629   whole_archive_flag_spec=
11630   # include_expsyms should be a list of space-separated symbols to be *always*
11631   # included in the symbol list
11632   include_expsyms=
11633   # exclude_expsyms can be an extended regexp of symbols to exclude
11634   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11635   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11636   # as well as any symbol that contains `d'.
11637   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11638   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11639   # platforms (ab)use it in PIC code, but their linkers get confused if
11640   # the symbol is explicitly referenced.  Since portable code cannot
11641   # rely on this symbol name, it's probably fine to never include it in
11642   # preloaded symbol tables.
11643   # Exclude shared library initialization/finalization symbols.
11644   extract_expsyms_cmds=
11645
11646   case $host_os in
11647   cygwin* | mingw* | pw32* | cegcc*)
11648     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11649     # When not using gcc, we currently assume that we are using
11650     # Microsoft Visual C++.
11651     if test "$GCC" != yes; then
11652       with_gnu_ld=no
11653     fi
11654     ;;
11655   interix*)
11656     # we just hope/assume this is gcc and not c89 (= MSVC++)
11657     with_gnu_ld=yes
11658     ;;
11659   openbsd*)
11660     with_gnu_ld=no
11661     ;;
11662   esac
11663
11664   ld_shlibs=yes
11665
11666   # On some targets, GNU ld is compatible enough with the native linker
11667   # that we're better off using the native interface for both.
11668   lt_use_gnu_ld_interface=no
11669   if test "$with_gnu_ld" = yes; then
11670     case $host_os in
11671       aix*)
11672         # The AIX port of GNU ld has always aspired to compatibility
11673         # with the native linker.  However, as the warning in the GNU ld
11674         # block says, versions before 2.19.5* couldn't really create working
11675         # shared libraries, regardless of the interface used.
11676         case `$LD -v 2>&1` in
11677           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11678           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11679           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11680           *)
11681             lt_use_gnu_ld_interface=yes
11682             ;;
11683         esac
11684         ;;
11685       *)
11686         lt_use_gnu_ld_interface=yes
11687         ;;
11688     esac
11689   fi
11690
11691   if test "$lt_use_gnu_ld_interface" = yes; then
11692     # If archive_cmds runs LD, not CC, wlarc should be empty
11693     wlarc='${wl}'
11694
11695     # Set some defaults for GNU ld with shared library support. These
11696     # are reset later if shared libraries are not supported. Putting them
11697     # here allows them to be overridden if necessary.
11698     runpath_var=LD_RUN_PATH
11699     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11700     export_dynamic_flag_spec='${wl}--export-dynamic'
11701     # ancient GNU ld didn't support --whole-archive et. al.
11702     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11703       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11704     else
11705       whole_archive_flag_spec=
11706     fi
11707     supports_anon_versioning=no
11708     case `$LD -v 2>&1` in
11709       *GNU\ gold*) supports_anon_versioning=yes ;;
11710       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11711       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11712       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11713       *\ 2.11.*) ;; # other 2.11 versions
11714       *) supports_anon_versioning=yes ;;
11715     esac
11716
11717     # See if GNU ld supports shared libraries.
11718     case $host_os in
11719     aix[3-9]*)
11720       # On AIX/PPC, the GNU linker is very broken
11721       if test "$host_cpu" != ia64; then
11722         ld_shlibs=no
11723         cat <<_LT_EOF 1>&2
11724
11725 *** Warning: the GNU linker, at least up to release 2.19, is reported
11726 *** to be unable to reliably create shared libraries on AIX.
11727 *** Therefore, libtool is disabling shared libraries support.  If you
11728 *** really care for shared libraries, you may want to install binutils
11729 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11730 *** You will then need to restart the configuration process.
11731
11732 _LT_EOF
11733       fi
11734       ;;
11735
11736     amigaos*)
11737       case $host_cpu in
11738       powerpc)
11739             # see comment about AmigaOS4 .so support
11740             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11741             archive_expsym_cmds=''
11742         ;;
11743       m68k)
11744             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)'
11745             hardcode_libdir_flag_spec='-L$libdir'
11746             hardcode_minus_L=yes
11747         ;;
11748       esac
11749       ;;
11750
11751     beos*)
11752       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11753         allow_undefined_flag=unsupported
11754         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11755         # support --undefined.  This deserves some investigation.  FIXME
11756         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11757       else
11758         ld_shlibs=no
11759       fi
11760       ;;
11761
11762     cygwin* | mingw* | pw32* | cegcc*)
11763       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11764       # as there is no search path for DLLs.
11765       hardcode_libdir_flag_spec='-L$libdir'
11766       export_dynamic_flag_spec='${wl}--export-all-symbols'
11767       allow_undefined_flag=unsupported
11768       always_export_symbols=no
11769       enable_shared_with_static_runtimes=yes
11770       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'
11771       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11772
11773       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11774         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11775         # If the export-symbols file already is a .def file (1st line
11776         # is EXPORTS), use it as is; otherwise, prepend...
11777         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11778           cp $export_symbols $output_objdir/$soname.def;
11779         else
11780           echo EXPORTS > $output_objdir/$soname.def;
11781           cat $export_symbols >> $output_objdir/$soname.def;
11782         fi~
11783         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11784       else
11785         ld_shlibs=no
11786       fi
11787       ;;
11788
11789     haiku*)
11790       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11791       link_all_deplibs=yes
11792       ;;
11793
11794     interix[3-9]*)
11795       hardcode_direct=no
11796       hardcode_shlibpath_var=no
11797       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11798       export_dynamic_flag_spec='${wl}-E'
11799       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11800       # Instead, shared libraries are loaded at an image base (0x10000000 by
11801       # default) and relocated if they conflict, which is a slow very memory
11802       # consuming and fragmenting process.  To avoid this, we pick a random,
11803       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11804       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11805       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11806       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'
11807       ;;
11808
11809     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11810       tmp_diet=no
11811       if test "$host_os" = linux-dietlibc; then
11812         case $cc_basename in
11813           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11814         esac
11815       fi
11816       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11817          && test "$tmp_diet" = no
11818       then
11819         tmp_addflag=' $pic_flag'
11820         tmp_sharedflag='-shared'
11821         case $cc_basename,$host_cpu in
11822         pgcc*)                          # Portland Group C compiler
11823           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'
11824           tmp_addflag=' $pic_flag'
11825           ;;
11826         pgf77* | pgf90* | pgf95* | pgfortran*)
11827                                         # Portland Group f77 and f90 compilers
11828           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'
11829           tmp_addflag=' $pic_flag -Mnomain' ;;
11830         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11831           tmp_addflag=' -i_dynamic' ;;
11832         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11833           tmp_addflag=' -i_dynamic -nofor_main' ;;
11834         ifc* | ifort*)                  # Intel Fortran compiler
11835           tmp_addflag=' -nofor_main' ;;
11836         lf95*)                          # Lahey Fortran 8.1
11837           whole_archive_flag_spec=
11838           tmp_sharedflag='--shared' ;;
11839         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11840           tmp_sharedflag='-qmkshrobj'
11841           tmp_addflag= ;;
11842         nvcc*)  # Cuda Compiler Driver 2.2
11843           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'
11844           compiler_needs_object=yes
11845           ;;
11846         esac
11847         case `$CC -V 2>&1 | sed 5q` in
11848         *Sun\ C*)                       # Sun C 5.9
11849           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'
11850           compiler_needs_object=yes
11851           tmp_sharedflag='-G' ;;
11852         *Sun\ F*)                       # Sun Fortran 8.3
11853           tmp_sharedflag='-G' ;;
11854         esac
11855         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11856
11857         if test "x$supports_anon_versioning" = xyes; then
11858           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11859             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11860             echo "local: *; };" >> $output_objdir/$libname.ver~
11861             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11862         fi
11863
11864         case $cc_basename in
11865         xlf* | bgf* | bgxlf* | mpixlf*)
11866           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11867           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11868           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11869           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11870           if test "x$supports_anon_versioning" = xyes; then
11871             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11872               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11873               echo "local: *; };" >> $output_objdir/$libname.ver~
11874               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11875           fi
11876           ;;
11877         esac
11878       else
11879         ld_shlibs=no
11880       fi
11881       ;;
11882
11883     netbsd*)
11884       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11885         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11886         wlarc=
11887       else
11888         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11889         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11890       fi
11891       ;;
11892
11893     solaris*)
11894       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11895         ld_shlibs=no
11896         cat <<_LT_EOF 1>&2
11897
11898 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11899 *** create shared libraries on Solaris systems.  Therefore, libtool
11900 *** is disabling shared libraries support.  We urge you to upgrade GNU
11901 *** binutils to release 2.9.1 or newer.  Another option is to modify
11902 *** your PATH or compiler configuration so that the native linker is
11903 *** used, and then restart.
11904
11905 _LT_EOF
11906       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11907         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11908         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11909       else
11910         ld_shlibs=no
11911       fi
11912       ;;
11913
11914     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11915       case `$LD -v 2>&1` in
11916         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11917         ld_shlibs=no
11918         cat <<_LT_EOF 1>&2
11919
11920 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11921 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11922 *** is disabling shared libraries support.  We urge you to upgrade GNU
11923 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11924 *** your PATH or compiler configuration so that the native linker is
11925 *** used, and then restart.
11926
11927 _LT_EOF
11928         ;;
11929         *)
11930           # For security reasons, it is highly recommended that you always
11931           # use absolute paths for naming shared libraries, and exclude the
11932           # DT_RUNPATH tag from executables and libraries.  But doing so
11933           # requires that you compile everything twice, which is a pain.
11934           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11935             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11936             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11937             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11938           else
11939             ld_shlibs=no
11940           fi
11941         ;;
11942       esac
11943       ;;
11944
11945     sunos4*)
11946       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11947       wlarc=
11948       hardcode_direct=yes
11949       hardcode_shlibpath_var=no
11950       ;;
11951
11952     *)
11953       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11954         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11955         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11956       else
11957         ld_shlibs=no
11958       fi
11959       ;;
11960     esac
11961
11962     if test "$ld_shlibs" = no; then
11963       runpath_var=
11964       hardcode_libdir_flag_spec=
11965       export_dynamic_flag_spec=
11966       whole_archive_flag_spec=
11967     fi
11968   else
11969     # PORTME fill in a description of your system's linker (not GNU ld)
11970     case $host_os in
11971     aix3*)
11972       allow_undefined_flag=unsupported
11973       always_export_symbols=yes
11974       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'
11975       # Note: this linker hardcodes the directories in LIBPATH if there
11976       # are no directories specified by -L.
11977       hardcode_minus_L=yes
11978       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11979         # Neither direct hardcoding nor static linking is supported with a
11980         # broken collect2.
11981         hardcode_direct=unsupported
11982       fi
11983       ;;
11984
11985     aix[4-9]*)
11986       if test "$host_cpu" = ia64; then
11987         # On IA64, the linker does run time linking by default, so we don't
11988         # have to do anything special.
11989         aix_use_runtimelinking=no
11990         exp_sym_flag='-Bexport'
11991         no_entry_flag=""
11992       else
11993         # If we're using GNU nm, then we don't want the "-C" option.
11994         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11995         # Also, AIX nm treats weak defined symbols like other global
11996         # defined symbols, whereas GNU nm marks them as "W".
11997         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11998           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11999         else
12000           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12001         fi
12002         aix_use_runtimelinking=no
12003
12004         # Test if we are trying to use run time linking or normal
12005         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12006         # need to do runtime linking.
12007         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12008           for ld_flag in $LDFLAGS; do
12009           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12010             aix_use_runtimelinking=yes
12011             break
12012           fi
12013           done
12014           ;;
12015         esac
12016
12017         exp_sym_flag='-bexport'
12018         no_entry_flag='-bnoentry'
12019       fi
12020
12021       # When large executables or shared objects are built, AIX ld can
12022       # have problems creating the table of contents.  If linking a library
12023       # or program results in "error TOC overflow" add -mminimal-toc to
12024       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12025       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12026
12027       archive_cmds=''
12028       hardcode_direct=yes
12029       hardcode_direct_absolute=yes
12030       hardcode_libdir_separator=':'
12031       link_all_deplibs=yes
12032       file_list_spec='${wl}-f,'
12033
12034       if test "$GCC" = yes; then
12035         case $host_os in aix4.[012]|aix4.[012].*)
12036         # We only want to do this on AIX 4.2 and lower, the check
12037         # below for broken collect2 doesn't work under 4.3+
12038           collect2name=`${CC} -print-prog-name=collect2`
12039           if test -f "$collect2name" &&
12040            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12041           then
12042           # We have reworked collect2
12043           :
12044           else
12045           # We have old collect2
12046           hardcode_direct=unsupported
12047           # It fails to find uninstalled libraries when the uninstalled
12048           # path is not listed in the libpath.  Setting hardcode_minus_L
12049           # to unsupported forces relinking
12050           hardcode_minus_L=yes
12051           hardcode_libdir_flag_spec='-L$libdir'
12052           hardcode_libdir_separator=
12053           fi
12054           ;;
12055         esac
12056         shared_flag='-shared'
12057         if test "$aix_use_runtimelinking" = yes; then
12058           shared_flag="$shared_flag "'${wl}-G'
12059         fi
12060       else
12061         # not using gcc
12062         if test "$host_cpu" = ia64; then
12063         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12064         # chokes on -Wl,-G. The following line is correct:
12065           shared_flag='-G'
12066         else
12067           if test "$aix_use_runtimelinking" = yes; then
12068             shared_flag='${wl}-G'
12069           else
12070             shared_flag='${wl}-bM:SRE'
12071           fi
12072         fi
12073       fi
12074
12075       export_dynamic_flag_spec='${wl}-bexpall'
12076       # It seems that -bexpall does not export symbols beginning with
12077       # underscore (_), so it is better to generate a list of symbols to export.
12078       always_export_symbols=yes
12079       if test "$aix_use_runtimelinking" = yes; then
12080         # Warning - without using the other runtime loading flags (-brtl),
12081         # -berok will link without error, but may produce a broken library.
12082         allow_undefined_flag='-berok'
12083         # Determine the default libpath from the value encoded in an
12084         # empty executable.
12085         if test "${lt_cv_aix_libpath+set}" = set; then
12086   aix_libpath=$lt_cv_aix_libpath
12087 else
12088   if ${lt_cv_aix_libpath_+:} false; then :
12089   $as_echo_n "(cached) " >&6
12090 else
12091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h.  */
12093
12094 int
12095 main ()
12096 {
12097
12098   ;
12099   return 0;
12100 }
12101 _ACEOF
12102 if ac_fn_c_try_link "$LINENO"; then :
12103
12104   lt_aix_libpath_sed='
12105       /Import File Strings/,/^$/ {
12106           /^0/ {
12107               s/^0  *\([^ ]*\) *$/\1/
12108               p
12109           }
12110       }'
12111   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12112   # Check for a 64-bit object if we didn't find anything.
12113   if test -z "$lt_cv_aix_libpath_"; then
12114     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12115   fi
12116 fi
12117 rm -f core conftest.err conftest.$ac_objext \
12118     conftest$ac_exeext conftest.$ac_ext
12119   if test -z "$lt_cv_aix_libpath_"; then
12120     lt_cv_aix_libpath_="/usr/lib:/lib"
12121   fi
12122
12123 fi
12124
12125   aix_libpath=$lt_cv_aix_libpath_
12126 fi
12127
12128         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12129         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12130       else
12131         if test "$host_cpu" = ia64; then
12132           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12133           allow_undefined_flag="-z nodefs"
12134           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"
12135         else
12136          # Determine the default libpath from the value encoded in an
12137          # empty executable.
12138          if test "${lt_cv_aix_libpath+set}" = set; then
12139   aix_libpath=$lt_cv_aix_libpath
12140 else
12141   if ${lt_cv_aix_libpath_+:} false; then :
12142   $as_echo_n "(cached) " >&6
12143 else
12144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h.  */
12146
12147 int
12148 main ()
12149 {
12150
12151   ;
12152   return 0;
12153 }
12154 _ACEOF
12155 if ac_fn_c_try_link "$LINENO"; then :
12156
12157   lt_aix_libpath_sed='
12158       /Import File Strings/,/^$/ {
12159           /^0/ {
12160               s/^0  *\([^ ]*\) *$/\1/
12161               p
12162           }
12163       }'
12164   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12165   # Check for a 64-bit object if we didn't find anything.
12166   if test -z "$lt_cv_aix_libpath_"; then
12167     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12168   fi
12169 fi
12170 rm -f core conftest.err conftest.$ac_objext \
12171     conftest$ac_exeext conftest.$ac_ext
12172   if test -z "$lt_cv_aix_libpath_"; then
12173     lt_cv_aix_libpath_="/usr/lib:/lib"
12174   fi
12175
12176 fi
12177
12178   aix_libpath=$lt_cv_aix_libpath_
12179 fi
12180
12181          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12182           # Warning - without using the other run time loading flags,
12183           # -berok will link without error, but may produce a broken library.
12184           no_undefined_flag=' ${wl}-bernotok'
12185           allow_undefined_flag=' ${wl}-berok'
12186           if test "$with_gnu_ld" = yes; then
12187             # We only use this code for GNU lds that support --whole-archive.
12188             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12189           else
12190             # Exported symbols can be pulled into shared objects from archives
12191             whole_archive_flag_spec='$convenience'
12192           fi
12193           archive_cmds_need_lc=yes
12194           # This is similar to how AIX traditionally builds its shared libraries.
12195           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12196         fi
12197       fi
12198       ;;
12199
12200     amigaos*)
12201       case $host_cpu in
12202       powerpc)
12203             # see comment about AmigaOS4 .so support
12204             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12205             archive_expsym_cmds=''
12206         ;;
12207       m68k)
12208             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)'
12209             hardcode_libdir_flag_spec='-L$libdir'
12210             hardcode_minus_L=yes
12211         ;;
12212       esac
12213       ;;
12214
12215     bsdi[45]*)
12216       export_dynamic_flag_spec=-rdynamic
12217       ;;
12218
12219     cygwin* | mingw* | pw32* | cegcc*)
12220       # When not using gcc, we currently assume that we are using
12221       # Microsoft Visual C++.
12222       # hardcode_libdir_flag_spec is actually meaningless, as there is
12223       # no search path for DLLs.
12224       case $cc_basename in
12225       cl*)
12226         # Native MSVC
12227         hardcode_libdir_flag_spec=' '
12228         allow_undefined_flag=unsupported
12229         always_export_symbols=yes
12230         file_list_spec='@'
12231         # Tell ltmain to make .lib files, not .a files.
12232         libext=lib
12233         # Tell ltmain to make .dll files, not .so files.
12234         shrext_cmds=".dll"
12235         # FIXME: Setting linknames here is a bad hack.
12236         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12237         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12238             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12239           else
12240             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12241           fi~
12242           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12243           linknames='
12244         # The linker will not automatically build a static lib if we build a DLL.
12245         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12246         enable_shared_with_static_runtimes=yes
12247         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12248         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12249         # Don't use ranlib
12250         old_postinstall_cmds='chmod 644 $oldlib'
12251         postlink_cmds='lt_outputfile="@OUTPUT@"~
12252           lt_tool_outputfile="@TOOL_OUTPUT@"~
12253           case $lt_outputfile in
12254             *.exe|*.EXE) ;;
12255             *)
12256               lt_outputfile="$lt_outputfile.exe"
12257               lt_tool_outputfile="$lt_tool_outputfile.exe"
12258               ;;
12259           esac~
12260           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12261             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12262             $RM "$lt_outputfile.manifest";
12263           fi'
12264         ;;
12265       *)
12266         # Assume MSVC wrapper
12267         hardcode_libdir_flag_spec=' '
12268         allow_undefined_flag=unsupported
12269         # Tell ltmain to make .lib files, not .a files.
12270         libext=lib
12271         # Tell ltmain to make .dll files, not .so files.
12272         shrext_cmds=".dll"
12273         # FIXME: Setting linknames here is a bad hack.
12274         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12275         # The linker will automatically build a .lib file if we build a DLL.
12276         old_archive_from_new_cmds='true'
12277         # FIXME: Should let the user specify the lib program.
12278         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12279         enable_shared_with_static_runtimes=yes
12280         ;;
12281       esac
12282       ;;
12283
12284     darwin* | rhapsody*)
12285
12286
12287   archive_cmds_need_lc=no
12288   hardcode_direct=no
12289   hardcode_automatic=yes
12290   hardcode_shlibpath_var=unsupported
12291   if test "$lt_cv_ld_force_load" = "yes"; then
12292     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\"`'
12293
12294   else
12295     whole_archive_flag_spec=''
12296   fi
12297   link_all_deplibs=yes
12298   allow_undefined_flag="$_lt_dar_allow_undefined"
12299   case $cc_basename in
12300      ifort*) _lt_dar_can_shared=yes ;;
12301      *) _lt_dar_can_shared=$GCC ;;
12302   esac
12303   if test "$_lt_dar_can_shared" = "yes"; then
12304     output_verbose_link_cmd=func_echo_all
12305     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12306     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12307     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}"
12308     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}"
12309
12310   else
12311   ld_shlibs=no
12312   fi
12313
12314       ;;
12315
12316     dgux*)
12317       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12318       hardcode_libdir_flag_spec='-L$libdir'
12319       hardcode_shlibpath_var=no
12320       ;;
12321
12322     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12323     # support.  Future versions do this automatically, but an explicit c++rt0.o
12324     # does not break anything, and helps significantly (at the cost of a little
12325     # extra space).
12326     freebsd2.2*)
12327       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12328       hardcode_libdir_flag_spec='-R$libdir'
12329       hardcode_direct=yes
12330       hardcode_shlibpath_var=no
12331       ;;
12332
12333     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12334     freebsd2.*)
12335       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12336       hardcode_direct=yes
12337       hardcode_minus_L=yes
12338       hardcode_shlibpath_var=no
12339       ;;
12340
12341     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12342     freebsd* | dragonfly*)
12343       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12344       hardcode_libdir_flag_spec='-R$libdir'
12345       hardcode_direct=yes
12346       hardcode_shlibpath_var=no
12347       ;;
12348
12349     hpux9*)
12350       if test "$GCC" = yes; then
12351         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12352       else
12353         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12354       fi
12355       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12356       hardcode_libdir_separator=:
12357       hardcode_direct=yes
12358
12359       # hardcode_minus_L: Not really in the search PATH,
12360       # but as the default location of the library.
12361       hardcode_minus_L=yes
12362       export_dynamic_flag_spec='${wl}-E'
12363       ;;
12364
12365     hpux10*)
12366       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12367         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12368       else
12369         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12370       fi
12371       if test "$with_gnu_ld" = no; then
12372         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12373         hardcode_libdir_separator=:
12374         hardcode_direct=yes
12375         hardcode_direct_absolute=yes
12376         export_dynamic_flag_spec='${wl}-E'
12377         # hardcode_minus_L: Not really in the search PATH,
12378         # but as the default location of the library.
12379         hardcode_minus_L=yes
12380       fi
12381       ;;
12382
12383     hpux11*)
12384       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12385         case $host_cpu in
12386         hppa*64*)
12387           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12388           ;;
12389         ia64*)
12390           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12391           ;;
12392         *)
12393           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12394           ;;
12395         esac
12396       else
12397         case $host_cpu in
12398         hppa*64*)
12399           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12400           ;;
12401         ia64*)
12402           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12403           ;;
12404         *)
12405
12406           # Older versions of the 11.00 compiler do not understand -b yet
12407           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12408           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12409 $as_echo_n "checking if $CC understands -b... " >&6; }
12410 if ${lt_cv_prog_compiler__b+:} false; then :
12411   $as_echo_n "(cached) " >&6
12412 else
12413   lt_cv_prog_compiler__b=no
12414    save_LDFLAGS="$LDFLAGS"
12415    LDFLAGS="$LDFLAGS -b"
12416    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12417    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12418      # The linker can only warn and ignore the option if not recognized
12419      # So say no if there are warnings
12420      if test -s conftest.err; then
12421        # Append any errors to the config.log.
12422        cat conftest.err 1>&5
12423        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12424        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12425        if diff conftest.exp conftest.er2 >/dev/null; then
12426          lt_cv_prog_compiler__b=yes
12427        fi
12428      else
12429        lt_cv_prog_compiler__b=yes
12430      fi
12431    fi
12432    $RM -r conftest*
12433    LDFLAGS="$save_LDFLAGS"
12434
12435 fi
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12437 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12438
12439 if test x"$lt_cv_prog_compiler__b" = xyes; then
12440     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12441 else
12442     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12443 fi
12444
12445           ;;
12446         esac
12447       fi
12448       if test "$with_gnu_ld" = no; then
12449         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12450         hardcode_libdir_separator=:
12451
12452         case $host_cpu in
12453         hppa*64*|ia64*)
12454           hardcode_direct=no
12455           hardcode_shlibpath_var=no
12456           ;;
12457         *)
12458           hardcode_direct=yes
12459           hardcode_direct_absolute=yes
12460           export_dynamic_flag_spec='${wl}-E'
12461
12462           # hardcode_minus_L: Not really in the search PATH,
12463           # but as the default location of the library.
12464           hardcode_minus_L=yes
12465           ;;
12466         esac
12467       fi
12468       ;;
12469
12470     irix5* | irix6* | nonstopux*)
12471       if test "$GCC" = yes; then
12472         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'
12473         # Try to use the -exported_symbol ld option, if it does not
12474         # work, assume that -exports_file does not work either and
12475         # implicitly export all symbols.
12476         # This should be the same for all languages, so no per-tag cache variable.
12477         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12478 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12479 if ${lt_cv_irix_exported_symbol+:} false; then :
12480   $as_echo_n "(cached) " >&6
12481 else
12482   save_LDFLAGS="$LDFLAGS"
12483            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12484            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485 /* end confdefs.h.  */
12486 int foo (void) { return 0; }
12487 _ACEOF
12488 if ac_fn_c_try_link "$LINENO"; then :
12489   lt_cv_irix_exported_symbol=yes
12490 else
12491   lt_cv_irix_exported_symbol=no
12492 fi
12493 rm -f core conftest.err conftest.$ac_objext \
12494     conftest$ac_exeext conftest.$ac_ext
12495            LDFLAGS="$save_LDFLAGS"
12496 fi
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12498 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
12499         if test "$lt_cv_irix_exported_symbol" = yes; then
12500           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'
12501         fi
12502       else
12503         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'
12504         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'
12505       fi
12506       archive_cmds_need_lc='no'
12507       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12508       hardcode_libdir_separator=:
12509       inherit_rpath=yes
12510       link_all_deplibs=yes
12511       ;;
12512
12513     netbsd*)
12514       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12515         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12516       else
12517         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12518       fi
12519       hardcode_libdir_flag_spec='-R$libdir'
12520       hardcode_direct=yes
12521       hardcode_shlibpath_var=no
12522       ;;
12523
12524     newsos6)
12525       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12526       hardcode_direct=yes
12527       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12528       hardcode_libdir_separator=:
12529       hardcode_shlibpath_var=no
12530       ;;
12531
12532     *nto* | *qnx*)
12533       ;;
12534
12535     openbsd*)
12536       if test -f /usr/libexec/ld.so; then
12537         hardcode_direct=yes
12538         hardcode_shlibpath_var=no
12539         hardcode_direct_absolute=yes
12540         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12541           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12542           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12543           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12544           export_dynamic_flag_spec='${wl}-E'
12545         else
12546           case $host_os in
12547            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12548              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12549              hardcode_libdir_flag_spec='-R$libdir'
12550              ;;
12551            *)
12552              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12553              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12554              ;;
12555           esac
12556         fi
12557       else
12558         ld_shlibs=no
12559       fi
12560       ;;
12561
12562     os2*)
12563       hardcode_libdir_flag_spec='-L$libdir'
12564       hardcode_minus_L=yes
12565       allow_undefined_flag=unsupported
12566       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
12567       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12568       ;;
12569
12570     osf3*)
12571       if test "$GCC" = yes; then
12572         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12573         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'
12574       else
12575         allow_undefined_flag=' -expect_unresolved \*'
12576         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'
12577       fi
12578       archive_cmds_need_lc='no'
12579       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12580       hardcode_libdir_separator=:
12581       ;;
12582
12583     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12584       if test "$GCC" = yes; then
12585         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12586         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'
12587         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12588       else
12589         allow_undefined_flag=' -expect_unresolved \*'
12590         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'
12591         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~
12592         $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'
12593
12594         # Both c and cxx compiler support -rpath directly
12595         hardcode_libdir_flag_spec='-rpath $libdir'
12596       fi
12597       archive_cmds_need_lc='no'
12598       hardcode_libdir_separator=:
12599       ;;
12600
12601     solaris*)
12602       no_undefined_flag=' -z defs'
12603       if test "$GCC" = yes; then
12604         wlarc='${wl}'
12605         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12606         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12607           $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'
12608       else
12609         case `$CC -V 2>&1` in
12610         *"Compilers 5.0"*)
12611           wlarc=''
12612           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12613           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12614           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12615           ;;
12616         *)
12617           wlarc='${wl}'
12618           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12619           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12620           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12621           ;;
12622         esac
12623       fi
12624       hardcode_libdir_flag_spec='-R$libdir'
12625       hardcode_shlibpath_var=no
12626       case $host_os in
12627       solaris2.[0-5] | solaris2.[0-5].*) ;;
12628       *)
12629         # The compiler driver will combine and reorder linker options,
12630         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12631         # but is careful enough not to reorder.
12632         # Supported since Solaris 2.6 (maybe 2.5.1?)
12633         if test "$GCC" = yes; then
12634           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12635         else
12636           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12637         fi
12638         ;;
12639       esac
12640       link_all_deplibs=yes
12641       ;;
12642
12643     sunos4*)
12644       if test "x$host_vendor" = xsequent; then
12645         # Use $CC to link under sequent, because it throws in some extra .o
12646         # files that make .init and .fini sections work.
12647         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12648       else
12649         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12650       fi
12651       hardcode_libdir_flag_spec='-L$libdir'
12652       hardcode_direct=yes
12653       hardcode_minus_L=yes
12654       hardcode_shlibpath_var=no
12655       ;;
12656
12657     sysv4)
12658       case $host_vendor in
12659         sni)
12660           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12661           hardcode_direct=yes # is this really true???
12662         ;;
12663         siemens)
12664           ## LD is ld it makes a PLAMLIB
12665           ## CC just makes a GrossModule.
12666           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12667           reload_cmds='$CC -r -o $output$reload_objs'
12668           hardcode_direct=no
12669         ;;
12670         motorola)
12671           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12672           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12673         ;;
12674       esac
12675       runpath_var='LD_RUN_PATH'
12676       hardcode_shlibpath_var=no
12677       ;;
12678
12679     sysv4.3*)
12680       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12681       hardcode_shlibpath_var=no
12682       export_dynamic_flag_spec='-Bexport'
12683       ;;
12684
12685     sysv4*MP*)
12686       if test -d /usr/nec; then
12687         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12688         hardcode_shlibpath_var=no
12689         runpath_var=LD_RUN_PATH
12690         hardcode_runpath_var=yes
12691         ld_shlibs=yes
12692       fi
12693       ;;
12694
12695     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12696       no_undefined_flag='${wl}-z,text'
12697       archive_cmds_need_lc=no
12698       hardcode_shlibpath_var=no
12699       runpath_var='LD_RUN_PATH'
12700
12701       if test "$GCC" = yes; then
12702         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12703         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12704       else
12705         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12706         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12707       fi
12708       ;;
12709
12710     sysv5* | sco3.2v5* | sco5v6*)
12711       # Note: We can NOT use -z defs as we might desire, because we do not
12712       # link with -lc, and that would cause any symbols used from libc to
12713       # always be unresolved, which means just about no library would
12714       # ever link correctly.  If we're not using GNU ld we use -z text
12715       # though, which does catch some bad symbols but isn't as heavy-handed
12716       # as -z defs.
12717       no_undefined_flag='${wl}-z,text'
12718       allow_undefined_flag='${wl}-z,nodefs'
12719       archive_cmds_need_lc=no
12720       hardcode_shlibpath_var=no
12721       hardcode_libdir_flag_spec='${wl}-R,$libdir'
12722       hardcode_libdir_separator=':'
12723       link_all_deplibs=yes
12724       export_dynamic_flag_spec='${wl}-Bexport'
12725       runpath_var='LD_RUN_PATH'
12726
12727       if test "$GCC" = yes; then
12728         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12729         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12730       else
12731         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12732         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12733       fi
12734       ;;
12735
12736     uts4*)
12737       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12738       hardcode_libdir_flag_spec='-L$libdir'
12739       hardcode_shlibpath_var=no
12740       ;;
12741
12742     *)
12743       ld_shlibs=no
12744       ;;
12745     esac
12746
12747     if test x$host_vendor = xsni; then
12748       case $host in
12749       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12750         export_dynamic_flag_spec='${wl}-Blargedynsym'
12751         ;;
12752       esac
12753     fi
12754   fi
12755
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12757 $as_echo "$ld_shlibs" >&6; }
12758 test "$ld_shlibs" = no && can_build_shared=no
12759
12760 with_gnu_ld=$with_gnu_ld
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776 #
12777 # Do we need to explicitly link libc?
12778 #
12779 case "x$archive_cmds_need_lc" in
12780 x|xyes)
12781   # Assume -lc should be added
12782   archive_cmds_need_lc=yes
12783
12784   if test "$enable_shared" = yes && test "$GCC" = yes; then
12785     case $archive_cmds in
12786     *'~'*)
12787       # FIXME: we may have to deal with multi-command sequences.
12788       ;;
12789     '$CC '*)
12790       # Test whether the compiler implicitly links with -lc since on some
12791       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12792       # to ld, don't add -lc before -lgcc.
12793       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12794 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12795 if ${lt_cv_archive_cmds_need_lc+:} false; then :
12796   $as_echo_n "(cached) " >&6
12797 else
12798   $RM conftest*
12799         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12800
12801         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12802   (eval $ac_compile) 2>&5
12803   ac_status=$?
12804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12805   test $ac_status = 0; } 2>conftest.err; then
12806           soname=conftest
12807           lib=conftest
12808           libobjs=conftest.$ac_objext
12809           deplibs=
12810           wl=$lt_prog_compiler_wl
12811           pic_flag=$lt_prog_compiler_pic
12812           compiler_flags=-v
12813           linker_flags=-v
12814           verstring=
12815           output_objdir=.
12816           libname=conftest
12817           lt_save_allow_undefined_flag=$allow_undefined_flag
12818           allow_undefined_flag=
12819           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12820   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12821   ac_status=$?
12822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12823   test $ac_status = 0; }
12824           then
12825             lt_cv_archive_cmds_need_lc=no
12826           else
12827             lt_cv_archive_cmds_need_lc=yes
12828           fi
12829           allow_undefined_flag=$lt_save_allow_undefined_flag
12830         else
12831           cat conftest.err 1>&5
12832         fi
12833         $RM conftest*
12834
12835 fi
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12837 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12838       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12839       ;;
12840     esac
12841   fi
12842   ;;
12843 esac
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12997 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12998
12999 if test "$GCC" = yes; then
13000   case $host_os in
13001     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13002     *) lt_awk_arg="/^libraries:/" ;;
13003   esac
13004   case $host_os in
13005     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13006     *) lt_sed_strip_eq="s,=/,/,g" ;;
13007   esac
13008   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13009   case $lt_search_path_spec in
13010   *\;*)
13011     # if the path contains ";" then we assume it to be the separator
13012     # otherwise default to the standard path separator (i.e. ":") - it is
13013     # assumed that no part of a normal pathname contains ";" but that should
13014     # okay in the real world where ";" in dirpaths is itself problematic.
13015     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13016     ;;
13017   *)
13018     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13019     ;;
13020   esac
13021   # Ok, now we have the path, separated by spaces, we can step through it
13022   # and add multilib dir if necessary.
13023   lt_tmp_lt_search_path_spec=
13024   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13025   for lt_sys_path in $lt_search_path_spec; do
13026     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13027       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13028     else
13029       test -d "$lt_sys_path" && \
13030         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13031     fi
13032   done
13033   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13034 BEGIN {RS=" "; FS="/|\n";} {
13035   lt_foo="";
13036   lt_count=0;
13037   for (lt_i = NF; lt_i > 0; lt_i--) {
13038     if ($lt_i != "" && $lt_i != ".") {
13039       if ($lt_i == "..") {
13040         lt_count++;
13041       } else {
13042         if (lt_count == 0) {
13043           lt_foo="/" $lt_i lt_foo;
13044         } else {
13045           lt_count--;
13046         }
13047       }
13048     }
13049   }
13050   if (lt_foo != "") { lt_freq[lt_foo]++; }
13051   if (lt_freq[lt_foo] == 1) { print lt_foo; }
13052 }'`
13053   # AWK program above erroneously prepends '/' to C:/dos/paths
13054   # for these hosts.
13055   case $host_os in
13056     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13057       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13058   esac
13059   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13060 else
13061   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13062 fi
13063 library_names_spec=
13064 libname_spec='lib$name'
13065 soname_spec=
13066 shrext_cmds=".so"
13067 postinstall_cmds=
13068 postuninstall_cmds=
13069 finish_cmds=
13070 finish_eval=
13071 shlibpath_var=
13072 shlibpath_overrides_runpath=unknown
13073 version_type=none
13074 dynamic_linker="$host_os ld.so"
13075 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13076 need_lib_prefix=unknown
13077 hardcode_into_libs=no
13078
13079 # when you set need_version to no, make sure it does not cause -set_version
13080 # flags to be left without arguments
13081 need_version=unknown
13082
13083 case $host_os in
13084 aix3*)
13085   version_type=linux # correct to gnu/linux during the next big refactor
13086   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13087   shlibpath_var=LIBPATH
13088
13089   # AIX 3 has no versioning support, so we append a major version to the name.
13090   soname_spec='${libname}${release}${shared_ext}$major'
13091   ;;
13092
13093 aix[4-9]*)
13094   version_type=linux # correct to gnu/linux during the next big refactor
13095   need_lib_prefix=no
13096   need_version=no
13097   hardcode_into_libs=yes
13098   if test "$host_cpu" = ia64; then
13099     # AIX 5 supports IA64
13100     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13101     shlibpath_var=LD_LIBRARY_PATH
13102   else
13103     # With GCC up to 2.95.x, collect2 would create an import file
13104     # for dependence libraries.  The import file would start with
13105     # the line `#! .'.  This would cause the generated library to
13106     # depend on `.', always an invalid library.  This was fixed in
13107     # development snapshots of GCC prior to 3.0.
13108     case $host_os in
13109       aix4 | aix4.[01] | aix4.[01].*)
13110       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13111            echo ' yes '
13112            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13113         :
13114       else
13115         can_build_shared=no
13116       fi
13117       ;;
13118     esac
13119     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13120     # soname into executable. Probably we can add versioning support to
13121     # collect2, so additional links can be useful in future.
13122     if test "$aix_use_runtimelinking" = yes; then
13123       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13124       # instead of lib<name>.a to let people know that these are not
13125       # typical AIX shared libraries.
13126       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13127     else
13128       # We preserve .a as extension for shared libraries through AIX4.2
13129       # and later when we are not doing run time linking.
13130       library_names_spec='${libname}${release}.a $libname.a'
13131       soname_spec='${libname}${release}${shared_ext}$major'
13132     fi
13133     shlibpath_var=LIBPATH
13134   fi
13135   ;;
13136
13137 amigaos*)
13138   case $host_cpu in
13139   powerpc)
13140     # Since July 2007 AmigaOS4 officially supports .so libraries.
13141     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13142     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13143     ;;
13144   m68k)
13145     library_names_spec='$libname.ixlibrary $libname.a'
13146     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13147     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
13148     ;;
13149   esac
13150   ;;
13151
13152 beos*)
13153   library_names_spec='${libname}${shared_ext}'
13154   dynamic_linker="$host_os ld.so"
13155   shlibpath_var=LIBRARY_PATH
13156   ;;
13157
13158 bsdi[45]*)
13159   version_type=linux # correct to gnu/linux during the next big refactor
13160   need_version=no
13161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13162   soname_spec='${libname}${release}${shared_ext}$major'
13163   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13164   shlibpath_var=LD_LIBRARY_PATH
13165   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13166   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13167   # the default ld.so.conf also contains /usr/contrib/lib and
13168   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13169   # libtool to hard-code these into programs
13170   ;;
13171
13172 cygwin* | mingw* | pw32* | cegcc*)
13173   version_type=windows
13174   shrext_cmds=".dll"
13175   need_version=no
13176   need_lib_prefix=no
13177
13178   case $GCC,$cc_basename in
13179   yes,*)
13180     # gcc
13181     library_names_spec='$libname.dll.a'
13182     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13183     postinstall_cmds='base_file=`basename \${file}`~
13184       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13185       dldir=$destdir/`dirname \$dlpath`~
13186       test -d \$dldir || mkdir -p \$dldir~
13187       $install_prog $dir/$dlname \$dldir/$dlname~
13188       chmod a+x \$dldir/$dlname~
13189       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13190         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13191       fi'
13192     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13193       dlpath=$dir/\$dldll~
13194        $RM \$dlpath'
13195     shlibpath_overrides_runpath=yes
13196
13197     case $host_os in
13198     cygwin*)
13199       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13200       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13201
13202       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13203       ;;
13204     mingw* | cegcc*)
13205       # MinGW DLLs use traditional 'lib' prefix
13206       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13207       ;;
13208     pw32*)
13209       # pw32 DLLs use 'pw' prefix rather than 'lib'
13210       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13211       ;;
13212     esac
13213     dynamic_linker='Win32 ld.exe'
13214     ;;
13215
13216   *,cl*)
13217     # Native MSVC
13218     libname_spec='$name'
13219     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13220     library_names_spec='${libname}.dll.lib'
13221
13222     case $build_os in
13223     mingw*)
13224       sys_lib_search_path_spec=
13225       lt_save_ifs=$IFS
13226       IFS=';'
13227       for lt_path in $LIB
13228       do
13229         IFS=$lt_save_ifs
13230         # Let DOS variable expansion print the short 8.3 style file name.
13231         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13232         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13233       done
13234       IFS=$lt_save_ifs
13235       # Convert to MSYS style.
13236       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13237       ;;
13238     cygwin*)
13239       # Convert to unix form, then to dos form, then back to unix form
13240       # but this time dos style (no spaces!) so that the unix form looks
13241       # like /cygdrive/c/PROGRA~1:/cygdr...
13242       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13243       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13244       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13245       ;;
13246     *)
13247       sys_lib_search_path_spec="$LIB"
13248       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13249         # It is most probably a Windows format PATH.
13250         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13251       else
13252         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13253       fi
13254       # FIXME: find the short name or the path components, as spaces are
13255       # common. (e.g. "Program Files" -> "PROGRA~1")
13256       ;;
13257     esac
13258
13259     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13260     postinstall_cmds='base_file=`basename \${file}`~
13261       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13262       dldir=$destdir/`dirname \$dlpath`~
13263       test -d \$dldir || mkdir -p \$dldir~
13264       $install_prog $dir/$dlname \$dldir/$dlname'
13265     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13266       dlpath=$dir/\$dldll~
13267        $RM \$dlpath'
13268     shlibpath_overrides_runpath=yes
13269     dynamic_linker='Win32 link.exe'
13270     ;;
13271
13272   *)
13273     # Assume MSVC wrapper
13274     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13275     dynamic_linker='Win32 ld.exe'
13276     ;;
13277   esac
13278   # FIXME: first we should search . and the directory the executable is in
13279   shlibpath_var=PATH
13280   ;;
13281
13282 darwin* | rhapsody*)
13283   dynamic_linker="$host_os dyld"
13284   version_type=darwin
13285   need_lib_prefix=no
13286   need_version=no
13287   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13288   soname_spec='${libname}${release}${major}$shared_ext'
13289   shlibpath_overrides_runpath=yes
13290   shlibpath_var=DYLD_LIBRARY_PATH
13291   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13292
13293   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13294   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13295   ;;
13296
13297 dgux*)
13298   version_type=linux # correct to gnu/linux during the next big refactor
13299   need_lib_prefix=no
13300   need_version=no
13301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13302   soname_spec='${libname}${release}${shared_ext}$major'
13303   shlibpath_var=LD_LIBRARY_PATH
13304   ;;
13305
13306 freebsd* | dragonfly*)
13307   # DragonFly does not have aout.  When/if they implement a new
13308   # versioning mechanism, adjust this.
13309   if test -x /usr/bin/objformat; then
13310     objformat=`/usr/bin/objformat`
13311   else
13312     case $host_os in
13313     freebsd[23].*) objformat=aout ;;
13314     *) objformat=elf ;;
13315     esac
13316   fi
13317   version_type=freebsd-$objformat
13318   case $version_type in
13319     freebsd-elf*)
13320       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13321       need_version=no
13322       need_lib_prefix=no
13323       ;;
13324     freebsd-*)
13325       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13326       need_version=yes
13327       ;;
13328   esac
13329   shlibpath_var=LD_LIBRARY_PATH
13330   case $host_os in
13331   freebsd2.*)
13332     shlibpath_overrides_runpath=yes
13333     ;;
13334   freebsd3.[01]* | freebsdelf3.[01]*)
13335     shlibpath_overrides_runpath=yes
13336     hardcode_into_libs=yes
13337     ;;
13338   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13339   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13340     shlibpath_overrides_runpath=no
13341     hardcode_into_libs=yes
13342     ;;
13343   *) # from 4.6 on, and DragonFly
13344     shlibpath_overrides_runpath=yes
13345     hardcode_into_libs=yes
13346     ;;
13347   esac
13348   ;;
13349
13350 gnu*)
13351   version_type=linux # correct to gnu/linux during the next big refactor
13352   need_lib_prefix=no
13353   need_version=no
13354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13355   soname_spec='${libname}${release}${shared_ext}$major'
13356   shlibpath_var=LD_LIBRARY_PATH
13357   shlibpath_overrides_runpath=no
13358   hardcode_into_libs=yes
13359   ;;
13360
13361 haiku*)
13362   version_type=linux # correct to gnu/linux during the next big refactor
13363   need_lib_prefix=no
13364   need_version=no
13365   dynamic_linker="$host_os runtime_loader"
13366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13367   soname_spec='${libname}${release}${shared_ext}$major'
13368   shlibpath_var=LIBRARY_PATH
13369   shlibpath_overrides_runpath=yes
13370   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13371   hardcode_into_libs=yes
13372   ;;
13373
13374 hpux9* | hpux10* | hpux11*)
13375   # Give a soname corresponding to the major version so that dld.sl refuses to
13376   # link against other versions.
13377   version_type=sunos
13378   need_lib_prefix=no
13379   need_version=no
13380   case $host_cpu in
13381   ia64*)
13382     shrext_cmds='.so'
13383     hardcode_into_libs=yes
13384     dynamic_linker="$host_os dld.so"
13385     shlibpath_var=LD_LIBRARY_PATH
13386     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13387     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13388     soname_spec='${libname}${release}${shared_ext}$major'
13389     if test "X$HPUX_IA64_MODE" = X32; then
13390       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13391     else
13392       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13393     fi
13394     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13395     ;;
13396   hppa*64*)
13397     shrext_cmds='.sl'
13398     hardcode_into_libs=yes
13399     dynamic_linker="$host_os dld.sl"
13400     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13401     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13402     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13403     soname_spec='${libname}${release}${shared_ext}$major'
13404     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13405     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13406     ;;
13407   *)
13408     shrext_cmds='.sl'
13409     dynamic_linker="$host_os dld.sl"
13410     shlibpath_var=SHLIB_PATH
13411     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13412     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13413     soname_spec='${libname}${release}${shared_ext}$major'
13414     ;;
13415   esac
13416   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13417   postinstall_cmds='chmod 555 $lib'
13418   # or fails outright, so override atomically:
13419   install_override_mode=555
13420   ;;
13421
13422 interix[3-9]*)
13423   version_type=linux # correct to gnu/linux during the next big refactor
13424   need_lib_prefix=no
13425   need_version=no
13426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13427   soname_spec='${libname}${release}${shared_ext}$major'
13428   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13429   shlibpath_var=LD_LIBRARY_PATH
13430   shlibpath_overrides_runpath=no
13431   hardcode_into_libs=yes
13432   ;;
13433
13434 irix5* | irix6* | nonstopux*)
13435   case $host_os in
13436     nonstopux*) version_type=nonstopux ;;
13437     *)
13438         if test "$lt_cv_prog_gnu_ld" = yes; then
13439                 version_type=linux # correct to gnu/linux during the next big refactor
13440         else
13441                 version_type=irix
13442         fi ;;
13443   esac
13444   need_lib_prefix=no
13445   need_version=no
13446   soname_spec='${libname}${release}${shared_ext}$major'
13447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13448   case $host_os in
13449   irix5* | nonstopux*)
13450     libsuff= shlibsuff=
13451     ;;
13452   *)
13453     case $LD in # libtool.m4 will add one of these switches to LD
13454     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13455       libsuff= shlibsuff= libmagic=32-bit;;
13456     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13457       libsuff=32 shlibsuff=N32 libmagic=N32;;
13458     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13459       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13460     *) libsuff= shlibsuff= libmagic=never-match;;
13461     esac
13462     ;;
13463   esac
13464   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13465   shlibpath_overrides_runpath=no
13466   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13467   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13468   hardcode_into_libs=yes
13469   ;;
13470
13471 # No shared lib support for Linux oldld, aout, or coff.
13472 linux*oldld* | linux*aout* | linux*coff*)
13473   dynamic_linker=no
13474   ;;
13475
13476 # This must be glibc/ELF.
13477 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13478   version_type=linux # correct to gnu/linux during the next big refactor
13479   need_lib_prefix=no
13480   need_version=no
13481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13482   soname_spec='${libname}${release}${shared_ext}$major'
13483   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13484   shlibpath_var=LD_LIBRARY_PATH
13485   shlibpath_overrides_runpath=no
13486
13487   # Some binutils ld are patched to set DT_RUNPATH
13488   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13489   $as_echo_n "(cached) " >&6
13490 else
13491   lt_cv_shlibpath_overrides_runpath=no
13492     save_LDFLAGS=$LDFLAGS
13493     save_libdir=$libdir
13494     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13495          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13496     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13497 /* end confdefs.h.  */
13498
13499 int
13500 main ()
13501 {
13502
13503   ;
13504   return 0;
13505 }
13506 _ACEOF
13507 if ac_fn_c_try_link "$LINENO"; then :
13508   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13509   lt_cv_shlibpath_overrides_runpath=yes
13510 fi
13511 fi
13512 rm -f core conftest.err conftest.$ac_objext \
13513     conftest$ac_exeext conftest.$ac_ext
13514     LDFLAGS=$save_LDFLAGS
13515     libdir=$save_libdir
13516
13517 fi
13518
13519   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13520
13521   # This implies no fast_install, which is unacceptable.
13522   # Some rework will be needed to allow for fast_install
13523   # before this can be enabled.
13524   hardcode_into_libs=yes
13525
13526   # Append ld.so.conf contents to the search path
13527   if test -f /etc/ld.so.conf; then
13528     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' ' '`
13529     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13530   fi
13531
13532   # We used to test for /lib/ld.so.1 and disable shared libraries on
13533   # powerpc, because MkLinux only supported shared libraries with the
13534   # GNU dynamic linker.  Since this was broken with cross compilers,
13535   # most powerpc-linux boxes support dynamic linking these days and
13536   # people can always --disable-shared, the test was removed, and we
13537   # assume the GNU/Linux dynamic linker is in use.
13538   dynamic_linker='GNU/Linux ld.so'
13539   ;;
13540
13541 netbsd*)
13542   version_type=sunos
13543   need_lib_prefix=no
13544   need_version=no
13545   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13546     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13547     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13548     dynamic_linker='NetBSD (a.out) ld.so'
13549   else
13550     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13551     soname_spec='${libname}${release}${shared_ext}$major'
13552     dynamic_linker='NetBSD ld.elf_so'
13553   fi
13554   shlibpath_var=LD_LIBRARY_PATH
13555   shlibpath_overrides_runpath=yes
13556   hardcode_into_libs=yes
13557   ;;
13558
13559 newsos6)
13560   version_type=linux # correct to gnu/linux during the next big refactor
13561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13562   shlibpath_var=LD_LIBRARY_PATH
13563   shlibpath_overrides_runpath=yes
13564   ;;
13565
13566 *nto* | *qnx*)
13567   version_type=qnx
13568   need_lib_prefix=no
13569   need_version=no
13570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13571   soname_spec='${libname}${release}${shared_ext}$major'
13572   shlibpath_var=LD_LIBRARY_PATH
13573   shlibpath_overrides_runpath=no
13574   hardcode_into_libs=yes
13575   dynamic_linker='ldqnx.so'
13576   ;;
13577
13578 openbsd*)
13579   version_type=sunos
13580   sys_lib_dlsearch_path_spec="/usr/lib"
13581   need_lib_prefix=no
13582   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13583   case $host_os in
13584     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
13585     *)                          need_version=no  ;;
13586   esac
13587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13588   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13589   shlibpath_var=LD_LIBRARY_PATH
13590   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13591     case $host_os in
13592       openbsd2.[89] | openbsd2.[89].*)
13593         shlibpath_overrides_runpath=no
13594         ;;
13595       *)
13596         shlibpath_overrides_runpath=yes
13597         ;;
13598       esac
13599   else
13600     shlibpath_overrides_runpath=yes
13601   fi
13602   ;;
13603
13604 os2*)
13605   libname_spec='$name'
13606   shrext_cmds=".dll"
13607   need_lib_prefix=no
13608   library_names_spec='$libname${shared_ext} $libname.a'
13609   dynamic_linker='OS/2 ld.exe'
13610   shlibpath_var=LIBPATH
13611   ;;
13612
13613 osf3* | osf4* | osf5*)
13614   version_type=osf
13615   need_lib_prefix=no
13616   need_version=no
13617   soname_spec='${libname}${release}${shared_ext}$major'
13618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13619   shlibpath_var=LD_LIBRARY_PATH
13620   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13621   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13622   ;;
13623
13624 rdos*)
13625   dynamic_linker=no
13626   ;;
13627
13628 solaris*)
13629   version_type=linux # correct to gnu/linux during the next big refactor
13630   need_lib_prefix=no
13631   need_version=no
13632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13633   soname_spec='${libname}${release}${shared_ext}$major'
13634   shlibpath_var=LD_LIBRARY_PATH
13635   shlibpath_overrides_runpath=yes
13636   hardcode_into_libs=yes
13637   # ldd complains unless libraries are executable
13638   postinstall_cmds='chmod +x $lib'
13639   ;;
13640
13641 sunos4*)
13642   version_type=sunos
13643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13644   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13645   shlibpath_var=LD_LIBRARY_PATH
13646   shlibpath_overrides_runpath=yes
13647   if test "$with_gnu_ld" = yes; then
13648     need_lib_prefix=no
13649   fi
13650   need_version=yes
13651   ;;
13652
13653 sysv4 | sysv4.3*)
13654   version_type=linux # correct to gnu/linux during the next big refactor
13655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13656   soname_spec='${libname}${release}${shared_ext}$major'
13657   shlibpath_var=LD_LIBRARY_PATH
13658   case $host_vendor in
13659     sni)
13660       shlibpath_overrides_runpath=no
13661       need_lib_prefix=no
13662       runpath_var=LD_RUN_PATH
13663       ;;
13664     siemens)
13665       need_lib_prefix=no
13666       ;;
13667     motorola)
13668       need_lib_prefix=no
13669       need_version=no
13670       shlibpath_overrides_runpath=no
13671       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13672       ;;
13673   esac
13674   ;;
13675
13676 sysv4*MP*)
13677   if test -d /usr/nec ;then
13678     version_type=linux # correct to gnu/linux during the next big refactor
13679     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13680     soname_spec='$libname${shared_ext}.$major'
13681     shlibpath_var=LD_LIBRARY_PATH
13682   fi
13683   ;;
13684
13685 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13686   version_type=freebsd-elf
13687   need_lib_prefix=no
13688   need_version=no
13689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13690   soname_spec='${libname}${release}${shared_ext}$major'
13691   shlibpath_var=LD_LIBRARY_PATH
13692   shlibpath_overrides_runpath=yes
13693   hardcode_into_libs=yes
13694   if test "$with_gnu_ld" = yes; then
13695     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13696   else
13697     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13698     case $host_os in
13699       sco3.2v5*)
13700         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13701         ;;
13702     esac
13703   fi
13704   sys_lib_dlsearch_path_spec='/usr/lib'
13705   ;;
13706
13707 tpf*)
13708   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13709   version_type=linux # correct to gnu/linux during the next big refactor
13710   need_lib_prefix=no
13711   need_version=no
13712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13713   shlibpath_var=LD_LIBRARY_PATH
13714   shlibpath_overrides_runpath=no
13715   hardcode_into_libs=yes
13716   ;;
13717
13718 uts4*)
13719   version_type=linux # correct to gnu/linux during the next big refactor
13720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13721   soname_spec='${libname}${release}${shared_ext}$major'
13722   shlibpath_var=LD_LIBRARY_PATH
13723   ;;
13724
13725 *)
13726   dynamic_linker=no
13727   ;;
13728 esac
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13730 $as_echo "$dynamic_linker" >&6; }
13731 test "$dynamic_linker" = no && can_build_shared=no
13732
13733 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13734 if test "$GCC" = yes; then
13735   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13736 fi
13737
13738 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13739   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13740 fi
13741 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13742   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13743 fi
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13837 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13838 hardcode_action=
13839 if test -n "$hardcode_libdir_flag_spec" ||
13840    test -n "$runpath_var" ||
13841    test "X$hardcode_automatic" = "Xyes" ; then
13842
13843   # We can hardcode non-existent directories.
13844   if test "$hardcode_direct" != no &&
13845      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13846      # have to relink, otherwise we might link with an installed library
13847      # when we should be linking with a yet-to-be-installed one
13848      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13849      test "$hardcode_minus_L" != no; then
13850     # Linking always hardcodes the temporary library directory.
13851     hardcode_action=relink
13852   else
13853     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13854     hardcode_action=immediate
13855   fi
13856 else
13857   # We cannot hardcode anything, or else we can only hardcode existing
13858   # directories.
13859   hardcode_action=unsupported
13860 fi
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13862 $as_echo "$hardcode_action" >&6; }
13863
13864 if test "$hardcode_action" = relink ||
13865    test "$inherit_rpath" = yes; then
13866   # Fast installation is not supported
13867   enable_fast_install=no
13868 elif test "$shlibpath_overrides_runpath" = yes ||
13869      test "$enable_shared" = no; then
13870   # Fast installation is not necessary
13871   enable_fast_install=needless
13872 fi
13873
13874
13875
13876
13877
13878
13879   if test "x$enable_dlopen" != xyes; then
13880   enable_dlopen=unknown
13881   enable_dlopen_self=unknown
13882   enable_dlopen_self_static=unknown
13883 else
13884   lt_cv_dlopen=no
13885   lt_cv_dlopen_libs=
13886
13887   case $host_os in
13888   beos*)
13889     lt_cv_dlopen="load_add_on"
13890     lt_cv_dlopen_libs=
13891     lt_cv_dlopen_self=yes
13892     ;;
13893
13894   mingw* | pw32* | cegcc*)
13895     lt_cv_dlopen="LoadLibrary"
13896     lt_cv_dlopen_libs=
13897     ;;
13898
13899   cygwin*)
13900     lt_cv_dlopen="dlopen"
13901     lt_cv_dlopen_libs=
13902     ;;
13903
13904   darwin*)
13905   # if libdl is installed we need to link against it
13906     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13907 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13908 if ${ac_cv_lib_dl_dlopen+:} false; then :
13909   $as_echo_n "(cached) " >&6
13910 else
13911   ac_check_lib_save_LIBS=$LIBS
13912 LIBS="-ldl  $LIBS"
13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914 /* end confdefs.h.  */
13915
13916 /* Override any GCC internal prototype to avoid an error.
13917    Use char because int might match the return type of a GCC
13918    builtin and then its argument prototype would still apply.  */
13919 #ifdef __cplusplus
13920 extern "C"
13921 #endif
13922 char dlopen ();
13923 int
13924 main ()
13925 {
13926 return dlopen ();
13927   ;
13928   return 0;
13929 }
13930 _ACEOF
13931 if ac_fn_c_try_link "$LINENO"; then :
13932   ac_cv_lib_dl_dlopen=yes
13933 else
13934   ac_cv_lib_dl_dlopen=no
13935 fi
13936 rm -f core conftest.err conftest.$ac_objext \
13937     conftest$ac_exeext conftest.$ac_ext
13938 LIBS=$ac_check_lib_save_LIBS
13939 fi
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13941 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13942 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13943   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13944 else
13945
13946     lt_cv_dlopen="dyld"
13947     lt_cv_dlopen_libs=
13948     lt_cv_dlopen_self=yes
13949
13950 fi
13951
13952     ;;
13953
13954   *)
13955     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13956 if test "x$ac_cv_func_shl_load" = xyes; then :
13957   lt_cv_dlopen="shl_load"
13958 else
13959   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13960 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13961 if ${ac_cv_lib_dld_shl_load+:} false; then :
13962   $as_echo_n "(cached) " >&6
13963 else
13964   ac_check_lib_save_LIBS=$LIBS
13965 LIBS="-ldld  $LIBS"
13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h.  */
13968
13969 /* Override any GCC internal prototype to avoid an error.
13970    Use char because int might match the return type of a GCC
13971    builtin and then its argument prototype would still apply.  */
13972 #ifdef __cplusplus
13973 extern "C"
13974 #endif
13975 char shl_load ();
13976 int
13977 main ()
13978 {
13979 return shl_load ();
13980   ;
13981   return 0;
13982 }
13983 _ACEOF
13984 if ac_fn_c_try_link "$LINENO"; then :
13985   ac_cv_lib_dld_shl_load=yes
13986 else
13987   ac_cv_lib_dld_shl_load=no
13988 fi
13989 rm -f core conftest.err conftest.$ac_objext \
13990     conftest$ac_exeext conftest.$ac_ext
13991 LIBS=$ac_check_lib_save_LIBS
13992 fi
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13994 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13995 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13996   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13997 else
13998   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13999 if test "x$ac_cv_func_dlopen" = xyes; then :
14000   lt_cv_dlopen="dlopen"
14001 else
14002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14003 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14004 if ${ac_cv_lib_dl_dlopen+:} false; then :
14005   $as_echo_n "(cached) " >&6
14006 else
14007   ac_check_lib_save_LIBS=$LIBS
14008 LIBS="-ldl  $LIBS"
14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14010 /* end confdefs.h.  */
14011
14012 /* Override any GCC internal prototype to avoid an error.
14013    Use char because int might match the return type of a GCC
14014    builtin and then its argument prototype would still apply.  */
14015 #ifdef __cplusplus
14016 extern "C"
14017 #endif
14018 char dlopen ();
14019 int
14020 main ()
14021 {
14022 return dlopen ();
14023   ;
14024   return 0;
14025 }
14026 _ACEOF
14027 if ac_fn_c_try_link "$LINENO"; then :
14028   ac_cv_lib_dl_dlopen=yes
14029 else
14030   ac_cv_lib_dl_dlopen=no
14031 fi
14032 rm -f core conftest.err conftest.$ac_objext \
14033     conftest$ac_exeext conftest.$ac_ext
14034 LIBS=$ac_check_lib_save_LIBS
14035 fi
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14037 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14038 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14039   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14040 else
14041   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14042 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14043 if ${ac_cv_lib_svld_dlopen+:} false; then :
14044   $as_echo_n "(cached) " >&6
14045 else
14046   ac_check_lib_save_LIBS=$LIBS
14047 LIBS="-lsvld  $LIBS"
14048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049 /* end confdefs.h.  */
14050
14051 /* Override any GCC internal prototype to avoid an error.
14052    Use char because int might match the return type of a GCC
14053    builtin and then its argument prototype would still apply.  */
14054 #ifdef __cplusplus
14055 extern "C"
14056 #endif
14057 char dlopen ();
14058 int
14059 main ()
14060 {
14061 return dlopen ();
14062   ;
14063   return 0;
14064 }
14065 _ACEOF
14066 if ac_fn_c_try_link "$LINENO"; then :
14067   ac_cv_lib_svld_dlopen=yes
14068 else
14069   ac_cv_lib_svld_dlopen=no
14070 fi
14071 rm -f core conftest.err conftest.$ac_objext \
14072     conftest$ac_exeext conftest.$ac_ext
14073 LIBS=$ac_check_lib_save_LIBS
14074 fi
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14076 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14077 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14078   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14079 else
14080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14081 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14082 if ${ac_cv_lib_dld_dld_link+:} false; then :
14083   $as_echo_n "(cached) " >&6
14084 else
14085   ac_check_lib_save_LIBS=$LIBS
14086 LIBS="-ldld  $LIBS"
14087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h.  */
14089
14090 /* Override any GCC internal prototype to avoid an error.
14091    Use char because int might match the return type of a GCC
14092    builtin and then its argument prototype would still apply.  */
14093 #ifdef __cplusplus
14094 extern "C"
14095 #endif
14096 char dld_link ();
14097 int
14098 main ()
14099 {
14100 return dld_link ();
14101   ;
14102   return 0;
14103 }
14104 _ACEOF
14105 if ac_fn_c_try_link "$LINENO"; then :
14106   ac_cv_lib_dld_dld_link=yes
14107 else
14108   ac_cv_lib_dld_dld_link=no
14109 fi
14110 rm -f core conftest.err conftest.$ac_objext \
14111     conftest$ac_exeext conftest.$ac_ext
14112 LIBS=$ac_check_lib_save_LIBS
14113 fi
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14115 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14116 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14117   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14118 fi
14119
14120
14121 fi
14122
14123
14124 fi
14125
14126
14127 fi
14128
14129
14130 fi
14131
14132
14133 fi
14134
14135     ;;
14136   esac
14137
14138   if test "x$lt_cv_dlopen" != xno; then
14139     enable_dlopen=yes
14140   else
14141     enable_dlopen=no
14142   fi
14143
14144   case $lt_cv_dlopen in
14145   dlopen)
14146     save_CPPFLAGS="$CPPFLAGS"
14147     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14148
14149     save_LDFLAGS="$LDFLAGS"
14150     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14151
14152     save_LIBS="$LIBS"
14153     LIBS="$lt_cv_dlopen_libs $LIBS"
14154
14155     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14156 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14157 if ${lt_cv_dlopen_self+:} false; then :
14158   $as_echo_n "(cached) " >&6
14159 else
14160           if test "$cross_compiling" = yes; then :
14161   lt_cv_dlopen_self=cross
14162 else
14163   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14164   lt_status=$lt_dlunknown
14165   cat > conftest.$ac_ext <<_LT_EOF
14166 #line $LINENO "configure"
14167 #include "confdefs.h"
14168
14169 #if HAVE_DLFCN_H
14170 #include <dlfcn.h>
14171 #endif
14172
14173 #include <stdio.h>
14174
14175 #ifdef RTLD_GLOBAL
14176 #  define LT_DLGLOBAL           RTLD_GLOBAL
14177 #else
14178 #  ifdef DL_GLOBAL
14179 #    define LT_DLGLOBAL         DL_GLOBAL
14180 #  else
14181 #    define LT_DLGLOBAL         0
14182 #  endif
14183 #endif
14184
14185 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14186    find out it does not work in some platform. */
14187 #ifndef LT_DLLAZY_OR_NOW
14188 #  ifdef RTLD_LAZY
14189 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14190 #  else
14191 #    ifdef DL_LAZY
14192 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14193 #    else
14194 #      ifdef RTLD_NOW
14195 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14196 #      else
14197 #        ifdef DL_NOW
14198 #          define LT_DLLAZY_OR_NOW      DL_NOW
14199 #        else
14200 #          define LT_DLLAZY_OR_NOW      0
14201 #        endif
14202 #      endif
14203 #    endif
14204 #  endif
14205 #endif
14206
14207 /* When -fvisbility=hidden is used, assume the code has been annotated
14208    correspondingly for the symbols needed.  */
14209 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14210 int fnord () __attribute__((visibility("default")));
14211 #endif
14212
14213 int fnord () { return 42; }
14214 int main ()
14215 {
14216   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14217   int status = $lt_dlunknown;
14218
14219   if (self)
14220     {
14221       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14222       else
14223         {
14224           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14225           else puts (dlerror ());
14226         }
14227       /* dlclose (self); */
14228     }
14229   else
14230     puts (dlerror ());
14231
14232   return status;
14233 }
14234 _LT_EOF
14235   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14236   (eval $ac_link) 2>&5
14237   ac_status=$?
14238   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14239   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14240     (./conftest; exit; ) >&5 2>/dev/null
14241     lt_status=$?
14242     case x$lt_status in
14243       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14244       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14245       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14246     esac
14247   else :
14248     # compilation failed
14249     lt_cv_dlopen_self=no
14250   fi
14251 fi
14252 rm -fr conftest*
14253
14254
14255 fi
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14257 $as_echo "$lt_cv_dlopen_self" >&6; }
14258
14259     if test "x$lt_cv_dlopen_self" = xyes; then
14260       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14261       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14262 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14263 if ${lt_cv_dlopen_self_static+:} false; then :
14264   $as_echo_n "(cached) " >&6
14265 else
14266           if test "$cross_compiling" = yes; then :
14267   lt_cv_dlopen_self_static=cross
14268 else
14269   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14270   lt_status=$lt_dlunknown
14271   cat > conftest.$ac_ext <<_LT_EOF
14272 #line $LINENO "configure"
14273 #include "confdefs.h"
14274
14275 #if HAVE_DLFCN_H
14276 #include <dlfcn.h>
14277 #endif
14278
14279 #include <stdio.h>
14280
14281 #ifdef RTLD_GLOBAL
14282 #  define LT_DLGLOBAL           RTLD_GLOBAL
14283 #else
14284 #  ifdef DL_GLOBAL
14285 #    define LT_DLGLOBAL         DL_GLOBAL
14286 #  else
14287 #    define LT_DLGLOBAL         0
14288 #  endif
14289 #endif
14290
14291 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14292    find out it does not work in some platform. */
14293 #ifndef LT_DLLAZY_OR_NOW
14294 #  ifdef RTLD_LAZY
14295 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14296 #  else
14297 #    ifdef DL_LAZY
14298 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14299 #    else
14300 #      ifdef RTLD_NOW
14301 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14302 #      else
14303 #        ifdef DL_NOW
14304 #          define LT_DLLAZY_OR_NOW      DL_NOW
14305 #        else
14306 #          define LT_DLLAZY_OR_NOW      0
14307 #        endif
14308 #      endif
14309 #    endif
14310 #  endif
14311 #endif
14312
14313 /* When -fvisbility=hidden is used, assume the code has been annotated
14314    correspondingly for the symbols needed.  */
14315 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14316 int fnord () __attribute__((visibility("default")));
14317 #endif
14318
14319 int fnord () { return 42; }
14320 int main ()
14321 {
14322   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14323   int status = $lt_dlunknown;
14324
14325   if (self)
14326     {
14327       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14328       else
14329         {
14330           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14331           else puts (dlerror ());
14332         }
14333       /* dlclose (self); */
14334     }
14335   else
14336     puts (dlerror ());
14337
14338   return status;
14339 }
14340 _LT_EOF
14341   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14342   (eval $ac_link) 2>&5
14343   ac_status=$?
14344   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14345   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14346     (./conftest; exit; ) >&5 2>/dev/null
14347     lt_status=$?
14348     case x$lt_status in
14349       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14350       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14351       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14352     esac
14353   else :
14354     # compilation failed
14355     lt_cv_dlopen_self_static=no
14356   fi
14357 fi
14358 rm -fr conftest*
14359
14360
14361 fi
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14363 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14364     fi
14365
14366     CPPFLAGS="$save_CPPFLAGS"
14367     LDFLAGS="$save_LDFLAGS"
14368     LIBS="$save_LIBS"
14369     ;;
14370   esac
14371
14372   case $lt_cv_dlopen_self in
14373   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14374   *) enable_dlopen_self=unknown ;;
14375   esac
14376
14377   case $lt_cv_dlopen_self_static in
14378   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14379   *) enable_dlopen_self_static=unknown ;;
14380   esac
14381 fi
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399 striplib=
14400 old_striplib=
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14402 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14403 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14404   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14405   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14407 $as_echo "yes" >&6; }
14408 else
14409 # FIXME - insert some real tests, host_os isn't really good enough
14410   case $host_os in
14411   darwin*)
14412     if test -n "$STRIP" ; then
14413       striplib="$STRIP -x"
14414       old_striplib="$STRIP -S"
14415       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14416 $as_echo "yes" >&6; }
14417     else
14418       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14419 $as_echo "no" >&6; }
14420     fi
14421     ;;
14422   *)
14423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14424 $as_echo "no" >&6; }
14425     ;;
14426   esac
14427 fi
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440   # Report which library types will actually be built
14441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14442 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14444 $as_echo "$can_build_shared" >&6; }
14445
14446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14447 $as_echo_n "checking whether to build shared libraries... " >&6; }
14448   test "$can_build_shared" = "no" && enable_shared=no
14449
14450   # On AIX, shared libraries and static libraries use the same namespace, and
14451   # are all built from PIC.
14452   case $host_os in
14453   aix3*)
14454     test "$enable_shared" = yes && enable_static=no
14455     if test -n "$RANLIB"; then
14456       archive_cmds="$archive_cmds~\$RANLIB \$lib"
14457       postinstall_cmds='$RANLIB $lib'
14458     fi
14459     ;;
14460
14461   aix[4-9]*)
14462     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14463       test "$enable_shared" = yes && enable_static=no
14464     fi
14465     ;;
14466   esac
14467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14468 $as_echo "$enable_shared" >&6; }
14469
14470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14471 $as_echo_n "checking whether to build static libraries... " >&6; }
14472   # Make sure either enable_shared or enable_static is yes.
14473   test "$enable_shared" = yes || enable_static=yes
14474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14475 $as_echo "$enable_static" >&6; }
14476
14477
14478
14479
14480 fi
14481 ac_ext=c
14482 ac_cpp='$CPP $CPPFLAGS'
14483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14486
14487 CC="$lt_save_CC"
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503         ac_config_commands="$ac_config_commands libtool"
14504
14505
14506
14507
14508 # Only expand once:
14509
14510
14511
14512 if test -n "$ac_tool_prefix"; then
14513   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14514 set dummy ${ac_tool_prefix}windres; ac_word=$2
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14516 $as_echo_n "checking for $ac_word... " >&6; }
14517 if ${ac_cv_prog_RC+:} false; then :
14518   $as_echo_n "(cached) " >&6
14519 else
14520   if test -n "$RC"; then
14521   ac_cv_prog_RC="$RC" # Let the user override the test.
14522 else
14523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14524 for as_dir in $PATH
14525 do
14526   IFS=$as_save_IFS
14527   test -z "$as_dir" && as_dir=.
14528     for ac_exec_ext in '' $ac_executable_extensions; do
14529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14530     ac_cv_prog_RC="${ac_tool_prefix}windres"
14531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14532     break 2
14533   fi
14534 done
14535   done
14536 IFS=$as_save_IFS
14537
14538 fi
14539 fi
14540 RC=$ac_cv_prog_RC
14541 if test -n "$RC"; then
14542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
14543 $as_echo "$RC" >&6; }
14544 else
14545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14546 $as_echo "no" >&6; }
14547 fi
14548
14549
14550 fi
14551 if test -z "$ac_cv_prog_RC"; then
14552   ac_ct_RC=$RC
14553   # Extract the first word of "windres", so it can be a program name with args.
14554 set dummy windres; ac_word=$2
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14556 $as_echo_n "checking for $ac_word... " >&6; }
14557 if ${ac_cv_prog_ac_ct_RC+:} false; then :
14558   $as_echo_n "(cached) " >&6
14559 else
14560   if test -n "$ac_ct_RC"; then
14561   ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
14562 else
14563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14564 for as_dir in $PATH
14565 do
14566   IFS=$as_save_IFS
14567   test -z "$as_dir" && as_dir=.
14568     for ac_exec_ext in '' $ac_executable_extensions; do
14569   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14570     ac_cv_prog_ac_ct_RC="windres"
14571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14572     break 2
14573   fi
14574 done
14575   done
14576 IFS=$as_save_IFS
14577
14578 fi
14579 fi
14580 ac_ct_RC=$ac_cv_prog_ac_ct_RC
14581 if test -n "$ac_ct_RC"; then
14582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
14583 $as_echo "$ac_ct_RC" >&6; }
14584 else
14585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14586 $as_echo "no" >&6; }
14587 fi
14588
14589   if test "x$ac_ct_RC" = x; then
14590     RC=""
14591   else
14592     case $cross_compiling:$ac_tool_warned in
14593 yes:)
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14596 ac_tool_warned=yes ;;
14597 esac
14598     RC=$ac_ct_RC
14599   fi
14600 else
14601   RC="$ac_cv_prog_RC"
14602 fi
14603
14604
14605
14606
14607 # Source file extension for RC test sources.
14608 ac_ext=rc
14609
14610 # Object file extension for compiled RC test sources.
14611 objext=o
14612 objext_RC=$objext
14613
14614 # Code to be used in simple compile tests
14615 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
14616
14617 # Code to be used in simple link tests
14618 lt_simple_link_test_code="$lt_simple_compile_test_code"
14619
14620 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14621
14622
14623
14624
14625
14626
14627 # If no C compiler was specified, use CC.
14628 LTCC=${LTCC-"$CC"}
14629
14630 # If no C compiler flags were specified, use CFLAGS.
14631 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14632
14633 # Allow CC to be a program name with arguments.
14634 compiler=$CC
14635
14636
14637 # save warnings/boilerplate of simple test code
14638 ac_outfile=conftest.$ac_objext
14639 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14640 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14641 _lt_compiler_boilerplate=`cat conftest.err`
14642 $RM conftest*
14643
14644 ac_outfile=conftest.$ac_objext
14645 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14646 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14647 _lt_linker_boilerplate=`cat conftest.err`
14648 $RM -r conftest*
14649
14650
14651 # Allow CC to be a program name with arguments.
14652 lt_save_CC="$CC"
14653 lt_save_CFLAGS=$CFLAGS
14654 lt_save_GCC=$GCC
14655 GCC=
14656 CC=${RC-"windres"}
14657 CFLAGS=
14658 compiler=$CC
14659 compiler_RC=$CC
14660 for cc_temp in $compiler""; do
14661   case $cc_temp in
14662     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14663     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14664     \-*) ;;
14665     *) break;;
14666   esac
14667 done
14668 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14669
14670 lt_cv_prog_compiler_c_o_RC=yes
14671
14672 if test -n "$compiler"; then
14673   :
14674
14675
14676
14677 fi
14678
14679 GCC=$lt_save_GCC
14680 ac_ext=c
14681 ac_cpp='$CPP $CPPFLAGS'
14682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14685
14686 CC=$lt_save_CC
14687 CFLAGS=$lt_save_CFLAGS
14688
14689
14690 case "$host_os" in
14691   mingw* | cygwin*) is_woe32=yes ;;
14692   *) is_woe32=no ;;
14693 esac
14694  if test $is_woe32 = yes; then
14695   WOE32_TRUE=
14696   WOE32_FALSE='#'
14697 else
14698   WOE32_TRUE='#'
14699   WOE32_FALSE=
14700 fi
14701
14702
14703
14704
14705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14706 $as_echo_n "checking whether NLS is requested... " >&6; }
14707     # Check whether --enable-nls was given.
14708 if test "${enable_nls+set}" = set; then :
14709   enableval=$enable_nls; USE_NLS=$enableval
14710 else
14711   USE_NLS=yes
14712 fi
14713
14714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14715 $as_echo "$USE_NLS" >&6; }
14716
14717
14718
14719
14720       GETTEXT_MACRO_VERSION=0.18
14721
14722
14723
14724
14725 # Prepare PATH_SEPARATOR.
14726 # The user is always right.
14727 if test "${PATH_SEPARATOR+set}" != set; then
14728   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14729   # contains only /bin. Note that ksh looks also at the FPATH variable,
14730   # so we have to set that as well for the test.
14731   PATH_SEPARATOR=:
14732   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14733     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14734            || PATH_SEPARATOR=';'
14735        }
14736 fi
14737
14738 # Find out how to test for executable files. Don't use a zero-byte file,
14739 # as systems may use methods other than mode bits to determine executability.
14740 cat >conf$$.file <<_ASEOF
14741 #! /bin/sh
14742 exit 0
14743 _ASEOF
14744 chmod +x conf$$.file
14745 if test -x conf$$.file >/dev/null 2>&1; then
14746   ac_executable_p="test -x"
14747 else
14748   ac_executable_p="test -f"
14749 fi
14750 rm -f conf$$.file
14751
14752 # Extract the first word of "msgfmt", so it can be a program name with args.
14753 set dummy msgfmt; ac_word=$2
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14755 $as_echo_n "checking for $ac_word... " >&6; }
14756 if ${ac_cv_path_MSGFMT+:} false; then :
14757   $as_echo_n "(cached) " >&6
14758 else
14759   case "$MSGFMT" in
14760   [\\/]* | ?:[\\/]*)
14761     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14762     ;;
14763   *)
14764     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14765     for ac_dir in $PATH; do
14766       IFS="$ac_save_IFS"
14767       test -z "$ac_dir" && ac_dir=.
14768       for ac_exec_ext in '' $ac_executable_extensions; do
14769         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14770           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14771           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14772      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14773             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14774             break 2
14775           fi
14776         fi
14777       done
14778     done
14779     IFS="$ac_save_IFS"
14780   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14781     ;;
14782 esac
14783 fi
14784 MSGFMT="$ac_cv_path_MSGFMT"
14785 if test "$MSGFMT" != ":"; then
14786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14787 $as_echo "$MSGFMT" >&6; }
14788 else
14789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14790 $as_echo "no" >&6; }
14791 fi
14792
14793   # Extract the first word of "gmsgfmt", so it can be a program name with args.
14794 set dummy gmsgfmt; ac_word=$2
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14796 $as_echo_n "checking for $ac_word... " >&6; }
14797 if ${ac_cv_path_GMSGFMT+:} false; then :
14798   $as_echo_n "(cached) " >&6
14799 else
14800   case $GMSGFMT in
14801   [\\/]* | ?:[\\/]*)
14802   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14803   ;;
14804   *)
14805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14806 for as_dir in $PATH
14807 do
14808   IFS=$as_save_IFS
14809   test -z "$as_dir" && as_dir=.
14810     for ac_exec_ext in '' $ac_executable_extensions; do
14811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14812     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14814     break 2
14815   fi
14816 done
14817   done
14818 IFS=$as_save_IFS
14819
14820   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14821   ;;
14822 esac
14823 fi
14824 GMSGFMT=$ac_cv_path_GMSGFMT
14825 if test -n "$GMSGFMT"; then
14826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14827 $as_echo "$GMSGFMT" >&6; }
14828 else
14829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14830 $as_echo "no" >&6; }
14831 fi
14832
14833
14834
14835     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14836     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14837     *) MSGFMT_015=$MSGFMT ;;
14838   esac
14839
14840   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14841     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14842     *) GMSGFMT_015=$GMSGFMT ;;
14843   esac
14844
14845
14846
14847 # Prepare PATH_SEPARATOR.
14848 # The user is always right.
14849 if test "${PATH_SEPARATOR+set}" != set; then
14850   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14851   # contains only /bin. Note that ksh looks also at the FPATH variable,
14852   # so we have to set that as well for the test.
14853   PATH_SEPARATOR=:
14854   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14855     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14856            || PATH_SEPARATOR=';'
14857        }
14858 fi
14859
14860 # Find out how to test for executable files. Don't use a zero-byte file,
14861 # as systems may use methods other than mode bits to determine executability.
14862 cat >conf$$.file <<_ASEOF
14863 #! /bin/sh
14864 exit 0
14865 _ASEOF
14866 chmod +x conf$$.file
14867 if test -x conf$$.file >/dev/null 2>&1; then
14868   ac_executable_p="test -x"
14869 else
14870   ac_executable_p="test -f"
14871 fi
14872 rm -f conf$$.file
14873
14874 # Extract the first word of "xgettext", so it can be a program name with args.
14875 set dummy xgettext; ac_word=$2
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14877 $as_echo_n "checking for $ac_word... " >&6; }
14878 if ${ac_cv_path_XGETTEXT+:} false; then :
14879   $as_echo_n "(cached) " >&6
14880 else
14881   case "$XGETTEXT" in
14882   [\\/]* | ?:[\\/]*)
14883     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14884     ;;
14885   *)
14886     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14887     for ac_dir in $PATH; do
14888       IFS="$ac_save_IFS"
14889       test -z "$ac_dir" && ac_dir=.
14890       for ac_exec_ext in '' $ac_executable_extensions; do
14891         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14892           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14893           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14894      (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
14895             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14896             break 2
14897           fi
14898         fi
14899       done
14900     done
14901     IFS="$ac_save_IFS"
14902   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14903     ;;
14904 esac
14905 fi
14906 XGETTEXT="$ac_cv_path_XGETTEXT"
14907 if test "$XGETTEXT" != ":"; then
14908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14909 $as_echo "$XGETTEXT" >&6; }
14910 else
14911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14912 $as_echo "no" >&6; }
14913 fi
14914
14915     rm -f messages.po
14916
14917     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14918     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14919     *) XGETTEXT_015=$XGETTEXT ;;
14920   esac
14921
14922
14923
14924 # Prepare PATH_SEPARATOR.
14925 # The user is always right.
14926 if test "${PATH_SEPARATOR+set}" != set; then
14927   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14928   # contains only /bin. Note that ksh looks also at the FPATH variable,
14929   # so we have to set that as well for the test.
14930   PATH_SEPARATOR=:
14931   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14932     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14933            || PATH_SEPARATOR=';'
14934        }
14935 fi
14936
14937 # Find out how to test for executable files. Don't use a zero-byte file,
14938 # as systems may use methods other than mode bits to determine executability.
14939 cat >conf$$.file <<_ASEOF
14940 #! /bin/sh
14941 exit 0
14942 _ASEOF
14943 chmod +x conf$$.file
14944 if test -x conf$$.file >/dev/null 2>&1; then
14945   ac_executable_p="test -x"
14946 else
14947   ac_executable_p="test -f"
14948 fi
14949 rm -f conf$$.file
14950
14951 # Extract the first word of "msgmerge", so it can be a program name with args.
14952 set dummy msgmerge; ac_word=$2
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14954 $as_echo_n "checking for $ac_word... " >&6; }
14955 if ${ac_cv_path_MSGMERGE+:} false; then :
14956   $as_echo_n "(cached) " >&6
14957 else
14958   case "$MSGMERGE" in
14959   [\\/]* | ?:[\\/]*)
14960     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14961     ;;
14962   *)
14963     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14964     for ac_dir in $PATH; do
14965       IFS="$ac_save_IFS"
14966       test -z "$ac_dir" && ac_dir=.
14967       for ac_exec_ext in '' $ac_executable_extensions; do
14968         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14969           echo "$as_me: trying $ac_dir/$ac_word..." >&5
14970           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14971             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14972             break 2
14973           fi
14974         fi
14975       done
14976     done
14977     IFS="$ac_save_IFS"
14978   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14979     ;;
14980 esac
14981 fi
14982 MSGMERGE="$ac_cv_path_MSGMERGE"
14983 if test "$MSGMERGE" != ":"; then
14984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14985 $as_echo "$MSGMERGE" >&6; }
14986 else
14987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14988 $as_echo "no" >&6; }
14989 fi
14990
14991
14992         test -n "$localedir" || localedir='${datadir}/locale'
14993
14994
14995     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14996
14997
14998   ac_config_commands="$ac_config_commands po-directories"
14999
15000
15001
15002     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
15003 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
15004 if ${ac_cv_gnu_library_2+:} false; then :
15005   $as_echo_n "(cached) " >&6
15006 else
15007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15008 /* end confdefs.h.  */
15009
15010 #include <features.h>
15011 #ifdef __GNU_LIBRARY__
15012  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
15013   Lucky GNU user
15014  #endif
15015 #endif
15016
15017 _ACEOF
15018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15019   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
15020   ac_cv_gnu_library_2=yes
15021 else
15022   ac_cv_gnu_library_2=no
15023 fi
15024 rm -f conftest*
15025
15026
15027
15028 fi
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
15030 $as_echo "$ac_cv_gnu_library_2" >&6; }
15031
15032     GLIBC2="$ac_cv_gnu_library_2"
15033
15034
15035
15036
15037   CFLAG_VISIBILITY=
15038   HAVE_VISIBILITY=0
15039   if test -n "$GCC"; then
15040                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
15041 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
15042     if ${gl_cv_cc_vis_werror+:} false; then :
15043   $as_echo_n "(cached) " >&6
15044 else
15045
15046       gl_save_CFLAGS="$CFLAGS"
15047       CFLAGS="$CFLAGS -Werror"
15048       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15049 /* end confdefs.h.  */
15050
15051 int
15052 main ()
15053 {
15054
15055   ;
15056   return 0;
15057 }
15058 _ACEOF
15059 if ac_fn_c_try_compile "$LINENO"; then :
15060   gl_cv_cc_vis_werror=yes
15061 else
15062   gl_cv_cc_vis_werror=no
15063 fi
15064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15065       CFLAGS="$gl_save_CFLAGS"
15066 fi
15067
15068     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
15069 $as_echo "$gl_cv_cc_vis_werror" >&6; }
15070         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
15071 $as_echo_n "checking for simple visibility declarations... " >&6; }
15072     if ${gl_cv_cc_visibility+:} false; then :
15073   $as_echo_n "(cached) " >&6
15074 else
15075
15076       gl_save_CFLAGS="$CFLAGS"
15077       CFLAGS="$CFLAGS -fvisibility=hidden"
15078                                     if test $gl_cv_cc_vis_werror = yes; then
15079         CFLAGS="$CFLAGS -Werror"
15080       fi
15081       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082 /* end confdefs.h.  */
15083 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
15084              extern __attribute__((__visibility__("default"))) int exportedvar;
15085              extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
15086              extern __attribute__((__visibility__("default"))) int exportedfunc (void);
15087              void dummyfunc (void) {}
15088
15089 int
15090 main ()
15091 {
15092
15093   ;
15094   return 0;
15095 }
15096 _ACEOF
15097 if ac_fn_c_try_compile "$LINENO"; then :
15098   gl_cv_cc_visibility=yes
15099 else
15100   gl_cv_cc_visibility=no
15101 fi
15102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15103       CFLAGS="$gl_save_CFLAGS"
15104 fi
15105
15106     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
15107 $as_echo "$gl_cv_cc_visibility" >&6; }
15108     if test $gl_cv_cc_visibility = yes; then
15109       CFLAG_VISIBILITY="-fvisibility=hidden"
15110       HAVE_VISIBILITY=1
15111     fi
15112   fi
15113
15114
15115
15116 cat >>confdefs.h <<_ACEOF
15117 #define HAVE_VISIBILITY $HAVE_VISIBILITY
15118 _ACEOF
15119
15120
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15122 $as_echo_n "checking for inline... " >&6; }
15123 if ${ac_cv_c_inline+:} false; then :
15124   $as_echo_n "(cached) " >&6
15125 else
15126   ac_cv_c_inline=no
15127 for ac_kw in inline __inline__ __inline; do
15128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15129 /* end confdefs.h.  */
15130 #ifndef __cplusplus
15131 typedef int foo_t;
15132 static $ac_kw foo_t static_foo () {return 0; }
15133 $ac_kw foo_t foo () {return 0; }
15134 #endif
15135
15136 _ACEOF
15137 if ac_fn_c_try_compile "$LINENO"; then :
15138   ac_cv_c_inline=$ac_kw
15139 fi
15140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15141   test "$ac_cv_c_inline" != no && break
15142 done
15143
15144 fi
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15146 $as_echo "$ac_cv_c_inline" >&6; }
15147
15148 case $ac_cv_c_inline in
15149   inline | yes) ;;
15150   *)
15151     case $ac_cv_c_inline in
15152       no) ac_val=;;
15153       *) ac_val=$ac_cv_c_inline;;
15154     esac
15155     cat >>confdefs.h <<_ACEOF
15156 #ifndef __cplusplus
15157 #define inline $ac_val
15158 #endif
15159 _ACEOF
15160     ;;
15161 esac
15162
15163 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15164 if test "x$ac_cv_type_size_t" = xyes; then :
15165
15166 else
15167
15168 cat >>confdefs.h <<_ACEOF
15169 #define size_t unsigned int
15170 _ACEOF
15171
15172 fi
15173
15174
15175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
15176 $as_echo_n "checking for stdint.h... " >&6; }
15177 if ${gl_cv_header_stdint_h+:} false; then :
15178   $as_echo_n "(cached) " >&6
15179 else
15180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181 /* end confdefs.h.  */
15182 #include <sys/types.h>
15183             #include <stdint.h>
15184 int
15185 main ()
15186 {
15187 uintmax_t i = (uintmax_t) -1; return !i;
15188   ;
15189   return 0;
15190 }
15191 _ACEOF
15192 if ac_fn_c_try_compile "$LINENO"; then :
15193   gl_cv_header_stdint_h=yes
15194 else
15195   gl_cv_header_stdint_h=no
15196 fi
15197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15198 fi
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
15200 $as_echo "$gl_cv_header_stdint_h" >&6; }
15201   if test $gl_cv_header_stdint_h = yes; then
15202
15203 cat >>confdefs.h <<_ACEOF
15204 #define HAVE_STDINT_H_WITH_UINTMAX 1
15205 _ACEOF
15206
15207   fi
15208
15209 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15210 # for constant arguments.  Useless!
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15212 $as_echo_n "checking for working alloca.h... " >&6; }
15213 if ${ac_cv_working_alloca_h+:} false; then :
15214   $as_echo_n "(cached) " >&6
15215 else
15216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15217 /* end confdefs.h.  */
15218 #include <alloca.h>
15219 int
15220 main ()
15221 {
15222 char *p = (char *) alloca (2 * sizeof (int));
15223                           if (p) return 0;
15224   ;
15225   return 0;
15226 }
15227 _ACEOF
15228 if ac_fn_c_try_link "$LINENO"; then :
15229   ac_cv_working_alloca_h=yes
15230 else
15231   ac_cv_working_alloca_h=no
15232 fi
15233 rm -f core conftest.err conftest.$ac_objext \
15234     conftest$ac_exeext conftest.$ac_ext
15235 fi
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15237 $as_echo "$ac_cv_working_alloca_h" >&6; }
15238 if test $ac_cv_working_alloca_h = yes; then
15239
15240 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15241
15242 fi
15243
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15245 $as_echo_n "checking for alloca... " >&6; }
15246 if ${ac_cv_func_alloca_works+:} false; then :
15247   $as_echo_n "(cached) " >&6
15248 else
15249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15250 /* end confdefs.h.  */
15251 #ifdef __GNUC__
15252 # define alloca __builtin_alloca
15253 #else
15254 # ifdef _MSC_VER
15255 #  include <malloc.h>
15256 #  define alloca _alloca
15257 # else
15258 #  ifdef HAVE_ALLOCA_H
15259 #   include <alloca.h>
15260 #  else
15261 #   ifdef _AIX
15262  #pragma alloca
15263 #   else
15264 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15265 void *alloca (size_t);
15266 #    endif
15267 #   endif
15268 #  endif
15269 # endif
15270 #endif
15271
15272 int
15273 main ()
15274 {
15275 char *p = (char *) alloca (1);
15276                                     if (p) return 0;
15277   ;
15278   return 0;
15279 }
15280 _ACEOF
15281 if ac_fn_c_try_link "$LINENO"; then :
15282   ac_cv_func_alloca_works=yes
15283 else
15284   ac_cv_func_alloca_works=no
15285 fi
15286 rm -f core conftest.err conftest.$ac_objext \
15287     conftest$ac_exeext conftest.$ac_ext
15288 fi
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15290 $as_echo "$ac_cv_func_alloca_works" >&6; }
15291
15292 if test $ac_cv_func_alloca_works = yes; then
15293
15294 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15295
15296 else
15297   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15298 # that cause trouble.  Some versions do not even contain alloca or
15299 # contain a buggy version.  If you still want to use their alloca,
15300 # use ar to extract alloca.o from them instead of compiling alloca.c.
15301
15302 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15303
15304 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15305
15306
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15308 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15309 if ${ac_cv_os_cray+:} false; then :
15310   $as_echo_n "(cached) " >&6
15311 else
15312   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313 /* end confdefs.h.  */
15314 #if defined CRAY && ! defined CRAY2
15315 webecray
15316 #else
15317 wenotbecray
15318 #endif
15319
15320 _ACEOF
15321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15322   $EGREP "webecray" >/dev/null 2>&1; then :
15323   ac_cv_os_cray=yes
15324 else
15325   ac_cv_os_cray=no
15326 fi
15327 rm -f conftest*
15328
15329 fi
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15331 $as_echo "$ac_cv_os_cray" >&6; }
15332 if test $ac_cv_os_cray = yes; then
15333   for ac_func in _getb67 GETB67 getb67; do
15334     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15335 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15336 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15337
15338 cat >>confdefs.h <<_ACEOF
15339 #define CRAY_STACKSEG_END $ac_func
15340 _ACEOF
15341
15342     break
15343 fi
15344
15345   done
15346 fi
15347
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15349 $as_echo_n "checking stack direction for C alloca... " >&6; }
15350 if ${ac_cv_c_stack_direction+:} false; then :
15351   $as_echo_n "(cached) " >&6
15352 else
15353   if test "$cross_compiling" = yes; then :
15354   ac_cv_c_stack_direction=0
15355 else
15356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h.  */
15358 $ac_includes_default
15359 int
15360 find_stack_direction (int *addr, int depth)
15361 {
15362   int dir, dummy = 0;
15363   if (! addr)
15364     addr = &dummy;
15365   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15366   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15367   return dir + dummy;
15368 }
15369
15370 int
15371 main (int argc, char **argv)
15372 {
15373   return find_stack_direction (0, argc + !argv + 20) < 0;
15374 }
15375 _ACEOF
15376 if ac_fn_c_try_run "$LINENO"; then :
15377   ac_cv_c_stack_direction=1
15378 else
15379   ac_cv_c_stack_direction=-1
15380 fi
15381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15382   conftest.$ac_objext conftest.beam conftest.$ac_ext
15383 fi
15384
15385 fi
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15387 $as_echo "$ac_cv_c_stack_direction" >&6; }
15388 cat >>confdefs.h <<_ACEOF
15389 #define STACK_DIRECTION $ac_cv_c_stack_direction
15390 _ACEOF
15391
15392
15393 fi
15394
15395
15396
15397
15398   for ac_header in $ac_header_list
15399 do :
15400   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15401 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15402 "
15403 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15404   cat >>confdefs.h <<_ACEOF
15405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15406 _ACEOF
15407
15408 fi
15409
15410 done
15411
15412
15413
15414
15415
15416
15417
15418
15419 for ac_func in getpagesize
15420 do :
15421   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15422 if test "x$ac_cv_func_getpagesize" = xyes; then :
15423   cat >>confdefs.h <<_ACEOF
15424 #define HAVE_GETPAGESIZE 1
15425 _ACEOF
15426
15427 fi
15428 done
15429
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15431 $as_echo_n "checking for working mmap... " >&6; }
15432 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
15433   $as_echo_n "(cached) " >&6
15434 else
15435   if test "$cross_compiling" = yes; then :
15436   ac_cv_func_mmap_fixed_mapped=no
15437 else
15438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h.  */
15440 $ac_includes_default
15441 /* malloc might have been renamed as rpl_malloc. */
15442 #undef malloc
15443
15444 /* Thanks to Mike Haertel and Jim Avera for this test.
15445    Here is a matrix of mmap possibilities:
15446         mmap private not fixed
15447         mmap private fixed at somewhere currently unmapped
15448         mmap private fixed at somewhere already mapped
15449         mmap shared not fixed
15450         mmap shared fixed at somewhere currently unmapped
15451         mmap shared fixed at somewhere already mapped
15452    For private mappings, we should verify that changes cannot be read()
15453    back from the file, nor mmap's back from the file at a different
15454    address.  (There have been systems where private was not correctly
15455    implemented like the infamous i386 svr4.0, and systems where the
15456    VM page cache was not coherent with the file system buffer cache
15457    like early versions of FreeBSD and possibly contemporary NetBSD.)
15458    For shared mappings, we should conversely verify that changes get
15459    propagated back to all the places they're supposed to be.
15460
15461    Grep wants private fixed already mapped.
15462    The main things grep needs to know about mmap are:
15463    * does it exist and is it safe to write into the mmap'd area
15464    * how to use it (BSD variants)  */
15465
15466 #include <fcntl.h>
15467 #include <sys/mman.h>
15468
15469 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15470 char *malloc ();
15471 #endif
15472
15473 /* This mess was copied from the GNU getpagesize.h.  */
15474 #ifndef HAVE_GETPAGESIZE
15475 # ifdef _SC_PAGESIZE
15476 #  define getpagesize() sysconf(_SC_PAGESIZE)
15477 # else /* no _SC_PAGESIZE */
15478 #  ifdef HAVE_SYS_PARAM_H
15479 #   include <sys/param.h>
15480 #   ifdef EXEC_PAGESIZE
15481 #    define getpagesize() EXEC_PAGESIZE
15482 #   else /* no EXEC_PAGESIZE */
15483 #    ifdef NBPG
15484 #     define getpagesize() NBPG * CLSIZE
15485 #     ifndef CLSIZE
15486 #      define CLSIZE 1
15487 #     endif /* no CLSIZE */
15488 #    else /* no NBPG */
15489 #     ifdef NBPC
15490 #      define getpagesize() NBPC
15491 #     else /* no NBPC */
15492 #      ifdef PAGESIZE
15493 #       define getpagesize() PAGESIZE
15494 #      endif /* PAGESIZE */
15495 #     endif /* no NBPC */
15496 #    endif /* no NBPG */
15497 #   endif /* no EXEC_PAGESIZE */
15498 #  else /* no HAVE_SYS_PARAM_H */
15499 #   define getpagesize() 8192   /* punt totally */
15500 #  endif /* no HAVE_SYS_PARAM_H */
15501 # endif /* no _SC_PAGESIZE */
15502
15503 #endif /* no HAVE_GETPAGESIZE */
15504
15505 int
15506 main ()
15507 {
15508   char *data, *data2, *data3;
15509   const char *cdata2;
15510   int i, pagesize;
15511   int fd, fd2;
15512
15513   pagesize = getpagesize ();
15514
15515   /* First, make a file with some known garbage in it. */
15516   data = (char *) malloc (pagesize);
15517   if (!data)
15518     return 1;
15519   for (i = 0; i < pagesize; ++i)
15520     *(data + i) = rand ();
15521   umask (0);
15522   fd = creat ("conftest.mmap", 0600);
15523   if (fd < 0)
15524     return 2;
15525   if (write (fd, data, pagesize) != pagesize)
15526     return 3;
15527   close (fd);
15528
15529   /* Next, check that the tail of a page is zero-filled.  File must have
15530      non-zero length, otherwise we risk SIGBUS for entire page.  */
15531   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15532   if (fd2 < 0)
15533     return 4;
15534   cdata2 = "";
15535   if (write (fd2, cdata2, 1) != 1)
15536     return 5;
15537   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15538   if (data2 == MAP_FAILED)
15539     return 6;
15540   for (i = 0; i < pagesize; ++i)
15541     if (*(data2 + i))
15542       return 7;
15543   close (fd2);
15544   if (munmap (data2, pagesize))
15545     return 8;
15546
15547   /* Next, try to mmap the file at a fixed address which already has
15548      something else allocated at it.  If we can, also make sure that
15549      we see the same garbage.  */
15550   fd = open ("conftest.mmap", O_RDWR);
15551   if (fd < 0)
15552     return 9;
15553   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15554                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
15555     return 10;
15556   for (i = 0; i < pagesize; ++i)
15557     if (*(data + i) != *(data2 + i))
15558       return 11;
15559
15560   /* Finally, make sure that changes to the mapped area do not
15561      percolate back to the file as seen by read().  (This is a bug on
15562      some variants of i386 svr4.0.)  */
15563   for (i = 0; i < pagesize; ++i)
15564     *(data2 + i) = *(data2 + i) + 1;
15565   data3 = (char *) malloc (pagesize);
15566   if (!data3)
15567     return 12;
15568   if (read (fd, data3, pagesize) != pagesize)
15569     return 13;
15570   for (i = 0; i < pagesize; ++i)
15571     if (*(data + i) != *(data3 + i))
15572       return 14;
15573   close (fd);
15574   return 0;
15575 }
15576 _ACEOF
15577 if ac_fn_c_try_run "$LINENO"; then :
15578   ac_cv_func_mmap_fixed_mapped=yes
15579 else
15580   ac_cv_func_mmap_fixed_mapped=no
15581 fi
15582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15583   conftest.$ac_objext conftest.beam conftest.$ac_ext
15584 fi
15585
15586 fi
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15588 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15589 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15590
15591 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15592
15593 fi
15594 rm -f conftest.mmap conftest.txt
15595
15596
15597
15598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
15599 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
15600 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
15601   $as_echo_n "(cached) " >&6
15602 else
15603
15604       gt_cv_int_divbyzero_sigfpe=
15605       case "$host_os" in
15606         macos* | darwin[6-9]* | darwin[1-9][0-9]*)
15607           # On Mac OS X 10.2 or newer, just assume the same as when cross-
15608           # compiling. If we were to perform the real test, 1 Crash Report
15609           # dialog window would pop up.
15610           case "$host_cpu" in
15611             i[34567]86 | x86_64)
15612               gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
15613           esac
15614           ;;
15615       esac
15616       if test -z "$gt_cv_int_divbyzero_sigfpe"; then
15617         if test "$cross_compiling" = yes; then :
15618
15619             # Guess based on the CPU.
15620             case "$host_cpu" in
15621               alpha* | i[34567]86 | x86_64 | m68k | s390*)
15622                 gt_cv_int_divbyzero_sigfpe="guessing yes";;
15623               *)
15624                 gt_cv_int_divbyzero_sigfpe="guessing no";;
15625             esac
15626
15627 else
15628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15629 /* end confdefs.h.  */
15630
15631 #include <stdlib.h>
15632 #include <signal.h>
15633
15634 static void
15635 sigfpe_handler (int sig)
15636 {
15637   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
15638   exit (sig != SIGFPE);
15639 }
15640
15641 int x = 1;
15642 int y = 0;
15643 int z;
15644 int nan;
15645
15646 int main ()
15647 {
15648   signal (SIGFPE, sigfpe_handler);
15649 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
15650 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
15651   signal (SIGTRAP, sigfpe_handler);
15652 #endif
15653 /* Linux/SPARC yields signal SIGILL.  */
15654 #if defined (__sparc__) && defined (__linux__)
15655   signal (SIGILL, sigfpe_handler);
15656 #endif
15657
15658   z = x / y;
15659   nan = y / y;
15660   exit (2);
15661 }
15662
15663 _ACEOF
15664 if ac_fn_c_try_run "$LINENO"; then :
15665   gt_cv_int_divbyzero_sigfpe=yes
15666 else
15667   gt_cv_int_divbyzero_sigfpe=no
15668 fi
15669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15670   conftest.$ac_objext conftest.beam conftest.$ac_ext
15671 fi
15672
15673       fi
15674
15675 fi
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
15677 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
15678   case "$gt_cv_int_divbyzero_sigfpe" in
15679     *yes) value=1;;
15680     *) value=0;;
15681   esac
15682
15683 cat >>confdefs.h <<_ACEOF
15684 #define INTDIV0_RAISES_SIGFPE $value
15685 _ACEOF
15686
15687
15688
15689   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
15690 $as_echo_n "checking for inttypes.h... " >&6; }
15691 if ${gl_cv_header_inttypes_h+:} false; then :
15692   $as_echo_n "(cached) " >&6
15693 else
15694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15695 /* end confdefs.h.  */
15696
15697 #include <sys/types.h>
15698 #include <inttypes.h>
15699
15700 int
15701 main ()
15702 {
15703 uintmax_t i = (uintmax_t) -1; return !i;
15704   ;
15705   return 0;
15706 }
15707 _ACEOF
15708 if ac_fn_c_try_compile "$LINENO"; then :
15709   gl_cv_header_inttypes_h=yes
15710 else
15711   gl_cv_header_inttypes_h=no
15712 fi
15713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15714 fi
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
15716 $as_echo "$gl_cv_header_inttypes_h" >&6; }
15717   if test $gl_cv_header_inttypes_h = yes; then
15718
15719 cat >>confdefs.h <<_ACEOF
15720 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
15721 _ACEOF
15722
15723   fi
15724
15725
15726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
15727 $as_echo_n "checking for unsigned long long int... " >&6; }
15728 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
15729   $as_echo_n "(cached) " >&6
15730 else
15731   ac_cv_type_unsigned_long_long_int=yes
15732      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
15733        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15734 /* end confdefs.h.  */
15735
15736   /* For now, do not test the preprocessor; as of 2007 there are too many
15737          implementations with broken preprocessors.  Perhaps this can
15738          be revisited in 2012.  In the meantime, code should not expect
15739          #if to work with literals wider than 32 bits.  */
15740       /* Test literals.  */
15741       long long int ll = 9223372036854775807ll;
15742       long long int nll = -9223372036854775807LL;
15743       unsigned long long int ull = 18446744073709551615ULL;
15744       /* Test constant expressions.   */
15745       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15746                      ? 1 : -1)];
15747       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15748                      ? 1 : -1)];
15749       int i = 63;
15750 int
15751 main ()
15752 {
15753 /* Test availability of runtime routines for shift and division.  */
15754       long long int llmax = 9223372036854775807ll;
15755       unsigned long long int ullmax = 18446744073709551615ull;
15756       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15757               | (llmax / ll) | (llmax % ll)
15758               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15759               | (ullmax / ull) | (ullmax % ull));
15760   ;
15761   return 0;
15762 }
15763
15764 _ACEOF
15765 if ac_fn_c_try_link "$LINENO"; then :
15766
15767 else
15768   ac_cv_type_unsigned_long_long_int=no
15769 fi
15770 rm -f core conftest.err conftest.$ac_objext \
15771     conftest$ac_exeext conftest.$ac_ext
15772      fi
15773 fi
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
15775 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
15776   if test $ac_cv_type_unsigned_long_long_int = yes; then
15777
15778 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
15779
15780   fi
15781
15782
15783
15784
15785   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
15786
15787     test $ac_cv_type_unsigned_long_long_int = yes \
15788       && ac_type='unsigned long long' \
15789       || ac_type='unsigned long'
15790
15791 cat >>confdefs.h <<_ACEOF
15792 #define uintmax_t $ac_type
15793 _ACEOF
15794
15795   else
15796
15797 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
15798
15799   fi
15800
15801
15802   for ac_header in inttypes.h
15803 do :
15804   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
15805 if test "x$ac_cv_header_inttypes_h" = xyes; then :
15806   cat >>confdefs.h <<_ACEOF
15807 #define HAVE_INTTYPES_H 1
15808 _ACEOF
15809
15810 fi
15811
15812 done
15813
15814   if test $ac_cv_header_inttypes_h = yes; then
15815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
15816 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
15817 if ${gt_cv_inttypes_pri_broken+:} false; then :
15818   $as_echo_n "(cached) " >&6
15819 else
15820
15821         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15822 /* end confdefs.h.  */
15823
15824 #include <inttypes.h>
15825 #ifdef PRId32
15826 char *p = PRId32;
15827 #endif
15828
15829 int
15830 main ()
15831 {
15832
15833   ;
15834   return 0;
15835 }
15836 _ACEOF
15837 if ac_fn_c_try_compile "$LINENO"; then :
15838   gt_cv_inttypes_pri_broken=no
15839 else
15840   gt_cv_inttypes_pri_broken=yes
15841 fi
15842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15843
15844 fi
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
15846 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
15847   fi
15848   if test "$gt_cv_inttypes_pri_broken" = yes; then
15849
15850 cat >>confdefs.h <<_ACEOF
15851 #define PRI_MACROS_BROKEN 1
15852 _ACEOF
15853
15854     PRI_MACROS_BROKEN=1
15855   else
15856     PRI_MACROS_BROKEN=0
15857   fi
15858
15859
15860
15861       if test "X$prefix" = "XNONE"; then
15862     acl_final_prefix="$ac_default_prefix"
15863   else
15864     acl_final_prefix="$prefix"
15865   fi
15866   if test "X$exec_prefix" = "XNONE"; then
15867     acl_final_exec_prefix='${prefix}'
15868   else
15869     acl_final_exec_prefix="$exec_prefix"
15870   fi
15871   acl_save_prefix="$prefix"
15872   prefix="$acl_final_prefix"
15873   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15874   prefix="$acl_save_prefix"
15875
15876
15877
15878 # Check whether --with-gnu-ld was given.
15879 if test "${with_gnu_ld+set}" = set; then :
15880   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15881 else
15882   with_gnu_ld=no
15883 fi
15884
15885 # Prepare PATH_SEPARATOR.
15886 # The user is always right.
15887 if test "${PATH_SEPARATOR+set}" != set; then
15888   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15889   # contains only /bin. Note that ksh looks also at the FPATH variable,
15890   # so we have to set that as well for the test.
15891   PATH_SEPARATOR=:
15892   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15893     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15894            || PATH_SEPARATOR=';'
15895        }
15896 fi
15897
15898 ac_prog=ld
15899 if test "$GCC" = yes; then
15900   # Check if gcc -print-prog-name=ld gives a path.
15901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15902 $as_echo_n "checking for ld used by $CC... " >&6; }
15903   case $host in
15904   *-*-mingw*)
15905     # gcc leaves a trailing carriage return which upsets mingw
15906     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15907   *)
15908     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15909   esac
15910   case $ac_prog in
15911     # Accept absolute paths.
15912     [\\/]* | ?:[\\/]*)
15913       re_direlt='/[^/][^/]*/\.\./'
15914       # Canonicalize the pathname of ld
15915       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
15916       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
15917         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15918       done
15919       test -z "$LD" && LD="$ac_prog"
15920       ;;
15921   "")
15922     # If it fails, then pretend we aren't using GCC.
15923     ac_prog=ld
15924     ;;
15925   *)
15926     # If it is relative, then search for the first ld in PATH.
15927     with_gnu_ld=unknown
15928     ;;
15929   esac
15930 elif test "$with_gnu_ld" = yes; then
15931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15932 $as_echo_n "checking for GNU ld... " >&6; }
15933 else
15934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15935 $as_echo_n "checking for non-GNU ld... " >&6; }
15936 fi
15937 if ${acl_cv_path_LD+:} false; then :
15938   $as_echo_n "(cached) " >&6
15939 else
15940   if test -z "$LD"; then
15941   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15942   for ac_dir in $PATH; do
15943     IFS="$acl_save_ifs"
15944     test -z "$ac_dir" && ac_dir=.
15945     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15946       acl_cv_path_LD="$ac_dir/$ac_prog"
15947       # Check to see if the program is GNU ld.  I'd rather use --version,
15948       # but apparently some variants of GNU ld only accept -v.
15949       # Break only if it was the GNU/non-GNU ld that we prefer.
15950       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
15951       *GNU* | *'with BFD'*)
15952         test "$with_gnu_ld" != no && break
15953         ;;
15954       *)
15955         test "$with_gnu_ld" != yes && break
15956         ;;
15957       esac
15958     fi
15959   done
15960   IFS="$acl_save_ifs"
15961 else
15962   acl_cv_path_LD="$LD" # Let the user override the test with a path.
15963 fi
15964 fi
15965
15966 LD="$acl_cv_path_LD"
15967 if test -n "$LD"; then
15968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15969 $as_echo "$LD" >&6; }
15970 else
15971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15972 $as_echo "no" >&6; }
15973 fi
15974 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15976 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15977 if ${acl_cv_prog_gnu_ld+:} false; then :
15978   $as_echo_n "(cached) " >&6
15979 else
15980   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15981 case `$LD -v 2>&1 </dev/null` in
15982 *GNU* | *'with BFD'*)
15983   acl_cv_prog_gnu_ld=yes
15984   ;;
15985 *)
15986   acl_cv_prog_gnu_ld=no
15987   ;;
15988 esac
15989 fi
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15991 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
15992 with_gnu_ld=$acl_cv_prog_gnu_ld
15993
15994
15995
15996
15997                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15998 $as_echo_n "checking for shared library run path origin... " >&6; }
15999 if ${acl_cv_rpath+:} false; then :
16000   $as_echo_n "(cached) " >&6
16001 else
16002
16003     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16004     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16005     . ./conftest.sh
16006     rm -f ./conftest.sh
16007     acl_cv_rpath=done
16008
16009 fi
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16011 $as_echo "$acl_cv_rpath" >&6; }
16012   wl="$acl_cv_wl"
16013   acl_libext="$acl_cv_libext"
16014   acl_shlibext="$acl_cv_shlibext"
16015   acl_libname_spec="$acl_cv_libname_spec"
16016   acl_library_names_spec="$acl_cv_library_names_spec"
16017   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16018   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16019   acl_hardcode_direct="$acl_cv_hardcode_direct"
16020   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
16021     # Check whether --enable-rpath was given.
16022 if test "${enable_rpath+set}" = set; then :
16023   enableval=$enable_rpath; :
16024 else
16025   enable_rpath=yes
16026 fi
16027
16028
16029
16030
16031   acl_libdirstem=lib
16032   acl_libdirstem2=
16033   case "$host_os" in
16034     solaris*)
16035                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
16036 $as_echo_n "checking for 64-bit host... " >&6; }
16037 if ${gl_cv_solaris_64bit+:} false; then :
16038   $as_echo_n "(cached) " >&6
16039 else
16040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h.  */
16042
16043 #ifdef _LP64
16044 sixtyfour bits
16045 #endif
16046
16047 _ACEOF
16048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16049   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
16050   gl_cv_solaris_64bit=yes
16051 else
16052   gl_cv_solaris_64bit=no
16053 fi
16054 rm -f conftest*
16055
16056
16057 fi
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
16059 $as_echo "$gl_cv_solaris_64bit" >&6; }
16060       if test $gl_cv_solaris_64bit = yes; then
16061         acl_libdirstem=lib/64
16062         case "$host_cpu" in
16063           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
16064           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
16065         esac
16066       fi
16067       ;;
16068     *)
16069       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
16070       if test -n "$searchpath"; then
16071         acl_save_IFS="${IFS=    }"; IFS=":"
16072         for searchdir in $searchpath; do
16073           if test -d "$searchdir"; then
16074             case "$searchdir" in
16075               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
16076               */../ | */.. )
16077                 # Better ignore directories of this form. They are misleading.
16078                 ;;
16079               *) searchdir=`cd "$searchdir" && pwd`
16080                  case "$searchdir" in
16081                    */lib64 ) acl_libdirstem=lib64 ;;
16082                  esac ;;
16083             esac
16084           fi
16085         done
16086         IFS="$acl_save_IFS"
16087       fi
16088       ;;
16089   esac
16090   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
16091
16092
16093
16094   gl_threads_api=none
16095   LIBTHREAD=
16096   LTLIBTHREAD=
16097   LIBMULTITHREAD=
16098   LTLIBMULTITHREAD=
16099   if test "$gl_use_threads" != no; then
16100         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
16101 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
16102 if ${gl_cv_have_weak+:} false; then :
16103   $as_echo_n "(cached) " >&6
16104 else
16105   gl_cv_have_weak=no
16106               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16107 /* end confdefs.h.  */
16108 extern void xyzzy ();
16109 #pragma weak xyzzy
16110 int
16111 main ()
16112 {
16113 xyzzy();
16114   ;
16115   return 0;
16116 }
16117 _ACEOF
16118 if ac_fn_c_try_link "$LINENO"; then :
16119   gl_cv_have_weak=maybe
16120 fi
16121 rm -f core conftest.err conftest.$ac_objext \
16122     conftest$ac_exeext conftest.$ac_ext
16123        if test $gl_cv_have_weak = maybe; then
16124                            if test "$cross_compiling" = yes; then :
16125                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126 /* end confdefs.h.  */
16127 #ifdef __ELF__
16128                Extensible Linking Format
16129                #endif
16130
16131 _ACEOF
16132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16133   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
16134   gl_cv_have_weak="guessing yes"
16135 else
16136   gl_cv_have_weak="guessing no"
16137 fi
16138 rm -f conftest*
16139
16140
16141 else
16142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143 /* end confdefs.h.  */
16144
16145 #include <stdio.h>
16146 #pragma weak fputs
16147 int main ()
16148 {
16149   return (fputs == NULL);
16150 }
16151 _ACEOF
16152 if ac_fn_c_try_run "$LINENO"; then :
16153   gl_cv_have_weak=yes
16154 else
16155   gl_cv_have_weak=no
16156 fi
16157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16158   conftest.$ac_objext conftest.beam conftest.$ac_ext
16159 fi
16160
16161        fi
16162
16163 fi
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
16165 $as_echo "$gl_cv_have_weak" >&6; }
16166     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
16167       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
16168       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
16169       ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
16170 if test "x$ac_cv_header_pthread_h" = xyes; then :
16171   gl_have_pthread_h=yes
16172 else
16173   gl_have_pthread_h=no
16174 fi
16175
16176
16177       if test "$gl_have_pthread_h" = yes; then
16178         # Other possible tests:
16179         #   -lpthreads (FSU threads, PCthreads)
16180         #   -lgthreads
16181         gl_have_pthread=
16182         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
16183         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
16184         # the second one only in libpthread, and lock.c needs it.
16185         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16186 /* end confdefs.h.  */
16187 #include <pthread.h>
16188 int
16189 main ()
16190 {
16191 pthread_mutex_lock((pthread_mutex_t*)0);
16192                pthread_mutexattr_init((pthread_mutexattr_t*)0);
16193   ;
16194   return 0;
16195 }
16196 _ACEOF
16197 if ac_fn_c_try_link "$LINENO"; then :
16198   gl_have_pthread=yes
16199 fi
16200 rm -f core conftest.err conftest.$ac_objext \
16201     conftest$ac_exeext conftest.$ac_ext
16202         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
16203         # since it is defined as a macro on OSF/1.)
16204         if test -n "$gl_have_pthread"; then
16205           # The program links fine without libpthread. But it may actually
16206           # need to link with libpthread in order to create multiple threads.
16207           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16208 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16209 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16210   $as_echo_n "(cached) " >&6
16211 else
16212   ac_check_lib_save_LIBS=$LIBS
16213 LIBS="-lpthread  $LIBS"
16214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16215 /* end confdefs.h.  */
16216
16217 /* Override any GCC internal prototype to avoid an error.
16218    Use char because int might match the return type of a GCC
16219    builtin and then its argument prototype would still apply.  */
16220 #ifdef __cplusplus
16221 extern "C"
16222 #endif
16223 char pthread_kill ();
16224 int
16225 main ()
16226 {
16227 return pthread_kill ();
16228   ;
16229   return 0;
16230 }
16231 _ACEOF
16232 if ac_fn_c_try_link "$LINENO"; then :
16233   ac_cv_lib_pthread_pthread_kill=yes
16234 else
16235   ac_cv_lib_pthread_pthread_kill=no
16236 fi
16237 rm -f core conftest.err conftest.$ac_objext \
16238     conftest$ac_exeext conftest.$ac_ext
16239 LIBS=$ac_check_lib_save_LIBS
16240 fi
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16242 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16243 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
16244   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16245              # On Solaris and HP-UX, most pthread functions exist also in libc.
16246              # Therefore pthread_in_use() needs to actually try to create a
16247              # thread: pthread_create from libc will fail, whereas
16248              # pthread_create will actually create a thread.
16249              case "$host_os" in
16250                solaris* | hpux*)
16251
16252 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
16253
16254              esac
16255
16256 fi
16257
16258         else
16259           # Some library is needed. Try libpthread and libc_r.
16260           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
16261 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
16262 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
16263   $as_echo_n "(cached) " >&6
16264 else
16265   ac_check_lib_save_LIBS=$LIBS
16266 LIBS="-lpthread  $LIBS"
16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268 /* end confdefs.h.  */
16269
16270 /* Override any GCC internal prototype to avoid an error.
16271    Use char because int might match the return type of a GCC
16272    builtin and then its argument prototype would still apply.  */
16273 #ifdef __cplusplus
16274 extern "C"
16275 #endif
16276 char pthread_kill ();
16277 int
16278 main ()
16279 {
16280 return pthread_kill ();
16281   ;
16282   return 0;
16283 }
16284 _ACEOF
16285 if ac_fn_c_try_link "$LINENO"; then :
16286   ac_cv_lib_pthread_pthread_kill=yes
16287 else
16288   ac_cv_lib_pthread_pthread_kill=no
16289 fi
16290 rm -f core conftest.err conftest.$ac_objext \
16291     conftest$ac_exeext conftest.$ac_ext
16292 LIBS=$ac_check_lib_save_LIBS
16293 fi
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
16295 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
16296 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
16297   gl_have_pthread=yes
16298              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
16299              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
16300 fi
16301
16302           if test -z "$gl_have_pthread"; then
16303             # For FreeBSD 4.
16304             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
16305 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
16306 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
16307   $as_echo_n "(cached) " >&6
16308 else
16309   ac_check_lib_save_LIBS=$LIBS
16310 LIBS="-lc_r  $LIBS"
16311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16312 /* end confdefs.h.  */
16313
16314 /* Override any GCC internal prototype to avoid an error.
16315    Use char because int might match the return type of a GCC
16316    builtin and then its argument prototype would still apply.  */
16317 #ifdef __cplusplus
16318 extern "C"
16319 #endif
16320 char pthread_kill ();
16321 int
16322 main ()
16323 {
16324 return pthread_kill ();
16325   ;
16326   return 0;
16327 }
16328 _ACEOF
16329 if ac_fn_c_try_link "$LINENO"; then :
16330   ac_cv_lib_c_r_pthread_kill=yes
16331 else
16332   ac_cv_lib_c_r_pthread_kill=no
16333 fi
16334 rm -f core conftest.err conftest.$ac_objext \
16335     conftest$ac_exeext conftest.$ac_ext
16336 LIBS=$ac_check_lib_save_LIBS
16337 fi
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
16339 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
16340 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
16341   gl_have_pthread=yes
16342                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
16343                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
16344 fi
16345
16346           fi
16347         fi
16348         if test -n "$gl_have_pthread"; then
16349           gl_threads_api=posix
16350
16351 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
16352
16353           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
16354             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16355
16356 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
16357
16358               LIBTHREAD=
16359               LTLIBTHREAD=
16360             fi
16361           fi
16362         fi
16363       fi
16364     fi
16365     if test -z "$gl_have_pthread"; then
16366       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
16367         gl_have_solaristhread=
16368         gl_save_LIBS="$LIBS"
16369         LIBS="$LIBS -lthread"
16370         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16371 /* end confdefs.h.  */
16372
16373 #include <thread.h>
16374 #include <synch.h>
16375
16376 int
16377 main ()
16378 {
16379 thr_self();
16380   ;
16381   return 0;
16382 }
16383 _ACEOF
16384 if ac_fn_c_try_link "$LINENO"; then :
16385   gl_have_solaristhread=yes
16386 fi
16387 rm -f core conftest.err conftest.$ac_objext \
16388     conftest$ac_exeext conftest.$ac_ext
16389         LIBS="$gl_save_LIBS"
16390         if test -n "$gl_have_solaristhread"; then
16391           gl_threads_api=solaris
16392           LIBTHREAD=-lthread
16393           LTLIBTHREAD=-lthread
16394           LIBMULTITHREAD="$LIBTHREAD"
16395           LTLIBMULTITHREAD="$LTLIBTHREAD"
16396
16397 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
16398
16399           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16400
16401 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
16402
16403             LIBTHREAD=
16404             LTLIBTHREAD=
16405           fi
16406         fi
16407       fi
16408     fi
16409     if test "$gl_use_threads" = pth; then
16410       gl_save_CPPFLAGS="$CPPFLAGS"
16411
16412
16413
16414
16415
16416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
16417 $as_echo_n "checking how to link with libpth... " >&6; }
16418 if ${ac_cv_libpth_libs+:} false; then :
16419   $as_echo_n "(cached) " >&6
16420 else
16421
16422
16423
16424
16425
16426
16427
16428
16429     use_additional=yes
16430
16431   acl_save_prefix="$prefix"
16432   prefix="$acl_final_prefix"
16433   acl_save_exec_prefix="$exec_prefix"
16434   exec_prefix="$acl_final_exec_prefix"
16435
16436     eval additional_includedir=\"$includedir\"
16437     eval additional_libdir=\"$libdir\"
16438
16439   exec_prefix="$acl_save_exec_prefix"
16440   prefix="$acl_save_prefix"
16441
16442
16443 # Check whether --with-libpth-prefix was given.
16444 if test "${with_libpth_prefix+set}" = set; then :
16445   withval=$with_libpth_prefix;
16446     if test "X$withval" = "Xno"; then
16447       use_additional=no
16448     else
16449       if test "X$withval" = "X"; then
16450
16451   acl_save_prefix="$prefix"
16452   prefix="$acl_final_prefix"
16453   acl_save_exec_prefix="$exec_prefix"
16454   exec_prefix="$acl_final_exec_prefix"
16455
16456           eval additional_includedir=\"$includedir\"
16457           eval additional_libdir=\"$libdir\"
16458
16459   exec_prefix="$acl_save_exec_prefix"
16460   prefix="$acl_save_prefix"
16461
16462       else
16463         additional_includedir="$withval/include"
16464         additional_libdir="$withval/$acl_libdirstem"
16465         if test "$acl_libdirstem2" != "$acl_libdirstem" \
16466            && ! test -d "$withval/$acl_libdirstem"; then
16467           additional_libdir="$withval/$acl_libdirstem2"
16468         fi
16469       fi
16470     fi
16471
16472 fi
16473
16474       LIBPTH=
16475   LTLIBPTH=
16476   INCPTH=
16477   LIBPTH_PREFIX=
16478       HAVE_LIBPTH=
16479   rpathdirs=
16480   ltrpathdirs=
16481   names_already_handled=
16482   names_next_round='pth '
16483   while test -n "$names_next_round"; do
16484     names_this_round="$names_next_round"
16485     names_next_round=
16486     for name in $names_this_round; do
16487       already_handled=
16488       for n in $names_already_handled; do
16489         if test "$n" = "$name"; then
16490           already_handled=yes
16491           break
16492         fi
16493       done
16494       if test -z "$already_handled"; then
16495         names_already_handled="$names_already_handled $name"
16496                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16497         eval value=\"\$HAVE_LIB$uppername\"
16498         if test -n "$value"; then
16499           if test "$value" = yes; then
16500             eval value=\"\$LIB$uppername\"
16501             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
16502             eval value=\"\$LTLIB$uppername\"
16503             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
16504           else
16505                                     :
16506           fi
16507         else
16508                               found_dir=
16509           found_la=
16510           found_so=
16511           found_a=
16512           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
16513           if test -n "$acl_shlibext"; then
16514             shrext=".$acl_shlibext"             # typically: shrext=.so
16515           else
16516             shrext=
16517           fi
16518           if test $use_additional = yes; then
16519             dir="$additional_libdir"
16520                                     if test -n "$acl_shlibext"; then
16521               if test -f "$dir/$libname$shrext"; then
16522                 found_dir="$dir"
16523                 found_so="$dir/$libname$shrext"
16524               else
16525                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16526                   ver=`(cd "$dir" && \
16527                         for f in "$libname$shrext".*; do echo "$f"; done \
16528                         | sed -e "s,^$libname$shrext\\\\.,," \
16529                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16530                         | sed 1q ) 2>/dev/null`
16531                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16532                     found_dir="$dir"
16533                     found_so="$dir/$libname$shrext.$ver"
16534                   fi
16535                 else
16536                   eval library_names=\"$acl_library_names_spec\"
16537                   for f in $library_names; do
16538                     if test -f "$dir/$f"; then
16539                       found_dir="$dir"
16540                       found_so="$dir/$f"
16541                       break
16542                     fi
16543                   done
16544                 fi
16545               fi
16546             fi
16547                         if test "X$found_dir" = "X"; then
16548               if test -f "$dir/$libname.$acl_libext"; then
16549                 found_dir="$dir"
16550                 found_a="$dir/$libname.$acl_libext"
16551               fi
16552             fi
16553             if test "X$found_dir" != "X"; then
16554               if test -f "$dir/$libname.la"; then
16555                 found_la="$dir/$libname.la"
16556               fi
16557             fi
16558           fi
16559           if test "X$found_dir" = "X"; then
16560             for x in $LDFLAGS $LTLIBPTH; do
16561
16562   acl_save_prefix="$prefix"
16563   prefix="$acl_final_prefix"
16564   acl_save_exec_prefix="$exec_prefix"
16565   exec_prefix="$acl_final_exec_prefix"
16566   eval x=\"$x\"
16567   exec_prefix="$acl_save_exec_prefix"
16568   prefix="$acl_save_prefix"
16569
16570               case "$x" in
16571                 -L*)
16572                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16573                                     if test -n "$acl_shlibext"; then
16574                     if test -f "$dir/$libname$shrext"; then
16575                       found_dir="$dir"
16576                       found_so="$dir/$libname$shrext"
16577                     else
16578                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16579                         ver=`(cd "$dir" && \
16580                               for f in "$libname$shrext".*; do echo "$f"; done \
16581                               | sed -e "s,^$libname$shrext\\\\.,," \
16582                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16583                               | sed 1q ) 2>/dev/null`
16584                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16585                           found_dir="$dir"
16586                           found_so="$dir/$libname$shrext.$ver"
16587                         fi
16588                       else
16589                         eval library_names=\"$acl_library_names_spec\"
16590                         for f in $library_names; do
16591                           if test -f "$dir/$f"; then
16592                             found_dir="$dir"
16593                             found_so="$dir/$f"
16594                             break
16595                           fi
16596                         done
16597                       fi
16598                     fi
16599                   fi
16600                                     if test "X$found_dir" = "X"; then
16601                     if test -f "$dir/$libname.$acl_libext"; then
16602                       found_dir="$dir"
16603                       found_a="$dir/$libname.$acl_libext"
16604                     fi
16605                   fi
16606                   if test "X$found_dir" != "X"; then
16607                     if test -f "$dir/$libname.la"; then
16608                       found_la="$dir/$libname.la"
16609                     fi
16610                   fi
16611                   ;;
16612               esac
16613               if test "X$found_dir" != "X"; then
16614                 break
16615               fi
16616             done
16617           fi
16618           if test "X$found_dir" != "X"; then
16619                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
16620             if test "X$found_so" != "X"; then
16621                                                         if test "$enable_rpath" = no \
16622                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16623                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16624                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16625               else
16626                                                                                 haveit=
16627                 for x in $ltrpathdirs; do
16628                   if test "X$x" = "X$found_dir"; then
16629                     haveit=yes
16630                     break
16631                   fi
16632                 done
16633                 if test -z "$haveit"; then
16634                   ltrpathdirs="$ltrpathdirs $found_dir"
16635                 fi
16636                                 if test "$acl_hardcode_direct" = yes; then
16637                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16638                 else
16639                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16640                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16641                                                             haveit=
16642                     for x in $rpathdirs; do
16643                       if test "X$x" = "X$found_dir"; then
16644                         haveit=yes
16645                         break
16646                       fi
16647                     done
16648                     if test -z "$haveit"; then
16649                       rpathdirs="$rpathdirs $found_dir"
16650                     fi
16651                   else
16652                                                                                 haveit=
16653                     for x in $LDFLAGS $LIBPTH; do
16654
16655   acl_save_prefix="$prefix"
16656   prefix="$acl_final_prefix"
16657   acl_save_exec_prefix="$exec_prefix"
16658   exec_prefix="$acl_final_exec_prefix"
16659   eval x=\"$x\"
16660   exec_prefix="$acl_save_exec_prefix"
16661   prefix="$acl_save_prefix"
16662
16663                       if test "X$x" = "X-L$found_dir"; then
16664                         haveit=yes
16665                         break
16666                       fi
16667                     done
16668                     if test -z "$haveit"; then
16669                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
16670                     fi
16671                     if test "$acl_hardcode_minus_L" != no; then
16672                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
16673                     else
16674                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
16675                     fi
16676                   fi
16677                 fi
16678               fi
16679             else
16680               if test "X$found_a" != "X"; then
16681                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
16682               else
16683                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
16684               fi
16685             fi
16686                         additional_includedir=
16687             case "$found_dir" in
16688               */$acl_libdirstem | */$acl_libdirstem/)
16689                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16690                 if test "$name" = 'pth'; then
16691                   LIBPTH_PREFIX="$basedir"
16692                 fi
16693                 additional_includedir="$basedir/include"
16694                 ;;
16695               */$acl_libdirstem2 | */$acl_libdirstem2/)
16696                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16697                 if test "$name" = 'pth'; then
16698                   LIBPTH_PREFIX="$basedir"
16699                 fi
16700                 additional_includedir="$basedir/include"
16701                 ;;
16702             esac
16703             if test "X$additional_includedir" != "X"; then
16704                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16705                 haveit=
16706                 if test "X$additional_includedir" = "X/usr/local/include"; then
16707                   if test -n "$GCC"; then
16708                     case $host_os in
16709                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16710                     esac
16711                   fi
16712                 fi
16713                 if test -z "$haveit"; then
16714                   for x in $CPPFLAGS $INCPTH; do
16715
16716   acl_save_prefix="$prefix"
16717   prefix="$acl_final_prefix"
16718   acl_save_exec_prefix="$exec_prefix"
16719   exec_prefix="$acl_final_exec_prefix"
16720   eval x=\"$x\"
16721   exec_prefix="$acl_save_exec_prefix"
16722   prefix="$acl_save_prefix"
16723
16724                     if test "X$x" = "X-I$additional_includedir"; then
16725                       haveit=yes
16726                       break
16727                     fi
16728                   done
16729                   if test -z "$haveit"; then
16730                     if test -d "$additional_includedir"; then
16731                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
16732                     fi
16733                   fi
16734                 fi
16735               fi
16736             fi
16737                         if test -n "$found_la"; then
16738                                                         save_libdir="$libdir"
16739               case "$found_la" in
16740                 */* | *\\*) . "$found_la" ;;
16741                 *) . "./$found_la" ;;
16742               esac
16743               libdir="$save_libdir"
16744                             for dep in $dependency_libs; do
16745                 case "$dep" in
16746                   -L*)
16747                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16748                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16749                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16750                       haveit=
16751                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16752                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16753                         if test -n "$GCC"; then
16754                           case $host_os in
16755                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16756                           esac
16757                         fi
16758                       fi
16759                       if test -z "$haveit"; then
16760                         haveit=
16761                         for x in $LDFLAGS $LIBPTH; do
16762
16763   acl_save_prefix="$prefix"
16764   prefix="$acl_final_prefix"
16765   acl_save_exec_prefix="$exec_prefix"
16766   exec_prefix="$acl_final_exec_prefix"
16767   eval x=\"$x\"
16768   exec_prefix="$acl_save_exec_prefix"
16769   prefix="$acl_save_prefix"
16770
16771                           if test "X$x" = "X-L$additional_libdir"; then
16772                             haveit=yes
16773                             break
16774                           fi
16775                         done
16776                         if test -z "$haveit"; then
16777                           if test -d "$additional_libdir"; then
16778                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
16779                           fi
16780                         fi
16781                         haveit=
16782                         for x in $LDFLAGS $LTLIBPTH; do
16783
16784   acl_save_prefix="$prefix"
16785   prefix="$acl_final_prefix"
16786   acl_save_exec_prefix="$exec_prefix"
16787   exec_prefix="$acl_final_exec_prefix"
16788   eval x=\"$x\"
16789   exec_prefix="$acl_save_exec_prefix"
16790   prefix="$acl_save_prefix"
16791
16792                           if test "X$x" = "X-L$additional_libdir"; then
16793                             haveit=yes
16794                             break
16795                           fi
16796                         done
16797                         if test -z "$haveit"; then
16798                           if test -d "$additional_libdir"; then
16799                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
16800                           fi
16801                         fi
16802                       fi
16803                     fi
16804                     ;;
16805                   -R*)
16806                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16807                     if test "$enable_rpath" != no; then
16808                                                                   haveit=
16809                       for x in $rpathdirs; do
16810                         if test "X$x" = "X$dir"; then
16811                           haveit=yes
16812                           break
16813                         fi
16814                       done
16815                       if test -z "$haveit"; then
16816                         rpathdirs="$rpathdirs $dir"
16817                       fi
16818                                                                   haveit=
16819                       for x in $ltrpathdirs; do
16820                         if test "X$x" = "X$dir"; then
16821                           haveit=yes
16822                           break
16823                         fi
16824                       done
16825                       if test -z "$haveit"; then
16826                         ltrpathdirs="$ltrpathdirs $dir"
16827                       fi
16828                     fi
16829                     ;;
16830                   -l*)
16831                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16832                     ;;
16833                   *.la)
16834                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16835                     ;;
16836                   *)
16837                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
16838                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
16839                     ;;
16840                 esac
16841               done
16842             fi
16843           else
16844                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
16845             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
16846           fi
16847         fi
16848       fi
16849     done
16850   done
16851   if test "X$rpathdirs" != "X"; then
16852     if test -n "$acl_hardcode_libdir_separator"; then
16853                         alldirs=
16854       for found_dir in $rpathdirs; do
16855         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16856       done
16857             acl_save_libdir="$libdir"
16858       libdir="$alldirs"
16859       eval flag=\"$acl_hardcode_libdir_flag_spec\"
16860       libdir="$acl_save_libdir"
16861       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
16862     else
16863             for found_dir in $rpathdirs; do
16864         acl_save_libdir="$libdir"
16865         libdir="$found_dir"
16866         eval flag=\"$acl_hardcode_libdir_flag_spec\"
16867         libdir="$acl_save_libdir"
16868         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
16869       done
16870     fi
16871   fi
16872   if test "X$ltrpathdirs" != "X"; then
16873             for found_dir in $ltrpathdirs; do
16874       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
16875     done
16876   fi
16877
16878
16879
16880
16881
16882
16883     ac_cv_libpth_libs="$LIBPTH"
16884     ac_cv_libpth_ltlibs="$LTLIBPTH"
16885     ac_cv_libpth_cppflags="$INCPTH"
16886     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
16887
16888 fi
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
16890 $as_echo "$ac_cv_libpth_libs" >&6; }
16891   LIBPTH="$ac_cv_libpth_libs"
16892   LTLIBPTH="$ac_cv_libpth_ltlibs"
16893   INCPTH="$ac_cv_libpth_cppflags"
16894   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
16895
16896   for element in $INCPTH; do
16897     haveit=
16898     for x in $CPPFLAGS; do
16899
16900   acl_save_prefix="$prefix"
16901   prefix="$acl_final_prefix"
16902   acl_save_exec_prefix="$exec_prefix"
16903   exec_prefix="$acl_final_exec_prefix"
16904   eval x=\"$x\"
16905   exec_prefix="$acl_save_exec_prefix"
16906   prefix="$acl_save_prefix"
16907
16908       if test "X$x" = "X$element"; then
16909         haveit=yes
16910         break
16911       fi
16912     done
16913     if test -z "$haveit"; then
16914       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16915     fi
16916   done
16917
16918
16919
16920
16921       HAVE_LIBPTH=yes
16922
16923
16924
16925       gl_have_pth=
16926       gl_save_LIBS="$LIBS"
16927       LIBS="$LIBS $LIBPTH"
16928       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16929 /* end confdefs.h.  */
16930 #include <pth.h>
16931 int
16932 main ()
16933 {
16934 pth_self();
16935   ;
16936   return 0;
16937 }
16938 _ACEOF
16939 if ac_fn_c_try_link "$LINENO"; then :
16940   gl_have_pth=yes
16941 fi
16942 rm -f core conftest.err conftest.$ac_objext \
16943     conftest$ac_exeext conftest.$ac_ext
16944       LIBS="$gl_save_LIBS"
16945       if test -n "$gl_have_pth"; then
16946         gl_threads_api=pth
16947         LIBTHREAD="$LIBPTH"
16948         LTLIBTHREAD="$LTLIBPTH"
16949         LIBMULTITHREAD="$LIBTHREAD"
16950         LTLIBMULTITHREAD="$LTLIBTHREAD"
16951
16952 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
16953
16954         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
16955           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
16956
16957 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
16958
16959             LIBTHREAD=
16960             LTLIBTHREAD=
16961           fi
16962         fi
16963       else
16964         CPPFLAGS="$gl_save_CPPFLAGS"
16965       fi
16966     fi
16967     if test -z "$gl_have_pthread"; then
16968       case "$gl_use_threads" in
16969         yes | windows | win32) # The 'win32' is for backward compatibility.
16970           if { case "$host_os" in
16971                  mingw*) true;;
16972                  *) false;;
16973                esac
16974              }; then
16975             gl_threads_api=windows
16976
16977 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
16978
16979           fi
16980           ;;
16981       esac
16982     fi
16983   fi
16984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
16985 $as_echo_n "checking for multithread API to use... " >&6; }
16986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
16987 $as_echo "$gl_threads_api" >&6; }
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999   if test "$gl_threads_api" = posix; then
17000     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
17001     # pthread_rwlock_* functions.
17002     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
17003 "
17004 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
17005
17006 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
17007
17008 fi
17009
17010     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
17011     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17012 /* end confdefs.h.  */
17013
17014       #include <pthread.h>
17015 int
17016 main ()
17017 {
17018
17019 #if __FreeBSD__ == 4
17020 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
17021 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
17022        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
17023 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
17024 #else
17025 int x = (int)PTHREAD_MUTEX_RECURSIVE;
17026 return !x;
17027 #endif
17028
17029   ;
17030   return 0;
17031 }
17032 _ACEOF
17033 if ac_fn_c_try_compile "$LINENO"; then :
17034
17035 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
17036
17037 fi
17038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17039   fi
17040   :
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053     use_additional=yes
17054
17055   acl_save_prefix="$prefix"
17056   prefix="$acl_final_prefix"
17057   acl_save_exec_prefix="$exec_prefix"
17058   exec_prefix="$acl_final_exec_prefix"
17059
17060     eval additional_includedir=\"$includedir\"
17061     eval additional_libdir=\"$libdir\"
17062
17063   exec_prefix="$acl_save_exec_prefix"
17064   prefix="$acl_save_prefix"
17065
17066
17067 # Check whether --with-libiconv-prefix was given.
17068 if test "${with_libiconv_prefix+set}" = set; then :
17069   withval=$with_libiconv_prefix;
17070     if test "X$withval" = "Xno"; then
17071       use_additional=no
17072     else
17073       if test "X$withval" = "X"; then
17074
17075   acl_save_prefix="$prefix"
17076   prefix="$acl_final_prefix"
17077   acl_save_exec_prefix="$exec_prefix"
17078   exec_prefix="$acl_final_exec_prefix"
17079
17080           eval additional_includedir=\"$includedir\"
17081           eval additional_libdir=\"$libdir\"
17082
17083   exec_prefix="$acl_save_exec_prefix"
17084   prefix="$acl_save_prefix"
17085
17086       else
17087         additional_includedir="$withval/include"
17088         additional_libdir="$withval/$acl_libdirstem"
17089         if test "$acl_libdirstem2" != "$acl_libdirstem" \
17090            && ! test -d "$withval/$acl_libdirstem"; then
17091           additional_libdir="$withval/$acl_libdirstem2"
17092         fi
17093       fi
17094     fi
17095
17096 fi
17097
17098       LIBICONV=
17099   LTLIBICONV=
17100   INCICONV=
17101   LIBICONV_PREFIX=
17102       HAVE_LIBICONV=
17103   rpathdirs=
17104   ltrpathdirs=
17105   names_already_handled=
17106   names_next_round='iconv '
17107   while test -n "$names_next_round"; do
17108     names_this_round="$names_next_round"
17109     names_next_round=
17110     for name in $names_this_round; do
17111       already_handled=
17112       for n in $names_already_handled; do
17113         if test "$n" = "$name"; then
17114           already_handled=yes
17115           break
17116         fi
17117       done
17118       if test -z "$already_handled"; then
17119         names_already_handled="$names_already_handled $name"
17120                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
17121         eval value=\"\$HAVE_LIB$uppername\"
17122         if test -n "$value"; then
17123           if test "$value" = yes; then
17124             eval value=\"\$LIB$uppername\"
17125             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17126             eval value=\"\$LTLIB$uppername\"
17127             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17128           else
17129                                     :
17130           fi
17131         else
17132                               found_dir=
17133           found_la=
17134           found_so=
17135           found_a=
17136           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
17137           if test -n "$acl_shlibext"; then
17138             shrext=".$acl_shlibext"             # typically: shrext=.so
17139           else
17140             shrext=
17141           fi
17142           if test $use_additional = yes; then
17143             dir="$additional_libdir"
17144                                     if test -n "$acl_shlibext"; then
17145               if test -f "$dir/$libname$shrext"; then
17146                 found_dir="$dir"
17147                 found_so="$dir/$libname$shrext"
17148               else
17149                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17150                   ver=`(cd "$dir" && \
17151                         for f in "$libname$shrext".*; do echo "$f"; done \
17152                         | sed -e "s,^$libname$shrext\\\\.,," \
17153                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17154                         | sed 1q ) 2>/dev/null`
17155                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17156                     found_dir="$dir"
17157                     found_so="$dir/$libname$shrext.$ver"
17158                   fi
17159                 else
17160                   eval library_names=\"$acl_library_names_spec\"
17161                   for f in $library_names; do
17162                     if test -f "$dir/$f"; then
17163                       found_dir="$dir"
17164                       found_so="$dir/$f"
17165                       break
17166                     fi
17167                   done
17168                 fi
17169               fi
17170             fi
17171                         if test "X$found_dir" = "X"; then
17172               if test -f "$dir/$libname.$acl_libext"; then
17173                 found_dir="$dir"
17174                 found_a="$dir/$libname.$acl_libext"
17175               fi
17176             fi
17177             if test "X$found_dir" != "X"; then
17178               if test -f "$dir/$libname.la"; then
17179                 found_la="$dir/$libname.la"
17180               fi
17181             fi
17182           fi
17183           if test "X$found_dir" = "X"; then
17184             for x in $LDFLAGS $LTLIBICONV; do
17185
17186   acl_save_prefix="$prefix"
17187   prefix="$acl_final_prefix"
17188   acl_save_exec_prefix="$exec_prefix"
17189   exec_prefix="$acl_final_exec_prefix"
17190   eval x=\"$x\"
17191   exec_prefix="$acl_save_exec_prefix"
17192   prefix="$acl_save_prefix"
17193
17194               case "$x" in
17195                 -L*)
17196                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17197                                     if test -n "$acl_shlibext"; then
17198                     if test -f "$dir/$libname$shrext"; then
17199                       found_dir="$dir"
17200                       found_so="$dir/$libname$shrext"
17201                     else
17202                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17203                         ver=`(cd "$dir" && \
17204                               for f in "$libname$shrext".*; do echo "$f"; done \
17205                               | sed -e "s,^$libname$shrext\\\\.,," \
17206                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17207                               | sed 1q ) 2>/dev/null`
17208                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17209                           found_dir="$dir"
17210                           found_so="$dir/$libname$shrext.$ver"
17211                         fi
17212                       else
17213                         eval library_names=\"$acl_library_names_spec\"
17214                         for f in $library_names; do
17215                           if test -f "$dir/$f"; then
17216                             found_dir="$dir"
17217                             found_so="$dir/$f"
17218                             break
17219                           fi
17220                         done
17221                       fi
17222                     fi
17223                   fi
17224                                     if test "X$found_dir" = "X"; then
17225                     if test -f "$dir/$libname.$acl_libext"; then
17226                       found_dir="$dir"
17227                       found_a="$dir/$libname.$acl_libext"
17228                     fi
17229                   fi
17230                   if test "X$found_dir" != "X"; then
17231                     if test -f "$dir/$libname.la"; then
17232                       found_la="$dir/$libname.la"
17233                     fi
17234                   fi
17235                   ;;
17236               esac
17237               if test "X$found_dir" != "X"; then
17238                 break
17239               fi
17240             done
17241           fi
17242           if test "X$found_dir" != "X"; then
17243                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17244             if test "X$found_so" != "X"; then
17245                                                         if test "$enable_rpath" = no \
17246                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17247                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17248                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17249               else
17250                                                                                 haveit=
17251                 for x in $ltrpathdirs; do
17252                   if test "X$x" = "X$found_dir"; then
17253                     haveit=yes
17254                     break
17255                   fi
17256                 done
17257                 if test -z "$haveit"; then
17258                   ltrpathdirs="$ltrpathdirs $found_dir"
17259                 fi
17260                                 if test "$acl_hardcode_direct" = yes; then
17261                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17262                 else
17263                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17264                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17265                                                             haveit=
17266                     for x in $rpathdirs; do
17267                       if test "X$x" = "X$found_dir"; then
17268                         haveit=yes
17269                         break
17270                       fi
17271                     done
17272                     if test -z "$haveit"; then
17273                       rpathdirs="$rpathdirs $found_dir"
17274                     fi
17275                   else
17276                                                                                 haveit=
17277                     for x in $LDFLAGS $LIBICONV; do
17278
17279   acl_save_prefix="$prefix"
17280   prefix="$acl_final_prefix"
17281   acl_save_exec_prefix="$exec_prefix"
17282   exec_prefix="$acl_final_exec_prefix"
17283   eval x=\"$x\"
17284   exec_prefix="$acl_save_exec_prefix"
17285   prefix="$acl_save_prefix"
17286
17287                       if test "X$x" = "X-L$found_dir"; then
17288                         haveit=yes
17289                         break
17290                       fi
17291                     done
17292                     if test -z "$haveit"; then
17293                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17294                     fi
17295                     if test "$acl_hardcode_minus_L" != no; then
17296                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17297                     else
17298                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17299                     fi
17300                   fi
17301                 fi
17302               fi
17303             else
17304               if test "X$found_a" != "X"; then
17305                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17306               else
17307                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17308               fi
17309             fi
17310                         additional_includedir=
17311             case "$found_dir" in
17312               */$acl_libdirstem | */$acl_libdirstem/)
17313                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17314                 if test "$name" = 'iconv'; then
17315                   LIBICONV_PREFIX="$basedir"
17316                 fi
17317                 additional_includedir="$basedir/include"
17318                 ;;
17319               */$acl_libdirstem2 | */$acl_libdirstem2/)
17320                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17321                 if test "$name" = 'iconv'; then
17322                   LIBICONV_PREFIX="$basedir"
17323                 fi
17324                 additional_includedir="$basedir/include"
17325                 ;;
17326             esac
17327             if test "X$additional_includedir" != "X"; then
17328                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17329                 haveit=
17330                 if test "X$additional_includedir" = "X/usr/local/include"; then
17331                   if test -n "$GCC"; then
17332                     case $host_os in
17333                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17334                     esac
17335                   fi
17336                 fi
17337                 if test -z "$haveit"; then
17338                   for x in $CPPFLAGS $INCICONV; do
17339
17340   acl_save_prefix="$prefix"
17341   prefix="$acl_final_prefix"
17342   acl_save_exec_prefix="$exec_prefix"
17343   exec_prefix="$acl_final_exec_prefix"
17344   eval x=\"$x\"
17345   exec_prefix="$acl_save_exec_prefix"
17346   prefix="$acl_save_prefix"
17347
17348                     if test "X$x" = "X-I$additional_includedir"; then
17349                       haveit=yes
17350                       break
17351                     fi
17352                   done
17353                   if test -z "$haveit"; then
17354                     if test -d "$additional_includedir"; then
17355                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17356                     fi
17357                   fi
17358                 fi
17359               fi
17360             fi
17361                         if test -n "$found_la"; then
17362                                                         save_libdir="$libdir"
17363               case "$found_la" in
17364                 */* | *\\*) . "$found_la" ;;
17365                 *) . "./$found_la" ;;
17366               esac
17367               libdir="$save_libdir"
17368                             for dep in $dependency_libs; do
17369                 case "$dep" in
17370                   -L*)
17371                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17372                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17373                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17374                       haveit=
17375                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17376                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17377                         if test -n "$GCC"; then
17378                           case $host_os in
17379                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17380                           esac
17381                         fi
17382                       fi
17383                       if test -z "$haveit"; then
17384                         haveit=
17385                         for x in $LDFLAGS $LIBICONV; do
17386
17387   acl_save_prefix="$prefix"
17388   prefix="$acl_final_prefix"
17389   acl_save_exec_prefix="$exec_prefix"
17390   exec_prefix="$acl_final_exec_prefix"
17391   eval x=\"$x\"
17392   exec_prefix="$acl_save_exec_prefix"
17393   prefix="$acl_save_prefix"
17394
17395                           if test "X$x" = "X-L$additional_libdir"; then
17396                             haveit=yes
17397                             break
17398                           fi
17399                         done
17400                         if test -z "$haveit"; then
17401                           if test -d "$additional_libdir"; then
17402                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17403                           fi
17404                         fi
17405                         haveit=
17406                         for x in $LDFLAGS $LTLIBICONV; do
17407
17408   acl_save_prefix="$prefix"
17409   prefix="$acl_final_prefix"
17410   acl_save_exec_prefix="$exec_prefix"
17411   exec_prefix="$acl_final_exec_prefix"
17412   eval x=\"$x\"
17413   exec_prefix="$acl_save_exec_prefix"
17414   prefix="$acl_save_prefix"
17415
17416                           if test "X$x" = "X-L$additional_libdir"; then
17417                             haveit=yes
17418                             break
17419                           fi
17420                         done
17421                         if test -z "$haveit"; then
17422                           if test -d "$additional_libdir"; then
17423                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17424                           fi
17425                         fi
17426                       fi
17427                     fi
17428                     ;;
17429                   -R*)
17430                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17431                     if test "$enable_rpath" != no; then
17432                                                                   haveit=
17433                       for x in $rpathdirs; do
17434                         if test "X$x" = "X$dir"; then
17435                           haveit=yes
17436                           break
17437                         fi
17438                       done
17439                       if test -z "$haveit"; then
17440                         rpathdirs="$rpathdirs $dir"
17441                       fi
17442                                                                   haveit=
17443                       for x in $ltrpathdirs; do
17444                         if test "X$x" = "X$dir"; then
17445                           haveit=yes
17446                           break
17447                         fi
17448                       done
17449                       if test -z "$haveit"; then
17450                         ltrpathdirs="$ltrpathdirs $dir"
17451                       fi
17452                     fi
17453                     ;;
17454                   -l*)
17455                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17456                     ;;
17457                   *.la)
17458                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17459                     ;;
17460                   *)
17461                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17462                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17463                     ;;
17464                 esac
17465               done
17466             fi
17467           else
17468                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17469             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17470           fi
17471         fi
17472       fi
17473     done
17474   done
17475   if test "X$rpathdirs" != "X"; then
17476     if test -n "$acl_hardcode_libdir_separator"; then
17477                         alldirs=
17478       for found_dir in $rpathdirs; do
17479         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17480       done
17481             acl_save_libdir="$libdir"
17482       libdir="$alldirs"
17483       eval flag=\"$acl_hardcode_libdir_flag_spec\"
17484       libdir="$acl_save_libdir"
17485       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17486     else
17487             for found_dir in $rpathdirs; do
17488         acl_save_libdir="$libdir"
17489         libdir="$found_dir"
17490         eval flag=\"$acl_hardcode_libdir_flag_spec\"
17491         libdir="$acl_save_libdir"
17492         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17493       done
17494     fi
17495   fi
17496   if test "X$ltrpathdirs" != "X"; then
17497             for found_dir in $ltrpathdirs; do
17498       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17499     done
17500   fi
17501
17502
17503
17504
17505
17506
17507
17508
17509   GNULIB_ICONV=0;
17510     ICONV_CONST=;
17511   REPLACE_ICONV=0;
17512   REPLACE_ICONV_OPEN=0;
17513   REPLACE_ICONV_UTF=0;
17514   ICONV_H='';
17515    if test -n "$ICONV_H"; then
17516   GL_GENERATE_ICONV_H_TRUE=
17517   GL_GENERATE_ICONV_H_FALSE='#'
17518 else
17519   GL_GENERATE_ICONV_H_TRUE='#'
17520   GL_GENERATE_ICONV_H_FALSE=
17521 fi
17522
17523
17524
17525
17526
17527
17528
17529           am_save_CPPFLAGS="$CPPFLAGS"
17530
17531   for element in $INCICONV; do
17532     haveit=
17533     for x in $CPPFLAGS; do
17534
17535   acl_save_prefix="$prefix"
17536   prefix="$acl_final_prefix"
17537   acl_save_exec_prefix="$exec_prefix"
17538   exec_prefix="$acl_final_exec_prefix"
17539   eval x=\"$x\"
17540   exec_prefix="$acl_save_exec_prefix"
17541   prefix="$acl_save_prefix"
17542
17543       if test "X$x" = "X$element"; then
17544         haveit=yes
17545         break
17546       fi
17547     done
17548     if test -z "$haveit"; then
17549       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17550     fi
17551   done
17552
17553
17554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17555 $as_echo_n "checking for iconv... " >&6; }
17556 if ${am_cv_func_iconv+:} false; then :
17557   $as_echo_n "(cached) " >&6
17558 else
17559
17560     am_cv_func_iconv="no, consider installing GNU libiconv"
17561     am_cv_lib_iconv=no
17562     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17563 /* end confdefs.h.  */
17564
17565 #include <stdlib.h>
17566 #include <iconv.h>
17567
17568 int
17569 main ()
17570 {
17571 iconv_t cd = iconv_open("","");
17572            iconv(cd,NULL,NULL,NULL,NULL);
17573            iconv_close(cd);
17574   ;
17575   return 0;
17576 }
17577 _ACEOF
17578 if ac_fn_c_try_link "$LINENO"; then :
17579   am_cv_func_iconv=yes
17580 fi
17581 rm -f core conftest.err conftest.$ac_objext \
17582     conftest$ac_exeext conftest.$ac_ext
17583     if test "$am_cv_func_iconv" != yes; then
17584       am_save_LIBS="$LIBS"
17585       LIBS="$LIBS $LIBICONV"
17586       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17587 /* end confdefs.h.  */
17588
17589 #include <stdlib.h>
17590 #include <iconv.h>
17591
17592 int
17593 main ()
17594 {
17595 iconv_t cd = iconv_open("","");
17596              iconv(cd,NULL,NULL,NULL,NULL);
17597              iconv_close(cd);
17598   ;
17599   return 0;
17600 }
17601 _ACEOF
17602 if ac_fn_c_try_link "$LINENO"; then :
17603   am_cv_lib_iconv=yes
17604         am_cv_func_iconv=yes
17605 fi
17606 rm -f core conftest.err conftest.$ac_objext \
17607     conftest$ac_exeext conftest.$ac_ext
17608       LIBS="$am_save_LIBS"
17609     fi
17610
17611 fi
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17613 $as_echo "$am_cv_func_iconv" >&6; }
17614   if test "$am_cv_func_iconv" = yes; then
17615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17616 $as_echo_n "checking for working iconv... " >&6; }
17617 if ${am_cv_func_iconv_works+:} false; then :
17618   $as_echo_n "(cached) " >&6
17619 else
17620
17621                   am_save_LIBS="$LIBS"
17622       if test $am_cv_lib_iconv = yes; then
17623         LIBS="$LIBS $LIBICONV"
17624       fi
17625       if test "$cross_compiling" = yes; then :
17626
17627          case "$host_os" in
17628            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17629            *)            am_cv_func_iconv_works="guessing yes" ;;
17630          esac
17631
17632 else
17633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17634 /* end confdefs.h.  */
17635
17636 #include <iconv.h>
17637 #include <string.h>
17638 int main ()
17639 {
17640   int result = 0;
17641   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
17642      returns.  */
17643   {
17644     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17645     if (cd_utf8_to_88591 != (iconv_t)(-1))
17646       {
17647         static const char input[] = "\342\202\254"; /* EURO SIGN */
17648         char buf[10];
17649         const char *inptr = input;
17650         size_t inbytesleft = strlen (input);
17651         char *outptr = buf;
17652         size_t outbytesleft = sizeof (buf);
17653         size_t res = iconv (cd_utf8_to_88591,
17654                             (char **) &inptr, &inbytesleft,
17655                             &outptr, &outbytesleft);
17656         if (res == 0)
17657           result |= 1;
17658         iconv_close (cd_utf8_to_88591);
17659       }
17660   }
17661   /* Test against Solaris 10 bug: Failures are not distinguishable from
17662      successful returns.  */
17663   {
17664     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
17665     if (cd_ascii_to_88591 != (iconv_t)(-1))
17666       {
17667         static const char input[] = "\263";
17668         char buf[10];
17669         const char *inptr = input;
17670         size_t inbytesleft = strlen (input);
17671         char *outptr = buf;
17672         size_t outbytesleft = sizeof (buf);
17673         size_t res = iconv (cd_ascii_to_88591,
17674                             (char **) &inptr, &inbytesleft,
17675                             &outptr, &outbytesleft);
17676         if (res == 0)
17677           result |= 2;
17678         iconv_close (cd_ascii_to_88591);
17679       }
17680   }
17681   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
17682   {
17683     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
17684     if (cd_88591_to_utf8 != (iconv_t)(-1))
17685       {
17686         static const char input[] = "\304";
17687         static char buf[2] = { (char)0xDE, (char)0xAD };
17688         const char *inptr = input;
17689         size_t inbytesleft = 1;
17690         char *outptr = buf;
17691         size_t outbytesleft = 1;
17692         size_t res = iconv (cd_88591_to_utf8,
17693                             (char **) &inptr, &inbytesleft,
17694                             &outptr, &outbytesleft);
17695         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
17696           result |= 4;
17697         iconv_close (cd_88591_to_utf8);
17698       }
17699   }
17700 #if 0 /* This bug could be worked around by the caller.  */
17701   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
17702   {
17703     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17704     if (cd_88591_to_utf8 != (iconv_t)(-1))
17705       {
17706         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17707         char buf[50];
17708         const char *inptr = input;
17709         size_t inbytesleft = strlen (input);
17710         char *outptr = buf;
17711         size_t outbytesleft = sizeof (buf);
17712         size_t res = iconv (cd_88591_to_utf8,
17713                             (char **) &inptr, &inbytesleft,
17714                             &outptr, &outbytesleft);
17715         if ((int)res > 0)
17716           result |= 8;
17717         iconv_close (cd_88591_to_utf8);
17718       }
17719   }
17720 #endif
17721   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17722      provided.  */
17723   if (/* Try standardized names.  */
17724       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
17725       /* Try IRIX, OSF/1 names.  */
17726       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
17727       /* Try AIX names.  */
17728       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
17729       /* Try HP-UX names.  */
17730       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
17731     result |= 16;
17732   return result;
17733 }
17734 _ACEOF
17735 if ac_fn_c_try_run "$LINENO"; then :
17736   am_cv_func_iconv_works=yes
17737 else
17738   am_cv_func_iconv_works=no
17739 fi
17740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17741   conftest.$ac_objext conftest.beam conftest.$ac_ext
17742 fi
17743
17744       LIBS="$am_save_LIBS"
17745
17746 fi
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17748 $as_echo "$am_cv_func_iconv_works" >&6; }
17749     case "$am_cv_func_iconv_works" in
17750       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17751       *)   am_func_iconv=yes ;;
17752     esac
17753   else
17754     am_func_iconv=no am_cv_lib_iconv=no
17755   fi
17756   if test "$am_func_iconv" = yes; then
17757
17758 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17759
17760   fi
17761   if test "$am_cv_lib_iconv" = yes; then
17762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17763 $as_echo_n "checking how to link with libiconv... " >&6; }
17764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17765 $as_echo "$LIBICONV" >&6; }
17766   else
17767             CPPFLAGS="$am_save_CPPFLAGS"
17768     LIBICONV=
17769     LTLIBICONV=
17770   fi
17771
17772
17773
17774   if test "$am_cv_func_iconv" = yes; then
17775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
17776 $as_echo_n "checking for iconv declaration... " >&6; }
17777     if ${am_cv_proto_iconv+:} false; then :
17778   $as_echo_n "(cached) " >&6
17779 else
17780
17781       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17782 /* end confdefs.h.  */
17783
17784 #include <stdlib.h>
17785 #include <iconv.h>
17786 extern
17787 #ifdef __cplusplus
17788 "C"
17789 #endif
17790 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
17791 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
17792 #else
17793 size_t iconv();
17794 #endif
17795
17796 int
17797 main ()
17798 {
17799
17800   ;
17801   return 0;
17802 }
17803 _ACEOF
17804 if ac_fn_c_try_compile "$LINENO"; then :
17805   am_cv_proto_iconv_arg1=""
17806 else
17807   am_cv_proto_iconv_arg1="const"
17808 fi
17809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17810       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);"
17811 fi
17812
17813     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17814     { $as_echo "$as_me:${as_lineno-$LINENO}: result:
17815          $am_cv_proto_iconv" >&5
17816 $as_echo "
17817          $am_cv_proto_iconv" >&6; }
17818
17819 cat >>confdefs.h <<_ACEOF
17820 #define ICONV_CONST $am_cv_proto_iconv_arg1
17821 _ACEOF
17822
17823
17824        if test -n "$am_cv_proto_iconv_arg1"; then
17825          ICONV_CONST="const"
17826        fi
17827
17828   fi
17829
17830
17831
17832
17833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17834 /* end confdefs.h.  */
17835 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
17836 int
17837 main ()
17838 {
17839
17840   ;
17841   return 0;
17842 }
17843 _ACEOF
17844 if ac_fn_c_try_link "$LINENO"; then :
17845
17846 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
17847
17848 fi
17849 rm -f core conftest.err conftest.$ac_objext \
17850     conftest$ac_exeext conftest.$ac_ext
17851
17852   for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
17853 do :
17854   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17855 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17856 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17857   cat >>confdefs.h <<_ACEOF
17858 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17859 _ACEOF
17860
17861 fi
17862
17863 done
17864
17865   for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
17866     stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
17867     argz_stringify argz_next __fsetlocking
17868 do :
17869   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17870 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17871 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17872   cat >>confdefs.h <<_ACEOF
17873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17874 _ACEOF
17875
17876 fi
17877 done
17878
17879
17880           ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
17881 "
17882 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
17883   ac_have_decl=1
17884 else
17885   ac_have_decl=0
17886 fi
17887
17888 cat >>confdefs.h <<_ACEOF
17889 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
17890 _ACEOF
17891 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
17892 "
17893 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
17894   ac_have_decl=1
17895 else
17896   ac_have_decl=0
17897 fi
17898
17899 cat >>confdefs.h <<_ACEOF
17900 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
17901 _ACEOF
17902
17903
17904
17905
17906                       for ac_prog in bison
17907 do
17908   # Extract the first word of "$ac_prog", so it can be a program name with args.
17909 set dummy $ac_prog; ac_word=$2
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17911 $as_echo_n "checking for $ac_word... " >&6; }
17912 if ${ac_cv_prog_INTLBISON+:} false; then :
17913   $as_echo_n "(cached) " >&6
17914 else
17915   if test -n "$INTLBISON"; then
17916   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
17917 else
17918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17919 for as_dir in $PATH
17920 do
17921   IFS=$as_save_IFS
17922   test -z "$as_dir" && as_dir=.
17923     for ac_exec_ext in '' $ac_executable_extensions; do
17924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17925     ac_cv_prog_INTLBISON="$ac_prog"
17926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17927     break 2
17928   fi
17929 done
17930   done
17931 IFS=$as_save_IFS
17932
17933 fi
17934 fi
17935 INTLBISON=$ac_cv_prog_INTLBISON
17936 if test -n "$INTLBISON"; then
17937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
17938 $as_echo "$INTLBISON" >&6; }
17939 else
17940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17941 $as_echo "no" >&6; }
17942 fi
17943
17944
17945   test -n "$INTLBISON" && break
17946 done
17947
17948   if test -z "$INTLBISON"; then
17949     ac_verc_fail=yes
17950   else
17951         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
17952 $as_echo_n "checking version of bison... " >&6; }
17953     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17954     case $ac_prog_version in
17955       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
17956       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
17957          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
17958       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
17959     esac
17960     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
17961 $as_echo "$ac_prog_version" >&6; }
17962   fi
17963   if test $ac_verc_fail = yes; then
17964     INTLBISON=:
17965   fi
17966
17967
17968
17969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17970 $as_echo_n "checking for long long int... " >&6; }
17971 if ${ac_cv_type_long_long_int+:} false; then :
17972   $as_echo_n "(cached) " >&6
17973 else
17974   ac_cv_type_long_long_int=yes
17975       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
17976         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17977         if test $ac_cv_type_long_long_int = yes; then
17978                                         if test "$cross_compiling" = yes; then :
17979   :
17980 else
17981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17982 /* end confdefs.h.  */
17983 #include <limits.h>
17984                  #ifndef LLONG_MAX
17985                  # define HALF \
17986                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17987                  # define LLONG_MAX (HALF - 1 + HALF)
17988                  #endif
17989 int
17990 main ()
17991 {
17992 long long int n = 1;
17993                  int i;
17994                  for (i = 0; ; i++)
17995                    {
17996                      long long int m = n << i;
17997                      if (m >> i != n)
17998                        return 1;
17999                      if (LLONG_MAX / 2 < m)
18000                        break;
18001                    }
18002                  return 0;
18003   ;
18004   return 0;
18005 }
18006 _ACEOF
18007 if ac_fn_c_try_run "$LINENO"; then :
18008
18009 else
18010   ac_cv_type_long_long_int=no
18011 fi
18012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18013   conftest.$ac_objext conftest.beam conftest.$ac_ext
18014 fi
18015
18016         fi
18017       fi
18018 fi
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
18020 $as_echo "$ac_cv_type_long_long_int" >&6; }
18021   if test $ac_cv_type_long_long_int = yes; then
18022
18023 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
18024
18025   fi
18026
18027
18028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18029 $as_echo_n "checking for wchar_t... " >&6; }
18030 if ${gt_cv_c_wchar_t+:} false; then :
18031   $as_echo_n "(cached) " >&6
18032 else
18033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18034 /* end confdefs.h.  */
18035 #include <stddef.h>
18036             wchar_t foo = (wchar_t)'\0';
18037 int
18038 main ()
18039 {
18040
18041   ;
18042   return 0;
18043 }
18044 _ACEOF
18045 if ac_fn_c_try_compile "$LINENO"; then :
18046   gt_cv_c_wchar_t=yes
18047 else
18048   gt_cv_c_wchar_t=no
18049 fi
18050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18051 fi
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18053 $as_echo "$gt_cv_c_wchar_t" >&6; }
18054   if test $gt_cv_c_wchar_t = yes; then
18055
18056 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18057
18058   fi
18059
18060
18061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18062 $as_echo_n "checking for wint_t... " >&6; }
18063 if ${gt_cv_c_wint_t+:} false; then :
18064   $as_echo_n "(cached) " >&6
18065 else
18066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18067 /* end confdefs.h.  */
18068
18069 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18070    <wchar.h>.
18071    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18072    before <wchar.h>.  */
18073 #include <stddef.h>
18074 #include <stdio.h>
18075 #include <time.h>
18076 #include <wchar.h>
18077             wint_t foo = (wchar_t)'\0';
18078 int
18079 main ()
18080 {
18081
18082   ;
18083   return 0;
18084 }
18085 _ACEOF
18086 if ac_fn_c_try_compile "$LINENO"; then :
18087   gt_cv_c_wint_t=yes
18088 else
18089   gt_cv_c_wint_t=no
18090 fi
18091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18092 fi
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18094 $as_echo "$gt_cv_c_wint_t" >&6; }
18095   if test $gt_cv_c_wint_t = yes; then
18096
18097 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18098
18099   fi
18100
18101
18102
18103
18104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18105 $as_echo_n "checking for intmax_t... " >&6; }
18106 if ${gt_cv_c_intmax_t+:} false; then :
18107   $as_echo_n "(cached) " >&6
18108 else
18109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18110 /* end confdefs.h.  */
18111
18112 #include <stddef.h>
18113 #include <stdlib.h>
18114 #if HAVE_STDINT_H_WITH_UINTMAX
18115 #include <stdint.h>
18116 #endif
18117 #if HAVE_INTTYPES_H_WITH_UINTMAX
18118 #include <inttypes.h>
18119 #endif
18120
18121 int
18122 main ()
18123 {
18124 intmax_t x = -1;
18125             return !x;
18126   ;
18127   return 0;
18128 }
18129 _ACEOF
18130 if ac_fn_c_try_compile "$LINENO"; then :
18131   gt_cv_c_intmax_t=yes
18132 else
18133   gt_cv_c_intmax_t=no
18134 fi
18135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18136 fi
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18138 $as_echo "$gt_cv_c_intmax_t" >&6; }
18139   if test $gt_cv_c_intmax_t = yes; then
18140
18141 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18142
18143   fi
18144
18145
18146
18147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18148 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18149 if ${gt_cv_func_printf_posix+:} false; then :
18150   $as_echo_n "(cached) " >&6
18151 else
18152
18153       if test "$cross_compiling" = yes; then :
18154
18155           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18156 /* end confdefs.h.  */
18157
18158 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18159   notposix
18160 #endif
18161
18162 _ACEOF
18163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18164   $EGREP "notposix" >/dev/null 2>&1; then :
18165   gt_cv_func_printf_posix="guessing no"
18166 else
18167   gt_cv_func_printf_posix="guessing yes"
18168 fi
18169 rm -f conftest*
18170
18171
18172 else
18173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18174 /* end confdefs.h.  */
18175
18176 #include <stdio.h>
18177 #include <string.h>
18178 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18179    dollar expansion (possibly an autoconf bug).  */
18180 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18181 static char buf[100];
18182 int main ()
18183 {
18184   sprintf (buf, format, 33, 55);
18185   return (strcmp (buf, "55 33") != 0);
18186 }
18187 _ACEOF
18188 if ac_fn_c_try_run "$LINENO"; then :
18189   gt_cv_func_printf_posix=yes
18190 else
18191   gt_cv_func_printf_posix=no
18192 fi
18193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18194   conftest.$ac_objext conftest.beam conftest.$ac_ext
18195 fi
18196
18197
18198 fi
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18200 $as_echo "$gt_cv_func_printf_posix" >&6; }
18201   case $gt_cv_func_printf_posix in
18202     *yes)
18203
18204 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18205
18206       ;;
18207   esac
18208
18209
18210     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
18211 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
18212 if ${ac_cv_gnu_library_2_1+:} false; then :
18213   $as_echo_n "(cached) " >&6
18214 else
18215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18216 /* end confdefs.h.  */
18217
18218 #include <features.h>
18219 #ifdef __GNU_LIBRARY__
18220  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18221   Lucky GNU user
18222  #endif
18223 #endif
18224 #ifdef __UCLIBC__
18225  Lucky user
18226 #endif
18227
18228 _ACEOF
18229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18230   $EGREP "Lucky" >/dev/null 2>&1; then :
18231   ac_cv_gnu_library_2_1=yes
18232 else
18233   ac_cv_gnu_library_2_1=no
18234 fi
18235 rm -f conftest*
18236
18237
18238
18239 fi
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18241 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18242
18243     GLIBC21="$ac_cv_gnu_library_2_1"
18244
18245
18246
18247   for ac_header in stdint.h
18248 do :
18249   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18250 if test "x$ac_cv_header_stdint_h" = xyes; then :
18251   cat >>confdefs.h <<_ACEOF
18252 #define HAVE_STDINT_H 1
18253 _ACEOF
18254
18255 fi
18256
18257 done
18258
18259     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
18260 $as_echo_n "checking for SIZE_MAX... " >&6; }
18261 if ${gl_cv_size_max+:} false; then :
18262   $as_echo_n "(cached) " >&6
18263 else
18264
18265     gl_cv_size_max=
18266     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18267 /* end confdefs.h.  */
18268
18269 #include <limits.h>
18270 #if HAVE_STDINT_H
18271 #include <stdint.h>
18272 #endif
18273 #ifdef SIZE_MAX
18274 Found it
18275 #endif
18276
18277 _ACEOF
18278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18279   $EGREP "Found it" >/dev/null 2>&1; then :
18280   gl_cv_size_max=yes
18281 fi
18282 rm -f conftest*
18283
18284     if test -z "$gl_cv_size_max"; then
18285                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
18286 #include <limits.h>"; then :
18287
18288 else
18289   size_t_bits_minus_1=
18290 fi
18291
18292       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
18293
18294 else
18295   fits_in_uint=
18296 fi
18297
18298       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
18299         if test $fits_in_uint = 1; then
18300                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18301 /* end confdefs.h.  */
18302 #include <stddef.h>
18303                  extern size_t foo;
18304                  extern unsigned long foo;
18305
18306 int
18307 main ()
18308 {
18309
18310   ;
18311   return 0;
18312 }
18313 _ACEOF
18314 if ac_fn_c_try_compile "$LINENO"; then :
18315   fits_in_uint=0
18316 fi
18317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18318         fi
18319                                 if test $fits_in_uint = 1; then
18320           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
18321         else
18322           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
18323         fi
18324       else
18325                 gl_cv_size_max='((size_t)~(size_t)0)'
18326       fi
18327     fi
18328
18329 fi
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
18331 $as_echo "$gl_cv_size_max" >&6; }
18332   if test "$gl_cv_size_max" != yes; then
18333
18334 cat >>confdefs.h <<_ACEOF
18335 #define SIZE_MAX $gl_cv_size_max
18336 _ACEOF
18337
18338   fi
18339
18340
18341
18342
18343   for ac_header in stdint.h
18344 do :
18345   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18346 if test "x$ac_cv_header_stdint_h" = xyes; then :
18347   cat >>confdefs.h <<_ACEOF
18348 #define HAVE_STDINT_H 1
18349 _ACEOF
18350
18351 fi
18352
18353 done
18354
18355
18356
18357
18358
18359   for ac_func in $ac_func_list
18360 do :
18361   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18362 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18363 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18364   cat >>confdefs.h <<_ACEOF
18365 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18366 _ACEOF
18367
18368 fi
18369 done
18370
18371
18372
18373
18374
18375
18376
18377
18378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
18379 $as_echo_n "checking for working fcntl.h... " >&6; }
18380 if ${gl_cv_header_working_fcntl_h+:} false; then :
18381   $as_echo_n "(cached) " >&6
18382 else
18383   if test "$cross_compiling" = yes; then :
18384   gl_cv_header_working_fcntl_h=cross-compiling
18385 else
18386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18387 /* end confdefs.h.  */
18388 #include <sys/types.h>
18389            #include <sys/stat.h>
18390            #if HAVE_UNISTD_H
18391            # include <unistd.h>
18392            #else /* on Windows with MSVC */
18393            # include <io.h>
18394            # include <stdlib.h>
18395            # defined sleep(n) _sleep ((n) * 1000)
18396            #endif
18397            #include <fcntl.h>
18398            #ifndef O_NOATIME
18399             #define O_NOATIME 0
18400            #endif
18401            #ifndef O_NOFOLLOW
18402             #define O_NOFOLLOW 0
18403            #endif
18404            static int const constants[] =
18405             {
18406               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
18407               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
18408             };
18409
18410 int
18411 main ()
18412 {
18413
18414             int result = !constants;
18415             #if HAVE_SYMLINK
18416             {
18417               static char const sym[] = "conftest.sym";
18418               if (symlink ("/dev/null", sym) != 0)
18419                 result |= 2;
18420               else
18421                 {
18422                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
18423                   if (fd >= 0)
18424                     {
18425                       close (fd);
18426                       result |= 4;
18427                     }
18428                 }
18429               if (unlink (sym) != 0 || symlink (".", sym) != 0)
18430                 result |= 2;
18431               else
18432                 {
18433                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
18434                   if (fd >= 0)
18435                     {
18436                       close (fd);
18437                       result |= 4;
18438                     }
18439                 }
18440               unlink (sym);
18441             }
18442             #endif
18443             {
18444               static char const file[] = "confdefs.h";
18445               int fd = open (file, O_RDONLY | O_NOATIME);
18446               if (fd < 0)
18447                 result |= 8;
18448               else
18449                 {
18450                   struct stat st0;
18451                   if (fstat (fd, &st0) != 0)
18452                     result |= 16;
18453                   else
18454                     {
18455                       char c;
18456                       sleep (1);
18457                       if (read (fd, &c, 1) != 1)
18458                         result |= 24;
18459                       else
18460                         {
18461                           if (close (fd) != 0)
18462                             result |= 32;
18463                           else
18464                             {
18465                               struct stat st1;
18466                               if (stat (file, &st1) != 0)
18467                                 result |= 40;
18468                               else
18469                                 if (st0.st_atime != st1.st_atime)
18470                                   result |= 64;
18471                             }
18472                         }
18473                     }
18474                 }
18475             }
18476             return result;
18477   ;
18478   return 0;
18479 }
18480 _ACEOF
18481 if ac_fn_c_try_run "$LINENO"; then :
18482   gl_cv_header_working_fcntl_h=yes
18483 else
18484   case $? in #(
18485         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
18486         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
18487         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
18488          *) gl_cv_header_working_fcntl_h='no';;
18489         esac
18490 fi
18491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18492   conftest.$ac_objext conftest.beam conftest.$ac_ext
18493 fi
18494
18495 fi
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
18497 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
18498
18499   case $gl_cv_header_working_fcntl_h in #(
18500   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
18501   *) ac_val=1;;
18502   esac
18503
18504 cat >>confdefs.h <<_ACEOF
18505 #define HAVE_WORKING_O_NOATIME $ac_val
18506 _ACEOF
18507
18508
18509   case $gl_cv_header_working_fcntl_h in #(
18510   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
18511   *) ac_val=1;;
18512   esac
18513
18514 cat >>confdefs.h <<_ACEOF
18515 #define HAVE_WORKING_O_NOFOLLOW $ac_val
18516 _ACEOF
18517
18518
18519
18520     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18521 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18522 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18523   $as_echo_n "(cached) " >&6
18524 else
18525   gt_save_LIBS="$LIBS"
18526      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18527      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18528 /* end confdefs.h.  */
18529 #include <CoreFoundation/CFPreferences.h>
18530 int
18531 main ()
18532 {
18533 CFPreferencesCopyAppValue(NULL, NULL)
18534   ;
18535   return 0;
18536 }
18537 _ACEOF
18538 if ac_fn_c_try_link "$LINENO"; then :
18539   gt_cv_func_CFPreferencesCopyAppValue=yes
18540 else
18541   gt_cv_func_CFPreferencesCopyAppValue=no
18542 fi
18543 rm -f core conftest.err conftest.$ac_objext \
18544     conftest$ac_exeext conftest.$ac_ext
18545      LIBS="$gt_save_LIBS"
18546 fi
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18548 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18549   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18550
18551 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18552
18553   fi
18554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18555 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18556 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18557   $as_echo_n "(cached) " >&6
18558 else
18559   gt_save_LIBS="$LIBS"
18560      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18561      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562 /* end confdefs.h.  */
18563 #include <CoreFoundation/CFLocale.h>
18564 int
18565 main ()
18566 {
18567 CFLocaleCopyCurrent();
18568   ;
18569   return 0;
18570 }
18571 _ACEOF
18572 if ac_fn_c_try_link "$LINENO"; then :
18573   gt_cv_func_CFLocaleCopyCurrent=yes
18574 else
18575   gt_cv_func_CFLocaleCopyCurrent=no
18576 fi
18577 rm -f core conftest.err conftest.$ac_objext \
18578     conftest$ac_exeext conftest.$ac_ext
18579      LIBS="$gt_save_LIBS"
18580 fi
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18582 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18583   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18584
18585 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18586
18587   fi
18588   INTL_MACOSX_LIBS=
18589   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18590     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18591   fi
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602     case "$enable_silent_rules" in
18603     yes) INTL_DEFAULT_VERBOSITY=0;;
18604     no)  INTL_DEFAULT_VERBOSITY=1;;
18605     *)   INTL_DEFAULT_VERBOSITY=1;;
18606   esac
18607
18608
18609   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
18610 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
18611
18612 else
18613
18614 $as_echo "#define ptrdiff_t long" >>confdefs.h
18615
18616
18617 fi
18618
18619   for ac_header in features.h stddef.h stdlib.h string.h
18620 do :
18621   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18622 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18623 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18624   cat >>confdefs.h <<_ACEOF
18625 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18626 _ACEOF
18627
18628 fi
18629
18630 done
18631
18632   for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
18633     snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
18634 do :
18635   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18636 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18637 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18638   cat >>confdefs.h <<_ACEOF
18639 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18640 _ACEOF
18641
18642 fi
18643 done
18644
18645
18646       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
18647 "
18648 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
18649   ac_have_decl=1
18650 else
18651   ac_have_decl=0
18652 fi
18653
18654 cat >>confdefs.h <<_ACEOF
18655 #define HAVE_DECL__SNPRINTF $ac_have_decl
18656 _ACEOF
18657 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
18658 "
18659 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
18660   ac_have_decl=1
18661 else
18662   ac_have_decl=0
18663 fi
18664
18665 cat >>confdefs.h <<_ACEOF
18666 #define HAVE_DECL__SNWPRINTF $ac_have_decl
18667 _ACEOF
18668
18669
18670           ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
18671 "
18672 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
18673   ac_have_decl=1
18674 else
18675   ac_have_decl=0
18676 fi
18677
18678 cat >>confdefs.h <<_ACEOF
18679 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
18680 _ACEOF
18681
18682
18683   case $gt_cv_func_printf_posix in
18684     *yes) HAVE_POSIX_PRINTF=1 ;;
18685     *) HAVE_POSIX_PRINTF=0 ;;
18686   esac
18687
18688   if test "$ac_cv_func_asprintf" = yes; then
18689     HAVE_ASPRINTF=1
18690   else
18691     HAVE_ASPRINTF=0
18692   fi
18693
18694   if test "$ac_cv_func_snprintf" = yes; then
18695     HAVE_SNPRINTF=1
18696   else
18697     HAVE_SNPRINTF=0
18698   fi
18699
18700   if test "$ac_cv_func_newlocale" = yes; then
18701     HAVE_NEWLOCALE=1
18702   else
18703     HAVE_NEWLOCALE=0
18704   fi
18705
18706   if test "$ac_cv_func_wprintf" = yes; then
18707     HAVE_WPRINTF=1
18708   else
18709     HAVE_WPRINTF=0
18710   fi
18711
18712
18713
18714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
18715 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
18716 if ${am_cv_langinfo_codeset+:} false; then :
18717   $as_echo_n "(cached) " >&6
18718 else
18719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18720 /* end confdefs.h.  */
18721 #include <langinfo.h>
18722 int
18723 main ()
18724 {
18725 char* cs = nl_langinfo(CODESET); return !cs;
18726   ;
18727   return 0;
18728 }
18729 _ACEOF
18730 if ac_fn_c_try_link "$LINENO"; then :
18731   am_cv_langinfo_codeset=yes
18732 else
18733   am_cv_langinfo_codeset=no
18734 fi
18735 rm -f core conftest.err conftest.$ac_objext \
18736     conftest$ac_exeext conftest.$ac_ext
18737
18738 fi
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
18740 $as_echo "$am_cv_langinfo_codeset" >&6; }
18741   if test $am_cv_langinfo_codeset = yes; then
18742
18743 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
18744
18745   fi
18746
18747
18748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
18749 $as_echo_n "checking for LC_MESSAGES... " >&6; }
18750 if ${gt_cv_val_LC_MESSAGES+:} false; then :
18751   $as_echo_n "(cached) " >&6
18752 else
18753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18754 /* end confdefs.h.  */
18755 #include <locale.h>
18756 int
18757 main ()
18758 {
18759 return LC_MESSAGES
18760   ;
18761   return 0;
18762 }
18763 _ACEOF
18764 if ac_fn_c_try_link "$LINENO"; then :
18765   gt_cv_val_LC_MESSAGES=yes
18766 else
18767   gt_cv_val_LC_MESSAGES=no
18768 fi
18769 rm -f core conftest.err conftest.$ac_objext \
18770     conftest$ac_exeext conftest.$ac_ext
18771 fi
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
18773 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
18774   if test $gt_cv_val_LC_MESSAGES = yes; then
18775
18776 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
18777
18778   fi
18779
18780
18781                 if test "$enable_shared" = yes; then
18782     case "$host_os" in
18783       mingw* | cygwin*) is_woe32dll=yes ;;
18784       *) is_woe32dll=no ;;
18785     esac
18786   else
18787     is_woe32dll=no
18788   fi
18789   WOE32DLL=$is_woe32dll
18790
18791
18792       case "$host_os" in
18793     mingw* | cygwin*) is_woe32=yes ;;
18794     *) is_woe32=no ;;
18795   esac
18796   WOE32=$is_woe32
18797
18798   if test $WOE32 = yes; then
18799         if test -n "$ac_tool_prefix"; then
18800   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
18801 set dummy ${ac_tool_prefix}windres; ac_word=$2
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18803 $as_echo_n "checking for $ac_word... " >&6; }
18804 if ${ac_cv_prog_WINDRES+:} false; then :
18805   $as_echo_n "(cached) " >&6
18806 else
18807   if test -n "$WINDRES"; then
18808   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
18809 else
18810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18811 for as_dir in $PATH
18812 do
18813   IFS=$as_save_IFS
18814   test -z "$as_dir" && as_dir=.
18815     for ac_exec_ext in '' $ac_executable_extensions; do
18816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18817     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
18818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18819     break 2
18820   fi
18821 done
18822   done
18823 IFS=$as_save_IFS
18824
18825 fi
18826 fi
18827 WINDRES=$ac_cv_prog_WINDRES
18828 if test -n "$WINDRES"; then
18829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
18830 $as_echo "$WINDRES" >&6; }
18831 else
18832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18833 $as_echo "no" >&6; }
18834 fi
18835
18836
18837 fi
18838 if test -z "$ac_cv_prog_WINDRES"; then
18839   ac_ct_WINDRES=$WINDRES
18840   # Extract the first word of "windres", so it can be a program name with args.
18841 set dummy windres; ac_word=$2
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18843 $as_echo_n "checking for $ac_word... " >&6; }
18844 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
18845   $as_echo_n "(cached) " >&6
18846 else
18847   if test -n "$ac_ct_WINDRES"; then
18848   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
18849 else
18850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18851 for as_dir in $PATH
18852 do
18853   IFS=$as_save_IFS
18854   test -z "$as_dir" && as_dir=.
18855     for ac_exec_ext in '' $ac_executable_extensions; do
18856   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18857     ac_cv_prog_ac_ct_WINDRES="windres"
18858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18859     break 2
18860   fi
18861 done
18862   done
18863 IFS=$as_save_IFS
18864
18865 fi
18866 fi
18867 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
18868 if test -n "$ac_ct_WINDRES"; then
18869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
18870 $as_echo "$ac_ct_WINDRES" >&6; }
18871 else
18872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18873 $as_echo "no" >&6; }
18874 fi
18875
18876   if test "x$ac_ct_WINDRES" = x; then
18877     WINDRES=""
18878   else
18879     case $cross_compiling:$ac_tool_warned in
18880 yes:)
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18883 ac_tool_warned=yes ;;
18884 esac
18885     WINDRES=$ac_ct_WINDRES
18886   fi
18887 else
18888   WINDRES="$ac_cv_prog_WINDRES"
18889 fi
18890
18891   fi
18892
18893               case "$host_os" in
18894     hpux*) LTLIBC="" ;;
18895     *)     LTLIBC="-lc" ;;
18896   esac
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18925 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18926 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18927   $as_echo_n "(cached) " >&6
18928 else
18929   gt_save_LIBS="$LIBS"
18930      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18931      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18932 /* end confdefs.h.  */
18933 #include <CoreFoundation/CFPreferences.h>
18934 int
18935 main ()
18936 {
18937 CFPreferencesCopyAppValue(NULL, NULL)
18938   ;
18939   return 0;
18940 }
18941 _ACEOF
18942 if ac_fn_c_try_link "$LINENO"; then :
18943   gt_cv_func_CFPreferencesCopyAppValue=yes
18944 else
18945   gt_cv_func_CFPreferencesCopyAppValue=no
18946 fi
18947 rm -f core conftest.err conftest.$ac_objext \
18948     conftest$ac_exeext conftest.$ac_ext
18949      LIBS="$gt_save_LIBS"
18950 fi
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18952 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18953   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18954
18955 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18956
18957   fi
18958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18959 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18960 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18961   $as_echo_n "(cached) " >&6
18962 else
18963   gt_save_LIBS="$LIBS"
18964      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
18965      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18966 /* end confdefs.h.  */
18967 #include <CoreFoundation/CFLocale.h>
18968 int
18969 main ()
18970 {
18971 CFLocaleCopyCurrent();
18972   ;
18973   return 0;
18974 }
18975 _ACEOF
18976 if ac_fn_c_try_link "$LINENO"; then :
18977   gt_cv_func_CFLocaleCopyCurrent=yes
18978 else
18979   gt_cv_func_CFLocaleCopyCurrent=no
18980 fi
18981 rm -f core conftest.err conftest.$ac_objext \
18982     conftest$ac_exeext conftest.$ac_ext
18983      LIBS="$gt_save_LIBS"
18984 fi
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18986 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18987   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18988
18989 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18990
18991   fi
18992   INTL_MACOSX_LIBS=
18993   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18994     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18995   fi
18996
18997
18998
18999
19000
19001
19002     BUILD_INCLUDED_LIBINTL=no
19003     USE_INCLUDED_LIBINTL=no
19004
19005   LIBINTL=
19006   LTLIBINTL=
19007   POSUB=
19008
19009     case " $gt_needs " in
19010     *" need-formatstring-macros "*) gt_api_version=3 ;;
19011     *" need-ngettext "*) gt_api_version=2 ;;
19012     *) gt_api_version=1 ;;
19013   esac
19014   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
19015   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
19016
19017     if test "$USE_NLS" = "yes"; then
19018     gt_use_preinstalled_gnugettext=no
19019
19020       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19021 $as_echo_n "checking whether included gettext is requested... " >&6; }
19022
19023 # Check whether --with-included-gettext was given.
19024 if test "${with_included_gettext+set}" = set; then :
19025   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19026 else
19027   nls_cv_force_use_gnu_gettext=no
19028 fi
19029
19030       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19031 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19032
19033       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19034       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19035
19036
19037         if test $gt_api_version -ge 3; then
19038           gt_revision_test_code='
19039 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
19040 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
19041 #endif
19042 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
19043 '
19044         else
19045           gt_revision_test_code=
19046         fi
19047         if test $gt_api_version -ge 2; then
19048           gt_expression_test_code=' + * ngettext ("", "", 0)'
19049         else
19050           gt_expression_test_code=
19051         fi
19052
19053         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19054 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19055 if eval \${$gt_func_gnugettext_libc+:} false; then :
19056   $as_echo_n "(cached) " >&6
19057 else
19058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19059 /* end confdefs.h.  */
19060
19061 #include <libintl.h>
19062 $gt_revision_test_code
19063 extern int _nl_msg_cat_cntr;
19064 extern int *_nl_domain_bindings;
19065
19066 int
19067 main ()
19068 {
19069
19070 bindtextdomain ("", "");
19071 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
19072
19073   ;
19074   return 0;
19075 }
19076 _ACEOF
19077 if ac_fn_c_try_link "$LINENO"; then :
19078   eval "$gt_func_gnugettext_libc=yes"
19079 else
19080   eval "$gt_func_gnugettext_libc=no"
19081 fi
19082 rm -f core conftest.err conftest.$ac_objext \
19083     conftest$ac_exeext conftest.$ac_ext
19084 fi
19085 eval ac_res=\$$gt_func_gnugettext_libc
19086                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19087 $as_echo "$ac_res" >&6; }
19088
19089         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
19090
19091
19092
19093
19094
19095
19096
19097
19098     use_additional=yes
19099
19100   acl_save_prefix="$prefix"
19101   prefix="$acl_final_prefix"
19102   acl_save_exec_prefix="$exec_prefix"
19103   exec_prefix="$acl_final_exec_prefix"
19104
19105     eval additional_includedir=\"$includedir\"
19106     eval additional_libdir=\"$libdir\"
19107
19108   exec_prefix="$acl_save_exec_prefix"
19109   prefix="$acl_save_prefix"
19110
19111
19112 # Check whether --with-libintl-prefix was given.
19113 if test "${with_libintl_prefix+set}" = set; then :
19114   withval=$with_libintl_prefix;
19115     if test "X$withval" = "Xno"; then
19116       use_additional=no
19117     else
19118       if test "X$withval" = "X"; then
19119
19120   acl_save_prefix="$prefix"
19121   prefix="$acl_final_prefix"
19122   acl_save_exec_prefix="$exec_prefix"
19123   exec_prefix="$acl_final_exec_prefix"
19124
19125           eval additional_includedir=\"$includedir\"
19126           eval additional_libdir=\"$libdir\"
19127
19128   exec_prefix="$acl_save_exec_prefix"
19129   prefix="$acl_save_prefix"
19130
19131       else
19132         additional_includedir="$withval/include"
19133         additional_libdir="$withval/$acl_libdirstem"
19134         if test "$acl_libdirstem2" != "$acl_libdirstem" \
19135            && ! test -d "$withval/$acl_libdirstem"; then
19136           additional_libdir="$withval/$acl_libdirstem2"
19137         fi
19138       fi
19139     fi
19140
19141 fi
19142
19143       LIBINTL=
19144   LTLIBINTL=
19145   INCINTL=
19146   LIBINTL_PREFIX=
19147       HAVE_LIBINTL=
19148   rpathdirs=
19149   ltrpathdirs=
19150   names_already_handled=
19151   names_next_round='intl '
19152   while test -n "$names_next_round"; do
19153     names_this_round="$names_next_round"
19154     names_next_round=
19155     for name in $names_this_round; do
19156       already_handled=
19157       for n in $names_already_handled; do
19158         if test "$n" = "$name"; then
19159           already_handled=yes
19160           break
19161         fi
19162       done
19163       if test -z "$already_handled"; then
19164         names_already_handled="$names_already_handled $name"
19165                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
19166         eval value=\"\$HAVE_LIB$uppername\"
19167         if test -n "$value"; then
19168           if test "$value" = yes; then
19169             eval value=\"\$LIB$uppername\"
19170             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
19171             eval value=\"\$LTLIB$uppername\"
19172             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
19173           else
19174                                     :
19175           fi
19176         else
19177                               found_dir=
19178           found_la=
19179           found_so=
19180           found_a=
19181           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
19182           if test -n "$acl_shlibext"; then
19183             shrext=".$acl_shlibext"             # typically: shrext=.so
19184           else
19185             shrext=
19186           fi
19187           if test $use_additional = yes; then
19188             dir="$additional_libdir"
19189                                     if test -n "$acl_shlibext"; then
19190               if test -f "$dir/$libname$shrext"; then
19191                 found_dir="$dir"
19192                 found_so="$dir/$libname$shrext"
19193               else
19194                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19195                   ver=`(cd "$dir" && \
19196                         for f in "$libname$shrext".*; do echo "$f"; done \
19197                         | sed -e "s,^$libname$shrext\\\\.,," \
19198                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19199                         | sed 1q ) 2>/dev/null`
19200                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19201                     found_dir="$dir"
19202                     found_so="$dir/$libname$shrext.$ver"
19203                   fi
19204                 else
19205                   eval library_names=\"$acl_library_names_spec\"
19206                   for f in $library_names; do
19207                     if test -f "$dir/$f"; then
19208                       found_dir="$dir"
19209                       found_so="$dir/$f"
19210                       break
19211                     fi
19212                   done
19213                 fi
19214               fi
19215             fi
19216                         if test "X$found_dir" = "X"; then
19217               if test -f "$dir/$libname.$acl_libext"; then
19218                 found_dir="$dir"
19219                 found_a="$dir/$libname.$acl_libext"
19220               fi
19221             fi
19222             if test "X$found_dir" != "X"; then
19223               if test -f "$dir/$libname.la"; then
19224                 found_la="$dir/$libname.la"
19225               fi
19226             fi
19227           fi
19228           if test "X$found_dir" = "X"; then
19229             for x in $LDFLAGS $LTLIBINTL; do
19230
19231   acl_save_prefix="$prefix"
19232   prefix="$acl_final_prefix"
19233   acl_save_exec_prefix="$exec_prefix"
19234   exec_prefix="$acl_final_exec_prefix"
19235   eval x=\"$x\"
19236   exec_prefix="$acl_save_exec_prefix"
19237   prefix="$acl_save_prefix"
19238
19239               case "$x" in
19240                 -L*)
19241                   dir=`echo "X$x" | sed -e 's/^X-L//'`
19242                                     if test -n "$acl_shlibext"; then
19243                     if test -f "$dir/$libname$shrext"; then
19244                       found_dir="$dir"
19245                       found_so="$dir/$libname$shrext"
19246                     else
19247                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
19248                         ver=`(cd "$dir" && \
19249                               for f in "$libname$shrext".*; do echo "$f"; done \
19250                               | sed -e "s,^$libname$shrext\\\\.,," \
19251                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
19252                               | sed 1q ) 2>/dev/null`
19253                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
19254                           found_dir="$dir"
19255                           found_so="$dir/$libname$shrext.$ver"
19256                         fi
19257                       else
19258                         eval library_names=\"$acl_library_names_spec\"
19259                         for f in $library_names; do
19260                           if test -f "$dir/$f"; then
19261                             found_dir="$dir"
19262                             found_so="$dir/$f"
19263                             break
19264                           fi
19265                         done
19266                       fi
19267                     fi
19268                   fi
19269                                     if test "X$found_dir" = "X"; then
19270                     if test -f "$dir/$libname.$acl_libext"; then
19271                       found_dir="$dir"
19272                       found_a="$dir/$libname.$acl_libext"
19273                     fi
19274                   fi
19275                   if test "X$found_dir" != "X"; then
19276                     if test -f "$dir/$libname.la"; then
19277                       found_la="$dir/$libname.la"
19278                     fi
19279                   fi
19280                   ;;
19281               esac
19282               if test "X$found_dir" != "X"; then
19283                 break
19284               fi
19285             done
19286           fi
19287           if test "X$found_dir" != "X"; then
19288                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
19289             if test "X$found_so" != "X"; then
19290                                                         if test "$enable_rpath" = no \
19291                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
19292                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
19293                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19294               else
19295                                                                                 haveit=
19296                 for x in $ltrpathdirs; do
19297                   if test "X$x" = "X$found_dir"; then
19298                     haveit=yes
19299                     break
19300                   fi
19301                 done
19302                 if test -z "$haveit"; then
19303                   ltrpathdirs="$ltrpathdirs $found_dir"
19304                 fi
19305                                 if test "$acl_hardcode_direct" = yes; then
19306                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19307                 else
19308                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19309                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19310                                                             haveit=
19311                     for x in $rpathdirs; do
19312                       if test "X$x" = "X$found_dir"; then
19313                         haveit=yes
19314                         break
19315                       fi
19316                     done
19317                     if test -z "$haveit"; then
19318                       rpathdirs="$rpathdirs $found_dir"
19319                     fi
19320                   else
19321                                                                                 haveit=
19322                     for x in $LDFLAGS $LIBINTL; do
19323
19324   acl_save_prefix="$prefix"
19325   prefix="$acl_final_prefix"
19326   acl_save_exec_prefix="$exec_prefix"
19327   exec_prefix="$acl_final_exec_prefix"
19328   eval x=\"$x\"
19329   exec_prefix="$acl_save_exec_prefix"
19330   prefix="$acl_save_prefix"
19331
19332                       if test "X$x" = "X-L$found_dir"; then
19333                         haveit=yes
19334                         break
19335                       fi
19336                     done
19337                     if test -z "$haveit"; then
19338                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
19339                     fi
19340                     if test "$acl_hardcode_minus_L" != no; then
19341                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
19342                     else
19343                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19344                     fi
19345                   fi
19346                 fi
19347               fi
19348             else
19349               if test "X$found_a" != "X"; then
19350                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
19351               else
19352                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
19353               fi
19354             fi
19355                         additional_includedir=
19356             case "$found_dir" in
19357               */$acl_libdirstem | */$acl_libdirstem/)
19358                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
19359                 if test "$name" = 'intl'; then
19360                   LIBINTL_PREFIX="$basedir"
19361                 fi
19362                 additional_includedir="$basedir/include"
19363                 ;;
19364               */$acl_libdirstem2 | */$acl_libdirstem2/)
19365                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
19366                 if test "$name" = 'intl'; then
19367                   LIBINTL_PREFIX="$basedir"
19368                 fi
19369                 additional_includedir="$basedir/include"
19370                 ;;
19371             esac
19372             if test "X$additional_includedir" != "X"; then
19373                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
19374                 haveit=
19375                 if test "X$additional_includedir" = "X/usr/local/include"; then
19376                   if test -n "$GCC"; then
19377                     case $host_os in
19378                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19379                     esac
19380                   fi
19381                 fi
19382                 if test -z "$haveit"; then
19383                   for x in $CPPFLAGS $INCINTL; do
19384
19385   acl_save_prefix="$prefix"
19386   prefix="$acl_final_prefix"
19387   acl_save_exec_prefix="$exec_prefix"
19388   exec_prefix="$acl_final_exec_prefix"
19389   eval x=\"$x\"
19390   exec_prefix="$acl_save_exec_prefix"
19391   prefix="$acl_save_prefix"
19392
19393                     if test "X$x" = "X-I$additional_includedir"; then
19394                       haveit=yes
19395                       break
19396                     fi
19397                   done
19398                   if test -z "$haveit"; then
19399                     if test -d "$additional_includedir"; then
19400                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
19401                     fi
19402                   fi
19403                 fi
19404               fi
19405             fi
19406                         if test -n "$found_la"; then
19407                                                         save_libdir="$libdir"
19408               case "$found_la" in
19409                 */* | *\\*) . "$found_la" ;;
19410                 *) . "./$found_la" ;;
19411               esac
19412               libdir="$save_libdir"
19413                             for dep in $dependency_libs; do
19414                 case "$dep" in
19415                   -L*)
19416                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
19417                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
19418                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
19419                       haveit=
19420                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
19421                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
19422                         if test -n "$GCC"; then
19423                           case $host_os in
19424                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
19425                           esac
19426                         fi
19427                       fi
19428                       if test -z "$haveit"; then
19429                         haveit=
19430                         for x in $LDFLAGS $LIBINTL; do
19431
19432   acl_save_prefix="$prefix"
19433   prefix="$acl_final_prefix"
19434   acl_save_exec_prefix="$exec_prefix"
19435   exec_prefix="$acl_final_exec_prefix"
19436   eval x=\"$x\"
19437   exec_prefix="$acl_save_exec_prefix"
19438   prefix="$acl_save_prefix"
19439
19440                           if test "X$x" = "X-L$additional_libdir"; then
19441                             haveit=yes
19442                             break
19443                           fi
19444                         done
19445                         if test -z "$haveit"; then
19446                           if test -d "$additional_libdir"; then
19447                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
19448                           fi
19449                         fi
19450                         haveit=
19451                         for x in $LDFLAGS $LTLIBINTL; do
19452
19453   acl_save_prefix="$prefix"
19454   prefix="$acl_final_prefix"
19455   acl_save_exec_prefix="$exec_prefix"
19456   exec_prefix="$acl_final_exec_prefix"
19457   eval x=\"$x\"
19458   exec_prefix="$acl_save_exec_prefix"
19459   prefix="$acl_save_prefix"
19460
19461                           if test "X$x" = "X-L$additional_libdir"; then
19462                             haveit=yes
19463                             break
19464                           fi
19465                         done
19466                         if test -z "$haveit"; then
19467                           if test -d "$additional_libdir"; then
19468                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
19469                           fi
19470                         fi
19471                       fi
19472                     fi
19473                     ;;
19474                   -R*)
19475                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
19476                     if test "$enable_rpath" != no; then
19477                                                                   haveit=
19478                       for x in $rpathdirs; do
19479                         if test "X$x" = "X$dir"; then
19480                           haveit=yes
19481                           break
19482                         fi
19483                       done
19484                       if test -z "$haveit"; then
19485                         rpathdirs="$rpathdirs $dir"
19486                       fi
19487                                                                   haveit=
19488                       for x in $ltrpathdirs; do
19489                         if test "X$x" = "X$dir"; then
19490                           haveit=yes
19491                           break
19492                         fi
19493                       done
19494                       if test -z "$haveit"; then
19495                         ltrpathdirs="$ltrpathdirs $dir"
19496                       fi
19497                     fi
19498                     ;;
19499                   -l*)
19500                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
19501                     ;;
19502                   *.la)
19503                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
19504                     ;;
19505                   *)
19506                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
19507                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
19508                     ;;
19509                 esac
19510               done
19511             fi
19512           else
19513                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
19514             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
19515           fi
19516         fi
19517       fi
19518     done
19519   done
19520   if test "X$rpathdirs" != "X"; then
19521     if test -n "$acl_hardcode_libdir_separator"; then
19522                         alldirs=
19523       for found_dir in $rpathdirs; do
19524         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
19525       done
19526             acl_save_libdir="$libdir"
19527       libdir="$alldirs"
19528       eval flag=\"$acl_hardcode_libdir_flag_spec\"
19529       libdir="$acl_save_libdir"
19530       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
19531     else
19532             for found_dir in $rpathdirs; do
19533         acl_save_libdir="$libdir"
19534         libdir="$found_dir"
19535         eval flag=\"$acl_hardcode_libdir_flag_spec\"
19536         libdir="$acl_save_libdir"
19537         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
19538       done
19539     fi
19540   fi
19541   if test "X$ltrpathdirs" != "X"; then
19542             for found_dir in $ltrpathdirs; do
19543       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
19544     done
19545   fi
19546
19547
19548
19549
19550
19551
19552           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
19553 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
19554 if eval \${$gt_func_gnugettext_libintl+:} false; then :
19555   $as_echo_n "(cached) " >&6
19556 else
19557   gt_save_CPPFLAGS="$CPPFLAGS"
19558             CPPFLAGS="$CPPFLAGS $INCINTL"
19559             gt_save_LIBS="$LIBS"
19560             LIBS="$LIBS $LIBINTL"
19561                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19562 /* end confdefs.h.  */
19563
19564 #include <libintl.h>
19565 $gt_revision_test_code
19566 extern int _nl_msg_cat_cntr;
19567 extern
19568 #ifdef __cplusplus
19569 "C"
19570 #endif
19571 const char *_nl_expand_alias (const char *);
19572
19573 int
19574 main ()
19575 {
19576
19577 bindtextdomain ("", "");
19578 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
19579
19580   ;
19581   return 0;
19582 }
19583 _ACEOF
19584 if ac_fn_c_try_link "$LINENO"; then :
19585   eval "$gt_func_gnugettext_libintl=yes"
19586 else
19587   eval "$gt_func_gnugettext_libintl=no"
19588 fi
19589 rm -f core conftest.err conftest.$ac_objext \
19590     conftest$ac_exeext conftest.$ac_ext
19591                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
19592               LIBS="$LIBS $LIBICONV"
19593               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19594 /* end confdefs.h.  */
19595
19596 #include <libintl.h>
19597 $gt_revision_test_code
19598 extern int _nl_msg_cat_cntr;
19599 extern
19600 #ifdef __cplusplus
19601 "C"
19602 #endif
19603 const char *_nl_expand_alias (const char *);
19604
19605 int
19606 main ()
19607 {
19608
19609 bindtextdomain ("", "");
19610 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
19611
19612   ;
19613   return 0;
19614 }
19615 _ACEOF
19616 if ac_fn_c_try_link "$LINENO"; then :
19617   LIBINTL="$LIBINTL $LIBICONV"
19618                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
19619                  eval "$gt_func_gnugettext_libintl=yes"
19620
19621 fi
19622 rm -f core conftest.err conftest.$ac_objext \
19623     conftest$ac_exeext conftest.$ac_ext
19624             fi
19625             CPPFLAGS="$gt_save_CPPFLAGS"
19626             LIBS="$gt_save_LIBS"
19627 fi
19628 eval ac_res=\$$gt_func_gnugettext_libintl
19629                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19630 $as_echo "$ac_res" >&6; }
19631         fi
19632
19633                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
19634            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
19635                 && test "$PACKAGE" != gettext-runtime \
19636                 && test "$PACKAGE" != gettext-tools; }; then
19637           gt_use_preinstalled_gnugettext=yes
19638         else
19639                     LIBINTL=
19640           LTLIBINTL=
19641           INCINTL=
19642         fi
19643
19644
19645         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
19646                               nls_cv_use_gnu_gettext=yes
19647         fi
19648       fi
19649
19650       if test "$nls_cv_use_gnu_gettext" = "yes"; then
19651                 BUILD_INCLUDED_LIBINTL=yes
19652         USE_INCLUDED_LIBINTL=yes
19653         LIBINTL="\${top_builddir}/intl/libintl.la $LIBICONV $LIBTHREAD"
19654         LTLIBINTL="\${top_builddir}/intl/libintl.la $LTLIBICONV $LTLIBTHREAD"
19655         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
19656       fi
19657
19658       CATOBJEXT=
19659       if test "$gt_use_preinstalled_gnugettext" = "yes" \
19660          || test "$nls_cv_use_gnu_gettext" = "yes"; then
19661                 CATOBJEXT=.gmo
19662       fi
19663
19664
19665     if test -n "$INTL_MACOSX_LIBS"; then
19666       if test "$gt_use_preinstalled_gnugettext" = "yes" \
19667          || test "$nls_cv_use_gnu_gettext" = "yes"; then
19668                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
19669         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
19670       fi
19671     fi
19672
19673     if test "$gt_use_preinstalled_gnugettext" = "yes" \
19674        || test "$nls_cv_use_gnu_gettext" = "yes"; then
19675
19676 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
19677
19678     else
19679       USE_NLS=no
19680     fi
19681   fi
19682
19683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
19684 $as_echo_n "checking whether to use NLS... " >&6; }
19685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19686 $as_echo "$USE_NLS" >&6; }
19687   if test "$USE_NLS" = "yes"; then
19688     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
19689 $as_echo_n "checking where the gettext function comes from... " >&6; }
19690     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
19691       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
19692         gt_source="external libintl"
19693       else
19694         gt_source="libc"
19695       fi
19696     else
19697       gt_source="included intl directory"
19698     fi
19699     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
19700 $as_echo "$gt_source" >&6; }
19701   fi
19702
19703   if test "$USE_NLS" = "yes"; then
19704
19705     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
19706       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
19707         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
19708 $as_echo_n "checking how to link with libintl... " >&6; }
19709         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
19710 $as_echo "$LIBINTL" >&6; }
19711
19712   for element in $INCINTL; do
19713     haveit=
19714     for x in $CPPFLAGS; do
19715
19716   acl_save_prefix="$prefix"
19717   prefix="$acl_final_prefix"
19718   acl_save_exec_prefix="$exec_prefix"
19719   exec_prefix="$acl_final_exec_prefix"
19720   eval x=\"$x\"
19721   exec_prefix="$acl_save_exec_prefix"
19722   prefix="$acl_save_prefix"
19723
19724       if test "X$x" = "X$element"; then
19725         haveit=yes
19726         break
19727       fi
19728     done
19729     if test -z "$haveit"; then
19730       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19731     fi
19732   done
19733
19734       fi
19735
19736
19737 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
19738
19739
19740 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
19741
19742     fi
19743
19744         POSUB=po
19745   fi
19746
19747
19748             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
19749       BUILD_INCLUDED_LIBINTL=yes
19750     fi
19751
19752
19753
19754
19755
19756         nls_cv_header_intl=
19757     nls_cv_header_libgt=
19758
19759         DATADIRNAME=share
19760
19761
19762         INSTOBJEXT=.mo
19763
19764
19765         GENCAT=gencat
19766
19767
19768         INTLOBJS=
19769     if test "$USE_INCLUDED_LIBINTL" = yes; then
19770       INTLOBJS="\$(GETTOBJS)"
19771     fi
19772
19773
19774         INTL_LIBTOOL_SUFFIX_PREFIX=l
19775
19776
19777
19778     INTLLIBS="$LIBINTL"
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791           LIBC_FATAL_STDERR_=1
19792   export LIBC_FATAL_STDERR_
19793
19794
19795
19796
19797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use C++" >&5
19798 $as_echo_n "checking whether to use C++... " >&6; }
19799     # Check whether --enable-c++ was given.
19800 if test "${enable_c__+set}" = set; then :
19801   enableval=$enable_c__; CXX_CHOICE="$enableval"
19802 else
19803   CXX_CHOICE=yes
19804 fi
19805
19806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_CHOICE" >&5
19807 $as_echo "$CXX_CHOICE" >&6; }
19808
19809
19810
19811   GNULIB__EXIT=0;
19812   GNULIB_ATOLL=0;
19813   GNULIB_CALLOC_POSIX=0;
19814   GNULIB_CANONICALIZE_FILE_NAME=0;
19815   GNULIB_GETLOADAVG=0;
19816   GNULIB_GETSUBOPT=0;
19817   GNULIB_GRANTPT=0;
19818   GNULIB_MALLOC_POSIX=0;
19819   GNULIB_MBTOWC=0;
19820   GNULIB_MKDTEMP=0;
19821   GNULIB_MKOSTEMP=0;
19822   GNULIB_MKOSTEMPS=0;
19823   GNULIB_MKSTEMP=0;
19824   GNULIB_MKSTEMPS=0;
19825   GNULIB_POSIX_OPENPT=0;
19826   GNULIB_PTSNAME=0;
19827   GNULIB_PTSNAME_R=0;
19828   GNULIB_PUTENV=0;
19829   GNULIB_RANDOM=0;
19830   GNULIB_RANDOM_R=0;
19831   GNULIB_REALLOC_POSIX=0;
19832   GNULIB_REALPATH=0;
19833   GNULIB_RPMATCH=0;
19834   GNULIB_SECURE_GETENV=0;
19835   GNULIB_SETENV=0;
19836   GNULIB_STRTOD=0;
19837   GNULIB_STRTOLL=0;
19838   GNULIB_STRTOULL=0;
19839   GNULIB_SYSTEM_POSIX=0;
19840   GNULIB_UNLOCKPT=0;
19841   GNULIB_UNSETENV=0;
19842   GNULIB_WCTOMB=0;
19843     HAVE__EXIT=1;
19844   HAVE_ATOLL=1;
19845   HAVE_CANONICALIZE_FILE_NAME=1;
19846   HAVE_DECL_GETLOADAVG=1;
19847   HAVE_GETSUBOPT=1;
19848   HAVE_GRANTPT=1;
19849   HAVE_MKDTEMP=1;
19850   HAVE_MKOSTEMP=1;
19851   HAVE_MKOSTEMPS=1;
19852   HAVE_MKSTEMP=1;
19853   HAVE_MKSTEMPS=1;
19854   HAVE_POSIX_OPENPT=1;
19855   HAVE_PTSNAME=1;
19856   HAVE_PTSNAME_R=1;
19857   HAVE_RANDOM=1;
19858   HAVE_RANDOM_H=1;
19859   HAVE_RANDOM_R=1;
19860   HAVE_REALPATH=1;
19861   HAVE_RPMATCH=1;
19862   HAVE_SECURE_GETENV=1;
19863   HAVE_SETENV=1;
19864   HAVE_DECL_SETENV=1;
19865   HAVE_STRTOD=1;
19866   HAVE_STRTOLL=1;
19867   HAVE_STRTOULL=1;
19868   HAVE_STRUCT_RANDOM_DATA=1;
19869   HAVE_SYS_LOADAVG_H=0;
19870   HAVE_UNLOCKPT=1;
19871   HAVE_DECL_UNSETENV=1;
19872   REPLACE_CALLOC=0;
19873   REPLACE_CANONICALIZE_FILE_NAME=0;
19874   REPLACE_MALLOC=0;
19875   REPLACE_MBTOWC=0;
19876   REPLACE_MKSTEMP=0;
19877   REPLACE_PTSNAME=0;
19878   REPLACE_PTSNAME_R=0;
19879   REPLACE_PUTENV=0;
19880   REPLACE_RANDOM_R=0;
19881   REPLACE_REALLOC=0;
19882   REPLACE_REALPATH=0;
19883   REPLACE_SETENV=0;
19884   REPLACE_STRTOD=0;
19885   REPLACE_UNSETENV=0;
19886   REPLACE_WCTOMB=0;
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
19897 $as_echo_n "checking whether // is distinct from /... " >&6; }
19898 if ${gl_cv_double_slash_root+:} false; then :
19899   $as_echo_n "(cached) " >&6
19900 else
19901    if test x"$cross_compiling" = xyes ; then
19902         # When cross-compiling, there is no way to tell whether // is special
19903         # short of a list of hosts.  However, the only known hosts to date
19904         # that have a distinct // are Apollo DomainOS (too old to port to),
19905         # Cygwin, and z/OS.  If anyone knows of another system for which // has
19906         # special semantics and is distinct from /, please report it to
19907         # <bug-gnulib@gnu.org>.
19908         case $host in
19909           *-cygwin | i370-ibm-openedition)
19910             gl_cv_double_slash_root=yes ;;
19911           *)
19912             # Be optimistic and assume that / and // are the same when we
19913             # don't know.
19914             gl_cv_double_slash_root='unknown, assuming no' ;;
19915         esac
19916       else
19917         set x `ls -di / // 2>/dev/null`
19918         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
19919           gl_cv_double_slash_root=no
19920         else
19921           gl_cv_double_slash_root=yes
19922         fi
19923       fi
19924 fi
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
19926 $as_echo "$gl_cv_double_slash_root" >&6; }
19927   if test "$gl_cv_double_slash_root" = yes; then
19928
19929 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
19930
19931   fi
19932
19933
19934
19935
19936
19937      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
19938 $as_echo_n "checking whether realpath works... " >&6; }
19939 if ${gl_cv_func_realpath_works+:} false; then :
19940   $as_echo_n "(cached) " >&6
19941 else
19942
19943     touch conftest.a
19944     mkdir conftest.d
19945     if test "$cross_compiling" = yes; then :
19946   case "$host_os" in
19947                        # Guess yes on glibc systems.
19948         *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
19949                        # If we don't know, assume the worst.
19950         *)             gl_cv_func_realpath_works="guessing no" ;;
19951       esac
19952
19953 else
19954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19955 /* end confdefs.h.  */
19956
19957
19958
19959 #include <stdlib.h>
19960 #if defined __MACH__ && defined __APPLE__
19961 /* Avoid a crash on Mac OS X.  */
19962 #include <mach/mach.h>
19963 #include <mach/mach_error.h>
19964 #include <mach/thread_status.h>
19965 #include <mach/exception.h>
19966 #include <mach/task.h>
19967 #include <pthread.h>
19968 /* The exception port on which our thread listens.  */
19969 static mach_port_t our_exception_port;
19970 /* The main function of the thread listening for exceptions of type
19971    EXC_BAD_ACCESS.  */
19972 static void *
19973 mach_exception_thread (void *arg)
19974 {
19975   /* Buffer for a message to be received.  */
19976   struct {
19977     mach_msg_header_t head;
19978     mach_msg_body_t msgh_body;
19979     char data[1024];
19980   } msg;
19981   mach_msg_return_t retval;
19982   /* Wait for a message on the exception port.  */
19983   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
19984                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
19985   if (retval != MACH_MSG_SUCCESS)
19986     abort ();
19987   exit (1);
19988 }
19989 static void
19990 nocrash_init (void)
19991 {
19992   mach_port_t self = mach_task_self ();
19993   /* Allocate a port on which the thread shall listen for exceptions.  */
19994   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
19995       == KERN_SUCCESS) {
19996     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
19997     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
19998                                 MACH_MSG_TYPE_MAKE_SEND)
19999         == KERN_SUCCESS) {
20000       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
20001          for us.  */
20002       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
20003       /* Create the thread listening on the exception port.  */
20004       pthread_attr_t attr;
20005       pthread_t thread;
20006       if (pthread_attr_init (&attr) == 0
20007           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
20008           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
20009         pthread_attr_destroy (&attr);
20010         /* Replace the exception port info for these exceptions with our own.
20011            Note that we replace the exception port for the entire task, not only
20012            for a particular thread.  This has the effect that when our exception
20013            port gets the message, the thread specific exception port has already
20014            been asked, and we don't need to bother about it.
20015            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
20016         task_set_exception_ports (self, mask, our_exception_port,
20017                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
20018       }
20019     }
20020   }
20021 }
20022 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
20023 /* Avoid a crash on native Windows.  */
20024 #define WIN32_LEAN_AND_MEAN
20025 #include <windows.h>
20026 #include <winerror.h>
20027 static LONG WINAPI
20028 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
20029 {
20030   switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
20031     {
20032     case EXCEPTION_ACCESS_VIOLATION:
20033     case EXCEPTION_IN_PAGE_ERROR:
20034     case EXCEPTION_STACK_OVERFLOW:
20035     case EXCEPTION_GUARD_PAGE:
20036     case EXCEPTION_PRIV_INSTRUCTION:
20037     case EXCEPTION_ILLEGAL_INSTRUCTION:
20038     case EXCEPTION_DATATYPE_MISALIGNMENT:
20039     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
20040     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
20041       exit (1);
20042     }
20043   return EXCEPTION_CONTINUE_SEARCH;
20044 }
20045 static void
20046 nocrash_init (void)
20047 {
20048   SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
20049 }
20050 #else
20051 /* Avoid a crash on POSIX systems.  */
20052 #include <signal.h>
20053 /* A POSIX signal handler.  */
20054 static void
20055 exception_handler (int sig)
20056 {
20057   exit (1);
20058 }
20059 static void
20060 nocrash_init (void)
20061 {
20062 #ifdef SIGSEGV
20063   signal (SIGSEGV, exception_handler);
20064 #endif
20065 #ifdef SIGBUS
20066   signal (SIGBUS, exception_handler);
20067 #endif
20068 }
20069 #endif
20070
20071         #include <stdlib.h>
20072         #include <string.h>
20073
20074 int
20075 main ()
20076 {
20077
20078         int result = 0;
20079         {
20080           char *name = realpath ("conftest.a", NULL);
20081           if (!(name && *name == '/'))
20082             result |= 1;
20083         }
20084         {
20085           char *name = realpath ("conftest.b/../conftest.a", NULL);
20086           if (name != NULL)
20087             result |= 2;
20088         }
20089         {
20090           char *name = realpath ("conftest.a/", NULL);
20091           if (name != NULL)
20092             result |= 4;
20093         }
20094         {
20095           char *name1 = realpath (".", NULL);
20096           char *name2 = realpath ("conftest.d//./..", NULL);
20097           if (strcmp (name1, name2) != 0)
20098             result |= 8;
20099         }
20100         return result;
20101
20102   ;
20103   return 0;
20104 }
20105
20106 _ACEOF
20107 if ac_fn_c_try_run "$LINENO"; then :
20108   gl_cv_func_realpath_works=yes
20109 else
20110   gl_cv_func_realpath_works=no
20111 fi
20112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20113   conftest.$ac_objext conftest.beam conftest.$ac_ext
20114 fi
20115
20116     rm -rf conftest.a conftest.d
20117
20118 fi
20119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
20120 $as_echo "$gl_cv_func_realpath_works" >&6; }
20121   case "$gl_cv_func_realpath_works" in
20122     *yes)
20123
20124 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
20125
20126       ;;
20127   esac
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139   GNULIB_CHDIR=0;
20140   GNULIB_CHOWN=0;
20141   GNULIB_CLOSE=0;
20142   GNULIB_DUP=0;
20143   GNULIB_DUP2=0;
20144   GNULIB_DUP3=0;
20145   GNULIB_ENVIRON=0;
20146   GNULIB_EUIDACCESS=0;
20147   GNULIB_FACCESSAT=0;
20148   GNULIB_FCHDIR=0;
20149   GNULIB_FCHOWNAT=0;
20150   GNULIB_FDATASYNC=0;
20151   GNULIB_FSYNC=0;
20152   GNULIB_FTRUNCATE=0;
20153   GNULIB_GETCWD=0;
20154   GNULIB_GETDOMAINNAME=0;
20155   GNULIB_GETDTABLESIZE=0;
20156   GNULIB_GETGROUPS=0;
20157   GNULIB_GETHOSTNAME=0;
20158   GNULIB_GETLOGIN=0;
20159   GNULIB_GETLOGIN_R=0;
20160   GNULIB_GETPAGESIZE=0;
20161   GNULIB_GETUSERSHELL=0;
20162   GNULIB_GROUP_MEMBER=0;
20163   GNULIB_ISATTY=0;
20164   GNULIB_LCHOWN=0;
20165   GNULIB_LINK=0;
20166   GNULIB_LINKAT=0;
20167   GNULIB_LSEEK=0;
20168   GNULIB_PIPE=0;
20169   GNULIB_PIPE2=0;
20170   GNULIB_PREAD=0;
20171   GNULIB_PWRITE=0;
20172   GNULIB_READ=0;
20173   GNULIB_READLINK=0;
20174   GNULIB_READLINKAT=0;
20175   GNULIB_RMDIR=0;
20176   GNULIB_SETHOSTNAME=0;
20177   GNULIB_SLEEP=0;
20178   GNULIB_SYMLINK=0;
20179   GNULIB_SYMLINKAT=0;
20180   GNULIB_TTYNAME_R=0;
20181   GNULIB_UNISTD_H_NONBLOCKING=0;
20182   GNULIB_UNISTD_H_SIGPIPE=0;
20183   GNULIB_UNLINK=0;
20184   GNULIB_UNLINKAT=0;
20185   GNULIB_USLEEP=0;
20186   GNULIB_WRITE=0;
20187     HAVE_CHOWN=1;
20188   HAVE_DUP2=1;
20189   HAVE_DUP3=1;
20190   HAVE_EUIDACCESS=1;
20191   HAVE_FACCESSAT=1;
20192   HAVE_FCHDIR=1;
20193   HAVE_FCHOWNAT=1;
20194   HAVE_FDATASYNC=1;
20195   HAVE_FSYNC=1;
20196   HAVE_FTRUNCATE=1;
20197   HAVE_GETDTABLESIZE=1;
20198   HAVE_GETGROUPS=1;
20199   HAVE_GETHOSTNAME=1;
20200   HAVE_GETLOGIN=1;
20201   HAVE_GETPAGESIZE=1;
20202   HAVE_GROUP_MEMBER=1;
20203   HAVE_LCHOWN=1;
20204   HAVE_LINK=1;
20205   HAVE_LINKAT=1;
20206   HAVE_PIPE=1;
20207   HAVE_PIPE2=1;
20208   HAVE_PREAD=1;
20209   HAVE_PWRITE=1;
20210   HAVE_READLINK=1;
20211   HAVE_READLINKAT=1;
20212   HAVE_SETHOSTNAME=1;
20213   HAVE_SLEEP=1;
20214   HAVE_SYMLINK=1;
20215   HAVE_SYMLINKAT=1;
20216   HAVE_UNLINKAT=1;
20217   HAVE_USLEEP=1;
20218   HAVE_DECL_ENVIRON=1;
20219   HAVE_DECL_FCHDIR=1;
20220   HAVE_DECL_FDATASYNC=1;
20221   HAVE_DECL_GETDOMAINNAME=1;
20222   HAVE_DECL_GETLOGIN_R=1;
20223   HAVE_DECL_GETPAGESIZE=1;
20224   HAVE_DECL_GETUSERSHELL=1;
20225   HAVE_DECL_SETHOSTNAME=1;
20226   HAVE_DECL_TTYNAME_R=1;
20227   HAVE_OS_H=0;
20228   HAVE_SYS_PARAM_H=0;
20229   REPLACE_CHOWN=0;
20230   REPLACE_CLOSE=0;
20231   REPLACE_DUP=0;
20232   REPLACE_DUP2=0;
20233   REPLACE_FCHOWNAT=0;
20234   REPLACE_FTRUNCATE=0;
20235   REPLACE_GETCWD=0;
20236   REPLACE_GETDOMAINNAME=0;
20237   REPLACE_GETLOGIN_R=0;
20238   REPLACE_GETGROUPS=0;
20239   REPLACE_GETPAGESIZE=0;
20240   REPLACE_ISATTY=0;
20241   REPLACE_LCHOWN=0;
20242   REPLACE_LINK=0;
20243   REPLACE_LINKAT=0;
20244   REPLACE_LSEEK=0;
20245   REPLACE_PREAD=0;
20246   REPLACE_PWRITE=0;
20247   REPLACE_READ=0;
20248   REPLACE_READLINK=0;
20249   REPLACE_RMDIR=0;
20250   REPLACE_SLEEP=0;
20251   REPLACE_SYMLINK=0;
20252   REPLACE_TTYNAME_R=0;
20253   REPLACE_UNLINK=0;
20254   REPLACE_UNLINKAT=0;
20255   REPLACE_USLEEP=0;
20256   REPLACE_WRITE=0;
20257   UNISTD_H_HAVE_WINSOCK2_H=0;
20258   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
20269 $as_echo_n "checking if environ is properly declared... " >&6; }
20270   if ${gt_cv_var_environ_declaration+:} false; then :
20271   $as_echo_n "(cached) " >&6
20272 else
20273
20274     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20275 /* end confdefs.h.  */
20276 #if HAVE_UNISTD_H
20277      #include <unistd.h>
20278      #endif
20279      /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>.  */
20280      #include <stdlib.h>
20281
20282            extern struct { int foo; } environ;
20283 int
20284 main ()
20285 {
20286 environ.foo = 1;
20287   ;
20288   return 0;
20289 }
20290 _ACEOF
20291 if ac_fn_c_try_compile "$LINENO"; then :
20292   gt_cv_var_environ_declaration=no
20293 else
20294   gt_cv_var_environ_declaration=yes
20295 fi
20296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20297 fi
20298
20299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
20300 $as_echo "$gt_cv_var_environ_declaration" >&6; }
20301   if test $gt_cv_var_environ_declaration = yes; then
20302
20303 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
20304
20305   fi
20306
20307
20308   if test $gt_cv_var_environ_declaration != yes; then
20309     HAVE_DECL_ENVIRON=0
20310   fi
20311
20312
20313
20314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
20315 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
20316 if ${gl_cv_have_include_next+:} false; then :
20317   $as_echo_n "(cached) " >&6
20318 else
20319   rm -rf conftestd1a conftestd1b conftestd2
20320      mkdir conftestd1a conftestd1b conftestd2
20321                                                   cat <<EOF > conftestd1a/conftest.h
20322 #define DEFINED_IN_CONFTESTD1
20323 #include_next <conftest.h>
20324 #ifdef DEFINED_IN_CONFTESTD2
20325 int foo;
20326 #else
20327 #error "include_next doesn't work"
20328 #endif
20329 EOF
20330      cat <<EOF > conftestd1b/conftest.h
20331 #define DEFINED_IN_CONFTESTD1
20332 #include <stdio.h>
20333 #include_next <conftest.h>
20334 #ifdef DEFINED_IN_CONFTESTD2
20335 int foo;
20336 #else
20337 #error "include_next doesn't work"
20338 #endif
20339 EOF
20340      cat <<EOF > conftestd2/conftest.h
20341 #ifndef DEFINED_IN_CONFTESTD1
20342 #error "include_next test doesn't work"
20343 #endif
20344 #define DEFINED_IN_CONFTESTD2
20345 EOF
20346      gl_save_CPPFLAGS="$CPPFLAGS"
20347      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
20348      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20349 /* end confdefs.h.  */
20350 #include <conftest.h>
20351 _ACEOF
20352 if ac_fn_c_try_compile "$LINENO"; then :
20353   gl_cv_have_include_next=yes
20354 else
20355   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
20356         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20357 /* end confdefs.h.  */
20358 #include <conftest.h>
20359 _ACEOF
20360 if ac_fn_c_try_compile "$LINENO"; then :
20361   gl_cv_have_include_next=buggy
20362 else
20363   gl_cv_have_include_next=no
20364 fi
20365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20366
20367 fi
20368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20369      CPPFLAGS="$gl_save_CPPFLAGS"
20370      rm -rf conftestd1a conftestd1b conftestd2
20371
20372 fi
20373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
20374 $as_echo "$gl_cv_have_include_next" >&6; }
20375   PRAGMA_SYSTEM_HEADER=
20376   if test $gl_cv_have_include_next = yes; then
20377     INCLUDE_NEXT=include_next
20378     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
20379     if test -n "$GCC"; then
20380       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
20381     fi
20382   else
20383     if test $gl_cv_have_include_next = buggy; then
20384       INCLUDE_NEXT=include
20385       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
20386     else
20387       INCLUDE_NEXT=include
20388       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
20389     fi
20390   fi
20391
20392
20393
20394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
20395 $as_echo_n "checking whether system header files limit the line length... " >&6; }
20396 if ${gl_cv_pragma_columns+:} false; then :
20397   $as_echo_n "(cached) " >&6
20398 else
20399        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20400 /* end confdefs.h.  */
20401
20402 #ifdef __TANDEM
20403 choke me
20404 #endif
20405
20406 _ACEOF
20407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20408   $EGREP "choke me" >/dev/null 2>&1; then :
20409   gl_cv_pragma_columns=yes
20410 else
20411   gl_cv_pragma_columns=no
20412 fi
20413 rm -f conftest*
20414
20415
20416 fi
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
20418 $as_echo "$gl_cv_pragma_columns" >&6; }
20419   if test $gl_cv_pragma_columns = yes; then
20420     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
20421   else
20422     PRAGMA_COLUMNS=
20423   fi
20424
20425
20426
20427
20428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
20429 $as_echo_n "checking for complete errno.h... " >&6; }
20430 if ${gl_cv_header_errno_h_complete+:} false; then :
20431   $as_echo_n "(cached) " >&6
20432 else
20433
20434     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20435 /* end confdefs.h.  */
20436
20437 #include <errno.h>
20438 #if !defined ETXTBSY
20439 booboo
20440 #endif
20441 #if !defined ENOMSG
20442 booboo
20443 #endif
20444 #if !defined EIDRM
20445 booboo
20446 #endif
20447 #if !defined ENOLINK
20448 booboo
20449 #endif
20450 #if !defined EPROTO
20451 booboo
20452 #endif
20453 #if !defined EMULTIHOP
20454 booboo
20455 #endif
20456 #if !defined EBADMSG
20457 booboo
20458 #endif
20459 #if !defined EOVERFLOW
20460 booboo
20461 #endif
20462 #if !defined ENOTSUP
20463 booboo
20464 #endif
20465 #if !defined ENETRESET
20466 booboo
20467 #endif
20468 #if !defined ECONNABORTED
20469 booboo
20470 #endif
20471 #if !defined ESTALE
20472 booboo
20473 #endif
20474 #if !defined EDQUOT
20475 booboo
20476 #endif
20477 #if !defined ECANCELED
20478 booboo
20479 #endif
20480 #if !defined EOWNERDEAD
20481 booboo
20482 #endif
20483 #if !defined ENOTRECOVERABLE
20484 booboo
20485 #endif
20486 #if !defined EILSEQ
20487 booboo
20488 #endif
20489
20490 _ACEOF
20491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20492   $EGREP "booboo" >/dev/null 2>&1; then :
20493   gl_cv_header_errno_h_complete=no
20494 else
20495   gl_cv_header_errno_h_complete=yes
20496 fi
20497 rm -f conftest*
20498
20499
20500 fi
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
20502 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
20503   if test $gl_cv_header_errno_h_complete = yes; then
20504     ERRNO_H=''
20505   else
20506
20507
20508
20509
20510
20511
20512
20513
20514      if test $gl_cv_have_include_next = yes; then
20515        gl_cv_next_errno_h='<'errno.h'>'
20516      else
20517        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
20518 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
20519 if ${gl_cv_next_errno_h+:} false; then :
20520   $as_echo_n "(cached) " >&6
20521 else
20522
20523                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20524 /* end confdefs.h.  */
20525 #include <errno.h>
20526
20527 _ACEOF
20528                                                                                                                         case "$host_os" in
20529                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
20530                  *)    gl_absname_cpp="$ac_cpp" ;;
20531                esac
20532
20533                case "$host_os" in
20534                  mingw*)
20535                                                                                                                                      gl_dirsep_regex='[/\\]'
20536                    ;;
20537                  *)
20538                    gl_dirsep_regex='\/'
20539                    ;;
20540                esac
20541                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20542
20543                gl_header_literal_regex=`echo 'errno.h' \
20544                                         | sed -e "$gl_make_literal_regex_sed"`
20545                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20546                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20547                    s|^/[^/]|//&|
20548                    p
20549                    q
20550                  }'
20551                                                             gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20552                       sed -n "$gl_absolute_header_sed"`'"'
20553
20554
20555 fi
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
20557 $as_echo "$gl_cv_next_errno_h" >&6; }
20558      fi
20559      NEXT_ERRNO_H=$gl_cv_next_errno_h
20560
20561      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20562        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20563        gl_next_as_first_directive='<'errno.h'>'
20564      else
20565        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20566        gl_next_as_first_directive=$gl_cv_next_errno_h
20567      fi
20568      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
20569
20570
20571
20572
20573     ERRNO_H='errno.h'
20574   fi
20575
20576    if test -n "$ERRNO_H"; then
20577   GL_GENERATE_ERRNO_H_TRUE=
20578   GL_GENERATE_ERRNO_H_FALSE='#'
20579 else
20580   GL_GENERATE_ERRNO_H_TRUE='#'
20581   GL_GENERATE_ERRNO_H_FALSE=
20582 fi
20583
20584
20585   if test -n "$ERRNO_H"; then
20586     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
20587 $as_echo_n "checking for EMULTIHOP value... " >&6; }
20588 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
20589   $as_echo_n "(cached) " >&6
20590 else
20591
20592       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20593 /* end confdefs.h.  */
20594
20595 #include <errno.h>
20596 #ifdef EMULTIHOP
20597 yes
20598 #endif
20599
20600 _ACEOF
20601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20602   $EGREP "yes" >/dev/null 2>&1; then :
20603   gl_cv_header_errno_h_EMULTIHOP=yes
20604 else
20605   gl_cv_header_errno_h_EMULTIHOP=no
20606 fi
20607 rm -f conftest*
20608
20609       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
20610         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20611 /* end confdefs.h.  */
20612
20613 #define _XOPEN_SOURCE_EXTENDED 1
20614 #include <errno.h>
20615 #ifdef EMULTIHOP
20616 yes
20617 #endif
20618
20619 _ACEOF
20620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20621   $EGREP "yes" >/dev/null 2>&1; then :
20622   gl_cv_header_errno_h_EMULTIHOP=hidden
20623 fi
20624 rm -f conftest*
20625
20626         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
20627                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
20628 #define _XOPEN_SOURCE_EXTENDED 1
20629 #include <errno.h>
20630 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
20631 #include <stdio.h>
20632 #include <stdlib.h>
20633 "; then :
20634
20635 fi
20636
20637         fi
20638       fi
20639
20640 fi
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
20642 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
20643     case $gl_cv_header_errno_h_EMULTIHOP in
20644       yes | no)
20645         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
20646         ;;
20647       *)
20648         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
20649         ;;
20650     esac
20651
20652
20653   fi
20654
20655
20656   if test -n "$ERRNO_H"; then
20657     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
20658 $as_echo_n "checking for ENOLINK value... " >&6; }
20659 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
20660   $as_echo_n "(cached) " >&6
20661 else
20662
20663       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20664 /* end confdefs.h.  */
20665
20666 #include <errno.h>
20667 #ifdef ENOLINK
20668 yes
20669 #endif
20670
20671 _ACEOF
20672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20673   $EGREP "yes" >/dev/null 2>&1; then :
20674   gl_cv_header_errno_h_ENOLINK=yes
20675 else
20676   gl_cv_header_errno_h_ENOLINK=no
20677 fi
20678 rm -f conftest*
20679
20680       if test $gl_cv_header_errno_h_ENOLINK = no; then
20681         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20682 /* end confdefs.h.  */
20683
20684 #define _XOPEN_SOURCE_EXTENDED 1
20685 #include <errno.h>
20686 #ifdef ENOLINK
20687 yes
20688 #endif
20689
20690 _ACEOF
20691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20692   $EGREP "yes" >/dev/null 2>&1; then :
20693   gl_cv_header_errno_h_ENOLINK=hidden
20694 fi
20695 rm -f conftest*
20696
20697         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
20698                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
20699 #define _XOPEN_SOURCE_EXTENDED 1
20700 #include <errno.h>
20701 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
20702 #include <stdio.h>
20703 #include <stdlib.h>
20704 "; then :
20705
20706 fi
20707
20708         fi
20709       fi
20710
20711 fi
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
20713 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
20714     case $gl_cv_header_errno_h_ENOLINK in
20715       yes | no)
20716         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
20717         ;;
20718       *)
20719         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
20720         ;;
20721     esac
20722
20723
20724   fi
20725
20726
20727   if test -n "$ERRNO_H"; then
20728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
20729 $as_echo_n "checking for EOVERFLOW value... " >&6; }
20730 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
20731   $as_echo_n "(cached) " >&6
20732 else
20733
20734       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20735 /* end confdefs.h.  */
20736
20737 #include <errno.h>
20738 #ifdef EOVERFLOW
20739 yes
20740 #endif
20741
20742 _ACEOF
20743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20744   $EGREP "yes" >/dev/null 2>&1; then :
20745   gl_cv_header_errno_h_EOVERFLOW=yes
20746 else
20747   gl_cv_header_errno_h_EOVERFLOW=no
20748 fi
20749 rm -f conftest*
20750
20751       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
20752         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20753 /* end confdefs.h.  */
20754
20755 #define _XOPEN_SOURCE_EXTENDED 1
20756 #include <errno.h>
20757 #ifdef EOVERFLOW
20758 yes
20759 #endif
20760
20761 _ACEOF
20762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20763   $EGREP "yes" >/dev/null 2>&1; then :
20764   gl_cv_header_errno_h_EOVERFLOW=hidden
20765 fi
20766 rm -f conftest*
20767
20768         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
20769                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
20770 #define _XOPEN_SOURCE_EXTENDED 1
20771 #include <errno.h>
20772 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
20773 #include <stdio.h>
20774 #include <stdlib.h>
20775 "; then :
20776
20777 fi
20778
20779         fi
20780       fi
20781
20782 fi
20783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
20784 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
20785     case $gl_cv_header_errno_h_EOVERFLOW in
20786       yes | no)
20787         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
20788         ;;
20789       *)
20790         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
20791         ;;
20792     esac
20793
20794
20795   fi
20796
20797
20798 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
20799 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
20800   ac_have_decl=1
20801 else
20802   ac_have_decl=0
20803 fi
20804
20805 cat >>confdefs.h <<_ACEOF
20806 #define HAVE_DECL_STRERROR_R $ac_have_decl
20807 _ACEOF
20808
20809 for ac_func in strerror_r
20810 do :
20811   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
20812 if test "x$ac_cv_func_strerror_r" = xyes; then :
20813   cat >>confdefs.h <<_ACEOF
20814 #define HAVE_STRERROR_R 1
20815 _ACEOF
20816
20817 fi
20818 done
20819
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
20821 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
20822 if ${ac_cv_func_strerror_r_char_p+:} false; then :
20823   $as_echo_n "(cached) " >&6
20824 else
20825
20826     ac_cv_func_strerror_r_char_p=no
20827     if test $ac_cv_have_decl_strerror_r = yes; then
20828       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20829 /* end confdefs.h.  */
20830 $ac_includes_default
20831 int
20832 main ()
20833 {
20834
20835           char buf[100];
20836           char x = *strerror_r (0, buf, sizeof buf);
20837           char *p = strerror_r (0, buf, sizeof buf);
20838           return !p || x;
20839
20840   ;
20841   return 0;
20842 }
20843 _ACEOF
20844 if ac_fn_c_try_compile "$LINENO"; then :
20845   ac_cv_func_strerror_r_char_p=yes
20846 fi
20847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20848     else
20849       # strerror_r is not declared.  Choose between
20850       # systems that have relatively inaccessible declarations for the
20851       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
20852       # former has a strerror_r that returns char*, while the latter
20853       # has a strerror_r that returns `int'.
20854       # This test should segfault on the DEC system.
20855       if test "$cross_compiling" = yes; then :
20856   :
20857 else
20858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20859 /* end confdefs.h.  */
20860 $ac_includes_default
20861         extern char *strerror_r ();
20862 int
20863 main ()
20864 {
20865 char buf[100];
20866           char x = *strerror_r (0, buf, sizeof buf);
20867           return ! isalpha (x);
20868   ;
20869   return 0;
20870 }
20871 _ACEOF
20872 if ac_fn_c_try_run "$LINENO"; then :
20873   ac_cv_func_strerror_r_char_p=yes
20874 fi
20875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20876   conftest.$ac_objext conftest.beam conftest.$ac_ext
20877 fi
20878
20879     fi
20880
20881 fi
20882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
20883 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
20884 if test $ac_cv_func_strerror_r_char_p = yes; then
20885
20886 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
20887
20888 fi
20889
20890
20891   XGETTEXT_EXTRA_OPTIONS=
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908      if test $gl_cv_have_include_next = yes; then
20909        gl_cv_next_getopt_h='<'getopt.h'>'
20910      else
20911        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
20912 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
20913 if ${gl_cv_next_getopt_h+:} false; then :
20914   $as_echo_n "(cached) " >&6
20915 else
20916
20917              if test $ac_cv_header_getopt_h = yes; then
20918
20919
20920                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20921 /* end confdefs.h.  */
20922 #include <getopt.h>
20923
20924 _ACEOF
20925                                                                                                                         case "$host_os" in
20926                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
20927                  *)    gl_absname_cpp="$ac_cpp" ;;
20928                esac
20929
20930                case "$host_os" in
20931                  mingw*)
20932                                                                                                                                      gl_dirsep_regex='[/\\]'
20933                    ;;
20934                  *)
20935                    gl_dirsep_regex='\/'
20936                    ;;
20937                esac
20938                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20939
20940                gl_header_literal_regex=`echo 'getopt.h' \
20941                                         | sed -e "$gl_make_literal_regex_sed"`
20942                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20943                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20944                    s|^/[^/]|//&|
20945                    p
20946                    q
20947                  }'
20948                                                             gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20949                       sed -n "$gl_absolute_header_sed"`'"'
20950           else
20951                gl_cv_next_getopt_h='<'getopt.h'>'
20952              fi
20953
20954
20955 fi
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
20957 $as_echo "$gl_cv_next_getopt_h" >&6; }
20958      fi
20959      NEXT_GETOPT_H=$gl_cv_next_getopt_h
20960
20961      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20962        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20963        gl_next_as_first_directive='<'getopt.h'>'
20964      else
20965        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20966        gl_next_as_first_directive=$gl_cv_next_getopt_h
20967      fi
20968      NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
20969
20970
20971
20972
20973   if test $ac_cv_header_getopt_h = yes; then
20974     HAVE_GETOPT_H=1
20975   else
20976     HAVE_GETOPT_H=0
20977   fi
20978
20979
20980   gl_replace_getopt=
20981
20982     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
20983     for ac_header in getopt.h
20984 do :
20985   ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
20986 if test "x$ac_cv_header_getopt_h" = xyes; then :
20987   cat >>confdefs.h <<_ACEOF
20988 #define HAVE_GETOPT_H 1
20989 _ACEOF
20990
20991 else
20992   gl_replace_getopt=yes
20993 fi
20994
20995 done
20996
20997   fi
20998
20999     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21000     for ac_func in getopt_long_only
21001 do :
21002   ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
21003 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
21004   cat >>confdefs.h <<_ACEOF
21005 #define HAVE_GETOPT_LONG_ONLY 1
21006 _ACEOF
21007
21008 else
21009   gl_replace_getopt=yes
21010 fi
21011 done
21012
21013   fi
21014
21015           if test -z "$gl_replace_getopt"; then
21016     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
21017 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
21018 if ${gl_cv_func_getopt_posix+:} false; then :
21019   $as_echo_n "(cached) " >&6
21020 else
21021
21022                                                 if test $cross_compiling = no; then
21023                               if test "$cross_compiling" = yes; then :
21024   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21026 as_fn_error $? "cannot run test program while cross compiling
21027 See \`config.log' for more details" "$LINENO" 5; }
21028 else
21029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21030 /* end confdefs.h.  */
21031
21032 #include <unistd.h>
21033 #include <stdlib.h>
21034 #include <string.h>
21035
21036 int
21037 main ()
21038 {
21039   static char program[] = "program";
21040   static char a[] = "-a";
21041   static char foo[] = "foo";
21042   static char bar[] = "bar";
21043   char *argv[] = { program, a, foo, bar, NULL };
21044   int c;
21045
21046   c = getopt (4, argv, "ab");
21047   if (!(c == 'a'))
21048     return 1;
21049   c = getopt (4, argv, "ab");
21050   if (!(c == -1))
21051     return 2;
21052   if (!(optind == 2))
21053     return 3;
21054   return 0;
21055 }
21056
21057 _ACEOF
21058 if ac_fn_c_try_run "$LINENO"; then :
21059   gl_cv_func_getopt_posix=maybe
21060 else
21061   gl_cv_func_getopt_posix=no
21062 fi
21063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21064   conftest.$ac_objext conftest.beam conftest.$ac_ext
21065 fi
21066
21067           if test $gl_cv_func_getopt_posix = maybe; then
21068                                     if test "$cross_compiling" = yes; then :
21069   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21071 as_fn_error $? "cannot run test program while cross compiling
21072 See \`config.log' for more details" "$LINENO" 5; }
21073 else
21074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21075 /* end confdefs.h.  */
21076
21077 #include <unistd.h>
21078 #include <stdlib.h>
21079 #include <string.h>
21080
21081 int
21082 main ()
21083 {
21084   static char program[] = "program";
21085   static char donald[] = "donald";
21086   static char p[] = "-p";
21087   static char billy[] = "billy";
21088   static char duck[] = "duck";
21089   static char a[] = "-a";
21090   static char bar[] = "bar";
21091   char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
21092   int c;
21093
21094   c = getopt (7, argv, "+abp:q:");
21095   if (!(c == -1))
21096     return 4;
21097   if (!(strcmp (argv[0], "program") == 0))
21098     return 5;
21099   if (!(strcmp (argv[1], "donald") == 0))
21100     return 6;
21101   if (!(strcmp (argv[2], "-p") == 0))
21102     return 7;
21103   if (!(strcmp (argv[3], "billy") == 0))
21104     return 8;
21105   if (!(strcmp (argv[4], "duck") == 0))
21106     return 9;
21107   if (!(strcmp (argv[5], "-a") == 0))
21108     return 10;
21109   if (!(strcmp (argv[6], "bar") == 0))
21110     return 11;
21111   if (!(optind == 1))
21112     return 12;
21113   return 0;
21114 }
21115
21116 _ACEOF
21117 if ac_fn_c_try_run "$LINENO"; then :
21118   gl_cv_func_getopt_posix=maybe
21119 else
21120   gl_cv_func_getopt_posix=no
21121 fi
21122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21123   conftest.$ac_objext conftest.beam conftest.$ac_ext
21124 fi
21125
21126           fi
21127           if test $gl_cv_func_getopt_posix = maybe; then
21128                         if test "$cross_compiling" = yes; then :
21129   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21131 as_fn_error $? "cannot run test program while cross compiling
21132 See \`config.log' for more details" "$LINENO" 5; }
21133 else
21134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21135 /* end confdefs.h.  */
21136
21137 #include <unistd.h>
21138 #include <stdlib.h>
21139 #include <string.h>
21140
21141 int
21142 main ()
21143 {
21144   static char program[] = "program";
21145   static char ab[] = "-ab";
21146   char *argv[3] = { program, ab, NULL };
21147   if (getopt (2, argv, "ab:") != 'a')
21148     return 13;
21149   if (getopt (2, argv, "ab:") != '?')
21150     return 14;
21151   if (optopt != 'b')
21152     return 15;
21153   if (optind != 2)
21154     return 16;
21155   return 0;
21156 }
21157
21158 _ACEOF
21159 if ac_fn_c_try_run "$LINENO"; then :
21160   gl_cv_func_getopt_posix=yes
21161 else
21162   gl_cv_func_getopt_posix=no
21163 fi
21164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21165   conftest.$ac_objext conftest.beam conftest.$ac_ext
21166 fi
21167
21168           fi
21169         else
21170           case "$host_os" in
21171             darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
21172             *)                       gl_cv_func_getopt_posix="guessing yes";;
21173           esac
21174         fi
21175
21176 fi
21177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
21178 $as_echo "$gl_cv_func_getopt_posix" >&6; }
21179     case "$gl_cv_func_getopt_posix" in
21180       *no) gl_replace_getopt=yes ;;
21181     esac
21182   fi
21183
21184   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
21185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
21186 $as_echo_n "checking for working GNU getopt function... " >&6; }
21187 if ${gl_cv_func_getopt_gnu+:} false; then :
21188   $as_echo_n "(cached) " >&6
21189 else
21190   # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
21191        # optstring is necessary for programs like m4 that have POSIX-mandated
21192        # semantics for supporting options interspersed with files.
21193        # Also, since getopt_long is a GNU extension, we require optind=0.
21194        # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
21195        # so take care to revert to the correct (non-)export state.
21196        gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
21197        case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
21198          xx) gl_had_POSIXLY_CORRECT=exported ;;
21199          x)  gl_had_POSIXLY_CORRECT=yes      ;;
21200          *)  gl_had_POSIXLY_CORRECT=         ;;
21201        esac
21202        POSIXLY_CORRECT=1
21203        export POSIXLY_CORRECT
21204        if test "$cross_compiling" = yes; then :
21205            gl_cv_func_getopt_gnu="guessing no"
21206
21207 else
21208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21209 /* end confdefs.h.  */
21210 #include <getopt.h>
21211                            #include <stddef.h>
21212                            #include <string.h>
21213
21214 #include <stdlib.h>
21215 #if defined __MACH__ && defined __APPLE__
21216 /* Avoid a crash on Mac OS X.  */
21217 #include <mach/mach.h>
21218 #include <mach/mach_error.h>
21219 #include <mach/thread_status.h>
21220 #include <mach/exception.h>
21221 #include <mach/task.h>
21222 #include <pthread.h>
21223 /* The exception port on which our thread listens.  */
21224 static mach_port_t our_exception_port;
21225 /* The main function of the thread listening for exceptions of type
21226    EXC_BAD_ACCESS.  */
21227 static void *
21228 mach_exception_thread (void *arg)
21229 {
21230   /* Buffer for a message to be received.  */
21231   struct {
21232     mach_msg_header_t head;
21233     mach_msg_body_t msgh_body;
21234     char data[1024];
21235   } msg;
21236   mach_msg_return_t retval;
21237   /* Wait for a message on the exception port.  */
21238   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
21239                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
21240   if (retval != MACH_MSG_SUCCESS)
21241     abort ();
21242   exit (1);
21243 }
21244 static void
21245 nocrash_init (void)
21246 {
21247   mach_port_t self = mach_task_self ();
21248   /* Allocate a port on which the thread shall listen for exceptions.  */
21249   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
21250       == KERN_SUCCESS) {
21251     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
21252     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
21253                                 MACH_MSG_TYPE_MAKE_SEND)
21254         == KERN_SUCCESS) {
21255       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
21256          for us.  */
21257       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
21258       /* Create the thread listening on the exception port.  */
21259       pthread_attr_t attr;
21260       pthread_t thread;
21261       if (pthread_attr_init (&attr) == 0
21262           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
21263           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
21264         pthread_attr_destroy (&attr);
21265         /* Replace the exception port info for these exceptions with our own.
21266            Note that we replace the exception port for the entire task, not only
21267            for a particular thread.  This has the effect that when our exception
21268            port gets the message, the thread specific exception port has already
21269            been asked, and we don't need to bother about it.
21270            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
21271         task_set_exception_ports (self, mask, our_exception_port,
21272                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
21273       }
21274     }
21275   }
21276 }
21277 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
21278 /* Avoid a crash on native Windows.  */
21279 #define WIN32_LEAN_AND_MEAN
21280 #include <windows.h>
21281 #include <winerror.h>
21282 static LONG WINAPI
21283 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
21284 {
21285   switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
21286     {
21287     case EXCEPTION_ACCESS_VIOLATION:
21288     case EXCEPTION_IN_PAGE_ERROR:
21289     case EXCEPTION_STACK_OVERFLOW:
21290     case EXCEPTION_GUARD_PAGE:
21291     case EXCEPTION_PRIV_INSTRUCTION:
21292     case EXCEPTION_ILLEGAL_INSTRUCTION:
21293     case EXCEPTION_DATATYPE_MISALIGNMENT:
21294     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
21295     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
21296       exit (1);
21297     }
21298   return EXCEPTION_CONTINUE_SEARCH;
21299 }
21300 static void
21301 nocrash_init (void)
21302 {
21303   SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
21304 }
21305 #else
21306 /* Avoid a crash on POSIX systems.  */
21307 #include <signal.h>
21308 /* A POSIX signal handler.  */
21309 static void
21310 exception_handler (int sig)
21311 {
21312   exit (1);
21313 }
21314 static void
21315 nocrash_init (void)
21316 {
21317 #ifdef SIGSEGV
21318   signal (SIGSEGV, exception_handler);
21319 #endif
21320 #ifdef SIGBUS
21321   signal (SIGBUS, exception_handler);
21322 #endif
21323 }
21324 #endif
21325
21326
21327 int
21328 main ()
21329 {
21330
21331              int result = 0;
21332
21333              nocrash_init();
21334
21335              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
21336                 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
21337                 OSF/1 5.1, Solaris 10.  */
21338              {
21339                static char conftest[] = "conftest";
21340                static char plus[] = "-+";
21341                char *argv[3] = { conftest, plus, NULL };
21342                opterr = 0;
21343                if (getopt (2, argv, "+a") != '?')
21344                  result |= 1;
21345              }
21346              /* This code succeeds on glibc 2.8, mingw,
21347                 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
21348                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
21349              {
21350                static char program[] = "program";
21351                static char p[] = "-p";
21352                static char foo[] = "foo";
21353                static char bar[] = "bar";
21354                char *argv[] = { program, p, foo, bar, NULL };
21355
21356                optind = 1;
21357                if (getopt (4, argv, "p::") != 'p')
21358                  result |= 2;
21359                else if (optarg != NULL)
21360                  result |= 4;
21361                else if (getopt (4, argv, "p::") != -1)
21362                  result |= 6;
21363                else if (optind != 2)
21364                  result |= 8;
21365              }
21366              /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
21367              {
21368                static char program[] = "program";
21369                static char foo[] = "foo";
21370                static char p[] = "-p";
21371                char *argv[] = { program, foo, p, NULL };
21372                optind = 0;
21373                if (getopt (3, argv, "-p") != 1)
21374                  result |= 16;
21375                else if (getopt (3, argv, "-p") != 'p')
21376                  result |= 16;
21377              }
21378              /* This code fails on glibc 2.11.  */
21379              {
21380                static char program[] = "program";
21381                static char b[] = "-b";
21382                static char a[] = "-a";
21383                char *argv[] = { program, b, a, NULL };
21384                optind = opterr = 0;
21385                if (getopt (3, argv, "+:a:b") != 'b')
21386                  result |= 32;
21387                else if (getopt (3, argv, "+:a:b") != ':')
21388                  result |= 32;
21389              }
21390              /* This code dumps core on glibc 2.14.  */
21391              {
21392                static char program[] = "program";
21393                static char w[] = "-W";
21394                static char dummy[] = "dummy";
21395                char *argv[] = { program, w, dummy, NULL };
21396                optind = opterr = 1;
21397                if (getopt (3, argv, "W;") != 'W')
21398                  result |= 64;
21399              }
21400              return result;
21401
21402   ;
21403   return 0;
21404 }
21405 _ACEOF
21406 if ac_fn_c_try_run "$LINENO"; then :
21407   gl_cv_func_getopt_gnu=yes
21408 else
21409   gl_cv_func_getopt_gnu=no
21410 fi
21411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21412   conftest.$ac_objext conftest.beam conftest.$ac_ext
21413 fi
21414
21415        case $gl_had_POSIXLY_CORRECT in
21416          exported) ;;
21417          yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
21418          *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
21419        esac
21420
21421 fi
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
21423 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
21424     if test "$gl_cv_func_getopt_gnu" != yes; then
21425       gl_replace_getopt=yes
21426     else
21427       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
21428 $as_echo_n "checking for working GNU getopt_long function... " >&6; }
21429 if ${gl_cv_func_getopt_long_gnu+:} false; then :
21430   $as_echo_n "(cached) " >&6
21431 else
21432   if test "$cross_compiling" = yes; then :
21433               case "$host_os" in
21434               openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
21435               *)        gl_cv_func_getopt_long_gnu="guessing yes";;
21436             esac
21437
21438 else
21439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21440 /* end confdefs.h.  */
21441 #include <getopt.h>
21442                 #include <stddef.h>
21443                 #include <string.h>
21444
21445 int
21446 main ()
21447 {
21448 static const struct option long_options[] =
21449                   {
21450                     { "xtremely-",no_argument,       NULL, 1003 },
21451                     { "xtra",     no_argument,       NULL, 1001 },
21452                     { "xtreme",   no_argument,       NULL, 1002 },
21453                     { "xtremely", no_argument,       NULL, 1003 },
21454                     { NULL,       0,                 NULL, 0 }
21455                   };
21456                 /* This code fails on OpenBSD 5.0.  */
21457                 {
21458                   static char program[] = "program";
21459                   static char xtremel[] = "--xtremel";
21460                   char *argv[] = { program, xtremel, NULL };
21461                   int option_index;
21462                   optind = 1; opterr = 0;
21463                   if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
21464                     return 1;
21465                 }
21466                 return 0;
21467
21468   ;
21469   return 0;
21470 }
21471 _ACEOF
21472 if ac_fn_c_try_run "$LINENO"; then :
21473   gl_cv_func_getopt_long_gnu=yes
21474 else
21475   gl_cv_func_getopt_long_gnu=no
21476 fi
21477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21478   conftest.$ac_objext conftest.beam conftest.$ac_ext
21479 fi
21480
21481
21482 fi
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
21484 $as_echo "$gl_cv_func_getopt_long_gnu" >&6; }
21485       case "$gl_cv_func_getopt_long_gnu" in
21486         *yes) ;;
21487         *) gl_replace_getopt=yes ;;
21488       esac
21489     fi
21490   fi
21491
21492
21493
21494
21495
21496
21497     REPLACE_GETOPT=0
21498     if test -n "$gl_replace_getopt"; then
21499       REPLACE_GETOPT=1
21500     fi
21501
21502   if test $REPLACE_GETOPT = 1; then
21503
21504   GETOPT_H=getopt.h
21505
21506 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
21507
21508
21509
21510   fi
21511
21512 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
21513 if test "x$ac_cv_have_decl_getenv" = xyes; then :
21514   ac_have_decl=1
21515 else
21516   ac_have_decl=0
21517 fi
21518
21519 cat >>confdefs.h <<_ACEOF
21520 #define HAVE_DECL_GETENV $ac_have_decl
21521 _ACEOF
21522
21523
21524
21525
21526   GNULIB_ISWBLANK=0;
21527   GNULIB_WCTYPE=0;
21528   GNULIB_ISWCTYPE=0;
21529   GNULIB_WCTRANS=0;
21530   GNULIB_TOWCTRANS=0;
21531     HAVE_ISWBLANK=1;
21532   HAVE_WCTYPE_T=1;
21533   HAVE_WCTRANS_T=1;
21534   REPLACE_ISWBLANK=0;
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545   if test $ac_cv_func_iswcntrl = yes; then
21546     HAVE_ISWCNTRL=1
21547   else
21548     HAVE_ISWCNTRL=0
21549   fi
21550
21551
21552
21553   if test $gt_cv_c_wint_t = yes; then
21554     HAVE_WINT_T=1
21555   else
21556     HAVE_WINT_T=0
21557   fi
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
21569      if test $gl_cv_have_include_next = yes; then
21570        gl_cv_next_wctype_h='<'wctype.h'>'
21571      else
21572        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
21573 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
21574 if ${gl_cv_next_wctype_h+:} false; then :
21575   $as_echo_n "(cached) " >&6
21576 else
21577
21578              if test $ac_cv_header_wctype_h = yes; then
21579
21580
21581                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21582 /* end confdefs.h.  */
21583 #include <wctype.h>
21584
21585 _ACEOF
21586                                                                                                                         case "$host_os" in
21587                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
21588                  *)    gl_absname_cpp="$ac_cpp" ;;
21589                esac
21590
21591                case "$host_os" in
21592                  mingw*)
21593                                                                                                                                      gl_dirsep_regex='[/\\]'
21594                    ;;
21595                  *)
21596                    gl_dirsep_regex='\/'
21597                    ;;
21598                esac
21599                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21600
21601                gl_header_literal_regex=`echo 'wctype.h' \
21602                                         | sed -e "$gl_make_literal_regex_sed"`
21603                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21604                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21605                    s|^/[^/]|//&|
21606                    p
21607                    q
21608                  }'
21609                                                             gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21610                       sed -n "$gl_absolute_header_sed"`'"'
21611           else
21612                gl_cv_next_wctype_h='<'wctype.h'>'
21613              fi
21614
21615
21616 fi
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
21618 $as_echo "$gl_cv_next_wctype_h" >&6; }
21619      fi
21620      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
21621
21622      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21623        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21624        gl_next_as_first_directive='<'wctype.h'>'
21625      else
21626        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21627        gl_next_as_first_directive=$gl_cv_next_wctype_h
21628      fi
21629      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
21630
21631
21632
21633
21634   if test $ac_cv_header_wctype_h = yes; then
21635     if test $ac_cv_func_iswcntrl = yes; then
21636                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
21637 $as_echo_n "checking whether iswcntrl works... " >&6; }
21638 if ${gl_cv_func_iswcntrl_works+:} false; then :
21639   $as_echo_n "(cached) " >&6
21640 else
21641
21642           if test "$cross_compiling" = yes; then :
21643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21644 /* end confdefs.h.  */
21645 #include <stdlib.h>
21646                           #if __GNU_LIBRARY__ == 1
21647                           Linux libc5 i18n is broken.
21648                           #endif
21649 int
21650 main ()
21651 {
21652
21653   ;
21654   return 0;
21655 }
21656 _ACEOF
21657 if ac_fn_c_try_compile "$LINENO"; then :
21658   gl_cv_func_iswcntrl_works="guessing yes"
21659 else
21660   gl_cv_func_iswcntrl_works="guessing no"
21661 fi
21662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21663
21664 else
21665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21666 /* end confdefs.h.  */
21667
21668                /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
21669                   included before <wchar.h>.
21670                   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
21671                   must be included before <wchar.h>.  */
21672                #include <stddef.h>
21673                #include <stdio.h>
21674                #include <time.h>
21675                #include <wchar.h>
21676                #include <wctype.h>
21677                int main () { return iswprint ('x') == 0; }
21678
21679 _ACEOF
21680 if ac_fn_c_try_run "$LINENO"; then :
21681   gl_cv_func_iswcntrl_works=yes
21682 else
21683   gl_cv_func_iswcntrl_works=no
21684 fi
21685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21686   conftest.$ac_objext conftest.beam conftest.$ac_ext
21687 fi
21688
21689
21690 fi
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
21692 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
21693     fi
21694     HAVE_WCTYPE_H=1
21695   else
21696     HAVE_WCTYPE_H=0
21697   fi
21698
21699
21700   case "$gl_cv_func_iswcntrl_works" in
21701     *yes) REPLACE_ISWCNTRL=0 ;;
21702     *)    REPLACE_ISWCNTRL=1 ;;
21703   esac
21704
21705
21706   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
21707         :
21708   fi
21709
21710   if test $REPLACE_ISWCNTRL = 1; then
21711     REPLACE_TOWLOWER=1
21712   else
21713     for ac_func in towlower
21714 do :
21715   ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
21716 if test "x$ac_cv_func_towlower" = xyes; then :
21717   cat >>confdefs.h <<_ACEOF
21718 #define HAVE_TOWLOWER 1
21719 _ACEOF
21720
21721 fi
21722 done
21723
21724     if test $ac_cv_func_towlower = yes; then
21725       REPLACE_TOWLOWER=0
21726     else
21727       ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
21728              included before <wchar.h>.
21729              BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
21730              must be included before <wchar.h>.  */
21731           #include <stddef.h>
21732           #include <stdio.h>
21733           #include <time.h>
21734           #include <wchar.h>
21735           #if HAVE_WCTYPE_H
21736           # include <wctype.h>
21737           #endif
21738
21739 "
21740 if test "x$ac_cv_have_decl_towlower" = xyes; then :
21741   ac_have_decl=1
21742 else
21743   ac_have_decl=0
21744 fi
21745
21746 cat >>confdefs.h <<_ACEOF
21747 #define HAVE_DECL_TOWLOWER $ac_have_decl
21748 _ACEOF
21749
21750       if test $ac_cv_have_decl_towlower = yes; then
21751                                 REPLACE_TOWLOWER=1
21752       else
21753         REPLACE_TOWLOWER=0
21754       fi
21755     fi
21756   fi
21757
21758
21759   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
21760         :
21761   fi
21762
21763           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
21764 $as_echo_n "checking for wctype_t... " >&6; }
21765 if ${gl_cv_type_wctype_t+:} false; then :
21766   $as_echo_n "(cached) " >&6
21767 else
21768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21769 /* end confdefs.h.  */
21770 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
21771                included before <wchar.h>.
21772                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
21773                must be included before <wchar.h>.  */
21774             #include <stddef.h>
21775             #include <stdio.h>
21776             #include <time.h>
21777             #include <wchar.h>
21778             #if HAVE_WCTYPE_H
21779             # include <wctype.h>
21780             #endif
21781             wctype_t a;
21782
21783 int
21784 main ()
21785 {
21786
21787   ;
21788   return 0;
21789 }
21790 _ACEOF
21791 if ac_fn_c_try_compile "$LINENO"; then :
21792   gl_cv_type_wctype_t=yes
21793 else
21794   gl_cv_type_wctype_t=no
21795 fi
21796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21797
21798 fi
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
21800 $as_echo "$gl_cv_type_wctype_t" >&6; }
21801   if test $gl_cv_type_wctype_t = no; then
21802     HAVE_WCTYPE_T=0
21803   fi
21804
21805       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
21806 $as_echo_n "checking for wctrans_t... " >&6; }
21807 if ${gl_cv_type_wctrans_t+:} false; then :
21808   $as_echo_n "(cached) " >&6
21809 else
21810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21811 /* end confdefs.h.  */
21812 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
21813                included before <wchar.h>.
21814                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
21815                must be included before <wchar.h>.  */
21816             #include <stddef.h>
21817             #include <stdio.h>
21818             #include <time.h>
21819             #include <wchar.h>
21820             #include <wctype.h>
21821             wctrans_t a;
21822
21823 int
21824 main ()
21825 {
21826
21827   ;
21828   return 0;
21829 }
21830 _ACEOF
21831 if ac_fn_c_try_compile "$LINENO"; then :
21832   gl_cv_type_wctrans_t=yes
21833 else
21834   gl_cv_type_wctrans_t=no
21835 fi
21836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21837
21838 fi
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
21840 $as_echo "$gl_cv_type_wctrans_t" >&6; }
21841   if test $gl_cv_type_wctrans_t = no; then
21842     HAVE_WCTRANS_T=0
21843   fi
21844
21845
21846     for gl_func in wctype iswctype wctrans towctrans     ; do
21847     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21848     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
21849 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21850 if eval \${$as_gl_Symbol+:} false; then :
21851   $as_echo_n "(cached) " >&6
21852 else
21853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21854 /* end confdefs.h.  */
21855
21856 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
21857    <wchar.h>.
21858    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
21859    included before <wchar.h>.  */
21860 #if !(defined __GLIBC__ && !defined __UCLIBC__)
21861 # include <stddef.h>
21862 # include <stdio.h>
21863 # include <time.h>
21864 # include <wchar.h>
21865 #endif
21866 #include <wctype.h>
21867
21868 int
21869 main ()
21870 {
21871 #undef $gl_func
21872   (void) $gl_func;
21873   ;
21874   return 0;
21875 }
21876 _ACEOF
21877 if ac_fn_c_try_compile "$LINENO"; then :
21878   eval "$as_gl_Symbol=yes"
21879 else
21880   eval "$as_gl_Symbol=no"
21881 fi
21882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21883 fi
21884 eval ac_res=\$$as_gl_Symbol
21885                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21886 $as_echo "$ac_res" >&6; }
21887     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
21888   cat >>confdefs.h <<_ACEOF
21889 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21890 _ACEOF
21891
21892                      eval ac_cv_have_decl_$gl_func=yes
21893 fi
21894       done
21895
21896
21897
21898
21899
21900
21901   case "$host_os" in
21902     mingw*)
21903                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
21904 $as_echo_n "checking for 64-bit off_t... " >&6; }
21905 if ${gl_cv_type_off_t_64+:} false; then :
21906   $as_echo_n "(cached) " >&6
21907 else
21908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21909 /* end confdefs.h.  */
21910 #include <sys/types.h>
21911                 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
21912
21913 int
21914 main ()
21915 {
21916
21917   ;
21918   return 0;
21919 }
21920 _ACEOF
21921 if ac_fn_c_try_compile "$LINENO"; then :
21922   gl_cv_type_off_t_64=yes
21923 else
21924   gl_cv_type_off_t_64=no
21925 fi
21926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21927
21928 fi
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
21930 $as_echo "$gl_cv_type_off_t_64" >&6; }
21931       if test $gl_cv_type_off_t_64 = no; then
21932         WINDOWS_64_BIT_OFF_T=1
21933       else
21934         WINDOWS_64_BIT_OFF_T=0
21935       fi
21936                   WINDOWS_64_BIT_ST_SIZE=1
21937       ;;
21938     *)
21939                                                       WINDOWS_64_BIT_OFF_T=0
21940       WINDOWS_64_BIT_ST_SIZE=0
21941       ;;
21942   esac
21943
21944 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
21945 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
21946   ac_have_decl=1
21947 else
21948   ac_have_decl=0
21949 fi
21950
21951 cat >>confdefs.h <<_ACEOF
21952 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
21953 _ACEOF
21954
21955
21956   GNULIB_LOCALECONV=0;
21957   GNULIB_SETLOCALE=0;
21958   GNULIB_DUPLOCALE=0;
21959     HAVE_DUPLOCALE=1;
21960   REPLACE_LOCALECONV=0;
21961   REPLACE_SETLOCALE=0;
21962   REPLACE_DUPLOCALE=0;
21963   REPLACE_STRUCT_LCONV=0;
21964
21965
21966     REPLACE_NULL=0;
21967   HAVE_WCHAR_T=1;
21968
21969
21970
21971
21972   STDDEF_H=
21973   if test $gt_cv_c_wchar_t = no; then
21974     HAVE_WCHAR_T=0
21975     STDDEF_H=stddef.h
21976   fi
21977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
21978 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
21979 if ${gl_cv_decl_null_works+:} false; then :
21980   $as_echo_n "(cached) " >&6
21981 else
21982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21983 /* end confdefs.h.  */
21984 #include <stddef.h>
21985       int test[2 * (sizeof NULL == sizeof (void *)) -1];
21986
21987 int
21988 main ()
21989 {
21990
21991   ;
21992   return 0;
21993 }
21994 _ACEOF
21995 if ac_fn_c_try_compile "$LINENO"; then :
21996   gl_cv_decl_null_works=yes
21997 else
21998   gl_cv_decl_null_works=no
21999 fi
22000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22001 fi
22002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
22003 $as_echo "$gl_cv_decl_null_works" >&6; }
22004   if test $gl_cv_decl_null_works = no; then
22005     REPLACE_NULL=1
22006     STDDEF_H=stddef.h
22007   fi
22008
22009    if test -n "$STDDEF_H"; then
22010   GL_GENERATE_STDDEF_H_TRUE=
22011   GL_GENERATE_STDDEF_H_FALSE='#'
22012 else
22013   GL_GENERATE_STDDEF_H_TRUE='#'
22014   GL_GENERATE_STDDEF_H_FALSE=
22015 fi
22016
22017   if test -n "$STDDEF_H"; then
22018
22019
22020
22021
22022
22023
22024
22025
22026      if test $gl_cv_have_include_next = yes; then
22027        gl_cv_next_stddef_h='<'stddef.h'>'
22028      else
22029        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
22030 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
22031 if ${gl_cv_next_stddef_h+:} false; then :
22032   $as_echo_n "(cached) " >&6
22033 else
22034
22035                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22036 /* end confdefs.h.  */
22037 #include <stddef.h>
22038
22039 _ACEOF
22040                                                                                                                         case "$host_os" in
22041                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
22042                  *)    gl_absname_cpp="$ac_cpp" ;;
22043                esac
22044
22045                case "$host_os" in
22046                  mingw*)
22047                                                                                                                                      gl_dirsep_regex='[/\\]'
22048                    ;;
22049                  *)
22050                    gl_dirsep_regex='\/'
22051                    ;;
22052                esac
22053                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
22054
22055                gl_header_literal_regex=`echo 'stddef.h' \
22056                                         | sed -e "$gl_make_literal_regex_sed"`
22057                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
22058                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
22059                    s|^/[^/]|//&|
22060                    p
22061                    q
22062                  }'
22063                                                             gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
22064                       sed -n "$gl_absolute_header_sed"`'"'
22065
22066
22067 fi
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
22069 $as_echo "$gl_cv_next_stddef_h" >&6; }
22070      fi
22071      NEXT_STDDEF_H=$gl_cv_next_stddef_h
22072
22073      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
22074        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
22075        gl_next_as_first_directive='<'stddef.h'>'
22076      else
22077        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
22078        gl_next_as_first_directive=$gl_cv_next_stddef_h
22079      fi
22080      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
22081
22082
22083
22084
22085   fi
22086
22087
22088
22089
22090      GNULIB_FCHMODAT=0;
22091   GNULIB_FSTAT=0;
22092   GNULIB_FSTATAT=0;
22093   GNULIB_FUTIMENS=0;
22094   GNULIB_LCHMOD=0;
22095   GNULIB_LSTAT=0;
22096   GNULIB_MKDIRAT=0;
22097   GNULIB_MKFIFO=0;
22098   GNULIB_MKFIFOAT=0;
22099   GNULIB_MKNOD=0;
22100   GNULIB_MKNODAT=0;
22101   GNULIB_STAT=0;
22102   GNULIB_UTIMENSAT=0;
22103     HAVE_FCHMODAT=1;
22104   HAVE_FSTATAT=1;
22105   HAVE_FUTIMENS=1;
22106   HAVE_LCHMOD=1;
22107   HAVE_LSTAT=1;
22108   HAVE_MKDIRAT=1;
22109   HAVE_MKFIFO=1;
22110   HAVE_MKFIFOAT=1;
22111   HAVE_MKNOD=1;
22112   HAVE_MKNODAT=1;
22113   HAVE_UTIMENSAT=1;
22114   REPLACE_FSTAT=0;
22115   REPLACE_FSTATAT=0;
22116   REPLACE_FUTIMENS=0;
22117   REPLACE_LSTAT=0;
22118   REPLACE_MKDIR=0;
22119   REPLACE_MKFIFO=0;
22120   REPLACE_MKNOD=0;
22121   REPLACE_STAT=0;
22122   REPLACE_UTIMENSAT=0;
22123
22124
22125
22126
22127       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
22128 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
22129 if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
22130   $as_echo_n "(cached) " >&6
22131 else
22132   rm -f conftest.sym conftest.file
22133      echo >conftest.file
22134      if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
22135        if test "$cross_compiling" = yes; then :
22136   case "$host_os" in
22137                     # Guess yes on glibc systems.
22138             *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
22139                     # If we don't know, assume the worst.
22140             *)      gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
22141           esac
22142
22143 else
22144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22145 /* end confdefs.h.  */
22146 $ac_includes_default
22147 int
22148 main ()
22149 {
22150 struct stat sbuf;
22151               /* Linux will dereference the symlink and fail, as required by
22152                  POSIX.  That is better in the sense that it means we will not
22153                  have to compile and use the lstat wrapper.  */
22154               return lstat ("conftest.sym/", &sbuf) == 0;
22155
22156   ;
22157   return 0;
22158 }
22159 _ACEOF
22160 if ac_fn_c_try_run "$LINENO"; then :
22161   gl_cv_func_lstat_dereferences_slashed_symlink=yes
22162 else
22163   gl_cv_func_lstat_dereferences_slashed_symlink=no
22164 fi
22165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22166   conftest.$ac_objext conftest.beam conftest.$ac_ext
22167 fi
22168
22169      else
22170        # If the 'ln -s' command failed, then we probably don't even
22171        # have an lstat function.
22172        gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
22173      fi
22174      rm -f conftest.sym conftest.file
22175
22176 fi
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
22178 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
22179   case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
22180     *yes)
22181
22182 cat >>confdefs.h <<_ACEOF
22183 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
22184 _ACEOF
22185
22186       ;;
22187   esac
22188
22189
22190   for ac_header in stdlib.h
22191 do :
22192   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
22193 if test "x$ac_cv_header_stdlib_h" = xyes; then :
22194   cat >>confdefs.h <<_ACEOF
22195 #define HAVE_STDLIB_H 1
22196 _ACEOF
22197
22198 fi
22199
22200 done
22201
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
22203 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
22204 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
22205   $as_echo_n "(cached) " >&6
22206 else
22207   if test "$cross_compiling" = yes; then :
22208   ac_cv_func_malloc_0_nonnull=no
22209 else
22210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22211 /* end confdefs.h.  */
22212 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
22213 # include <stdlib.h>
22214 #else
22215 char *malloc ();
22216 #endif
22217
22218 int
22219 main ()
22220 {
22221 return ! malloc (0);
22222   ;
22223   return 0;
22224 }
22225 _ACEOF
22226 if ac_fn_c_try_run "$LINENO"; then :
22227   ac_cv_func_malloc_0_nonnull=yes
22228 else
22229   ac_cv_func_malloc_0_nonnull=no
22230 fi
22231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22232   conftest.$ac_objext conftest.beam conftest.$ac_ext
22233 fi
22234
22235 fi
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
22237 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
22238 if test $ac_cv_func_malloc_0_nonnull = yes; then :
22239   gl_cv_func_malloc_0_nonnull=1
22240 else
22241   gl_cv_func_malloc_0_nonnull=0
22242 fi
22243
22244
22245 cat >>confdefs.h <<_ACEOF
22246 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
22247 _ACEOF
22248
22249
22250
22251
22252    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22253 $as_echo_n "checking for mbstate_t... " >&6; }
22254 if ${ac_cv_type_mbstate_t+:} false; then :
22255   $as_echo_n "(cached) " >&6
22256 else
22257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22258 /* end confdefs.h.  */
22259 $ac_includes_default
22260 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22261    <wchar.h>.
22262    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22263    included before <wchar.h>.  */
22264 #include <stddef.h>
22265 #include <stdio.h>
22266 #include <time.h>
22267 #include <wchar.h>
22268 int
22269 main ()
22270 {
22271 mbstate_t x; return sizeof x;
22272   ;
22273   return 0;
22274 }
22275 _ACEOF
22276 if ac_fn_c_try_compile "$LINENO"; then :
22277   ac_cv_type_mbstate_t=yes
22278 else
22279   ac_cv_type_mbstate_t=no
22280 fi
22281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22282 fi
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22284 $as_echo "$ac_cv_type_mbstate_t" >&6; }
22285    if test $ac_cv_type_mbstate_t = yes; then
22286
22287 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22288
22289    else
22290
22291 $as_echo "#define mbstate_t int" >>confdefs.h
22292
22293    fi
22294
22295
22296   GNULIB_BTOWC=0;
22297   GNULIB_WCTOB=0;
22298   GNULIB_MBSINIT=0;
22299   GNULIB_MBRTOWC=0;
22300   GNULIB_MBRLEN=0;
22301   GNULIB_MBSRTOWCS=0;
22302   GNULIB_MBSNRTOWCS=0;
22303   GNULIB_WCRTOMB=0;
22304   GNULIB_WCSRTOMBS=0;
22305   GNULIB_WCSNRTOMBS=0;
22306   GNULIB_WCWIDTH=0;
22307   GNULIB_WMEMCHR=0;
22308   GNULIB_WMEMCMP=0;
22309   GNULIB_WMEMCPY=0;
22310   GNULIB_WMEMMOVE=0;
22311   GNULIB_WMEMSET=0;
22312   GNULIB_WCSLEN=0;
22313   GNULIB_WCSNLEN=0;
22314   GNULIB_WCSCPY=0;
22315   GNULIB_WCPCPY=0;
22316   GNULIB_WCSNCPY=0;
22317   GNULIB_WCPNCPY=0;
22318   GNULIB_WCSCAT=0;
22319   GNULIB_WCSNCAT=0;
22320   GNULIB_WCSCMP=0;
22321   GNULIB_WCSNCMP=0;
22322   GNULIB_WCSCASECMP=0;
22323   GNULIB_WCSNCASECMP=0;
22324   GNULIB_WCSCOLL=0;
22325   GNULIB_WCSXFRM=0;
22326   GNULIB_WCSDUP=0;
22327   GNULIB_WCSCHR=0;
22328   GNULIB_WCSRCHR=0;
22329   GNULIB_WCSCSPN=0;
22330   GNULIB_WCSSPN=0;
22331   GNULIB_WCSPBRK=0;
22332   GNULIB_WCSSTR=0;
22333   GNULIB_WCSTOK=0;
22334   GNULIB_WCSWIDTH=0;
22335     HAVE_BTOWC=1;
22336   HAVE_MBSINIT=1;
22337   HAVE_MBRTOWC=1;
22338   HAVE_MBRLEN=1;
22339   HAVE_MBSRTOWCS=1;
22340   HAVE_MBSNRTOWCS=1;
22341   HAVE_WCRTOMB=1;
22342   HAVE_WCSRTOMBS=1;
22343   HAVE_WCSNRTOMBS=1;
22344   HAVE_WMEMCHR=1;
22345   HAVE_WMEMCMP=1;
22346   HAVE_WMEMCPY=1;
22347   HAVE_WMEMMOVE=1;
22348   HAVE_WMEMSET=1;
22349   HAVE_WCSLEN=1;
22350   HAVE_WCSNLEN=1;
22351   HAVE_WCSCPY=1;
22352   HAVE_WCPCPY=1;
22353   HAVE_WCSNCPY=1;
22354   HAVE_WCPNCPY=1;
22355   HAVE_WCSCAT=1;
22356   HAVE_WCSNCAT=1;
22357   HAVE_WCSCMP=1;
22358   HAVE_WCSNCMP=1;
22359   HAVE_WCSCASECMP=1;
22360   HAVE_WCSNCASECMP=1;
22361   HAVE_WCSCOLL=1;
22362   HAVE_WCSXFRM=1;
22363   HAVE_WCSDUP=1;
22364   HAVE_WCSCHR=1;
22365   HAVE_WCSRCHR=1;
22366   HAVE_WCSCSPN=1;
22367   HAVE_WCSSPN=1;
22368   HAVE_WCSPBRK=1;
22369   HAVE_WCSSTR=1;
22370   HAVE_WCSTOK=1;
22371   HAVE_WCSWIDTH=1;
22372   HAVE_DECL_WCTOB=1;
22373   HAVE_DECL_WCWIDTH=1;
22374   REPLACE_MBSTATE_T=0;
22375   REPLACE_BTOWC=0;
22376   REPLACE_WCTOB=0;
22377   REPLACE_MBSINIT=0;
22378   REPLACE_MBRTOWC=0;
22379   REPLACE_MBRLEN=0;
22380   REPLACE_MBSRTOWCS=0;
22381   REPLACE_MBSNRTOWCS=0;
22382   REPLACE_WCRTOMB=0;
22383   REPLACE_WCSRTOMBS=0;
22384   REPLACE_WCSNRTOMBS=0;
22385   REPLACE_WCWIDTH=0;
22386   REPLACE_WCSWIDTH=0;
22387
22388
22389
22390
22391
22392
22393
22394
22395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
22396 $as_echo_n "checking for a traditional japanese locale... " >&6; }
22397 if ${gt_cv_locale_ja+:} false; then :
22398   $as_echo_n "(cached) " >&6
22399 else
22400
22401     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22402 /* end confdefs.h.  */
22403
22404 #include <locale.h>
22405 #include <time.h>
22406 #if HAVE_LANGINFO_CODESET
22407 # include <langinfo.h>
22408 #endif
22409 #include <stdlib.h>
22410 #include <string.h>
22411 struct tm t;
22412 char buf[16];
22413 int main ()
22414 {
22415   const char *p;
22416   /* Check whether the given locale name is recognized by the system.  */
22417 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
22418   /* On native Windows, setlocale(category, "") looks at the system settings,
22419      not at the environment variables.  Also, when an encoding suffix such
22420      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
22421      category of the locale to "C".  */
22422   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
22423       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
22424     return 1;
22425 #else
22426   if (setlocale (LC_ALL, "") == NULL) return 1;
22427 #endif
22428   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
22429      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
22430      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
22431      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
22432      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
22433      some unit tests fail.
22434      On MirBSD 10, when an unsupported locale is specified, setlocale()
22435      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
22436 #if HAVE_LANGINFO_CODESET
22437   {
22438     const char *cs = nl_langinfo (CODESET);
22439     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
22440         || strcmp (cs, "UTF-8") == 0)
22441       return 1;
22442   }
22443 #endif
22444 #ifdef __CYGWIN__
22445   /* On Cygwin, avoid locale names without encoding suffix, because the
22446      locale_charset() function relies on the encoding suffix.  Note that
22447      LC_ALL is set on the command line.  */
22448   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
22449 #endif
22450   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
22451      on Cygwin 1.5.x.  */
22452   if (MB_CUR_MAX == 1)
22453     return 1;
22454   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
22455      This excludes the UTF-8 encoding (except on MirBSD).  */
22456   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
22457   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
22458   for (p = buf; *p != '\0'; p++)
22459     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
22460       return 1;
22461   return 0;
22462 }
22463
22464 _ACEOF
22465     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22466   (eval $ac_link) 2>&5
22467   ac_status=$?
22468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22469   test $ac_status = 0; } && test -s conftest$ac_exeext; then
22470       case "$host_os" in
22471         # Handle native Windows specially, because there setlocale() interprets
22472         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
22473         # "fr" or "fra" as "French" or "French_France.1252",
22474         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
22475         # "ja" as "Japanese" or "Japanese_Japan.932",
22476         # and similar.
22477         mingw*)
22478           # Note that on native Windows, the Japanese locale is
22479           # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
22480           # cannot use it here.
22481           gt_cv_locale_ja=none
22482           ;;
22483         *)
22484           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
22485           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
22486           # configure script would override the LC_ALL setting. Likewise for
22487           # LC_CTYPE, which is also set at the beginning of the configure script.
22488           # Test for the AIX locale name.
22489           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22490             gt_cv_locale_ja=ja_JP
22491           else
22492             # Test for the locale name with explicit encoding suffix.
22493             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22494               gt_cv_locale_ja=ja_JP.EUC-JP
22495             else
22496               # Test for the HP-UX, OSF/1, NetBSD locale name.
22497               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22498                 gt_cv_locale_ja=ja_JP.eucJP
22499               else
22500                 # Test for the IRIX, FreeBSD locale name.
22501                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22502                   gt_cv_locale_ja=ja_JP.EUC
22503                 else
22504                   # Test for the Solaris 7 locale name.
22505                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22506                     gt_cv_locale_ja=ja
22507                   else
22508                     # Special test for NetBSD 1.6.
22509                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
22510                       gt_cv_locale_ja=ja_JP.eucJP
22511                     else
22512                       # None found.
22513                       gt_cv_locale_ja=none
22514                     fi
22515                   fi
22516                 fi
22517               fi
22518             fi
22519           fi
22520           ;;
22521       esac
22522     fi
22523     rm -fr conftest*
22524
22525 fi
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
22527 $as_echo "$gt_cv_locale_ja" >&6; }
22528   LOCALE_JA=$gt_cv_locale_ja
22529
22530
22531
22532
22533
22534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
22535 $as_echo_n "checking for a transitional chinese locale... " >&6; }
22536 if ${gt_cv_locale_zh_CN+:} false; then :
22537   $as_echo_n "(cached) " >&6
22538 else
22539
22540     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22541 /* end confdefs.h.  */
22542
22543 #include <locale.h>
22544 #include <stdlib.h>
22545 #include <time.h>
22546 #if HAVE_LANGINFO_CODESET
22547 # include <langinfo.h>
22548 #endif
22549 #include <stdlib.h>
22550 #include <string.h>
22551 struct tm t;
22552 char buf[16];
22553 int main ()
22554 {
22555   const char *p;
22556   /* Check whether the given locale name is recognized by the system.  */
22557 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
22558   /* On native Windows, setlocale(category, "") looks at the system settings,
22559      not at the environment variables.  Also, when an encoding suffix such
22560      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
22561      category of the locale to "C".  */
22562   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
22563       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
22564     return 1;
22565 #else
22566   if (setlocale (LC_ALL, "") == NULL) return 1;
22567 #endif
22568   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
22569      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
22570      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
22571      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
22572      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
22573      some unit tests fail.
22574      On MirBSD 10, when an unsupported locale is specified, setlocale()
22575      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
22576 #if HAVE_LANGINFO_CODESET
22577   {
22578     const char *cs = nl_langinfo (CODESET);
22579     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
22580         || strcmp (cs, "UTF-8") == 0)
22581       return 1;
22582   }
22583 #endif
22584 #ifdef __CYGWIN__
22585   /* On Cygwin, avoid locale names without encoding suffix, because the
22586      locale_charset() function relies on the encoding suffix.  Note that
22587      LC_ALL is set on the command line.  */
22588   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
22589 #endif
22590   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
22591      This excludes the UTF-8 encoding (except on MirBSD).  */
22592   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
22593   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
22594   for (p = buf; *p != '\0'; p++)
22595     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
22596       return 1;
22597   /* Check whether a typical GB18030 multibyte sequence is recognized as a
22598      single wide character.  This excludes the GB2312 and GBK encodings.  */
22599   if (mblen ("\203\062\332\066", 5) != 4)
22600     return 1;
22601   return 0;
22602 }
22603
22604 _ACEOF
22605     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22606   (eval $ac_link) 2>&5
22607   ac_status=$?
22608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22609   test $ac_status = 0; } && test -s conftest$ac_exeext; then
22610       case "$host_os" in
22611         # Handle native Windows specially, because there setlocale() interprets
22612         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
22613         # "fr" or "fra" as "French" or "French_France.1252",
22614         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
22615         # "ja" as "Japanese" or "Japanese_Japan.932",
22616         # and similar.
22617         mingw*)
22618           # Test for the hypothetical native Windows locale name.
22619           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22620             gt_cv_locale_zh_CN=Chinese_China.54936
22621           else
22622             # None found.
22623             gt_cv_locale_zh_CN=none
22624           fi
22625           ;;
22626         solaris2.8)
22627           # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
22628           # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
22629           # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
22630           gt_cv_locale_zh_CN=none
22631           ;;
22632         *)
22633           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
22634           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
22635           # configure script would override the LC_ALL setting. Likewise for
22636           # LC_CTYPE, which is also set at the beginning of the configure script.
22637           # Test for the locale name without encoding suffix.
22638           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22639             gt_cv_locale_zh_CN=zh_CN
22640           else
22641             # Test for the locale name with explicit encoding suffix.
22642             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22643               gt_cv_locale_zh_CN=zh_CN.GB18030
22644             else
22645               # None found.
22646               gt_cv_locale_zh_CN=none
22647             fi
22648           fi
22649           ;;
22650       esac
22651     else
22652       # If there was a link error, due to mblen(), the system is so old that
22653       # it certainly doesn't have a chinese locale.
22654       gt_cv_locale_zh_CN=none
22655     fi
22656     rm -fr conftest*
22657
22658 fi
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
22660 $as_echo "$gt_cv_locale_zh_CN" >&6; }
22661   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
22662
22663
22664
22665
22666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
22667 $as_echo_n "checking for a french Unicode locale... " >&6; }
22668 if ${gt_cv_locale_fr_utf8+:} false; then :
22669   $as_echo_n "(cached) " >&6
22670 else
22671
22672     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22673 /* end confdefs.h.  */
22674
22675 #include <locale.h>
22676 #include <time.h>
22677 #if HAVE_LANGINFO_CODESET
22678 # include <langinfo.h>
22679 #endif
22680 #include <stdlib.h>
22681 #include <string.h>
22682 struct tm t;
22683 char buf[16];
22684 int main () {
22685   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
22686      imitates locale dependent behaviour by looking at the environment
22687      variables, and all locales use the UTF-8 encoding.  */
22688 #if !(defined __BEOS__ || defined __HAIKU__)
22689   /* Check whether the given locale name is recognized by the system.  */
22690 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
22691   /* On native Windows, setlocale(category, "") looks at the system settings,
22692      not at the environment variables.  Also, when an encoding suffix such
22693      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
22694      category of the locale to "C".  */
22695   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
22696       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
22697     return 1;
22698 # else
22699   if (setlocale (LC_ALL, "") == NULL) return 1;
22700 # endif
22701   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
22702      On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
22703      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
22704      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
22705      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
22706      some unit tests fail.  */
22707 # if HAVE_LANGINFO_CODESET
22708   {
22709     const char *cs = nl_langinfo (CODESET);
22710     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
22711       return 1;
22712   }
22713 # endif
22714 # ifdef __CYGWIN__
22715   /* On Cygwin, avoid locale names without encoding suffix, because the
22716      locale_charset() function relies on the encoding suffix.  Note that
22717      LC_ALL is set on the command line.  */
22718   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
22719 # endif
22720   /* Check whether in the abbreviation of the second month, the second
22721      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
22722      two bytes long, with UTF-8 encoding.  */
22723   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
22724   if (strftime (buf, sizeof (buf), "%b", &t) < 4
22725       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
22726     return 1;
22727 #endif
22728 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy.  */
22729   /* Check whether the decimal separator is a comma.
22730      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
22731      are nl_langinfo(RADIXCHAR) are both ".".  */
22732   if (localeconv () ->decimal_point[0] != ',') return 1;
22733 #endif
22734   return 0;
22735 }
22736
22737 _ACEOF
22738     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22739   (eval $ac_link) 2>&5
22740   ac_status=$?
22741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22742   test $ac_status = 0; } && test -s conftest$ac_exeext; then
22743       case "$host_os" in
22744         # Handle native Windows specially, because there setlocale() interprets
22745         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
22746         # "fr" or "fra" as "French" or "French_France.1252",
22747         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
22748         # "ja" as "Japanese" or "Japanese_Japan.932",
22749         # and similar.
22750         mingw*)
22751           # Test for the hypothetical native Windows locale name.
22752           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22753             gt_cv_locale_fr_utf8=French_France.65001
22754           else
22755             # None found.
22756             gt_cv_locale_fr_utf8=none
22757           fi
22758           ;;
22759         *)
22760           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
22761           # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
22762           # configure script would override the LC_ALL setting. Likewise for
22763           # LC_CTYPE, which is also set at the beginning of the configure script.
22764           # Test for the usual locale name.
22765           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22766             gt_cv_locale_fr_utf8=fr_FR
22767           else
22768             # Test for the locale name with explicit encoding suffix.
22769             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22770               gt_cv_locale_fr_utf8=fr_FR.UTF-8
22771             else
22772               # Test for the Solaris 7 locale name.
22773               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
22774                 gt_cv_locale_fr_utf8=fr.UTF-8
22775               else
22776                 # None found.
22777                 gt_cv_locale_fr_utf8=none
22778               fi
22779             fi
22780           fi
22781           ;;
22782       esac
22783     fi
22784     rm -fr conftest*
22785
22786 fi
22787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
22788 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
22789   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
22790
22791
22792
22793   GNULIB_FFSL=0;
22794   GNULIB_FFSLL=0;
22795   GNULIB_MEMCHR=0;
22796   GNULIB_MEMMEM=0;
22797   GNULIB_MEMPCPY=0;
22798   GNULIB_MEMRCHR=0;
22799   GNULIB_RAWMEMCHR=0;
22800   GNULIB_STPCPY=0;
22801   GNULIB_STPNCPY=0;
22802   GNULIB_STRCHRNUL=0;
22803   GNULIB_STRDUP=0;
22804   GNULIB_STRNCAT=0;
22805   GNULIB_STRNDUP=0;
22806   GNULIB_STRNLEN=0;
22807   GNULIB_STRPBRK=0;
22808   GNULIB_STRSEP=0;
22809   GNULIB_STRSTR=0;
22810   GNULIB_STRCASESTR=0;
22811   GNULIB_STRTOK_R=0;
22812   GNULIB_MBSLEN=0;
22813   GNULIB_MBSNLEN=0;
22814   GNULIB_MBSCHR=0;
22815   GNULIB_MBSRCHR=0;
22816   GNULIB_MBSSTR=0;
22817   GNULIB_MBSCASECMP=0;
22818   GNULIB_MBSNCASECMP=0;
22819   GNULIB_MBSPCASECMP=0;
22820   GNULIB_MBSCASESTR=0;
22821   GNULIB_MBSCSPN=0;
22822   GNULIB_MBSPBRK=0;
22823   GNULIB_MBSSPN=0;
22824   GNULIB_MBSSEP=0;
22825   GNULIB_MBSTOK_R=0;
22826   GNULIB_STRERROR=0;
22827   GNULIB_STRERROR_R=0;
22828   GNULIB_STRSIGNAL=0;
22829   GNULIB_STRVERSCMP=0;
22830   HAVE_MBSLEN=0;
22831     HAVE_FFSL=1;
22832   HAVE_FFSLL=1;
22833   HAVE_MEMCHR=1;
22834   HAVE_DECL_MEMMEM=1;
22835   HAVE_MEMPCPY=1;
22836   HAVE_DECL_MEMRCHR=1;
22837   HAVE_RAWMEMCHR=1;
22838   HAVE_STPCPY=1;
22839   HAVE_STPNCPY=1;
22840   HAVE_STRCHRNUL=1;
22841   HAVE_DECL_STRDUP=1;
22842   HAVE_DECL_STRNDUP=1;
22843   HAVE_DECL_STRNLEN=1;
22844   HAVE_STRPBRK=1;
22845   HAVE_STRSEP=1;
22846   HAVE_STRCASESTR=1;
22847   HAVE_DECL_STRTOK_R=1;
22848   HAVE_DECL_STRERROR_R=1;
22849   HAVE_DECL_STRSIGNAL=1;
22850   HAVE_STRVERSCMP=1;
22851   REPLACE_MEMCHR=0;
22852   REPLACE_MEMMEM=0;
22853   REPLACE_STPNCPY=0;
22854   REPLACE_STRDUP=0;
22855   REPLACE_STRSTR=0;
22856   REPLACE_STRCASESTR=0;
22857   REPLACE_STRCHRNUL=0;
22858   REPLACE_STRERROR=0;
22859   REPLACE_STRERROR_R=0;
22860   REPLACE_STRNCAT=0;
22861   REPLACE_STRNDUP=0;
22862   REPLACE_STRNLEN=0;
22863   REPLACE_STRSIGNAL=0;
22864   REPLACE_STRTOK_R=0;
22865   UNDEFINE_STRTOK_R=0;
22866
22867
22868
22869
22870
22871
22872
22873
22874
22875
22876
22877   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
22878   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
22879   # irrelevant for anonymous mappings.
22880   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
22881 if test "x$ac_cv_func_mmap" = xyes; then :
22882   gl_have_mmap=yes
22883 else
22884   gl_have_mmap=no
22885 fi
22886
22887
22888   # Try to allow MAP_ANONYMOUS.
22889   gl_have_mmap_anonymous=no
22890   if test $gl_have_mmap = yes; then
22891     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
22892 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
22893     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22894 /* end confdefs.h.  */
22895
22896 #include <sys/mman.h>
22897 #ifdef MAP_ANONYMOUS
22898     I cannot identify this map
22899 #endif
22900
22901 _ACEOF
22902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22903   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
22904   gl_have_mmap_anonymous=yes
22905 fi
22906 rm -f conftest*
22907
22908     if test $gl_have_mmap_anonymous != yes; then
22909       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22910 /* end confdefs.h.  */
22911
22912 #include <sys/mman.h>
22913 #ifdef MAP_ANON
22914     I cannot identify this map
22915 #endif
22916
22917 _ACEOF
22918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22919   $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
22920
22921 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
22922
22923          gl_have_mmap_anonymous=yes
22924 fi
22925 rm -f conftest*
22926
22927     fi
22928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
22929 $as_echo "$gl_have_mmap_anonymous" >&6; }
22930     if test $gl_have_mmap_anonymous = yes; then
22931
22932 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
22933
22934     fi
22935   fi
22936
22937
22938
22939
22940
22941
22942   if test $HAVE_MEMCHR = 1; then
22943     # Detect platform-specific bugs in some versions of glibc:
22944     # memchr should not dereference anything with length 0
22945     #   http://bugzilla.redhat.com/499689
22946     # memchr should not dereference overestimated length after a match
22947     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
22948     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
22949     # Assume that memchr works on platforms that lack mprotect.
22950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
22951 $as_echo_n "checking whether memchr works... " >&6; }
22952 if ${gl_cv_func_memchr_works+:} false; then :
22953   $as_echo_n "(cached) " >&6
22954 else
22955   if test "$cross_compiling" = yes; then :
22956          gl_cv_func_memchr_works="guessing no"
22957 else
22958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22959 /* end confdefs.h.  */
22960
22961 #include <string.h>
22962 #if HAVE_SYS_MMAN_H
22963 # include <fcntl.h>
22964 # include <unistd.h>
22965 # include <sys/types.h>
22966 # include <sys/mman.h>
22967 # ifndef MAP_FILE
22968 #  define MAP_FILE 0
22969 # endif
22970 #endif
22971
22972 int
22973 main ()
22974 {
22975
22976   int result = 0;
22977   char *fence = NULL;
22978 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
22979 # if HAVE_MAP_ANONYMOUS
22980   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
22981   const int fd = -1;
22982 # else /* !HAVE_MAP_ANONYMOUS */
22983   const int flags = MAP_FILE | MAP_PRIVATE;
22984   int fd = open ("/dev/zero", O_RDONLY, 0666);
22985   if (fd >= 0)
22986 # endif
22987     {
22988       int pagesize = getpagesize ();
22989       char *two_pages =
22990         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
22991                        flags, fd, 0);
22992       if (two_pages != (char *)(-1)
22993           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
22994         fence = two_pages + pagesize;
22995     }
22996 #endif
22997   if (fence)
22998     {
22999       if (memchr (fence, 0, 0))
23000         result |= 1;
23001       strcpy (fence - 9, "12345678");
23002       if (memchr (fence - 9, 0, 79) != fence - 1)
23003         result |= 2;
23004       if (memchr (fence - 1, 0, 3) != fence - 1)
23005         result |= 4;
23006     }
23007   return result;
23008
23009   ;
23010   return 0;
23011 }
23012 _ACEOF
23013 if ac_fn_c_try_run "$LINENO"; then :
23014   gl_cv_func_memchr_works=yes
23015 else
23016   gl_cv_func_memchr_works=no
23017 fi
23018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23019   conftest.$ac_objext conftest.beam conftest.$ac_ext
23020 fi
23021
23022 fi
23023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
23024 $as_echo "$gl_cv_func_memchr_works" >&6; }
23025     if test "$gl_cv_func_memchr_works" != yes; then
23026       REPLACE_MEMCHR=1
23027     fi
23028   fi
23029
23030
23031
23032
23033     gl_cv_c_multiarch=no
23034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23035 /* end confdefs.h.  */
23036 #ifndef __APPLE_CC__
23037          not a universal capable compiler
23038         #endif
23039         typedef int dummy;
23040
23041 _ACEOF
23042 if ac_fn_c_try_compile "$LINENO"; then :
23043
23044                arch=
23045      prev=
23046      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
23047        if test -n "$prev"; then
23048          case $word in
23049            i?86 | x86_64 | ppc | ppc64)
23050              if test -z "$arch" || test "$arch" = "$word"; then
23051                arch="$word"
23052              else
23053                gl_cv_c_multiarch=yes
23054              fi
23055              ;;
23056          esac
23057          prev=
23058        else
23059          if test "x$word" = "x-arch"; then
23060            prev=arch
23061          fi
23062        fi
23063      done
23064
23065 fi
23066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23067   if test $gl_cv_c_multiarch = yes; then
23068     APPLE_UNIVERSAL_BUILD=1
23069   else
23070     APPLE_UNIVERSAL_BUILD=0
23071   fi
23072
23073
23074
23075   GNULIB_PTHREAD_SIGMASK=0;
23076   GNULIB_RAISE=0;
23077   GNULIB_SIGNAL_H_SIGPIPE=0;
23078   GNULIB_SIGPROCMASK=0;
23079   GNULIB_SIGACTION=0;
23080     HAVE_POSIX_SIGNALBLOCKING=1;
23081   HAVE_PTHREAD_SIGMASK=1;
23082   HAVE_RAISE=1;
23083   HAVE_SIGSET_T=1;
23084   HAVE_SIGINFO_T=1;
23085   HAVE_SIGACTION=1;
23086   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
23087
23088   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
23089
23090   HAVE_SIGHANDLER_T=1;
23091   REPLACE_PTHREAD_SIGMASK=0;
23092   REPLACE_RAISE=0;
23093
23094
23095   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
23096       #include <signal.h>
23097       /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
23098       #include <sys/types.h>
23099
23100 "
23101 if test "x$ac_cv_type_sigset_t" = xyes; then :
23102
23103 cat >>confdefs.h <<_ACEOF
23104 #define HAVE_SIGSET_T 1
23105 _ACEOF
23106
23107 gl_cv_type_sigset_t=yes
23108 else
23109   gl_cv_type_sigset_t=no
23110 fi
23111
23112   if test $gl_cv_type_sigset_t != yes; then
23113     HAVE_SIGSET_T=0
23114   fi
23115
23116
23117
23118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPIPE" >&5
23119 $as_echo_n "checking for SIGPIPE... " >&6; }
23120 if ${gl_cv_header_signal_h_SIGPIPE+:} false; then :
23121   $as_echo_n "(cached) " >&6
23122 else
23123
23124     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23125 /* end confdefs.h.  */
23126
23127 #include <signal.h>
23128 #if !defined SIGPIPE
23129 booboo
23130 #endif
23131
23132 _ACEOF
23133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23134   $EGREP "booboo" >/dev/null 2>&1; then :
23135   gl_cv_header_signal_h_SIGPIPE=no
23136 else
23137   gl_cv_header_signal_h_SIGPIPE=yes
23138 fi
23139 rm -f conftest*
23140
23141
23142 fi
23143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_signal_h_SIGPIPE" >&5
23144 $as_echo "$gl_cv_header_signal_h_SIGPIPE" >&6; }
23145
23146
23147                               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
23148 $as_echo_n "checking for shared library path variable... " >&6; }
23149 if ${acl_cv_libpath+:} false; then :
23150   $as_echo_n "(cached) " >&6
23151 else
23152
23153     LD="$LD" \
23154     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
23155     . ./conftest.sh
23156     rm -f ./conftest.sh
23157     acl_cv_libpath=${acl_cv_shlibpath_var:-none}
23158
23159 fi
23160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
23161 $as_echo "$acl_cv_libpath" >&6; }
23162   shlibpath_var="$acl_cv_shlibpath_var"
23163
23164
23165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
23166 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
23167   # Check whether --enable-relocatable was given.
23168 if test "${enable_relocatable+set}" = set; then :
23169   enableval=$enable_relocatable; if test "$enableval" != no; then
23170        RELOCATABLE=yes
23171      else
23172        RELOCATABLE=no
23173      fi
23174
23175 else
23176   RELOCATABLE=no
23177 fi
23178
23179
23180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
23181 $as_echo "$RELOCATABLE" >&6; }
23182
23183
23184
23185     if test "X$prefix" = "XNONE"; then
23186     reloc_final_prefix="$ac_default_prefix"
23187   else
23188     reloc_final_prefix="$prefix"
23189   fi
23190
23191 cat >>confdefs.h <<_ACEOF
23192 #define INSTALLPREFIX "${reloc_final_prefix}"
23193 _ACEOF
23194
23195   if test $RELOCATABLE = yes; then
23196
23197 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
23198
23199   fi
23200
23201
23202
23203
23204
23205
23206   is_noop=no
23207   use_elf_origin_trick=no
23208   use_wrapper=no
23209   if test $RELOCATABLE = yes; then
23210     # --enable-relocatable implies --disable-rpath
23211     enable_rpath=no
23212     for ac_header in mach-o/dyld.h
23213 do :
23214   ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
23215 if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
23216   cat >>confdefs.h <<_ACEOF
23217 #define HAVE_MACH_O_DYLD_H 1
23218 _ACEOF
23219
23220 fi
23221
23222 done
23223
23224     for ac_func in _NSGetExecutablePath
23225 do :
23226   ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
23227 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
23228   cat >>confdefs.h <<_ACEOF
23229 #define HAVE__NSGETEXECUTABLEPATH 1
23230 _ACEOF
23231
23232 fi
23233 done
23234
23235     case "$host_os" in
23236       mingw*) is_noop=yes ;;
23237       linux* | kfreebsd*) use_elf_origin_trick=yes ;;
23238     esac
23239     if test $is_noop = yes; then
23240       RELOCATABLE_LDFLAGS=:
23241
23242     else
23243       if test $use_elf_origin_trick = yes; then
23244                 case "$ac_aux_dir" in
23245           /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
23246           *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
23247         esac
23248         RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
23249
23250       else
23251         use_wrapper=yes
23252                                         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\""
23253
23254         case "$ac_aux_dir" in
23255           /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
23256           *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
23257         esac
23258       fi
23259     fi
23260   fi
23261    if test $is_noop = yes || test $use_elf_origin_trick = yes; then
23262   RELOCATABLE_VIA_LD_TRUE=
23263   RELOCATABLE_VIA_LD_FALSE='#'
23264 else
23265   RELOCATABLE_VIA_LD_TRUE='#'
23266   RELOCATABLE_VIA_LD_FALSE=
23267 fi
23268
23269    if test $use_wrapper = yes; then
23270   RELOCATABLE_VIA_WRAPPER_TRUE=
23271   RELOCATABLE_VIA_WRAPPER_FALSE='#'
23272 else
23273   RELOCATABLE_VIA_WRAPPER_TRUE='#'
23274   RELOCATABLE_VIA_WRAPPER_FALSE=
23275 fi
23276
23277
23278
23279
23280
23281
23282
23283
23284       RELOCATABLE_STRIP=':'
23285
23286
23287 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
23288 if test "x$ac_cv_have_decl_setenv" = xyes; then :
23289   ac_have_decl=1
23290 else
23291   ac_have_decl=0
23292 fi
23293
23294 cat >>confdefs.h <<_ACEOF
23295 #define HAVE_DECL_SETENV $ac_have_decl
23296 _ACEOF
23297
23298
23299
23300 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23301 if test "x$ac_cv_type_pid_t" = xyes; then :
23302
23303 else
23304
23305 cat >>confdefs.h <<_ACEOF
23306 #define pid_t int
23307 _ACEOF
23308
23309 fi
23310
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23312 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23313 if ${ac_cv_type_uid_t+:} false; then :
23314   $as_echo_n "(cached) " >&6
23315 else
23316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23317 /* end confdefs.h.  */
23318 #include <sys/types.h>
23319
23320 _ACEOF
23321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23322   $EGREP "uid_t" >/dev/null 2>&1; then :
23323   ac_cv_type_uid_t=yes
23324 else
23325   ac_cv_type_uid_t=no
23326 fi
23327 rm -f conftest*
23328
23329 fi
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23331 $as_echo "$ac_cv_type_uid_t" >&6; }
23332 if test $ac_cv_type_uid_t = no; then
23333
23334 $as_echo "#define uid_t int" >>confdefs.h
23335
23336
23337 $as_echo "#define gid_t int" >>confdefs.h
23338
23339 fi
23340
23341
23342   GNULIB_DPRINTF=0;
23343   GNULIB_FCLOSE=0;
23344   GNULIB_FDOPEN=0;
23345   GNULIB_FFLUSH=0;
23346   GNULIB_FGETC=0;
23347   GNULIB_FGETS=0;
23348   GNULIB_FOPEN=0;
23349   GNULIB_FPRINTF=0;
23350   GNULIB_FPRINTF_POSIX=0;
23351   GNULIB_FPURGE=0;
23352   GNULIB_FPUTC=0;
23353   GNULIB_FPUTS=0;
23354   GNULIB_FREAD=0;
23355   GNULIB_FREOPEN=0;
23356   GNULIB_FSCANF=0;
23357   GNULIB_FSEEK=0;
23358   GNULIB_FSEEKO=0;
23359   GNULIB_FTELL=0;
23360   GNULIB_FTELLO=0;
23361   GNULIB_FWRITE=0;
23362   GNULIB_GETC=0;
23363   GNULIB_GETCHAR=0;
23364   GNULIB_GETDELIM=0;
23365   GNULIB_GETLINE=0;
23366   GNULIB_OBSTACK_PRINTF=0;
23367   GNULIB_OBSTACK_PRINTF_POSIX=0;
23368   GNULIB_PCLOSE=0;
23369   GNULIB_PERROR=0;
23370   GNULIB_POPEN=0;
23371   GNULIB_PRINTF=0;
23372   GNULIB_PRINTF_POSIX=0;
23373   GNULIB_PUTC=0;
23374   GNULIB_PUTCHAR=0;
23375   GNULIB_PUTS=0;
23376   GNULIB_REMOVE=0;
23377   GNULIB_RENAME=0;
23378   GNULIB_RENAMEAT=0;
23379   GNULIB_SCANF=0;
23380   GNULIB_SNPRINTF=0;
23381   GNULIB_SPRINTF_POSIX=0;
23382   GNULIB_STDIO_H_NONBLOCKING=0;
23383   GNULIB_STDIO_H_SIGPIPE=0;
23384   GNULIB_TMPFILE=0;
23385   GNULIB_VASPRINTF=0;
23386   GNULIB_VFSCANF=0;
23387   GNULIB_VSCANF=0;
23388   GNULIB_VDPRINTF=0;
23389   GNULIB_VFPRINTF=0;
23390   GNULIB_VFPRINTF_POSIX=0;
23391   GNULIB_VPRINTF=0;
23392   GNULIB_VPRINTF_POSIX=0;
23393   GNULIB_VSNPRINTF=0;
23394   GNULIB_VSPRINTF_POSIX=0;
23395     HAVE_DECL_FPURGE=1;
23396   HAVE_DECL_FSEEKO=1;
23397   HAVE_DECL_FTELLO=1;
23398   HAVE_DECL_GETDELIM=1;
23399   HAVE_DECL_GETLINE=1;
23400   HAVE_DECL_OBSTACK_PRINTF=1;
23401   HAVE_DECL_SNPRINTF=1;
23402   HAVE_DECL_VSNPRINTF=1;
23403   HAVE_DPRINTF=1;
23404   HAVE_FSEEKO=1;
23405   HAVE_FTELLO=1;
23406   HAVE_PCLOSE=1;
23407   HAVE_POPEN=1;
23408   HAVE_RENAMEAT=1;
23409   HAVE_VASPRINTF=1;
23410   HAVE_VDPRINTF=1;
23411   REPLACE_DPRINTF=0;
23412   REPLACE_FCLOSE=0;
23413   REPLACE_FDOPEN=0;
23414   REPLACE_FFLUSH=0;
23415   REPLACE_FOPEN=0;
23416   REPLACE_FPRINTF=0;
23417   REPLACE_FPURGE=0;
23418   REPLACE_FREOPEN=0;
23419   REPLACE_FSEEK=0;
23420   REPLACE_FSEEKO=0;
23421   REPLACE_FTELL=0;
23422   REPLACE_FTELLO=0;
23423   REPLACE_GETDELIM=0;
23424   REPLACE_GETLINE=0;
23425   REPLACE_OBSTACK_PRINTF=0;
23426   REPLACE_PERROR=0;
23427   REPLACE_POPEN=0;
23428   REPLACE_PRINTF=0;
23429   REPLACE_REMOVE=0;
23430   REPLACE_RENAME=0;
23431   REPLACE_RENAMEAT=0;
23432   REPLACE_SNPRINTF=0;
23433   REPLACE_SPRINTF=0;
23434   REPLACE_STDIO_READ_FUNCS=0;
23435   REPLACE_STDIO_WRITE_FUNCS=0;
23436   REPLACE_TMPFILE=0;
23437   REPLACE_VASPRINTF=0;
23438   REPLACE_VDPRINTF=0;
23439   REPLACE_VFPRINTF=0;
23440   REPLACE_VPRINTF=0;
23441   REPLACE_VSNPRINTF=0;
23442   REPLACE_VSPRINTF=0;
23443
23444
23445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23446 /* end confdefs.h.  */
23447
23448 #ifdef _MSC_VER
23449 MicrosoftCompiler
23450 #endif
23451
23452 _ACEOF
23453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23454   $EGREP "MicrosoftCompiler" >/dev/null 2>&1; then :
23455   gl_asmext='asm'
23456      gl_c_asm_opt='-c -Fa'
23457
23458 else
23459   gl_asmext='s'
23460      gl_c_asm_opt='-S'
23461
23462 fi
23463 rm -f conftest*
23464
23465
23466
23467
23468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
23469 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
23470 if ${gl_cv_prog_as_underscore+:} false; then :
23471   $as_echo_n "(cached) " >&6
23472 else
23473   cat > conftest.c <<EOF
23474 #ifdef __cplusplus
23475 extern "C" int foo (void);
23476 #endif
23477 int foo(void) { return 0; }
23478 EOF
23479      # Look for the assembly language name in the .s file.
23480      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
23481   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23482   (eval $ac_try) 2>&5
23483   ac_status=$?
23484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23485   test $ac_status = 0; }; } >/dev/null 2>&1
23486      if grep _foo conftest.$gl_asmext >/dev/null ; then
23487        gl_cv_prog_as_underscore=yes
23488      else
23489        gl_cv_prog_as_underscore=no
23490      fi
23491      rm -f conftest*
23492
23493 fi
23494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
23495 $as_echo "$gl_cv_prog_as_underscore" >&6; }
23496   if test $gl_cv_prog_as_underscore = yes; then
23497     USER_LABEL_PREFIX=_
23498   else
23499     USER_LABEL_PREFIX=
23500   fi
23501
23502 cat >>confdefs.h <<_ACEOF
23503 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
23504 _ACEOF
23505
23506   ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
23507
23508
23509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
23510 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
23511 if ${ac_cv_header_stdbool_h+:} false; then :
23512   $as_echo_n "(cached) " >&6
23513 else
23514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23515 /* end confdefs.h.  */
23516
23517              #include <stdbool.h>
23518              #ifndef bool
23519               "error: bool is not defined"
23520              #endif
23521              #ifndef false
23522               "error: false is not defined"
23523              #endif
23524              #if false
23525               "error: false is not 0"
23526              #endif
23527              #ifndef true
23528               "error: true is not defined"
23529              #endif
23530              #if true != 1
23531               "error: true is not 1"
23532              #endif
23533              #ifndef __bool_true_false_are_defined
23534               "error: __bool_true_false_are_defined is not defined"
23535              #endif
23536
23537              struct s { _Bool s: 1; _Bool t; } s;
23538
23539              char a[true == 1 ? 1 : -1];
23540              char b[false == 0 ? 1 : -1];
23541              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
23542              char d[(bool) 0.5 == true ? 1 : -1];
23543              /* See body of main program for 'e'.  */
23544              char f[(_Bool) 0.0 == false ? 1 : -1];
23545              char g[true];
23546              char h[sizeof (_Bool)];
23547              char i[sizeof s.t];
23548              enum { j = false, k = true, l = false * true, m = true * 256 };
23549              /* The following fails for
23550                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
23551              _Bool n[m];
23552              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
23553              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
23554              /* Catch a bug in an HP-UX C compiler.  See
23555                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
23556                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
23557               */
23558              _Bool q = true;
23559              _Bool *pq = &q;
23560
23561 int
23562 main ()
23563 {
23564
23565              bool e = &s;
23566              *pq |= q;
23567              *pq |= ! q;
23568              /* Refer to every declared value, to avoid compiler optimizations.  */
23569              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
23570                      + !m + !n + !o + !p + !q + !pq);
23571
23572   ;
23573   return 0;
23574 }
23575 _ACEOF
23576 if ac_fn_c_try_compile "$LINENO"; then :
23577   ac_cv_header_stdbool_h=yes
23578 else
23579   ac_cv_header_stdbool_h=no
23580 fi
23581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23582 fi
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
23584 $as_echo "$ac_cv_header_stdbool_h" >&6; }
23585    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
23586 if test "x$ac_cv_type__Bool" = xyes; then :
23587
23588 cat >>confdefs.h <<_ACEOF
23589 #define HAVE__BOOL 1
23590 _ACEOF
23591
23592
23593 fi
23594
23595
23596
23597
23598
23599
23600
23601
23602
23603   if test $ac_cv_type_long_long_int = yes; then
23604     HAVE_LONG_LONG_INT=1
23605   else
23606     HAVE_LONG_LONG_INT=0
23607   fi
23608
23609
23610   if test $ac_cv_type_unsigned_long_long_int = yes; then
23611     HAVE_UNSIGNED_LONG_LONG_INT=1
23612   else
23613     HAVE_UNSIGNED_LONG_LONG_INT=0
23614   fi
23615
23616
23617
23618   if test $ac_cv_header_wchar_h = yes; then
23619     HAVE_WCHAR_H=1
23620   else
23621     HAVE_WCHAR_H=0
23622   fi
23623
23624
23625       if test $ac_cv_header_inttypes_h = yes; then
23626     HAVE_INTTYPES_H=1
23627   else
23628     HAVE_INTTYPES_H=0
23629   fi
23630
23631
23632       if test $ac_cv_header_sys_types_h = yes; then
23633     HAVE_SYS_TYPES_H=1
23634   else
23635     HAVE_SYS_TYPES_H=0
23636   fi
23637
23638
23639
23640
23641
23642
23643
23644
23645
23646
23647
23648      if test $gl_cv_have_include_next = yes; then
23649        gl_cv_next_stdint_h='<'stdint.h'>'
23650      else
23651        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
23652 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
23653 if ${gl_cv_next_stdint_h+:} false; then :
23654   $as_echo_n "(cached) " >&6
23655 else
23656
23657              if test $ac_cv_header_stdint_h = yes; then
23658
23659
23660                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23661 /* end confdefs.h.  */
23662 #include <stdint.h>
23663
23664 _ACEOF
23665                                                                                                                         case "$host_os" in
23666                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
23667                  *)    gl_absname_cpp="$ac_cpp" ;;
23668                esac
23669
23670                case "$host_os" in
23671                  mingw*)
23672                                                                                                                                      gl_dirsep_regex='[/\\]'
23673                    ;;
23674                  *)
23675                    gl_dirsep_regex='\/'
23676                    ;;
23677                esac
23678                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23679
23680                gl_header_literal_regex=`echo 'stdint.h' \
23681                                         | sed -e "$gl_make_literal_regex_sed"`
23682                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23683                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23684                    s|^/[^/]|//&|
23685                    p
23686                    q
23687                  }'
23688                                                             gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23689                       sed -n "$gl_absolute_header_sed"`'"'
23690           else
23691                gl_cv_next_stdint_h='<'stdint.h'>'
23692              fi
23693
23694
23695 fi
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
23697 $as_echo "$gl_cv_next_stdint_h" >&6; }
23698      fi
23699      NEXT_STDINT_H=$gl_cv_next_stdint_h
23700
23701      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23702        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23703        gl_next_as_first_directive='<'stdint.h'>'
23704      else
23705        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23706        gl_next_as_first_directive=$gl_cv_next_stdint_h
23707      fi
23708      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
23709
23710
23711
23712
23713   if test $ac_cv_header_stdint_h = yes; then
23714     HAVE_STDINT_H=1
23715   else
23716     HAVE_STDINT_H=0
23717   fi
23718
23719
23720     if test $ac_cv_header_stdint_h = yes; then
23721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
23722 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
23723 if ${gl_cv_header_working_stdint_h+:} false; then :
23724   $as_echo_n "(cached) " >&6
23725 else
23726   gl_cv_header_working_stdint_h=no
23727        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23728 /* end confdefs.h.  */
23729
23730
23731 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
23732 #include <stdint.h>
23733 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
23734 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
23735 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
23736 #endif
23737
23738
23739   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23740      included before <wchar.h>.  */
23741   #include <stddef.h>
23742   #include <signal.h>
23743   #if HAVE_WCHAR_H
23744   # include <stdio.h>
23745   # include <time.h>
23746   # include <wchar.h>
23747   #endif
23748
23749
23750 #ifdef INT8_MAX
23751 int8_t a1 = INT8_MAX;
23752 int8_t a1min = INT8_MIN;
23753 #endif
23754 #ifdef INT16_MAX
23755 int16_t a2 = INT16_MAX;
23756 int16_t a2min = INT16_MIN;
23757 #endif
23758 #ifdef INT32_MAX
23759 int32_t a3 = INT32_MAX;
23760 int32_t a3min = INT32_MIN;
23761 #endif
23762 #ifdef INT64_MAX
23763 int64_t a4 = INT64_MAX;
23764 int64_t a4min = INT64_MIN;
23765 #endif
23766 #ifdef UINT8_MAX
23767 uint8_t b1 = UINT8_MAX;
23768 #else
23769 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
23770 #endif
23771 #ifdef UINT16_MAX
23772 uint16_t b2 = UINT16_MAX;
23773 #endif
23774 #ifdef UINT32_MAX
23775 uint32_t b3 = UINT32_MAX;
23776 #endif
23777 #ifdef UINT64_MAX
23778 uint64_t b4 = UINT64_MAX;
23779 #endif
23780 int_least8_t c1 = INT8_C (0x7f);
23781 int_least8_t c1max = INT_LEAST8_MAX;
23782 int_least8_t c1min = INT_LEAST8_MIN;
23783 int_least16_t c2 = INT16_C (0x7fff);
23784 int_least16_t c2max = INT_LEAST16_MAX;
23785 int_least16_t c2min = INT_LEAST16_MIN;
23786 int_least32_t c3 = INT32_C (0x7fffffff);
23787 int_least32_t c3max = INT_LEAST32_MAX;
23788 int_least32_t c3min = INT_LEAST32_MIN;
23789 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
23790 int_least64_t c4max = INT_LEAST64_MAX;
23791 int_least64_t c4min = INT_LEAST64_MIN;
23792 uint_least8_t d1 = UINT8_C (0xff);
23793 uint_least8_t d1max = UINT_LEAST8_MAX;
23794 uint_least16_t d2 = UINT16_C (0xffff);
23795 uint_least16_t d2max = UINT_LEAST16_MAX;
23796 uint_least32_t d3 = UINT32_C (0xffffffff);
23797 uint_least32_t d3max = UINT_LEAST32_MAX;
23798 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
23799 uint_least64_t d4max = UINT_LEAST64_MAX;
23800 int_fast8_t e1 = INT_FAST8_MAX;
23801 int_fast8_t e1min = INT_FAST8_MIN;
23802 int_fast16_t e2 = INT_FAST16_MAX;
23803 int_fast16_t e2min = INT_FAST16_MIN;
23804 int_fast32_t e3 = INT_FAST32_MAX;
23805 int_fast32_t e3min = INT_FAST32_MIN;
23806 int_fast64_t e4 = INT_FAST64_MAX;
23807 int_fast64_t e4min = INT_FAST64_MIN;
23808 uint_fast8_t f1 = UINT_FAST8_MAX;
23809 uint_fast16_t f2 = UINT_FAST16_MAX;
23810 uint_fast32_t f3 = UINT_FAST32_MAX;
23811 uint_fast64_t f4 = UINT_FAST64_MAX;
23812 #ifdef INTPTR_MAX
23813 intptr_t g = INTPTR_MAX;
23814 intptr_t gmin = INTPTR_MIN;
23815 #endif
23816 #ifdef UINTPTR_MAX
23817 uintptr_t h = UINTPTR_MAX;
23818 #endif
23819 intmax_t i = INTMAX_MAX;
23820 uintmax_t j = UINTMAX_MAX;
23821
23822 #include <limits.h> /* for CHAR_BIT */
23823 #define TYPE_MINIMUM(t) \
23824   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
23825 #define TYPE_MAXIMUM(t) \
23826   ((t) ((t) 0 < (t) -1 \
23827         ? (t) -1 \
23828         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
23829 struct s {
23830   int check_PTRDIFF:
23831       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
23832       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
23833       ? 1 : -1;
23834   /* Detect bug in FreeBSD 6.0 / ia64.  */
23835   int check_SIG_ATOMIC:
23836       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
23837       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
23838       ? 1 : -1;
23839   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
23840   int check_WCHAR:
23841       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
23842       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
23843       ? 1 : -1;
23844   /* Detect bug in mingw.  */
23845   int check_WINT:
23846       WINT_MIN == TYPE_MINIMUM (wint_t)
23847       && WINT_MAX == TYPE_MAXIMUM (wint_t)
23848       ? 1 : -1;
23849
23850   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
23851   int check_UINT8_C:
23852         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
23853   int check_UINT16_C:
23854         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
23855
23856   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
23857 #ifdef UINT8_MAX
23858   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
23859 #endif
23860 #ifdef UINT16_MAX
23861   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
23862 #endif
23863 #ifdef UINT32_MAX
23864   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
23865 #endif
23866 #ifdef UINT64_MAX
23867   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
23868 #endif
23869   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
23870   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
23871   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
23872   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
23873   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
23874   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
23875   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
23876   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
23877   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
23878   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
23879   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
23880 };
23881
23882 int
23883 main ()
23884 {
23885
23886   ;
23887   return 0;
23888 }
23889 _ACEOF
23890 if ac_fn_c_try_compile "$LINENO"; then :
23891                                                     if test "$cross_compiling" = yes; then :
23892                  gl_cv_header_working_stdint_h=yes
23893
23894 else
23895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23896 /* end confdefs.h.  */
23897
23898
23899 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
23900 #include <stdint.h>
23901
23902
23903   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
23904      included before <wchar.h>.  */
23905   #include <stddef.h>
23906   #include <signal.h>
23907   #if HAVE_WCHAR_H
23908   # include <stdio.h>
23909   # include <time.h>
23910   # include <wchar.h>
23911   #endif
23912
23913
23914 #include <stdio.h>
23915 #include <string.h>
23916 #define MVAL(macro) MVAL1(macro)
23917 #define MVAL1(expression) #expression
23918 static const char *macro_values[] =
23919   {
23920 #ifdef INT8_MAX
23921     MVAL (INT8_MAX),
23922 #endif
23923 #ifdef INT16_MAX
23924     MVAL (INT16_MAX),
23925 #endif
23926 #ifdef INT32_MAX
23927     MVAL (INT32_MAX),
23928 #endif
23929 #ifdef INT64_MAX
23930     MVAL (INT64_MAX),
23931 #endif
23932 #ifdef UINT8_MAX
23933     MVAL (UINT8_MAX),
23934 #endif
23935 #ifdef UINT16_MAX
23936     MVAL (UINT16_MAX),
23937 #endif
23938 #ifdef UINT32_MAX
23939     MVAL (UINT32_MAX),
23940 #endif
23941 #ifdef UINT64_MAX
23942     MVAL (UINT64_MAX),
23943 #endif
23944     NULL
23945   };
23946
23947 int
23948 main ()
23949 {
23950
23951   const char **mv;
23952   for (mv = macro_values; *mv != NULL; mv++)
23953     {
23954       const char *value = *mv;
23955       /* Test whether it looks like a cast expression.  */
23956       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
23957           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
23958           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
23959           || strncmp (value, "((int)"/*)*/, 6) == 0
23960           || strncmp (value, "((signed short)"/*)*/, 15) == 0
23961           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
23962         return mv - macro_values + 1;
23963     }
23964   return 0;
23965
23966   ;
23967   return 0;
23968 }
23969 _ACEOF
23970 if ac_fn_c_try_run "$LINENO"; then :
23971   gl_cv_header_working_stdint_h=yes
23972 fi
23973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23974   conftest.$ac_objext conftest.beam conftest.$ac_ext
23975 fi
23976
23977
23978 fi
23979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23980
23981 fi
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
23983 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
23984   fi
23985   if test "$gl_cv_header_working_stdint_h" = yes; then
23986     STDINT_H=
23987   else
23988             for ac_header in sys/inttypes.h sys/bitypes.h
23989 do :
23990   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23991 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23992 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23993   cat >>confdefs.h <<_ACEOF
23994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23995 _ACEOF
23996
23997 fi
23998
23999 done
24000
24001     if test $ac_cv_header_sys_inttypes_h = yes; then
24002       HAVE_SYS_INTTYPES_H=1
24003     else
24004       HAVE_SYS_INTTYPES_H=0
24005     fi
24006
24007     if test $ac_cv_header_sys_bitypes_h = yes; then
24008       HAVE_SYS_BITYPES_H=1
24009     else
24010       HAVE_SYS_BITYPES_H=0
24011     fi
24012
24013
24014
24015
24016   if test $APPLE_UNIVERSAL_BUILD = 0; then
24017
24018
24019   for gltype in ptrdiff_t size_t ; do
24020     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
24021 $as_echo_n "checking for bit size of $gltype... " >&6; }
24022 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
24023   $as_echo_n "(cached) " >&6
24024 else
24025   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
24026   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24027      included before <wchar.h>.  */
24028   #include <stddef.h>
24029   #include <signal.h>
24030   #if HAVE_WCHAR_H
24031   # include <stdio.h>
24032   # include <time.h>
24033   # include <wchar.h>
24034   #endif
24035
24036 #include <limits.h>"; then :
24037
24038 else
24039   result=unknown
24040 fi
24041
24042        eval gl_cv_bitsizeof_${gltype}=\$result
24043
24044 fi
24045 eval ac_res=\$gl_cv_bitsizeof_${gltype}
24046                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24047 $as_echo "$ac_res" >&6; }
24048     eval result=\$gl_cv_bitsizeof_${gltype}
24049     if test $result = unknown; then
24050                                                 result=0
24051     fi
24052     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24053     cat >>confdefs.h <<_ACEOF
24054 #define BITSIZEOF_${GLTYPE} $result
24055 _ACEOF
24056
24057     eval BITSIZEOF_${GLTYPE}=\$result
24058   done
24059
24060
24061   fi
24062
24063
24064   for gltype in sig_atomic_t wchar_t wint_t ; do
24065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
24066 $as_echo_n "checking for bit size of $gltype... " >&6; }
24067 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
24068   $as_echo_n "(cached) " >&6
24069 else
24070   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
24071   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24072      included before <wchar.h>.  */
24073   #include <stddef.h>
24074   #include <signal.h>
24075   #if HAVE_WCHAR_H
24076   # include <stdio.h>
24077   # include <time.h>
24078   # include <wchar.h>
24079   #endif
24080
24081 #include <limits.h>"; then :
24082
24083 else
24084   result=unknown
24085 fi
24086
24087        eval gl_cv_bitsizeof_${gltype}=\$result
24088
24089 fi
24090 eval ac_res=\$gl_cv_bitsizeof_${gltype}
24091                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24092 $as_echo "$ac_res" >&6; }
24093     eval result=\$gl_cv_bitsizeof_${gltype}
24094     if test $result = unknown; then
24095                                                 result=0
24096     fi
24097     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24098     cat >>confdefs.h <<_ACEOF
24099 #define BITSIZEOF_${GLTYPE} $result
24100 _ACEOF
24101
24102     eval BITSIZEOF_${GLTYPE}=\$result
24103   done
24104
24105
24106
24107
24108   for gltype in sig_atomic_t wchar_t wint_t ; do
24109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
24110 $as_echo_n "checking whether $gltype is signed... " >&6; }
24111 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
24112   $as_echo_n "(cached) " >&6
24113 else
24114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24115 /* end confdefs.h.  */
24116
24117   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24118      included before <wchar.h>.  */
24119   #include <stddef.h>
24120   #include <signal.h>
24121   #if HAVE_WCHAR_H
24122   # include <stdio.h>
24123   # include <time.h>
24124   # include <wchar.h>
24125   #endif
24126
24127             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
24128 int
24129 main ()
24130 {
24131
24132   ;
24133   return 0;
24134 }
24135 _ACEOF
24136 if ac_fn_c_try_compile "$LINENO"; then :
24137   result=yes
24138 else
24139   result=no
24140 fi
24141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24142        eval gl_cv_type_${gltype}_signed=\$result
24143
24144 fi
24145 eval ac_res=\$gl_cv_type_${gltype}_signed
24146                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24147 $as_echo "$ac_res" >&6; }
24148     eval result=\$gl_cv_type_${gltype}_signed
24149     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24150     if test "$result" = yes; then
24151       cat >>confdefs.h <<_ACEOF
24152 #define HAVE_SIGNED_${GLTYPE} 1
24153 _ACEOF
24154
24155       eval HAVE_SIGNED_${GLTYPE}=1
24156     else
24157       eval HAVE_SIGNED_${GLTYPE}=0
24158     fi
24159   done
24160
24161
24162   gl_cv_type_ptrdiff_t_signed=yes
24163   gl_cv_type_size_t_signed=no
24164   if test $APPLE_UNIVERSAL_BUILD = 0; then
24165
24166
24167   for gltype in ptrdiff_t size_t ; do
24168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
24169 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
24170 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
24171   $as_echo_n "(cached) " >&6
24172 else
24173   eval gl_cv_type_${gltype}_suffix=no
24174        eval result=\$gl_cv_type_${gltype}_signed
24175        if test "$result" = yes; then
24176          glsufu=
24177        else
24178          glsufu=u
24179        fi
24180        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
24181          case $glsuf in
24182            '')  gltype1='int';;
24183            l)   gltype1='long int';;
24184            ll)  gltype1='long long int';;
24185            i64) gltype1='__int64';;
24186            u)   gltype1='unsigned int';;
24187            ul)  gltype1='unsigned long int';;
24188            ull) gltype1='unsigned long long int';;
24189            ui64)gltype1='unsigned __int64';;
24190          esac
24191          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24192 /* end confdefs.h.  */
24193
24194   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24195      included before <wchar.h>.  */
24196   #include <stddef.h>
24197   #include <signal.h>
24198   #if HAVE_WCHAR_H
24199   # include <stdio.h>
24200   # include <time.h>
24201   # include <wchar.h>
24202   #endif
24203
24204               extern $gltype foo;
24205               extern $gltype1 foo;
24206 int
24207 main ()
24208 {
24209
24210   ;
24211   return 0;
24212 }
24213 _ACEOF
24214 if ac_fn_c_try_compile "$LINENO"; then :
24215   eval gl_cv_type_${gltype}_suffix=\$glsuf
24216 fi
24217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24218          eval result=\$gl_cv_type_${gltype}_suffix
24219          test "$result" != no && break
24220        done
24221 fi
24222 eval ac_res=\$gl_cv_type_${gltype}_suffix
24223                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24224 $as_echo "$ac_res" >&6; }
24225     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24226     eval result=\$gl_cv_type_${gltype}_suffix
24227     test "$result" = no && result=
24228     eval ${GLTYPE}_SUFFIX=\$result
24229     cat >>confdefs.h <<_ACEOF
24230 #define ${GLTYPE}_SUFFIX $result
24231 _ACEOF
24232
24233   done
24234
24235
24236   fi
24237
24238
24239   for gltype in sig_atomic_t wchar_t wint_t ; do
24240     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
24241 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
24242 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
24243   $as_echo_n "(cached) " >&6
24244 else
24245   eval gl_cv_type_${gltype}_suffix=no
24246        eval result=\$gl_cv_type_${gltype}_signed
24247        if test "$result" = yes; then
24248          glsufu=
24249        else
24250          glsufu=u
24251        fi
24252        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
24253          case $glsuf in
24254            '')  gltype1='int';;
24255            l)   gltype1='long int';;
24256            ll)  gltype1='long long int';;
24257            i64) gltype1='__int64';;
24258            u)   gltype1='unsigned int';;
24259            ul)  gltype1='unsigned long int';;
24260            ull) gltype1='unsigned long long int';;
24261            ui64)gltype1='unsigned __int64';;
24262          esac
24263          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24264 /* end confdefs.h.  */
24265
24266   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
24267      included before <wchar.h>.  */
24268   #include <stddef.h>
24269   #include <signal.h>
24270   #if HAVE_WCHAR_H
24271   # include <stdio.h>
24272   # include <time.h>
24273   # include <wchar.h>
24274   #endif
24275
24276               extern $gltype foo;
24277               extern $gltype1 foo;
24278 int
24279 main ()
24280 {
24281
24282   ;
24283   return 0;
24284 }
24285 _ACEOF
24286 if ac_fn_c_try_compile "$LINENO"; then :
24287   eval gl_cv_type_${gltype}_suffix=\$glsuf
24288 fi
24289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24290          eval result=\$gl_cv_type_${gltype}_suffix
24291          test "$result" != no && break
24292        done
24293 fi
24294 eval ac_res=\$gl_cv_type_${gltype}_suffix
24295                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24296 $as_echo "$ac_res" >&6; }
24297     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
24298     eval result=\$gl_cv_type_${gltype}_suffix
24299     test "$result" = no && result=
24300     eval ${GLTYPE}_SUFFIX=\$result
24301     cat >>confdefs.h <<_ACEOF
24302 #define ${GLTYPE}_SUFFIX $result
24303 _ACEOF
24304
24305   done
24306
24307
24308
24309           if test $BITSIZEOF_WINT_T -lt 32; then
24310     BITSIZEOF_WINT_T=32
24311   fi
24312
24313     STDINT_H=stdint.h
24314   fi
24315
24316    if test -n "$STDINT_H"; then
24317   GL_GENERATE_STDINT_H_TRUE=
24318   GL_GENERATE_STDINT_H_FALSE='#'
24319 else
24320   GL_GENERATE_STDINT_H_TRUE='#'
24321   GL_GENERATE_STDINT_H_FALSE=
24322 fi
24323
24324
24325
24326      REPLACE_STRERROR_0=0
24327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
24328 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
24329 if ${gl_cv_func_strerror_0_works+:} false; then :
24330   $as_echo_n "(cached) " >&6
24331 else
24332   if test "$cross_compiling" = yes; then :
24333   case "$host_os" in
24334                  # Guess yes on glibc systems.
24335          *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
24336                  # If we don't know, assume the worst.
24337          *)      gl_cv_func_strerror_0_works="guessing no" ;;
24338        esac
24339
24340 else
24341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24342 /* end confdefs.h.  */
24343 #include <string.h>
24344            #include <errno.h>
24345
24346 int
24347 main ()
24348 {
24349 int result = 0;
24350            char *str;
24351            errno = 0;
24352            str = strerror (0);
24353            if (!*str) result |= 1;
24354            if (errno) result |= 2;
24355            if (strstr (str, "nknown") || strstr (str, "ndefined"))
24356              result |= 4;
24357            return result;
24358   ;
24359   return 0;
24360 }
24361 _ACEOF
24362 if ac_fn_c_try_run "$LINENO"; then :
24363   gl_cv_func_strerror_0_works=yes
24364 else
24365   gl_cv_func_strerror_0_works=no
24366 fi
24367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24368   conftest.$ac_objext conftest.beam conftest.$ac_ext
24369 fi
24370
24371
24372 fi
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
24374 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
24375   case "$gl_cv_func_strerror_0_works" in
24376     *yes) ;;
24377     *)
24378       REPLACE_STRERROR_0=1
24379
24380 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
24381
24382       ;;
24383   esac
24384
24385
24386
24387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
24388 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
24389 if ${ac_cv_c_restrict+:} false; then :
24390   $as_echo_n "(cached) " >&6
24391 else
24392   ac_cv_c_restrict=no
24393    # The order here caters to the fact that C++ does not require restrict.
24394    for ac_kw in __restrict __restrict__ _Restrict restrict; do
24395      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24396 /* end confdefs.h.  */
24397 typedef int * int_ptr;
24398         int foo (int_ptr $ac_kw ip) {
24399         return ip[0];
24400        }
24401 int
24402 main ()
24403 {
24404 int s[1];
24405         int * $ac_kw t = s;
24406         t[0] = 0;
24407         return foo(t)
24408   ;
24409   return 0;
24410 }
24411 _ACEOF
24412 if ac_fn_c_try_compile "$LINENO"; then :
24413   ac_cv_c_restrict=$ac_kw
24414 fi
24415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24416      test "$ac_cv_c_restrict" != no && break
24417    done
24418
24419 fi
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
24421 $as_echo "$ac_cv_c_restrict" >&6; }
24422
24423  case $ac_cv_c_restrict in
24424    restrict) ;;
24425    no) $as_echo "#define restrict /**/" >>confdefs.h
24426  ;;
24427    *)  cat >>confdefs.h <<_ACEOF
24428 #define restrict $ac_cv_c_restrict
24429 _ACEOF
24430  ;;
24431  esac
24432
24433
24434
24435
24436
24437
24438
24439
24440
24441
24442
24443
24444      if test $gl_cv_have_include_next = yes; then
24445        gl_cv_next_string_h='<'string.h'>'
24446      else
24447        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
24448 $as_echo_n "checking absolute name of <string.h>... " >&6; }
24449 if ${gl_cv_next_string_h+:} false; then :
24450   $as_echo_n "(cached) " >&6
24451 else
24452
24453                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24454 /* end confdefs.h.  */
24455 #include <string.h>
24456
24457 _ACEOF
24458                                                                                                                         case "$host_os" in
24459                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
24460                  *)    gl_absname_cpp="$ac_cpp" ;;
24461                esac
24462
24463                case "$host_os" in
24464                  mingw*)
24465                                                                                                                                      gl_dirsep_regex='[/\\]'
24466                    ;;
24467                  *)
24468                    gl_dirsep_regex='\/'
24469                    ;;
24470                esac
24471                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24472
24473                gl_header_literal_regex=`echo 'string.h' \
24474                                         | sed -e "$gl_make_literal_regex_sed"`
24475                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24476                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24477                    s|^/[^/]|//&|
24478                    p
24479                    q
24480                  }'
24481                                                             gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24482                       sed -n "$gl_absolute_header_sed"`'"'
24483
24484
24485 fi
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
24487 $as_echo "$gl_cv_next_string_h" >&6; }
24488      fi
24489      NEXT_STRING_H=$gl_cv_next_string_h
24490
24491      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24492        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24493        gl_next_as_first_directive='<'string.h'>'
24494      else
24495        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24496        gl_next_as_first_directive=$gl_cv_next_string_h
24497      fi
24498      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
24499
24500
24501
24502
24503
24504
24505     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
24506     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
24507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
24508 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
24509 if eval \${$as_gl_Symbol+:} false; then :
24510   $as_echo_n "(cached) " >&6
24511 else
24512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24513 /* end confdefs.h.  */
24514 #include <string.h>
24515
24516 int
24517 main ()
24518 {
24519 #undef $gl_func
24520   (void) $gl_func;
24521   ;
24522   return 0;
24523 }
24524 _ACEOF
24525 if ac_fn_c_try_compile "$LINENO"; then :
24526   eval "$as_gl_Symbol=yes"
24527 else
24528   eval "$as_gl_Symbol=no"
24529 fi
24530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24531 fi
24532 eval ac_res=\$$as_gl_Symbol
24533                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24534 $as_echo "$ac_res" >&6; }
24535     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
24536   cat >>confdefs.h <<_ACEOF
24537 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
24538 _ACEOF
24539
24540                      eval ac_cv_have_decl_$gl_func=yes
24541 fi
24542       done
24543
24544
24545 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
24546 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
24547   ac_have_decl=1
24548 else
24549   ac_have_decl=0
24550 fi
24551
24552 cat >>confdefs.h <<_ACEOF
24553 #define HAVE_DECL_STRNLEN $ac_have_decl
24554 _ACEOF
24555
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
24557 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
24558 if ${ac_cv_header_stat_broken+:} false; then :
24559   $as_echo_n "(cached) " >&6
24560 else
24561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24562 /* end confdefs.h.  */
24563 #include <sys/types.h>
24564 #include <sys/stat.h>
24565
24566 #if defined S_ISBLK && defined S_IFDIR
24567 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
24568 #endif
24569
24570 #if defined S_ISBLK && defined S_IFCHR
24571 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
24572 #endif
24573
24574 #if defined S_ISLNK && defined S_IFREG
24575 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
24576 #endif
24577
24578 #if defined S_ISSOCK && defined S_IFREG
24579 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
24580 #endif
24581
24582 _ACEOF
24583 if ac_fn_c_try_compile "$LINENO"; then :
24584   ac_cv_header_stat_broken=no
24585 else
24586   ac_cv_header_stat_broken=yes
24587 fi
24588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24589 fi
24590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
24591 $as_echo "$ac_cv_header_stat_broken" >&6; }
24592 if test $ac_cv_header_stat_broken = yes; then
24593
24594 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
24595
24596 fi
24597
24598
24599
24600 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
24601 if test "x$ac_cv_type_mode_t" = xyes; then :
24602
24603 else
24604
24605 cat >>confdefs.h <<_ACEOF
24606 #define mode_t int
24607 _ACEOF
24608
24609 fi
24610
24611
24612
24613
24614
24615
24616
24617
24618
24619
24620
24621
24622
24623
24624
24625
24626
24627
24628
24629      if test $gl_cv_have_include_next = yes; then
24630        gl_cv_next_sys_types_h='<'sys/types.h'>'
24631      else
24632        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
24633 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
24634 if ${gl_cv_next_sys_types_h+:} false; then :
24635   $as_echo_n "(cached) " >&6
24636 else
24637
24638                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24639 /* end confdefs.h.  */
24640 #include <sys/types.h>
24641
24642 _ACEOF
24643                                                                                                                         case "$host_os" in
24644                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
24645                  *)    gl_absname_cpp="$ac_cpp" ;;
24646                esac
24647
24648                case "$host_os" in
24649                  mingw*)
24650                                                                                                                                      gl_dirsep_regex='[/\\]'
24651                    ;;
24652                  *)
24653                    gl_dirsep_regex='\/'
24654                    ;;
24655                esac
24656                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24657
24658                gl_header_literal_regex=`echo 'sys/types.h' \
24659                                         | sed -e "$gl_make_literal_regex_sed"`
24660                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24661                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24662                    s|^/[^/]|//&|
24663                    p
24664                    q
24665                  }'
24666                                                             gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24667                       sed -n "$gl_absolute_header_sed"`'"'
24668
24669
24670 fi
24671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
24672 $as_echo "$gl_cv_next_sys_types_h" >&6; }
24673      fi
24674      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
24675
24676      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24677        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24678        gl_next_as_first_directive='<'sys/types.h'>'
24679      else
24680        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24681        gl_next_as_first_directive=$gl_cv_next_sys_types_h
24682      fi
24683      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
24684
24685
24686
24687
24688
24689
24690
24691
24692
24693
24694
24695
24696   GNULIB_MKTIME=0;
24697   GNULIB_NANOSLEEP=0;
24698   GNULIB_STRPTIME=0;
24699   GNULIB_TIMEGM=0;
24700   GNULIB_TIME_R=0;
24701     HAVE_DECL_LOCALTIME_R=1;
24702   HAVE_NANOSLEEP=1;
24703   HAVE_STRPTIME=1;
24704   HAVE_TIMEGM=1;
24705         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
24706   REPLACE_MKTIME=GNULIB_PORTCHECK;
24707   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
24708   REPLACE_TIMEGM=GNULIB_PORTCHECK;
24709
24710
24711
24712
24713
24714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
24715 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
24716 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
24717   $as_echo_n "(cached) " >&6
24718 else
24719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24720 /* end confdefs.h.  */
24721 #include <time.h>
24722
24723 int
24724 main ()
24725 {
24726 static struct timespec x; x.tv_sec = x.tv_nsec;
24727   ;
24728   return 0;
24729 }
24730 _ACEOF
24731 if ac_fn_c_try_compile "$LINENO"; then :
24732   gl_cv_sys_struct_timespec_in_time_h=yes
24733 else
24734   gl_cv_sys_struct_timespec_in_time_h=no
24735 fi
24736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24737 fi
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
24739 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
24740
24741   TIME_H_DEFINES_STRUCT_TIMESPEC=0
24742   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
24743   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
24744   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
24745     TIME_H_DEFINES_STRUCT_TIMESPEC=1
24746   else
24747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
24748 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
24749 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
24750   $as_echo_n "(cached) " >&6
24751 else
24752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24753 /* end confdefs.h.  */
24754 #include <sys/time.h>
24755
24756 int
24757 main ()
24758 {
24759 static struct timespec x; x.tv_sec = x.tv_nsec;
24760   ;
24761   return 0;
24762 }
24763 _ACEOF
24764 if ac_fn_c_try_compile "$LINENO"; then :
24765   gl_cv_sys_struct_timespec_in_sys_time_h=yes
24766 else
24767   gl_cv_sys_struct_timespec_in_sys_time_h=no
24768 fi
24769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24770 fi
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
24772 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
24773     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
24774       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
24775     else
24776       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
24777 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
24778 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
24779   $as_echo_n "(cached) " >&6
24780 else
24781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24782 /* end confdefs.h.  */
24783 #include <pthread.h>
24784
24785 int
24786 main ()
24787 {
24788 static struct timespec x; x.tv_sec = x.tv_nsec;
24789   ;
24790   return 0;
24791 }
24792 _ACEOF
24793 if ac_fn_c_try_compile "$LINENO"; then :
24794   gl_cv_sys_struct_timespec_in_pthread_h=yes
24795 else
24796   gl_cv_sys_struct_timespec_in_pthread_h=no
24797 fi
24798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24799 fi
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
24801 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
24802       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
24803         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
24804       fi
24805     fi
24806   fi
24807
24808
24809
24810
24811
24812
24813
24814
24815
24816
24817
24818
24819
24820
24821
24822      if test $gl_cv_have_include_next = yes; then
24823        gl_cv_next_time_h='<'time.h'>'
24824      else
24825        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
24826 $as_echo_n "checking absolute name of <time.h>... " >&6; }
24827 if ${gl_cv_next_time_h+:} false; then :
24828   $as_echo_n "(cached) " >&6
24829 else
24830
24831                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24832 /* end confdefs.h.  */
24833 #include <time.h>
24834
24835 _ACEOF
24836                                                                                                                         case "$host_os" in
24837                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
24838                  *)    gl_absname_cpp="$ac_cpp" ;;
24839                esac
24840
24841                case "$host_os" in
24842                  mingw*)
24843                                                                                                                                      gl_dirsep_regex='[/\\]'
24844                    ;;
24845                  *)
24846                    gl_dirsep_regex='\/'
24847                    ;;
24848                esac
24849                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24850
24851                gl_header_literal_regex=`echo 'time.h' \
24852                                         | sed -e "$gl_make_literal_regex_sed"`
24853                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24854                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24855                    s|^/[^/]|//&|
24856                    p
24857                    q
24858                  }'
24859                                                             gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24860                       sed -n "$gl_absolute_header_sed"`'"'
24861
24862
24863 fi
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
24865 $as_echo "$gl_cv_next_time_h" >&6; }
24866      fi
24867      NEXT_TIME_H=$gl_cv_next_time_h
24868
24869      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24870        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24871        gl_next_as_first_directive='<'time.h'>'
24872      else
24873        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24874        gl_next_as_first_directive=$gl_cv_next_time_h
24875      fi
24876      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
24877
24878
24879
24880
24881
24882
24883
24884
24885
24886
24887
24888
24889 gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
24890 i\
24891 0
24892 q
24893 '
24894 gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
24895 i\
24896 0
24897 q
24898 '
24899 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;}
24900 i\
24901 0
24902 q
24903 '
24904
24905
24906   if test "$HAVE_LIBUNISTRING" = yes; then
24907     LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
24908     LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
24909     LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
24910   fi
24911
24912 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
24913 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
24914   ac_have_decl=1
24915 else
24916   ac_have_decl=0
24917 fi
24918
24919 cat >>confdefs.h <<_ACEOF
24920 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
24921 _ACEOF
24922
24923 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
24924 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
24925   ac_have_decl=1
24926 else
24927   ac_have_decl=0
24928 fi
24929
24930 cat >>confdefs.h <<_ACEOF
24931 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
24932 _ACEOF
24933
24934 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
24935 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
24936   ac_have_decl=1
24937 else
24938   ac_have_decl=0
24939 fi
24940
24941 cat >>confdefs.h <<_ACEOF
24942 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
24943 _ACEOF
24944
24945 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
24946 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
24947   ac_have_decl=1
24948 else
24949   ac_have_decl=0
24950 fi
24951
24952 cat >>confdefs.h <<_ACEOF
24953 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
24954 _ACEOF
24955
24956 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
24957 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
24958   ac_have_decl=1
24959 else
24960   ac_have_decl=0
24961 fi
24962
24963 cat >>confdefs.h <<_ACEOF
24964 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
24965 _ACEOF
24966
24967 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
24968 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
24969   ac_have_decl=1
24970 else
24971   ac_have_decl=0
24972 fi
24973
24974 cat >>confdefs.h <<_ACEOF
24975 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
24976 _ACEOF
24977
24978 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
24979 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
24980   ac_have_decl=1
24981 else
24982   ac_have_decl=0
24983 fi
24984
24985 cat >>confdefs.h <<_ACEOF
24986 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
24987 _ACEOF
24988
24989 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
24990 if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
24991   ac_have_decl=1
24992 else
24993   ac_have_decl=0
24994 fi
24995
24996 cat >>confdefs.h <<_ACEOF
24997 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
24998 _ACEOF
24999
25000 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
25001 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
25002   ac_have_decl=1
25003 else
25004   ac_have_decl=0
25005 fi
25006
25007 cat >>confdefs.h <<_ACEOF
25008 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
25009 _ACEOF
25010
25011 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
25012 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
25013   ac_have_decl=1
25014 else
25015   ac_have_decl=0
25016 fi
25017
25018 cat >>confdefs.h <<_ACEOF
25019 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
25020 _ACEOF
25021
25022 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
25023 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
25024   ac_have_decl=1
25025 else
25026   ac_have_decl=0
25027 fi
25028
25029 cat >>confdefs.h <<_ACEOF
25030 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
25031 _ACEOF
25032
25033 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
25034 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
25035   ac_have_decl=1
25036 else
25037   ac_have_decl=0
25038 fi
25039
25040 cat >>confdefs.h <<_ACEOF
25041 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
25042 _ACEOF
25043
25044
25045             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
25046 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
25047 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
25048   $as_echo_n "(cached) " >&6
25049 else
25050   gl_cv_header_wchar_h_correct_inline=yes
25051      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25052 /* end confdefs.h.  */
25053
25054        #define wcstod renamed_wcstod
25055 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25056    <wchar.h>.
25057    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25058    included before <wchar.h>.  */
25059 #include <stddef.h>
25060 #include <stdio.h>
25061 #include <time.h>
25062 #include <wchar.h>
25063 extern int zero (void);
25064 int main () { return zero(); }
25065
25066 _ACEOF
25067      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
25068   (eval $ac_compile) 2>&5
25069   ac_status=$?
25070   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25071   test $ac_status = 0; }; then
25072        mv conftest.$ac_objext conftest1.$ac_objext
25073        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25074 /* end confdefs.h.  */
25075
25076          #define wcstod renamed_wcstod
25077 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25078    <wchar.h>.
25079    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25080    included before <wchar.h>.  */
25081 #include <stddef.h>
25082 #include <stdio.h>
25083 #include <time.h>
25084 #include <wchar.h>
25085 int zero (void) { return 0; }
25086
25087 _ACEOF
25088        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
25089   (eval $ac_compile) 2>&5
25090   ac_status=$?
25091   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25092   test $ac_status = 0; }; then
25093          mv conftest.$ac_objext conftest2.$ac_objext
25094          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
25095            :
25096          else
25097            gl_cv_header_wchar_h_correct_inline=no
25098          fi
25099        fi
25100      fi
25101      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
25102
25103 fi
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
25105 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
25106   if test $gl_cv_header_wchar_h_correct_inline = no; then
25107     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
25108 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
25109 C99 mode. You have four options:
25110   - Add the flag -fgnu89-inline to CC and reconfigure, or
25111   - Fix your include files, using parts of
25112     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
25113   - Use a gcc version older than 4.3, or
25114   - Don't use the flags -std=c99 or -std=gnu99.
25115 Configuration aborted." "$LINENO" 5
25116   fi
25117
25118
25119
25120
25121
25122   if test $ac_cv_header_features_h = yes; then
25123     HAVE_FEATURES_H=1
25124   else
25125     HAVE_FEATURES_H=0
25126   fi
25127
25128
25129
25130
25131
25132    if false; then
25133   GL_COND_LIBTOOL_TRUE=
25134   GL_COND_LIBTOOL_FALSE='#'
25135 else
25136   GL_COND_LIBTOOL_TRUE='#'
25137   GL_COND_LIBTOOL_FALSE=
25138 fi
25139
25140   gl_cond_libtool=false
25141   gl_libdeps=
25142   gl_ltlibdeps=
25143   gl_m4_base='gnulib-m4'
25144
25145
25146
25147
25148
25149
25150
25151
25152
25153   gl_source_base='gnulib-lib'
25154
25155
25156
25157
25158
25159   if test $ac_cv_func_alloca_works = no; then
25160
25161
25162   :
25163
25164   fi
25165
25166   # Define an additional variable used in the Makefile substitution.
25167
25168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25169 /* end confdefs.h.  */
25170
25171 #if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
25172   Need own alloca
25173 #endif
25174
25175 _ACEOF
25176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25177   $EGREP "Need own alloca" >/dev/null 2>&1; then :
25178   ALLOCA_H=alloca.h
25179 else
25180   ALLOCA_H=
25181 fi
25182 rm -f conftest*
25183
25184
25185    if test -n "$ALLOCA_H"; then
25186   GL_GENERATE_ALLOCA_H_TRUE=
25187   GL_GENERATE_ALLOCA_H_FALSE='#'
25188 else
25189   GL_GENERATE_ALLOCA_H_TRUE='#'
25190   GL_GENERATE_ALLOCA_H_FALSE=
25191 fi
25192
25193
25194
25195
25196
25197   if test "$CXX_CHOICE" = no; then
25198     CXX=no
25199   fi
25200   if test -z "$CXX"; then
25201     if test -n "$CCC"; then
25202       CXX="$CCC"
25203     else
25204       if test -n "$ac_tool_prefix"; then
25205   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
25206   do
25207     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25210 $as_echo_n "checking for $ac_word... " >&6; }
25211 if ${ac_cv_prog_CXX+:} false; then :
25212   $as_echo_n "(cached) " >&6
25213 else
25214   if test -n "$CXX"; then
25215   ac_cv_prog_CXX="$CXX" # Let the user override the test.
25216 else
25217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25218 for as_dir in $PATH
25219 do
25220   IFS=$as_save_IFS
25221   test -z "$as_dir" && as_dir=.
25222     for ac_exec_ext in '' $ac_executable_extensions; do
25223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25224     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
25225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25226     break 2
25227   fi
25228 done
25229   done
25230 IFS=$as_save_IFS
25231
25232 fi
25233 fi
25234 CXX=$ac_cv_prog_CXX
25235 if test -n "$CXX"; then
25236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
25237 $as_echo "$CXX" >&6; }
25238 else
25239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25240 $as_echo "no" >&6; }
25241 fi
25242
25243
25244     test -n "$CXX" && break
25245   done
25246 fi
25247 if test -z "$CXX"; then
25248   ac_ct_CXX=$CXX
25249   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
25250 do
25251   # Extract the first word of "$ac_prog", so it can be a program name with args.
25252 set dummy $ac_prog; ac_word=$2
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25254 $as_echo_n "checking for $ac_word... " >&6; }
25255 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
25256   $as_echo_n "(cached) " >&6
25257 else
25258   if test -n "$ac_ct_CXX"; then
25259   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25260 else
25261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25262 for as_dir in $PATH
25263 do
25264   IFS=$as_save_IFS
25265   test -z "$as_dir" && as_dir=.
25266     for ac_exec_ext in '' $ac_executable_extensions; do
25267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25268     ac_cv_prog_ac_ct_CXX="$ac_prog"
25269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25270     break 2
25271   fi
25272 done
25273   done
25274 IFS=$as_save_IFS
25275
25276 fi
25277 fi
25278 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25279 if test -n "$ac_ct_CXX"; then
25280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
25281 $as_echo "$ac_ct_CXX" >&6; }
25282 else
25283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25284 $as_echo "no" >&6; }
25285 fi
25286
25287
25288   test -n "$ac_ct_CXX" && break
25289 done
25290
25291   if test "x$ac_ct_CXX" = x; then
25292     CXX=":"
25293   else
25294     case $cross_compiling:$ac_tool_warned in
25295 yes:)
25296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25298 ac_tool_warned=yes ;;
25299 esac
25300     CXX=$ac_ct_CXX
25301   fi
25302 fi
25303
25304     fi
25305   fi
25306   if test "$CXX" != no; then
25307             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
25308 $as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; }
25309     ac_ext=cpp
25310 ac_cpp='$CXXCPP $CPPFLAGS'
25311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25314
25315
25316
25317     echo 'int main () { return 0; }' > conftest.$ac_ext
25318     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
25319   (eval $ac_link) 2>&5
25320   ac_status=$?
25321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25322   test $ac_status = 0; } && test -s conftest$ac_exeext; then
25323       gl_cv_prog_ansicxx_works=yes
25324       if (./conftest; exit) 2>/dev/null; then
25325         gl_cv_prog_ansicxx_cross=no
25326       else
25327         gl_cv_prog_ansicxx_cross=yes
25328       fi
25329     else
25330       gl_cv_prog_ansicxx_works=no
25331     fi
25332     rm -fr conftest*
25333     ac_ext=c
25334 ac_cpp='$CPP $CPPFLAGS'
25335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25338
25339     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_works" >&5
25340 $as_echo "$gl_cv_prog_ansicxx_works" >&6; }
25341     if test $gl_cv_prog_ansicxx_works = no; then
25342       CXX=no
25343     else
25344                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports namespaces" >&5
25345 $as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; }
25346       ac_ext=cpp
25347 ac_cpp='$CXXCPP $CPPFLAGS'
25348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25351
25352       cat <<EOF > conftest.$ac_ext
25353 #include <iostream>
25354 namespace test { using namespace std; }
25355 std::ostream* ptr;
25356 int main () { return 0; }
25357 EOF
25358       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
25359   (eval $ac_link) 2>&5
25360   ac_status=$?
25361   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25362   test $ac_status = 0; } && test -s conftest$ac_exeext; then
25363         gl_cv_prog_ansicxx_namespaces=yes
25364       else
25365         gl_cv_prog_ansicxx_namespaces=no
25366       fi
25367       rm -fr conftest*
25368       ac_ext=c
25369 ac_cpp='$CPP $CPPFLAGS'
25370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25373
25374       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_namespaces" >&5
25375 $as_echo "$gl_cv_prog_ansicxx_namespaces" >&6; }
25376       if test $gl_cv_prog_ansicxx_namespaces = no; then
25377         CXX=no
25378       fi
25379     fi
25380   fi
25381
25382
25383
25384    if test "$CXX" != no; then
25385   ANSICXX_TRUE=
25386   ANSICXX_FALSE='#'
25387 else
25388   ANSICXX_TRUE='#'
25389   ANSICXX_FALSE=
25390 fi
25391
25392
25393   if test "$CXX" != no; then
25394
25395 depcc="$CXX"  am_compiler_list=
25396
25397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25398 $as_echo_n "checking dependency style of $depcc... " >&6; }
25399 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
25400   $as_echo_n "(cached) " >&6
25401 else
25402   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25403   # We make a subdir and do the tests there.  Otherwise we can end up
25404   # making bogus files that we don't know about and never remove.  For
25405   # instance it was reported that on HP-UX the gcc test will end up
25406   # making a dummy file named 'D' -- because '-MD' means "put the output
25407   # in D".
25408   rm -rf conftest.dir
25409   mkdir conftest.dir
25410   # Copy depcomp to subdir because otherwise we won't find it if we're
25411   # using a relative directory.
25412   cp "$am_depcomp" conftest.dir
25413   cd conftest.dir
25414   # We will build objects and dependencies in a subdirectory because
25415   # it helps to detect inapplicable dependency modes.  For instance
25416   # both Tru64's cc and ICC support -MD to output dependencies as a
25417   # side effect of compilation, but ICC will put the dependencies in
25418   # the current directory while Tru64 will put them in the object
25419   # directory.
25420   mkdir sub
25421
25422   am_cv_CXX_dependencies_compiler_type=none
25423   if test "$am_compiler_list" = ""; then
25424      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25425   fi
25426   am__universal=false
25427   case " $depcc " in #(
25428      *\ -arch\ *\ -arch\ *) am__universal=true ;;
25429      esac
25430
25431   for depmode in $am_compiler_list; do
25432     # Setup a source with many dependencies, because some compilers
25433     # like to wrap large dependency lists on column 80 (with \), and
25434     # we should not choose a depcomp mode which is confused by this.
25435     #
25436     # We need to recreate these files for each test, as the compiler may
25437     # overwrite some of them when testing with obscure command lines.
25438     # This happens at least with the AIX C compiler.
25439     : > sub/conftest.c
25440     for i in 1 2 3 4 5 6; do
25441       echo '#include "conftst'$i'.h"' >> sub/conftest.c
25442       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25443       # Solaris 10 /bin/sh.
25444       echo '/* dummy */' > sub/conftst$i.h
25445     done
25446     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25447
25448     # We check with '-c' and '-o' for the sake of the "dashmstdout"
25449     # mode.  It turns out that the SunPro C++ compiler does not properly
25450     # handle '-M -o', and we need to detect this.  Also, some Intel
25451     # versions had trouble with output in subdirs.
25452     am__obj=sub/conftest.${OBJEXT-o}
25453     am__minus_obj="-o $am__obj"
25454     case $depmode in
25455     gcc)
25456       # This depmode causes a compiler race in universal mode.
25457       test "$am__universal" = false || continue
25458       ;;
25459     nosideeffect)
25460       # After this tag, mechanisms are not by side-effect, so they'll
25461       # only be used when explicitly requested.
25462       if test "x$enable_dependency_tracking" = xyes; then
25463         continue
25464       else
25465         break
25466       fi
25467       ;;
25468     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
25469       # This compiler won't grok '-c -o', but also, the minuso test has
25470       # not run yet.  These depmodes are late enough in the game, and
25471       # so weak that their functioning should not be impacted.
25472       am__obj=conftest.${OBJEXT-o}
25473       am__minus_obj=
25474       ;;
25475     none) break ;;
25476     esac
25477     if depmode=$depmode \
25478        source=sub/conftest.c object=$am__obj \
25479        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25480        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25481          >/dev/null 2>conftest.err &&
25482        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25483        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25484        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25485        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25486       # icc doesn't choke on unknown options, it will just issue warnings
25487       # or remarks (even with -Werror).  So we grep stderr for any message
25488       # that says an option was ignored or not supported.
25489       # When given -MP, icc 7.0 and 7.1 complain thusly:
25490       #   icc: Command line warning: ignoring option '-M'; no argument required
25491       # The diagnosis changed in icc 8.0:
25492       #   icc: Command line remark: option '-MP' not supported
25493       if (grep 'ignoring option' conftest.err ||
25494           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25495         am_cv_CXX_dependencies_compiler_type=$depmode
25496         break
25497       fi
25498     fi
25499   done
25500
25501   cd ..
25502   rm -rf conftest.dir
25503 else
25504   am_cv_CXX_dependencies_compiler_type=none
25505 fi
25506
25507 fi
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25509 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25510 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25511
25512  if
25513   test "x$enable_dependency_tracking" != xno \
25514   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25515   am__fastdepCXX_TRUE=
25516   am__fastdepCXX_FALSE='#'
25517 else
25518   am__fastdepCXX_TRUE='#'
25519   am__fastdepCXX_FALSE=
25520 fi
25521
25522
25523   else
25524      if false; then
25525   am__fastdepCXX_TRUE=
25526   am__fastdepCXX_FALSE='#'
25527 else
25528   am__fastdepCXX_TRUE='#'
25529   am__fastdepCXX_FALSE=
25530 fi
25531
25532   fi
25533
25534
25535   for ac_func in atexit
25536 do :
25537   ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
25538 if test "x$ac_cv_func_atexit" = xyes; then :
25539   cat >>confdefs.h <<_ACEOF
25540 #define HAVE_ATEXIT 1
25541 _ACEOF
25542
25543 fi
25544 done
25545
25546
25547   if test $ac_cv_func_atexit = no; then
25548
25549
25550
25551
25552
25553
25554
25555
25556   gl_LIBOBJS="$gl_LIBOBJS atexit.$ac_objext"
25557
25558
25559   :
25560
25561   fi
25562
25563
25564
25565   if test $ac_cv_func_canonicalize_file_name = no; then
25566     HAVE_CANONICALIZE_FILE_NAME=0
25567     if test $ac_cv_func_realpath = no; then
25568       HAVE_REALPATH=0
25569     else
25570       case "$gl_cv_func_realpath_works" in
25571         *yes) ;;
25572         *)    REPLACE_REALPATH=1 ;;
25573       esac
25574     fi
25575   else
25576     case "$gl_cv_func_realpath_works" in
25577       *yes)
25578         ;;
25579       *)
25580         REPLACE_CANONICALIZE_FILE_NAME=1
25581         REPLACE_REALPATH=1
25582         ;;
25583     esac
25584   fi
25585
25586   if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
25587
25588
25589
25590
25591
25592
25593
25594
25595   gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
25596
25597   fi
25598
25599
25600 cat >>confdefs.h <<_ACEOF
25601 #define GNULIB_CANONICALIZE_LGPL 1
25602 _ACEOF
25603
25604
25605
25606
25607
25608
25609
25610           GNULIB_CANONICALIZE_FILE_NAME=1
25611
25612
25613
25614
25615
25616 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
25617
25618
25619
25620
25621
25622
25623
25624
25625           GNULIB_REALPATH=1
25626
25627
25628
25629
25630
25631 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
25632
25633
25634
25635
25636
25637           if test "x$datarootdir" = x; then
25638     datarootdir='${datadir}'
25639
25640   fi
25641     if test "x$docdir" = x; then
25642     docdir='${datarootdir}/doc/${PACKAGE}'
25643
25644   fi
25645     if test "x$htmldir" = x; then
25646     htmldir='${docdir}'
25647
25648   fi
25649   if test "x$dvidir" = x; then
25650     dvidir='${docdir}'
25651
25652   fi
25653   if test "x$pdfdir" = x; then
25654     pdfdir='${docdir}'
25655
25656   fi
25657   if test "x$psdir" = x; then
25658     psdir='${docdir}'
25659
25660   fi
25661   if test "x$lispdir" = x; then
25662     lispdir='${datarootdir}/emacs/site-lisp'
25663
25664   fi
25665   if test "x$localedir" = x; then
25666     localedir='${datarootdir}/locale'
25667
25668   fi
25669
25670       pkglibexecdir='${libexecdir}/${PACKAGE}'
25671
25672
25673
25674   ac_config_files="$ac_config_files csharpcomp.sh:../build-aux/csharpcomp.sh.in"
25675
25676
25677
25678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
25679 $as_echo_n "checking whether // is distinct from /... " >&6; }
25680 if ${gl_cv_double_slash_root+:} false; then :
25681   $as_echo_n "(cached) " >&6
25682 else
25683    if test x"$cross_compiling" = xyes ; then
25684         # When cross-compiling, there is no way to tell whether // is special
25685         # short of a list of hosts.  However, the only known hosts to date
25686         # that have a distinct // are Apollo DomainOS (too old to port to),
25687         # Cygwin, and z/OS.  If anyone knows of another system for which // has
25688         # special semantics and is distinct from /, please report it to
25689         # <bug-gnulib@gnu.org>.
25690         case $host in
25691           *-cygwin | i370-ibm-openedition)
25692             gl_cv_double_slash_root=yes ;;
25693           *)
25694             # Be optimistic and assume that / and // are the same when we
25695             # don't know.
25696             gl_cv_double_slash_root='unknown, assuming no' ;;
25697         esac
25698       else
25699         set x `ls -di / // 2>/dev/null`
25700         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
25701           gl_cv_double_slash_root=no
25702         else
25703           gl_cv_double_slash_root=yes
25704         fi
25705       fi
25706 fi
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
25708 $as_echo "$gl_cv_double_slash_root" >&6; }
25709   if test "$gl_cv_double_slash_root" = yes; then
25710
25711 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
25712
25713   fi
25714
25715
25716
25717
25718
25719
25720
25721           GNULIB_ENVIRON=1
25722
25723
25724
25725
25726
25727 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
25728
25729
25730
25731
25732
25733       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
25734 $as_echo_n "checking for error_at_line... " >&6; }
25735 if ${ac_cv_lib_error_at_line+:} false; then :
25736   $as_echo_n "(cached) " >&6
25737 else
25738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25739 /* end confdefs.h.  */
25740 #include <error.h>
25741 int
25742 main ()
25743 {
25744 error_at_line (0, 0, "", 0, "an error occurred");
25745   ;
25746   return 0;
25747 }
25748 _ACEOF
25749 if ac_fn_c_try_link "$LINENO"; then :
25750   ac_cv_lib_error_at_line=yes
25751 else
25752   ac_cv_lib_error_at_line=no
25753 fi
25754 rm -f core conftest.err conftest.$ac_objext \
25755     conftest$ac_exeext conftest.$ac_ext
25756 fi
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
25758 $as_echo "$ac_cv_lib_error_at_line" >&6; }
25759
25760   if test $ac_cv_lib_error_at_line = no; then
25761
25762
25763
25764
25765
25766
25767
25768
25769   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
25770
25771
25772
25773   :
25774
25775   fi
25776
25777
25778   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
25779
25780
25781
25782   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
25783
25784
25785
25786
25787 cat >>confdefs.h <<_ACEOF
25788 #define GNULIB_FWRITEERROR 1
25789 _ACEOF
25790
25791
25792
25793
25794
25795
25796
25797   if test $REPLACE_GETOPT = 1; then
25798
25799
25800
25801
25802
25803
25804
25805
25806   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
25807
25808
25809
25810
25811
25812
25813
25814
25815
25816   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
25817
25818
25819
25820
25821         GNULIB_GL_UNISTD_H_GETOPT=1
25822   fi
25823
25824
25825
25826 $as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
25827
25828
25829
25830
25831
25832
25833
25834     REPLACE_GETOPT=0
25835     if test -n "$gl_replace_getopt"; then
25836       REPLACE_GETOPT=1
25837     fi
25838
25839   if test $REPLACE_GETOPT = 1; then
25840
25841   GETOPT_H=getopt.h
25842
25843 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
25844
25845
25846
25847   fi
25848
25849   if test $REPLACE_GETOPT = 1; then
25850
25851
25852
25853
25854
25855
25856
25857
25858   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
25859
25860
25861
25862
25863
25864
25865
25866
25867
25868   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
25869
25870
25871
25872
25873         GNULIB_GL_UNISTD_H_GETOPT=1
25874   fi
25875
25876
25877
25878
25879
25880
25881
25882
25883
25884           GNULIB_ICONV=1
25885
25886
25887
25888
25889
25890
25891
25892
25893
25894
25895
25896
25897
25898
25899
25900
25901      if test $gl_cv_have_include_next = yes; then
25902        gl_cv_next_iconv_h='<'iconv.h'>'
25903      else
25904        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <iconv.h>" >&5
25905 $as_echo_n "checking absolute name of <iconv.h>... " >&6; }
25906 if ${gl_cv_next_iconv_h+:} false; then :
25907   $as_echo_n "(cached) " >&6
25908 else
25909
25910              if test $ac_cv_header_iconv_h = yes; then
25911
25912
25913                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25914 /* end confdefs.h.  */
25915 #include <iconv.h>
25916
25917 _ACEOF
25918                                                                                                                         case "$host_os" in
25919                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
25920                  *)    gl_absname_cpp="$ac_cpp" ;;
25921                esac
25922
25923                case "$host_os" in
25924                  mingw*)
25925                                                                                                                                      gl_dirsep_regex='[/\\]'
25926                    ;;
25927                  *)
25928                    gl_dirsep_regex='\/'
25929                    ;;
25930                esac
25931                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
25932
25933                gl_header_literal_regex=`echo 'iconv.h' \
25934                                         | sed -e "$gl_make_literal_regex_sed"`
25935                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
25936                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
25937                    s|^/[^/]|//&|
25938                    p
25939                    q
25940                  }'
25941                                                             gl_cv_next_iconv_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25942                       sed -n "$gl_absolute_header_sed"`'"'
25943           else
25944                gl_cv_next_iconv_h='<'iconv.h'>'
25945              fi
25946
25947
25948 fi
25949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5
25950 $as_echo "$gl_cv_next_iconv_h" >&6; }
25951      fi
25952      NEXT_ICONV_H=$gl_cv_next_iconv_h
25953
25954      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25955        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25956        gl_next_as_first_directive='<'iconv.h'>'
25957      else
25958        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25959        gl_next_as_first_directive=$gl_cv_next_iconv_h
25960      fi
25961      NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive
25962
25963
25964
25965
25966
25967
25968
25969
25970
25971   if test "$am_cv_func_iconv" = yes; then
25972
25973
25974   ICONV_H='iconv.h'
25975    if test -n "$ICONV_H"; then
25976   GL_GENERATE_ICONV_H_TRUE=
25977   GL_GENERATE_ICONV_H_FALSE='#'
25978 else
25979   GL_GENERATE_ICONV_H_TRUE='#'
25980   GL_GENERATE_ICONV_H_FALSE=
25981 fi
25982
25983
25984             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25985 /* end confdefs.h.  */
25986
25987       #include <iconv.h>
25988       #if defined _LIBICONV_VERSION || (defined __GLIBC__ && !defined __UCLIBC__)
25989        gnu_iconv
25990       #endif
25991
25992 _ACEOF
25993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25994   $EGREP "gnu_iconv" >/dev/null 2>&1; then :
25995   gl_func_iconv_gnu=yes
25996 else
25997   gl_func_iconv_gnu=no
25998 fi
25999 rm -f conftest*
26000
26001     if test $gl_func_iconv_gnu = no; then
26002       iconv_flavor=
26003       case "$host_os" in
26004         aix*)     iconv_flavor=ICONV_FLAVOR_AIX ;;
26005         irix*)    iconv_flavor=ICONV_FLAVOR_IRIX ;;
26006         hpux*)    iconv_flavor=ICONV_FLAVOR_HPUX ;;
26007         osf*)     iconv_flavor=ICONV_FLAVOR_OSF ;;
26008         solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;;
26009       esac
26010       if test -n "$iconv_flavor"; then
26011
26012 cat >>confdefs.h <<_ACEOF
26013 #define ICONV_FLAVOR $iconv_flavor
26014 _ACEOF
26015
26016
26017
26018
26019   ICONV_H='iconv.h'
26020    if test -n "$ICONV_H"; then
26021   GL_GENERATE_ICONV_H_TRUE=
26022   GL_GENERATE_ICONV_H_FALSE='#'
26023 else
26024   GL_GENERATE_ICONV_H_TRUE='#'
26025   GL_GENERATE_ICONV_H_FALSE=
26026 fi
26027
26028
26029   REPLACE_ICONV_OPEN=1
26030
26031       fi
26032     fi
26033
26034   fi
26035
26036   if test $REPLACE_ICONV_OPEN = 1; then
26037
26038
26039
26040
26041
26042
26043
26044
26045   gl_LIBOBJS="$gl_LIBOBJS iconv_open.$ac_objext"
26046
26047   fi
26048   if test $REPLACE_ICONV = 1; then
26049
26050
26051
26052
26053
26054
26055
26056
26057   gl_LIBOBJS="$gl_LIBOBJS iconv.$ac_objext"
26058
26059
26060
26061
26062
26063
26064
26065
26066
26067   gl_LIBOBJS="$gl_LIBOBJS iconv_close.$ac_objext"
26068
26069   fi
26070
26071
26072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5
26073 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
26074 if ${gl_cv_c_inline_effective+:} false; then :
26075   $as_echo_n "(cached) " >&6
26076 else
26077   if test $ac_cv_c_inline = no; then
26078        gl_cv_c_inline_effective=no
26079      else
26080                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26081 /* end confdefs.h.  */
26082
26083 int
26084 main ()
26085 {
26086 #ifdef __NO_INLINE__
26087                #error "inline is not effective"
26088              #endif
26089   ;
26090   return 0;
26091 }
26092 _ACEOF
26093 if ac_fn_c_try_compile "$LINENO"; then :
26094   gl_cv_c_inline_effective=yes
26095 else
26096   gl_cv_c_inline_effective=no
26097 fi
26098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26099      fi
26100
26101 fi
26102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5
26103 $as_echo "$gl_cv_c_inline_effective" >&6; }
26104   if test $gl_cv_c_inline_effective = yes; then
26105
26106 $as_echo "#define HAVE_INLINE 1" >>confdefs.h
26107
26108   fi
26109
26110
26111
26112
26113
26114
26115   ac_fn_c_check_decl "$LINENO" "iswblank" "ac_cv_have_decl_iswblank" "
26116 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26117    <wchar.h>.
26118    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
26119    before <wchar.h>.  */
26120 #include <stddef.h>
26121 #include <stdio.h>
26122 #include <time.h>
26123 #include <wchar.h>
26124 #include <wctype.h>
26125
26126 "
26127 if test "x$ac_cv_have_decl_iswblank" = xyes; then :
26128   ac_have_decl=1
26129 else
26130   ac_have_decl=0
26131 fi
26132
26133 cat >>confdefs.h <<_ACEOF
26134 #define HAVE_DECL_ISWBLANK $ac_have_decl
26135 _ACEOF
26136
26137   if test $ac_cv_func_iswblank = no; then
26138     HAVE_ISWBLANK=0
26139     if test $ac_cv_have_decl_iswblank = yes; then
26140       REPLACE_ISWBLANK=1
26141     fi
26142   fi
26143   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
26144         :
26145   else
26146     if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
26147             :
26148     fi
26149   fi
26150
26151
26152   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
26153     :
26154   else
26155     if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
26156
26157
26158
26159
26160
26161
26162
26163
26164   gl_LIBOBJS="$gl_LIBOBJS iswblank.$ac_objext"
26165
26166     fi
26167   fi
26168
26169
26170
26171
26172
26173           GNULIB_ISWBLANK=1
26174
26175
26176
26177
26178
26179 $as_echo "#define GNULIB_TEST_ISWBLANK 1" >>confdefs.h
26180
26181
26182
26183
26184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use Java" >&5
26185 $as_echo_n "checking whether to use Java... " >&6; }
26186   # Check whether --enable-java was given.
26187 if test "${enable_java+set}" = set; then :
26188   enableval=$enable_java; JAVA_CHOICE="$enableval"
26189 else
26190   JAVA_CHOICE=yes
26191 fi
26192
26193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHOICE" >&5
26194 $as_echo "$JAVA_CHOICE" >&6; }
26195   if test "$JAVA_CHOICE" = yes; then
26196     # Check whether --enable-native-java was given.
26197 if test "${enable_native_java+set}" = set; then :
26198   enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
26199 fi
26200
26201   fi
26202
26203
26204   # You need to invoke gt_JAVACOMP yourself, possibly with arguments.
26205   ac_config_files="$ac_config_files javacomp.sh:../build-aux/javacomp.sh.in"
26206
26207
26208
26209
26210
26211
26212
26213
26214
26215
26216   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
26217
26218
26219
26220
26221
26222
26223
26224
26225
26226   case "$host_os" in
26227     solaris*)
26228
26229 $as_echo "#define _LCONV_C99 1" >>confdefs.h
26230
26231       ;;
26232   esac
26233
26234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
26235 $as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; }
26236 if ${gl_cv_header_locale_h_posix2001+:} false; then :
26237   $as_echo_n "(cached) " >&6
26238 else
26239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26240 /* end confdefs.h.  */
26241 #include <locale.h>
26242             int x = LC_MESSAGES;
26243             int y = sizeof (((struct lconv *) 0)->decimal_point);
26244 int
26245 main ()
26246 {
26247
26248   ;
26249   return 0;
26250 }
26251 _ACEOF
26252 if ac_fn_c_try_compile "$LINENO"; then :
26253   gl_cv_header_locale_h_posix2001=yes
26254 else
26255   gl_cv_header_locale_h_posix2001=no
26256 fi
26257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26258 fi
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
26260 $as_echo "$gl_cv_header_locale_h_posix2001" >&6; }
26261
26262
26263   if test $ac_cv_header_xlocale_h = yes; then
26264     HAVE_XLOCALE_H=1
26265                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
26266 $as_echo_n "checking whether locale.h defines locale_t... " >&6; }
26267 if ${gl_cv_header_locale_has_locale_t+:} false; then :
26268   $as_echo_n "(cached) " >&6
26269 else
26270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26271 /* end confdefs.h.  */
26272 #include <locale.h>
26273               locale_t x;
26274 int
26275 main ()
26276 {
26277
26278   ;
26279   return 0;
26280 }
26281 _ACEOF
26282 if ac_fn_c_try_compile "$LINENO"; then :
26283   gl_cv_header_locale_has_locale_t=yes
26284 else
26285   gl_cv_header_locale_has_locale_t=no
26286 fi
26287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26288
26289 fi
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
26291 $as_echo "$gl_cv_header_locale_has_locale_t" >&6; }
26292     if test $gl_cv_header_locale_has_locale_t = yes; then
26293       gl_cv_header_locale_h_needs_xlocale_h=no
26294     else
26295       gl_cv_header_locale_h_needs_xlocale_h=yes
26296     fi
26297   else
26298     HAVE_XLOCALE_H=0
26299     gl_cv_header_locale_h_needs_xlocale_h=no
26300   fi
26301
26302
26303           { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
26304 $as_echo_n "checking whether struct lconv is properly defined... " >&6; }
26305 if ${gl_cv_sys_struct_lconv_ok+:} false; then :
26306   $as_echo_n "(cached) " >&6
26307 else
26308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26309 /* end confdefs.h.  */
26310 #include <locale.h>
26311             struct lconv l;
26312             int x = sizeof (l.decimal_point);
26313             int y = sizeof (l.int_p_cs_precedes);
26314 int
26315 main ()
26316 {
26317
26318   ;
26319   return 0;
26320 }
26321 _ACEOF
26322 if ac_fn_c_try_compile "$LINENO"; then :
26323   gl_cv_sys_struct_lconv_ok=yes
26324 else
26325   gl_cv_sys_struct_lconv_ok=no
26326 fi
26327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26328
26329 fi
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
26331 $as_echo "$gl_cv_sys_struct_lconv_ok" >&6; }
26332   if test $gl_cv_sys_struct_lconv_ok = no; then
26333     REPLACE_STRUCT_LCONV=1
26334   fi
26335
26336
26337
26338
26339
26340
26341
26342
26343
26344      if test $gl_cv_have_include_next = yes; then
26345        gl_cv_next_locale_h='<'locale.h'>'
26346      else
26347        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
26348 $as_echo_n "checking absolute name of <locale.h>... " >&6; }
26349 if ${gl_cv_next_locale_h+:} false; then :
26350   $as_echo_n "(cached) " >&6
26351 else
26352
26353                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26354 /* end confdefs.h.  */
26355 #include <locale.h>
26356
26357 _ACEOF
26358                                                                                                                         case "$host_os" in
26359                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
26360                  *)    gl_absname_cpp="$ac_cpp" ;;
26361                esac
26362
26363                case "$host_os" in
26364                  mingw*)
26365                                                                                                                                      gl_dirsep_regex='[/\\]'
26366                    ;;
26367                  *)
26368                    gl_dirsep_regex='\/'
26369                    ;;
26370                esac
26371                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26372
26373                gl_header_literal_regex=`echo 'locale.h' \
26374                                         | sed -e "$gl_make_literal_regex_sed"`
26375                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26376                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26377                    s|^/[^/]|//&|
26378                    p
26379                    q
26380                  }'
26381                                                             gl_cv_next_locale_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26382                       sed -n "$gl_absolute_header_sed"`'"'
26383
26384
26385 fi
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
26387 $as_echo "$gl_cv_next_locale_h" >&6; }
26388      fi
26389      NEXT_LOCALE_H=$gl_cv_next_locale_h
26390
26391      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26392        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26393        gl_next_as_first_directive='<'locale.h'>'
26394      else
26395        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26396        gl_next_as_first_directive=$gl_cv_next_locale_h
26397      fi
26398      NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
26399
26400
26401
26402
26403
26404
26405     for gl_func in setlocale duplocale; do
26406     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26407     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
26408 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26409 if eval \${$as_gl_Symbol+:} false; then :
26410   $as_echo_n "(cached) " >&6
26411 else
26412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26413 /* end confdefs.h.  */
26414 #include <locale.h>
26415 /* Some systems provide declarations in a non-standard header.  */
26416 #if HAVE_XLOCALE_H
26417 # include <xlocale.h>
26418 #endif
26419
26420 int
26421 main ()
26422 {
26423 #undef $gl_func
26424   (void) $gl_func;
26425   ;
26426   return 0;
26427 }
26428 _ACEOF
26429 if ac_fn_c_try_compile "$LINENO"; then :
26430   eval "$as_gl_Symbol=yes"
26431 else
26432   eval "$as_gl_Symbol=no"
26433 fi
26434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26435 fi
26436 eval ac_res=\$$as_gl_Symbol
26437                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26438 $as_echo "$ac_res" >&6; }
26439     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
26440   cat >>confdefs.h <<_ACEOF
26441 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26442 _ACEOF
26443
26444                      eval ac_cv_have_decl_$gl_func=yes
26445 fi
26446       done
26447
26448
26449
26450
26451
26452   for ac_func in setlocale uselocale
26453 do :
26454   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26455 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26456 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26457   cat >>confdefs.h <<_ACEOF
26458 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26459 _ACEOF
26460
26461 fi
26462 done
26463
26464
26465
26466
26467   if test "$gl_threads_api" = posix; then
26468     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
26469     # pthread_rwlock_* functions.
26470     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
26471 "
26472 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
26473
26474 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
26475
26476 fi
26477
26478     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
26479     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26480 /* end confdefs.h.  */
26481
26482       #include <pthread.h>
26483 int
26484 main ()
26485 {
26486
26487 #if __FreeBSD__ == 4
26488 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
26489 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
26490        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
26491 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
26492 #else
26493 int x = (int)PTHREAD_MUTEX_RECURSIVE;
26494 return !x;
26495 #endif
26496
26497   ;
26498   return 0;
26499 }
26500 _ACEOF
26501 if ac_fn_c_try_compile "$LINENO"; then :
26502
26503 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
26504
26505 fi
26506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26507   fi
26508   :
26509
26510
26511
26512 cat >>confdefs.h <<_ACEOF
26513 #define GNULIB_LOCK 1
26514 _ACEOF
26515
26516
26517
26518
26519
26520   if test $ac_cv_func_lstat = yes; then
26521
26522     case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
26523       *no)
26524         REPLACE_LSTAT=1
26525         ;;
26526     esac
26527   else
26528     HAVE_LSTAT=0
26529   fi
26530
26531   if test $REPLACE_LSTAT = 1; then
26532
26533
26534
26535
26536
26537
26538
26539
26540   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
26541
26542     :
26543   fi
26544
26545
26546
26547
26548
26549           GNULIB_LSTAT=1
26550
26551
26552
26553
26554
26555 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565
26566
26567
26568   :
26569
26570
26571
26572
26573
26574
26575
26576
26577
26578
26579
26580   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
26581
26582
26583
26584      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
26585 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
26586 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
26587   $as_echo_n "(cached) " >&6
26588 else
26589
26590                   case "$host_os" in
26591                      # Guess no on AIX and OSF/1.
26592         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
26593                      # Guess yes otherwise.
26594         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
26595       esac
26596       if test $LOCALE_JA != none; then
26597         if test "$cross_compiling" = yes; then :
26598   :
26599 else
26600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26601 /* end confdefs.h.  */
26602
26603 #include <locale.h>
26604 #include <string.h>
26605 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26606    <wchar.h>.
26607    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26608    included before <wchar.h>.  */
26609 #include <stddef.h>
26610 #include <stdio.h>
26611 #include <time.h>
26612 #include <wchar.h>
26613 int main ()
26614 {
26615   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
26616     {
26617       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
26618       mbstate_t state;
26619       wchar_t wc;
26620
26621       memset (&state, '\0', sizeof (mbstate_t));
26622       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
26623         if (mbsinit (&state))
26624           return 1;
26625     }
26626   return 0;
26627 }
26628 _ACEOF
26629 if ac_fn_c_try_run "$LINENO"; then :
26630   gl_cv_func_mbrtowc_incomplete_state=yes
26631 else
26632   gl_cv_func_mbrtowc_incomplete_state=no
26633 fi
26634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26635   conftest.$ac_objext conftest.beam conftest.$ac_ext
26636 fi
26637
26638       fi
26639
26640 fi
26641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
26642 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
26643
26644
26645
26646
26647      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
26648 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
26649 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
26650   $as_echo_n "(cached) " >&6
26651 else
26652
26653                   case "$host_os" in
26654                     # Guess no on Solaris 8.
26655         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
26656                     # Guess yes otherwise.
26657         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
26658       esac
26659       if test $LOCALE_ZH_CN != none; then
26660         if test "$cross_compiling" = yes; then :
26661   :
26662 else
26663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26664 /* end confdefs.h.  */
26665
26666 #include <locale.h>
26667 #include <stdlib.h>
26668 #include <string.h>
26669 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26670    <wchar.h>.
26671    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26672    included before <wchar.h>.  */
26673 #include <stddef.h>
26674 #include <stdio.h>
26675 #include <time.h>
26676 #include <wchar.h>
26677 int main ()
26678 {
26679   /* This fails on Solaris 8:
26680      mbrtowc returns 2, and sets wc to 0x00F0.
26681      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
26682   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
26683     {
26684       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
26685       mbstate_t state;
26686       wchar_t wc;
26687
26688       memset (&state, '\0', sizeof (mbstate_t));
26689       if (mbrtowc (&wc, input + 3, 6, &state) != 4
26690           && mbtowc (&wc, input + 3, 6) == 4)
26691         return 1;
26692     }
26693   return 0;
26694 }
26695 _ACEOF
26696 if ac_fn_c_try_run "$LINENO"; then :
26697   gl_cv_func_mbrtowc_sanitycheck=yes
26698 else
26699   gl_cv_func_mbrtowc_sanitycheck=no
26700 fi
26701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26702   conftest.$ac_objext conftest.beam conftest.$ac_ext
26703 fi
26704
26705       fi
26706
26707 fi
26708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
26709 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
26710
26711     REPLACE_MBSTATE_T=0
26712     case "$gl_cv_func_mbrtowc_incomplete_state" in
26713       *yes) ;;
26714       *) REPLACE_MBSTATE_T=1 ;;
26715     esac
26716     case "$gl_cv_func_mbrtowc_sanitycheck" in
26717       *yes) ;;
26718       *) REPLACE_MBSTATE_T=1 ;;
26719     esac
26720   else
26721     REPLACE_MBSTATE_T=1
26722   fi
26723
26724
26725
26726   if test $ac_cv_func_mbrtowc = no; then
26727     HAVE_MBRTOWC=0
26728     ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
26729 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26730    <wchar.h>.
26731    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26732    included before <wchar.h>.  */
26733 #include <stddef.h>
26734 #include <stdio.h>
26735 #include <time.h>
26736 #include <wchar.h>
26737
26738 "
26739 if test "x$ac_cv_have_decl_mbrtowc" = xyes; then :
26740   ac_have_decl=1
26741 else
26742   ac_have_decl=0
26743 fi
26744
26745 cat >>confdefs.h <<_ACEOF
26746 #define HAVE_DECL_MBRTOWC $ac_have_decl
26747 _ACEOF
26748
26749     if test $ac_cv_have_decl_mbrtowc = yes; then
26750                         REPLACE_MBRTOWC=1
26751     fi
26752   else
26753     if test $REPLACE_MBSTATE_T = 1; then
26754       REPLACE_MBRTOWC=1
26755     else
26756
26757
26758
26759      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
26760 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
26761 if ${gl_cv_func_mbrtowc_null_arg1+:} false; then :
26762   $as_echo_n "(cached) " >&6
26763 else
26764
26765                   case "$host_os" in
26766                   # Guess no on Solaris.
26767         solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
26768                   # Guess yes otherwise.
26769         *)        gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
26770       esac
26771       if test $LOCALE_FR_UTF8 != none; then
26772         if test "$cross_compiling" = yes; then :
26773   :
26774 else
26775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26776 /* end confdefs.h.  */
26777
26778 #include <locale.h>
26779 #include <stdlib.h>
26780 #include <string.h>
26781 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26782    <wchar.h>.
26783    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26784    included before <wchar.h>.  */
26785 #include <stddef.h>
26786 #include <stdio.h>
26787 #include <time.h>
26788 #include <wchar.h>
26789 int main ()
26790 {
26791   int result = 0;
26792
26793   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
26794     {
26795       char input[] = "\303\237er";
26796       mbstate_t state;
26797       wchar_t wc;
26798       size_t ret;
26799
26800       memset (&state, '\0', sizeof (mbstate_t));
26801       wc = (wchar_t) 0xBADFACE;
26802       ret = mbrtowc (&wc, input, 5, &state);
26803       if (ret != 2)
26804         result |= 1;
26805       if (!mbsinit (&state))
26806         result |= 2;
26807
26808       memset (&state, '\0', sizeof (mbstate_t));
26809       ret = mbrtowc (NULL, input, 5, &state);
26810       if (ret != 2) /* Solaris 7 fails here: ret is -1.  */
26811         result |= 4;
26812       if (!mbsinit (&state))
26813         result |= 8;
26814     }
26815   return result;
26816 }
26817 _ACEOF
26818 if ac_fn_c_try_run "$LINENO"; then :
26819   gl_cv_func_mbrtowc_null_arg1=yes
26820 else
26821   gl_cv_func_mbrtowc_null_arg1=no
26822 fi
26823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26824   conftest.$ac_objext conftest.beam conftest.$ac_ext
26825 fi
26826
26827       fi
26828
26829 fi
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
26831 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
26832
26833
26834
26835
26836      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
26837 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
26838 if ${gl_cv_func_mbrtowc_null_arg2+:} false; then :
26839   $as_echo_n "(cached) " >&6
26840 else
26841
26842                   case "$host_os" in
26843               # Guess no on OSF/1.
26844         osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
26845               # Guess yes otherwise.
26846         *)    gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
26847       esac
26848       if test $LOCALE_FR_UTF8 != none; then
26849         if test "$cross_compiling" = yes; then :
26850   :
26851 else
26852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26853 /* end confdefs.h.  */
26854
26855 #include <locale.h>
26856 #include <string.h>
26857 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26858    <wchar.h>.
26859    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26860    included before <wchar.h>.  */
26861 #include <stddef.h>
26862 #include <stdio.h>
26863 #include <time.h>
26864 #include <wchar.h>
26865 int main ()
26866 {
26867   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
26868     {
26869       mbstate_t state;
26870       wchar_t wc;
26871       int ret;
26872
26873       memset (&state, '\0', sizeof (mbstate_t));
26874       wc = (wchar_t) 0xBADFACE;
26875       mbrtowc (&wc, NULL, 5, &state);
26876       /* Check that wc was not modified.  */
26877       if (wc != (wchar_t) 0xBADFACE)
26878         return 1;
26879     }
26880   return 0;
26881 }
26882 _ACEOF
26883 if ac_fn_c_try_run "$LINENO"; then :
26884   gl_cv_func_mbrtowc_null_arg2=yes
26885 else
26886   gl_cv_func_mbrtowc_null_arg2=no
26887 fi
26888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26889   conftest.$ac_objext conftest.beam conftest.$ac_ext
26890 fi
26891
26892       fi
26893
26894 fi
26895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
26896 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
26897
26898
26899
26900
26901
26902
26903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
26904 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
26905 if ${gl_cv_func_mbrtowc_retval+:} false; then :
26906   $as_echo_n "(cached) " >&6
26907 else
26908
26909                   case "$host_os" in
26910                                    # Guess no on HP-UX, Solaris, native Windows.
26911         hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
26912                                    # Guess yes otherwise.
26913         *)                         gl_cv_func_mbrtowc_retval="guessing yes" ;;
26914       esac
26915       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
26916          || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
26917         if test "$cross_compiling" = yes; then :
26918   :
26919 else
26920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26921 /* end confdefs.h.  */
26922
26923 #include <locale.h>
26924 #include <string.h>
26925 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26926    <wchar.h>.
26927    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
26928    included before <wchar.h>.  */
26929 #include <stddef.h>
26930 #include <stdio.h>
26931 #include <time.h>
26932 #include <wchar.h>
26933 int main ()
26934 {
26935   int result = 0;
26936   int found_some_locale = 0;
26937   /* This fails on Solaris.  */
26938   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
26939     {
26940       char input[] = "B\303\274\303\237er"; /* "Büßer" */
26941       mbstate_t state;
26942       wchar_t wc;
26943
26944       memset (&state, '\0', sizeof (mbstate_t));
26945       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
26946         {
26947           input[1] = '\0';
26948           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
26949             result |= 1;
26950         }
26951       found_some_locale = 1;
26952     }
26953   /* This fails on HP-UX 11.11.  */
26954   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
26955     {
26956       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
26957       mbstate_t state;
26958       wchar_t wc;
26959
26960       memset (&state, '\0', sizeof (mbstate_t));
26961       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
26962         {
26963           input[1] = '\0';
26964           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
26965             result |= 2;
26966         }
26967       found_some_locale = 1;
26968     }
26969   /* This fails on native Windows.  */
26970   if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
26971     {
26972       char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
26973       mbstate_t state;
26974       wchar_t wc;
26975
26976       memset (&state, '\0', sizeof (mbstate_t));
26977       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
26978         {
26979           input[3] = '\0';
26980           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
26981             result |= 4;
26982         }
26983       found_some_locale = 1;
26984     }
26985   if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
26986     {
26987       char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
26988       mbstate_t state;
26989       wchar_t wc;
26990
26991       memset (&state, '\0', sizeof (mbstate_t));
26992       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
26993         {
26994           input[3] = '\0';
26995           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
26996             result |= 8;
26997         }
26998       found_some_locale = 1;
26999     }
27000   if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
27001     {
27002       char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
27003       mbstate_t state;
27004       wchar_t wc;
27005
27006       memset (&state, '\0', sizeof (mbstate_t));
27007       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
27008         {
27009           input[3] = '\0';
27010           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
27011             result |= 16;
27012         }
27013       found_some_locale = 1;
27014     }
27015   return (found_some_locale ? result : 77);
27016 }
27017 _ACEOF
27018 if ac_fn_c_try_run "$LINENO"; then :
27019   gl_cv_func_mbrtowc_retval=yes
27020 else
27021   if test $? != 77; then
27022              gl_cv_func_mbrtowc_retval=no
27023            fi
27024
27025 fi
27026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27027   conftest.$ac_objext conftest.beam conftest.$ac_ext
27028 fi
27029
27030       fi
27031
27032 fi
27033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
27034 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
27035
27036
27037
27038
27039      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
27040 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
27041 if ${gl_cv_func_mbrtowc_nul_retval+:} false; then :
27042   $as_echo_n "(cached) " >&6
27043 else
27044
27045                   case "$host_os" in
27046                        # Guess no on Solaris 8 and 9.
27047         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
27048                        # Guess yes otherwise.
27049         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
27050       esac
27051       if test $LOCALE_ZH_CN != none; then
27052         if test "$cross_compiling" = yes; then :
27053   :
27054 else
27055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27056 /* end confdefs.h.  */
27057
27058 #include <locale.h>
27059 #include <string.h>
27060 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27061    <wchar.h>.
27062    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27063    included before <wchar.h>.  */
27064 #include <stddef.h>
27065 #include <stdio.h>
27066 #include <time.h>
27067 #include <wchar.h>
27068 int main ()
27069 {
27070   /* This fails on Solaris 8 and 9.  */
27071   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
27072     {
27073       mbstate_t state;
27074       wchar_t wc;
27075
27076       memset (&state, '\0', sizeof (mbstate_t));
27077       if (mbrtowc (&wc, "", 1, &state) != 0)
27078         return 1;
27079     }
27080   return 0;
27081 }
27082 _ACEOF
27083 if ac_fn_c_try_run "$LINENO"; then :
27084   gl_cv_func_mbrtowc_nul_retval=yes
27085 else
27086   gl_cv_func_mbrtowc_nul_retval=no
27087 fi
27088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27089   conftest.$ac_objext conftest.beam conftest.$ac_ext
27090 fi
27091
27092       fi
27093
27094 fi
27095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
27096 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
27097
27098       case "$gl_cv_func_mbrtowc_null_arg1" in
27099         *yes) ;;
27100         *)
27101 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
27102
27103            REPLACE_MBRTOWC=1
27104            ;;
27105       esac
27106       case "$gl_cv_func_mbrtowc_null_arg2" in
27107         *yes) ;;
27108         *)
27109 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
27110
27111            REPLACE_MBRTOWC=1
27112            ;;
27113       esac
27114       case "$gl_cv_func_mbrtowc_retval" in
27115         *yes) ;;
27116         *)
27117 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
27118
27119            REPLACE_MBRTOWC=1
27120            ;;
27121       esac
27122       case "$gl_cv_func_mbrtowc_nul_retval" in
27123         *yes) ;;
27124         *)
27125 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
27126
27127            REPLACE_MBRTOWC=1
27128            ;;
27129       esac
27130     fi
27131   fi
27132
27133   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
27134
27135
27136
27137
27138
27139
27140
27141
27142   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
27143
27144
27145   :
27146
27147   fi
27148
27149
27150
27151
27152
27153           GNULIB_MBRTOWC=1
27154
27155
27156
27157
27158
27159 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
27160
27161
27162
27163
27164
27165
27166
27167
27168
27169
27170
27171
27172
27173
27174   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
27175
27176
27177
27178      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
27179 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
27180 if ${gl_cv_func_mbrtowc_incomplete_state+:} false; then :
27181   $as_echo_n "(cached) " >&6
27182 else
27183
27184                   case "$host_os" in
27185                      # Guess no on AIX and OSF/1.
27186         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
27187                      # Guess yes otherwise.
27188         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
27189       esac
27190       if test $LOCALE_JA != none; then
27191         if test "$cross_compiling" = yes; then :
27192   :
27193 else
27194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27195 /* end confdefs.h.  */
27196
27197 #include <locale.h>
27198 #include <string.h>
27199 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27200    <wchar.h>.
27201    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27202    included before <wchar.h>.  */
27203 #include <stddef.h>
27204 #include <stdio.h>
27205 #include <time.h>
27206 #include <wchar.h>
27207 int main ()
27208 {
27209   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
27210     {
27211       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
27212       mbstate_t state;
27213       wchar_t wc;
27214
27215       memset (&state, '\0', sizeof (mbstate_t));
27216       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
27217         if (mbsinit (&state))
27218           return 1;
27219     }
27220   return 0;
27221 }
27222 _ACEOF
27223 if ac_fn_c_try_run "$LINENO"; then :
27224   gl_cv_func_mbrtowc_incomplete_state=yes
27225 else
27226   gl_cv_func_mbrtowc_incomplete_state=no
27227 fi
27228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27229   conftest.$ac_objext conftest.beam conftest.$ac_ext
27230 fi
27231
27232       fi
27233
27234 fi
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
27236 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
27237
27238
27239
27240
27241      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
27242 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
27243 if ${gl_cv_func_mbrtowc_sanitycheck+:} false; then :
27244   $as_echo_n "(cached) " >&6
27245 else
27246
27247                   case "$host_os" in
27248                     # Guess no on Solaris 8.
27249         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
27250                     # Guess yes otherwise.
27251         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
27252       esac
27253       if test $LOCALE_ZH_CN != none; then
27254         if test "$cross_compiling" = yes; then :
27255   :
27256 else
27257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27258 /* end confdefs.h.  */
27259
27260 #include <locale.h>
27261 #include <stdlib.h>
27262 #include <string.h>
27263 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27264    <wchar.h>.
27265    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27266    included before <wchar.h>.  */
27267 #include <stddef.h>
27268 #include <stdio.h>
27269 #include <time.h>
27270 #include <wchar.h>
27271 int main ()
27272 {
27273   /* This fails on Solaris 8:
27274      mbrtowc returns 2, and sets wc to 0x00F0.
27275      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
27276   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
27277     {
27278       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
27279       mbstate_t state;
27280       wchar_t wc;
27281
27282       memset (&state, '\0', sizeof (mbstate_t));
27283       if (mbrtowc (&wc, input + 3, 6, &state) != 4
27284           && mbtowc (&wc, input + 3, 6) == 4)
27285         return 1;
27286     }
27287   return 0;
27288 }
27289 _ACEOF
27290 if ac_fn_c_try_run "$LINENO"; then :
27291   gl_cv_func_mbrtowc_sanitycheck=yes
27292 else
27293   gl_cv_func_mbrtowc_sanitycheck=no
27294 fi
27295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27296   conftest.$ac_objext conftest.beam conftest.$ac_ext
27297 fi
27298
27299       fi
27300
27301 fi
27302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
27303 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
27304
27305     REPLACE_MBSTATE_T=0
27306     case "$gl_cv_func_mbrtowc_incomplete_state" in
27307       *yes) ;;
27308       *) REPLACE_MBSTATE_T=1 ;;
27309     esac
27310     case "$gl_cv_func_mbrtowc_sanitycheck" in
27311       *yes) ;;
27312       *) REPLACE_MBSTATE_T=1 ;;
27313     esac
27314   else
27315     REPLACE_MBSTATE_T=1
27316   fi
27317
27318
27319
27320   if test $ac_cv_func_mbsinit = no; then
27321     HAVE_MBSINIT=0
27322     ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
27323 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27324    <wchar.h>.
27325    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
27326    included before <wchar.h>.  */
27327 #include <stddef.h>
27328 #include <stdio.h>
27329 #include <time.h>
27330 #include <wchar.h>
27331
27332 "
27333 if test "x$ac_cv_have_decl_mbsinit" = xyes; then :
27334   ac_have_decl=1
27335 else
27336   ac_have_decl=0
27337 fi
27338
27339 cat >>confdefs.h <<_ACEOF
27340 #define HAVE_DECL_MBSINIT $ac_have_decl
27341 _ACEOF
27342
27343     if test $ac_cv_have_decl_mbsinit = yes; then
27344                         REPLACE_MBSINIT=1
27345     fi
27346   else
27347     if test $REPLACE_MBSTATE_T = 1; then
27348       REPLACE_MBSINIT=1
27349     else
27350                         case "$host_os" in
27351         mingw*) REPLACE_MBSINIT=1 ;;
27352       esac
27353     fi
27354   fi
27355
27356   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
27357
27358
27359
27360
27361
27362
27363
27364
27365   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
27366
27367
27368   :
27369
27370   fi
27371
27372
27373
27374
27375
27376           GNULIB_MBSINIT=1
27377
27378
27379
27380
27381
27382 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
27383
27384
27385
27386
27387
27388
27389   if test $ac_cv_func_mbslen = yes; then
27390     HAVE_MBSLEN=1
27391   else
27392     HAVE_MBSLEN=0
27393   fi
27394
27395
27396
27397
27398
27399
27400           GNULIB_MBSLEN=1
27401
27402
27403
27404
27405
27406 $as_echo "#define GNULIB_TEST_MBSLEN 1" >>confdefs.h
27407
27408
27409
27410
27411
27412
27413
27414
27415           GNULIB_MBSSTR=1
27416
27417
27418
27419
27420
27421 $as_echo "#define GNULIB_TEST_MBSSTR 1" >>confdefs.h
27422
27423
27424
27425
27426
27427   :
27428
27429
27430   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
27431
27432
27433
27434
27435
27436
27437
27438
27439   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
27440
27441
27442   for ac_header in bp-sym.h
27443 do :
27444   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
27445 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
27446   cat >>confdefs.h <<_ACEOF
27447 #define HAVE_BP_SYM_H 1
27448 _ACEOF
27449
27450 fi
27451
27452 done
27453
27454
27455   fi
27456
27457
27458
27459
27460
27461           GNULIB_MEMCHR=1
27462
27463
27464
27465
27466
27467 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
27468
27469
27470
27471
27472   for ac_func in memmove
27473 do :
27474   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
27475 if test "x$ac_cv_func_memmove" = xyes; then :
27476   cat >>confdefs.h <<_ACEOF
27477 #define HAVE_MEMMOVE 1
27478 _ACEOF
27479
27480 fi
27481 done
27482
27483
27484   if test $ac_cv_func_memmove = no; then
27485
27486
27487
27488
27489
27490
27491
27492
27493   gl_LIBOBJS="$gl_LIBOBJS memmove.$ac_objext"
27494
27495
27496   :
27497
27498   fi
27499
27500
27501   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
27502     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
27503
27504 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
27505
27506   else
27507     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
27508   fi
27509
27510
27511   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
27512
27513
27514
27515
27516
27517
27518
27519
27520   gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
27521
27522   fi
27523
27524
27525
27526   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
27527
27528
27529
27530
27531
27532
27533
27534
27535   gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
27536
27537   fi
27538
27539
27540
27541
27542   ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
27543 "
27544 if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then :
27545   ac_have_decl=1
27546 else
27547   ac_have_decl=0
27548 fi
27549
27550 cat >>confdefs.h <<_ACEOF
27551 #define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl
27552 _ACEOF
27553
27554   ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
27555 "
27556 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
27557   ac_have_decl=1
27558 else
27559   ac_have_decl=0
27560 fi
27561
27562 cat >>confdefs.h <<_ACEOF
27563 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
27564 _ACEOF
27565
27566
27567
27568   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name:1,\"This is a proper name. See the gettext manual, section Names.\"'"
27569
27570
27571
27572   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --keyword='proper_name_utf8:1,\"This is a proper name. See the gettext manual, section Names.\"'"
27573
27574
27575
27576
27577
27578   for ac_func in raise
27579 do :
27580   ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
27581 if test "x$ac_cv_func_raise" = xyes; then :
27582   cat >>confdefs.h <<_ACEOF
27583 #define HAVE_RAISE 1
27584 _ACEOF
27585
27586 fi
27587 done
27588
27589   if test $ac_cv_func_raise = no; then
27590     HAVE_RAISE=0
27591   else
27592     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
27593       REPLACE_RAISE=1
27594     fi
27595
27596
27597
27598
27599   if test $gl_cv_type_sigset_t = yes; then
27600     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
27601 if test "x$ac_cv_func_sigprocmask" = xyes; then :
27602   gl_cv_func_sigprocmask=1
27603 fi
27604
27605   fi
27606   if test -z "$gl_cv_func_sigprocmask"; then
27607     HAVE_POSIX_SIGNALBLOCKING=0
27608   fi
27609
27610       if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
27611
27612
27613
27614
27615           if test $gl_cv_header_signal_h_SIGPIPE != yes; then
27616             REPLACE_RAISE=1
27617           fi
27618
27619       fi
27620
27621   fi
27622
27623   if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
27624
27625
27626
27627
27628
27629
27630
27631
27632   gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
27633
27634     :
27635   fi
27636
27637
27638
27639
27640
27641           GNULIB_RAISE=1
27642
27643
27644
27645
27646
27647 $as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h
27648
27649
27650
27651
27652
27653
27654   if test $ac_cv_func_readlink = no; then
27655     HAVE_READLINK=0
27656   else
27657     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
27658 $as_echo_n "checking whether readlink signature is correct... " >&6; }
27659 if ${gl_cv_decl_readlink_works+:} false; then :
27660   $as_echo_n "(cached) " >&6
27661 else
27662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27663 /* end confdefs.h.  */
27664 #include <unistd.h>
27665       /* Cause compilation failure if original declaration has wrong type.  */
27666       ssize_t readlink (const char *, char *, size_t);
27667 int
27668 main ()
27669 {
27670
27671   ;
27672   return 0;
27673 }
27674 _ACEOF
27675 if ac_fn_c_try_compile "$LINENO"; then :
27676   gl_cv_decl_readlink_works=yes
27677 else
27678   gl_cv_decl_readlink_works=no
27679 fi
27680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27681 fi
27682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
27683 $as_echo "$gl_cv_decl_readlink_works" >&6; }
27684             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
27685 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
27686 if ${gl_cv_func_readlink_works+:} false; then :
27687   $as_echo_n "(cached) " >&6
27688 else
27689   # We have readlink, so assume ln -s works.
27690        ln -s conftest.no-such conftest.link
27691        ln -s conftest.link conftest.lnk2
27692        if test "$cross_compiling" = yes; then :
27693   case "$host_os" in
27694                     # Guess yes on glibc systems.
27695             *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
27696                     # If we don't know, assume the worst.
27697             *)      gl_cv_func_readlink_works="guessing no" ;;
27698           esac
27699
27700 else
27701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27702 /* end confdefs.h.  */
27703 #include <unistd.h>
27704
27705 int
27706 main ()
27707 {
27708 char buf[20];
27709       return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
27710   ;
27711   return 0;
27712 }
27713 _ACEOF
27714 if ac_fn_c_try_run "$LINENO"; then :
27715   gl_cv_func_readlink_works=yes
27716 else
27717   gl_cv_func_readlink_works=no
27718 fi
27719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27720   conftest.$ac_objext conftest.beam conftest.$ac_ext
27721 fi
27722
27723       rm -f conftest.link conftest.lnk2
27724 fi
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
27726 $as_echo "$gl_cv_func_readlink_works" >&6; }
27727     case "$gl_cv_func_readlink_works" in
27728       *yes)
27729         if test "$gl_cv_decl_readlink_works" != yes; then
27730           REPLACE_READLINK=1
27731         fi
27732         ;;
27733       *)
27734
27735 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
27736
27737         REPLACE_READLINK=1
27738         ;;
27739     esac
27740   fi
27741
27742   if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
27743
27744
27745
27746
27747
27748
27749
27750
27751   gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
27752
27753
27754   :
27755
27756   fi
27757
27758
27759
27760
27761
27762           GNULIB_READLINK=1
27763
27764
27765
27766
27767
27768 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
27769
27770
27771
27772
27773
27774
27775
27776
27777   : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
27778   RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
27779   RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
27780
27781   if test $RELOCATABLE = yes; then
27782
27783
27784
27785
27786
27787
27788
27789
27790   gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext"
27791
27792
27793
27794
27795
27796
27797
27798
27799
27800   gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext"
27801
27802   fi
27803
27804
27805
27806   :
27807
27808
27809
27810
27811
27812
27813
27814
27815
27816
27817
27818
27819
27820
27821
27822
27823
27824
27825
27826   if test $ac_cv_have_decl_setenv = no; then
27827     HAVE_DECL_SETENV=0
27828   fi
27829
27830
27831
27832
27833
27834   for ac_header in search.h
27835 do :
27836   ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
27837 if test "x$ac_cv_header_search_h" = xyes; then :
27838   cat >>confdefs.h <<_ACEOF
27839 #define HAVE_SEARCH_H 1
27840 _ACEOF
27841
27842 fi
27843
27844 done
27845
27846   for ac_func in tsearch
27847 do :
27848   ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
27849 if test "x$ac_cv_func_tsearch" = xyes; then :
27850   cat >>confdefs.h <<_ACEOF
27851 #define HAVE_TSEARCH 1
27852 _ACEOF
27853
27854 fi
27855 done
27856
27857
27858
27859
27860
27861
27862   case "$host_os" in
27863             mingw*) REPLACE_SETLOCALE=1 ;;
27864             cygwin*)
27865       case `uname -r` in
27866         1.5.*) REPLACE_SETLOCALE=1 ;;
27867       esac
27868       ;;
27869   esac
27870
27871   if test $REPLACE_SETLOCALE = 1; then
27872
27873
27874
27875
27876
27877
27878
27879
27880   gl_LIBOBJS="$gl_LIBOBJS setlocale.$ac_objext"
27881
27882
27883   :
27884
27885   fi
27886
27887
27888
27889
27890
27891           GNULIB_SETLOCALE=1
27892
27893
27894
27895
27896
27897 $as_echo "#define GNULIB_TEST_SETLOCALE 1" >>confdefs.h
27898
27899
27900
27901
27902
27903
27904
27905
27906
27907
27908
27909
27910
27911
27912      if test $gl_cv_have_include_next = yes; then
27913        gl_cv_next_signal_h='<'signal.h'>'
27914      else
27915        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
27916 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
27917 if ${gl_cv_next_signal_h+:} false; then :
27918   $as_echo_n "(cached) " >&6
27919 else
27920
27921                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27922 /* end confdefs.h.  */
27923 #include <signal.h>
27924
27925 _ACEOF
27926                                                                                                                         case "$host_os" in
27927                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
27928                  *)    gl_absname_cpp="$ac_cpp" ;;
27929                esac
27930
27931                case "$host_os" in
27932                  mingw*)
27933                                                                                                                                      gl_dirsep_regex='[/\\]'
27934                    ;;
27935                  *)
27936                    gl_dirsep_regex='\/'
27937                    ;;
27938                esac
27939                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27940
27941                gl_header_literal_regex=`echo 'signal.h' \
27942                                         | sed -e "$gl_make_literal_regex_sed"`
27943                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27944                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27945                    s|^/[^/]|//&|
27946                    p
27947                    q
27948                  }'
27949                                                             gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27950                       sed -n "$gl_absolute_header_sed"`'"'
27951
27952
27953 fi
27954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
27955 $as_echo "$gl_cv_next_signal_h" >&6; }
27956      fi
27957      NEXT_SIGNAL_H=$gl_cv_next_signal_h
27958
27959      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27960        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27961        gl_next_as_first_directive='<'signal.h'>'
27962      else
27963        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27964        gl_next_as_first_directive=$gl_cv_next_signal_h
27965      fi
27966      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
27967
27968
27969
27970
27971
27972 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
27973 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
27974   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
27975 #include <signal.h>
27976
27977 "
27978 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then :
27979
27980 else
27981   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
27982 fi
27983
27984
27985
27986
27987
27988
27989
27990   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
27991 #include <signal.h>
27992
27993 "
27994 if test "x$ac_cv_type_sighandler_t" = xyes; then :
27995
27996 else
27997   HAVE_SIGHANDLER_T=0
27998 fi
27999
28000
28001
28002     for gl_func in pthread_sigmask sigaction     sigaddset sigdelset sigemptyset sigfillset sigismember     sigpending sigprocmask; do
28003     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
28004     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
28005 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
28006 if eval \${$as_gl_Symbol+:} false; then :
28007   $as_echo_n "(cached) " >&6
28008 else
28009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28010 /* end confdefs.h.  */
28011 #include <signal.h>
28012
28013 int
28014 main ()
28015 {
28016 #undef $gl_func
28017   (void) $gl_func;
28018   ;
28019   return 0;
28020 }
28021 _ACEOF
28022 if ac_fn_c_try_compile "$LINENO"; then :
28023   eval "$as_gl_Symbol=yes"
28024 else
28025   eval "$as_gl_Symbol=no"
28026 fi
28027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28028 fi
28029 eval ac_res=\$$as_gl_Symbol
28030                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28031 $as_echo "$ac_res" >&6; }
28032     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
28033   cat >>confdefs.h <<_ACEOF
28034 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
28035 _ACEOF
28036
28037                      eval ac_cv_have_decl_$gl_func=yes
28038 fi
28039       done
28040
28041
28042
28043
28044
28045
28046
28047 cat >>confdefs.h <<_ACEOF
28048 #define GNULIB_SIGPIPE 1
28049 _ACEOF
28050
28051
28052
28053   GNULIB_SIGNAL_H_SIGPIPE=1
28054
28055
28056   GNULIB_STDIO_H_SIGPIPE=1
28057
28058   GNULIB_UNISTD_H_SIGPIPE=1
28059
28060
28061
28062   if test $gl_cv_type_sigset_t = yes; then
28063     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
28064 if test "x$ac_cv_func_sigprocmask" = xyes; then :
28065   gl_cv_func_sigprocmask=1
28066 fi
28067
28068   fi
28069   if test -z "$gl_cv_func_sigprocmask"; then
28070     HAVE_POSIX_SIGNALBLOCKING=0
28071   fi
28072
28073   if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
28074
28075
28076
28077
28078
28079
28080
28081
28082   gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
28083
28084     :
28085   fi
28086
28087
28088
28089
28090
28091           GNULIB_SIGPROCMASK=1
28092
28093
28094
28095
28096
28097 $as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
28098
28099
28100
28101
28102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
28103 $as_echo_n "checking for ssize_t... " >&6; }
28104 if ${gt_cv_ssize_t+:} false; then :
28105   $as_echo_n "(cached) " >&6
28106 else
28107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28108 /* end confdefs.h.  */
28109 #include <sys/types.h>
28110 int
28111 main ()
28112 {
28113 int x = sizeof (ssize_t *) + sizeof (ssize_t);
28114             return !x;
28115   ;
28116   return 0;
28117 }
28118 _ACEOF
28119 if ac_fn_c_try_compile "$LINENO"; then :
28120   gt_cv_ssize_t=yes
28121 else
28122   gt_cv_ssize_t=no
28123 fi
28124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28125 fi
28126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
28127 $as_echo "$gt_cv_ssize_t" >&6; }
28128   if test $gt_cv_ssize_t = no; then
28129
28130 $as_echo "#define ssize_t int" >>confdefs.h
28131
28132   fi
28133
28134
28135
28136
28137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
28138 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
28139 if ${gl_cv_func_stat_dir_slash+:} false; then :
28140   $as_echo_n "(cached) " >&6
28141 else
28142   if test "$cross_compiling" = yes; then :
28143   case $host_os in
28144             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
28145             *) gl_cv_func_stat_dir_slash="guessing yes";;
28146           esac
28147 else
28148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28149 /* end confdefs.h.  */
28150 #include <sys/stat.h>
28151
28152 int
28153 main ()
28154 {
28155 struct stat st; return stat (".", &st) != stat ("./", &st);
28156   ;
28157   return 0;
28158 }
28159 _ACEOF
28160 if ac_fn_c_try_run "$LINENO"; then :
28161   gl_cv_func_stat_dir_slash=yes
28162 else
28163   gl_cv_func_stat_dir_slash=no
28164 fi
28165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28166   conftest.$ac_objext conftest.beam conftest.$ac_ext
28167 fi
28168
28169 fi
28170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
28171 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28172         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
28173 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28174 if ${gl_cv_func_stat_file_slash+:} false; then :
28175   $as_echo_n "(cached) " >&6
28176 else
28177   touch conftest.tmp
28178        # Assume that if we have lstat, we can also check symlinks.
28179        if test $ac_cv_func_lstat = yes; then
28180          ln -s conftest.tmp conftest.lnk
28181        fi
28182        if test "$cross_compiling" = yes; then :
28183   case "$host_os" in
28184                     # Guess yes on glibc systems.
28185             *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
28186                     # If we don't know, assume the worst.
28187             *)      gl_cv_func_stat_file_slash="guessing no" ;;
28188           esac
28189
28190 else
28191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28192 /* end confdefs.h.  */
28193 #include <sys/stat.h>
28194
28195 int
28196 main ()
28197 {
28198 int result = 0;
28199       struct stat st;
28200       if (!stat ("conftest.tmp/", &st))
28201         result |= 1;
28202 #if HAVE_LSTAT
28203       if (!stat ("conftest.lnk/", &st))
28204         result |= 2;
28205 #endif
28206       return result;
28207
28208   ;
28209   return 0;
28210 }
28211 _ACEOF
28212 if ac_fn_c_try_run "$LINENO"; then :
28213   gl_cv_func_stat_file_slash=yes
28214 else
28215   gl_cv_func_stat_file_slash=no
28216 fi
28217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28218   conftest.$ac_objext conftest.beam conftest.$ac_ext
28219 fi
28220
28221        rm -f conftest.tmp conftest.lnk
28222 fi
28223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
28224 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28225   case $gl_cv_func_stat_dir_slash in
28226     *no) REPLACE_STAT=1
28227
28228 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
28229 ;;
28230   esac
28231   case $gl_cv_func_stat_file_slash in
28232     *no) REPLACE_STAT=1
28233
28234 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
28235 ;;
28236   esac
28237
28238   if test $REPLACE_STAT = 1; then
28239
28240
28241
28242
28243
28244
28245
28246
28247   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
28248
28249     :
28250   fi
28251
28252
28253
28254
28255
28256           GNULIB_STAT=1
28257
28258
28259
28260
28261
28262 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
28263
28264
28265
28266
28267
28268
28269   # Define two additional variables used in the Makefile substitution.
28270
28271   if test "$ac_cv_header_stdbool_h" = yes; then
28272     STDBOOL_H=''
28273   else
28274     STDBOOL_H='stdbool.h'
28275   fi
28276
28277    if test -n "$STDBOOL_H"; then
28278   GL_GENERATE_STDBOOL_H_TRUE=
28279   GL_GENERATE_STDBOOL_H_FALSE='#'
28280 else
28281   GL_GENERATE_STDBOOL_H_TRUE='#'
28282   GL_GENERATE_STDBOOL_H_FALSE=
28283 fi
28284
28285
28286   if test "$ac_cv_type__Bool" = yes; then
28287     HAVE__BOOL=1
28288   else
28289     HAVE__BOOL=0
28290   fi
28291
28292
28293
28294
28295
28296   STDDEF_H=
28297   if test $gt_cv_c_wchar_t = no; then
28298     HAVE_WCHAR_T=0
28299     STDDEF_H=stddef.h
28300   fi
28301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
28302 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
28303 if ${gl_cv_decl_null_works+:} false; then :
28304   $as_echo_n "(cached) " >&6
28305 else
28306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28307 /* end confdefs.h.  */
28308 #include <stddef.h>
28309       int test[2 * (sizeof NULL == sizeof (void *)) -1];
28310
28311 int
28312 main ()
28313 {
28314
28315   ;
28316   return 0;
28317 }
28318 _ACEOF
28319 if ac_fn_c_try_compile "$LINENO"; then :
28320   gl_cv_decl_null_works=yes
28321 else
28322   gl_cv_decl_null_works=no
28323 fi
28324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28325 fi
28326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
28327 $as_echo "$gl_cv_decl_null_works" >&6; }
28328   if test $gl_cv_decl_null_works = no; then
28329     REPLACE_NULL=1
28330     STDDEF_H=stddef.h
28331   fi
28332
28333    if test -n "$STDDEF_H"; then
28334   GL_GENERATE_STDDEF_H_TRUE=
28335   GL_GENERATE_STDDEF_H_FALSE='#'
28336 else
28337   GL_GENERATE_STDDEF_H_TRUE='#'
28338   GL_GENERATE_STDDEF_H_FALSE=
28339 fi
28340
28341   if test -n "$STDDEF_H"; then
28342
28343
28344
28345
28346
28347
28348
28349
28350      if test $gl_cv_have_include_next = yes; then
28351        gl_cv_next_stddef_h='<'stddef.h'>'
28352      else
28353        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
28354 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
28355 if ${gl_cv_next_stddef_h+:} false; then :
28356   $as_echo_n "(cached) " >&6
28357 else
28358
28359                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28360 /* end confdefs.h.  */
28361 #include <stddef.h>
28362
28363 _ACEOF
28364                                                                                                                         case "$host_os" in
28365                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
28366                  *)    gl_absname_cpp="$ac_cpp" ;;
28367                esac
28368
28369                case "$host_os" in
28370                  mingw*)
28371                                                                                                                                      gl_dirsep_regex='[/\\]'
28372                    ;;
28373                  *)
28374                    gl_dirsep_regex='\/'
28375                    ;;
28376                esac
28377                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28378
28379                gl_header_literal_regex=`echo 'stddef.h' \
28380                                         | sed -e "$gl_make_literal_regex_sed"`
28381                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28382                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28383                    s|^/[^/]|//&|
28384                    p
28385                    q
28386                  }'
28387                                                             gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28388                       sed -n "$gl_absolute_header_sed"`'"'
28389
28390
28391 fi
28392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
28393 $as_echo "$gl_cv_next_stddef_h" >&6; }
28394      fi
28395      NEXT_STDDEF_H=$gl_cv_next_stddef_h
28396
28397      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28398        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28399        gl_next_as_first_directive='<'stddef.h'>'
28400      else
28401        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28402        gl_next_as_first_directive=$gl_cv_next_stddef_h
28403      fi
28404      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
28405
28406
28407
28408
28409   fi
28410
28411
28412
28413
28414
28415
28416
28417
28418
28419
28420
28421
28422      if test $gl_cv_have_include_next = yes; then
28423        gl_cv_next_stdio_h='<'stdio.h'>'
28424      else
28425        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
28426 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
28427 if ${gl_cv_next_stdio_h+:} false; then :
28428   $as_echo_n "(cached) " >&6
28429 else
28430
28431                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28432 /* end confdefs.h.  */
28433 #include <stdio.h>
28434
28435 _ACEOF
28436                                                                                                                         case "$host_os" in
28437                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
28438                  *)    gl_absname_cpp="$ac_cpp" ;;
28439                esac
28440
28441                case "$host_os" in
28442                  mingw*)
28443                                                                                                                                      gl_dirsep_regex='[/\\]'
28444                    ;;
28445                  *)
28446                    gl_dirsep_regex='\/'
28447                    ;;
28448                esac
28449                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28450
28451                gl_header_literal_regex=`echo 'stdio.h' \
28452                                         | sed -e "$gl_make_literal_regex_sed"`
28453                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28454                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28455                    s|^/[^/]|//&|
28456                    p
28457                    q
28458                  }'
28459                                                             gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28460                       sed -n "$gl_absolute_header_sed"`'"'
28461
28462
28463 fi
28464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
28465 $as_echo "$gl_cv_next_stdio_h" >&6; }
28466      fi
28467      NEXT_STDIO_H=$gl_cv_next_stdio_h
28468
28469      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28470        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28471        gl_next_as_first_directive='<'stdio.h'>'
28472      else
28473        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28474        gl_next_as_first_directive=$gl_cv_next_stdio_h
28475      fi
28476      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
28477
28478
28479
28480
28481
28482       GNULIB_FSCANF=1
28483
28484
28485 cat >>confdefs.h <<_ACEOF
28486 #define GNULIB_FSCANF 1
28487 _ACEOF
28488
28489
28490   GNULIB_SCANF=1
28491
28492
28493 cat >>confdefs.h <<_ACEOF
28494 #define GNULIB_SCANF 1
28495 _ACEOF
28496
28497
28498   GNULIB_FGETC=1
28499   GNULIB_GETC=1
28500   GNULIB_GETCHAR=1
28501   GNULIB_FGETS=1
28502   GNULIB_FREAD=1
28503
28504
28505       GNULIB_FPRINTF=1
28506   GNULIB_PRINTF=1
28507   GNULIB_VFPRINTF=1
28508   GNULIB_VPRINTF=1
28509   GNULIB_FPUTC=1
28510   GNULIB_PUTC=1
28511   GNULIB_PUTCHAR=1
28512   GNULIB_FPUTS=1
28513   GNULIB_PUTS=1
28514   GNULIB_FWRITE=1
28515
28516
28517
28518
28519     if test $gl_cv_header_signal_h_SIGPIPE != yes; then
28520       REPLACE_STDIO_WRITE_FUNCS=1
28521
28522
28523
28524
28525
28526
28527
28528
28529   gl_LIBOBJS="$gl_LIBOBJS stdio-write.$ac_objext"
28530
28531     fi
28532
28533
28534
28535
28536     for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen     renameat snprintf tmpfile vdprintf vsnprintf; do
28537     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
28538     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
28539 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
28540 if eval \${$as_gl_Symbol+:} false; then :
28541   $as_echo_n "(cached) " >&6
28542 else
28543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28544 /* end confdefs.h.  */
28545 #include <stdio.h>
28546
28547 int
28548 main ()
28549 {
28550 #undef $gl_func
28551   (void) $gl_func;
28552   ;
28553   return 0;
28554 }
28555 _ACEOF
28556 if ac_fn_c_try_compile "$LINENO"; then :
28557   eval "$as_gl_Symbol=yes"
28558 else
28559   eval "$as_gl_Symbol=no"
28560 fi
28561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28562 fi
28563 eval ac_res=\$$as_gl_Symbol
28564                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28565 $as_echo "$ac_res" >&6; }
28566     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
28567   cat >>confdefs.h <<_ACEOF
28568 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
28569 _ACEOF
28570
28571                      eval ac_cv_have_decl_$gl_func=yes
28572 fi
28573       done
28574
28575
28576
28577
28578
28579
28580
28581
28582
28583
28584
28585
28586      if test $gl_cv_have_include_next = yes; then
28587        gl_cv_next_stdlib_h='<'stdlib.h'>'
28588      else
28589        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
28590 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
28591 if ${gl_cv_next_stdlib_h+:} false; then :
28592   $as_echo_n "(cached) " >&6
28593 else
28594
28595                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28596 /* end confdefs.h.  */
28597 #include <stdlib.h>
28598
28599 _ACEOF
28600                                                                                                                         case "$host_os" in
28601                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
28602                  *)    gl_absname_cpp="$ac_cpp" ;;
28603                esac
28604
28605                case "$host_os" in
28606                  mingw*)
28607                                                                                                                                      gl_dirsep_regex='[/\\]'
28608                    ;;
28609                  *)
28610                    gl_dirsep_regex='\/'
28611                    ;;
28612                esac
28613                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28614
28615                gl_header_literal_regex=`echo 'stdlib.h' \
28616                                         | sed -e "$gl_make_literal_regex_sed"`
28617                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28618                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28619                    s|^/[^/]|//&|
28620                    p
28621                    q
28622                  }'
28623                                                             gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28624                       sed -n "$gl_absolute_header_sed"`'"'
28625
28626
28627 fi
28628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
28629 $as_echo "$gl_cv_next_stdlib_h" >&6; }
28630      fi
28631      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
28632
28633      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28634        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28635        gl_next_as_first_directive='<'stdlib.h'>'
28636      else
28637        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28638        gl_next_as_first_directive=$gl_cv_next_stdlib_h
28639      fi
28640      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
28641
28642
28643
28644
28645
28646
28647     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
28648     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
28649     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
28650 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
28651 if eval \${$as_gl_Symbol+:} false; then :
28652   $as_echo_n "(cached) " >&6
28653 else
28654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28655 /* end confdefs.h.  */
28656 #include <stdlib.h>
28657 #if HAVE_SYS_LOADAVG_H
28658 # include <sys/loadavg.h>
28659 #endif
28660 #if HAVE_RANDOM_H
28661 # include <random.h>
28662 #endif
28663
28664 int
28665 main ()
28666 {
28667 #undef $gl_func
28668   (void) $gl_func;
28669   ;
28670   return 0;
28671 }
28672 _ACEOF
28673 if ac_fn_c_try_compile "$LINENO"; then :
28674   eval "$as_gl_Symbol=yes"
28675 else
28676   eval "$as_gl_Symbol=no"
28677 fi
28678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28679 fi
28680 eval ac_res=\$$as_gl_Symbol
28681                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
28682 $as_echo "$ac_res" >&6; }
28683     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
28684   cat >>confdefs.h <<_ACEOF
28685 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
28686 _ACEOF
28687
28688                      eval ac_cv_have_decl_$gl_func=yes
28689 fi
28690       done
28691
28692
28693
28694
28695
28696
28697
28698   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
28699     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
28700 $as_echo_n "checking for working strerror function... " >&6; }
28701 if ${gl_cv_func_working_strerror+:} false; then :
28702   $as_echo_n "(cached) " >&6
28703 else
28704   if test "$cross_compiling" = yes; then :
28705   case "$host_os" in
28706                    # Guess yes on glibc systems.
28707            *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
28708                    # If we don't know, assume the worst.
28709            *)      gl_cv_func_working_strerror="guessing no" ;;
28710          esac
28711
28712 else
28713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28714 /* end confdefs.h.  */
28715 #include <string.h>
28716
28717 int
28718 main ()
28719 {
28720 if (!*strerror (-2)) return 1;
28721   ;
28722   return 0;
28723 }
28724 _ACEOF
28725 if ac_fn_c_try_run "$LINENO"; then :
28726   gl_cv_func_working_strerror=yes
28727 else
28728   gl_cv_func_working_strerror=no
28729 fi
28730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28731   conftest.$ac_objext conftest.beam conftest.$ac_ext
28732 fi
28733
28734
28735 fi
28736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
28737 $as_echo "$gl_cv_func_working_strerror" >&6; }
28738     case "$gl_cv_func_working_strerror" in
28739       *yes) ;;
28740       *)
28741                         REPLACE_STRERROR=1
28742         ;;
28743     esac
28744
28745   else
28746             REPLACE_STRERROR=1
28747   fi
28748
28749   if test $REPLACE_STRERROR = 1; then
28750
28751
28752
28753
28754
28755
28756
28757
28758   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
28759
28760   fi
28761
28762
28763 cat >>confdefs.h <<_ACEOF
28764 #define GNULIB_STRERROR 1
28765 _ACEOF
28766
28767
28768
28769
28770
28771
28772
28773           GNULIB_STRERROR=1
28774
28775
28776
28777
28778
28779 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
28780
28781
28782
28783
28784
28785   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
28786
28787
28788
28789
28790
28791
28792
28793
28794   gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
28795
28796
28797
28798
28799
28800   if test $ac_cv_header_sys_socket_h != yes; then
28801                     for ac_header in winsock2.h
28802 do :
28803   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
28804 if test "x$ac_cv_header_winsock2_h" = xyes; then :
28805   cat >>confdefs.h <<_ACEOF
28806 #define HAVE_WINSOCK2_H 1
28807 _ACEOF
28808
28809 fi
28810
28811 done
28812
28813   fi
28814   if test "$ac_cv_header_winsock2_h" = yes; then
28815     HAVE_WINSOCK2_H=1
28816     UNISTD_H_HAVE_WINSOCK2_H=1
28817     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
28818   else
28819     HAVE_WINSOCK2_H=0
28820   fi
28821
28822
28823   fi
28824   if test $gl_cond_libtool = false; then
28825     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
28826     gl_libdeps="$gl_libdeps $LIBICONV"
28827   fi
28828
28829
28830
28831
28832
28833
28834
28835
28836
28837   if test $ac_cv_have_decl_strnlen = no; then
28838     HAVE_DECL_STRNLEN=0
28839   else
28840
28841          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
28842 $as_echo_n "checking for working strnlen... " >&6; }
28843 if ${ac_cv_func_strnlen_working+:} false; then :
28844   $as_echo_n "(cached) " >&6
28845 else
28846   if test "$cross_compiling" = yes; then :
28847   # Guess no on AIX systems, yes otherwise.
28848                 case "$host_os" in
28849                   aix*) ac_cv_func_strnlen_working=no;;
28850                   *)    ac_cv_func_strnlen_working=yes;;
28851                 esac
28852 else
28853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28854 /* end confdefs.h.  */
28855 $ac_includes_default
28856 int
28857 main ()
28858 {
28859
28860 #define S "foobar"
28861 #define S_LEN (sizeof S - 1)
28862
28863   /* At least one implementation is buggy: that of AIX 4.3 would
28864      give strnlen (S, 1) == 3.  */
28865
28866   int i;
28867   for (i = 0; i < S_LEN + 1; ++i)
28868     {
28869       int expected = i <= S_LEN ? i : S_LEN;
28870       if (strnlen (S, i) != expected)
28871         return 1;
28872     }
28873   return 0;
28874
28875   ;
28876   return 0;
28877 }
28878 _ACEOF
28879 if ac_fn_c_try_run "$LINENO"; then :
28880   ac_cv_func_strnlen_working=yes
28881 else
28882   ac_cv_func_strnlen_working=no
28883 fi
28884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28885   conftest.$ac_objext conftest.beam conftest.$ac_ext
28886 fi
28887
28888 fi
28889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
28890 $as_echo "$ac_cv_func_strnlen_working" >&6; }
28891 test $ac_cv_func_strnlen_working = no && :
28892
28893
28894     if test $ac_cv_func_strnlen_working = no; then
28895       REPLACE_STRNLEN=1
28896     fi
28897   fi
28898
28899   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
28900
28901
28902
28903
28904
28905
28906
28907
28908   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
28909
28910     :
28911   fi
28912
28913
28914
28915
28916
28917           GNULIB_STRNLEN=1
28918
28919
28920
28921
28922
28923 $as_echo "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
28924
28925
28926
28927
28928   for ac_func in strtoul
28929 do :
28930   ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
28931 if test "x$ac_cv_func_strtoul" = xyes; then :
28932   cat >>confdefs.h <<_ACEOF
28933 #define HAVE_STRTOUL 1
28934 _ACEOF
28935
28936 fi
28937 done
28938
28939
28940   if test $ac_cv_func_strtoul = no; then
28941
28942
28943
28944
28945
28946
28947
28948
28949   gl_LIBOBJS="$gl_LIBOBJS strtoul.$ac_objext"
28950
28951   fi
28952
28953
28954
28955
28956
28957
28958
28959
28960
28961
28962
28963
28964
28965
28966      if test $gl_cv_have_include_next = yes; then
28967        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
28968      else
28969        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
28970 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
28971 if ${gl_cv_next_sys_stat_h+:} false; then :
28972   $as_echo_n "(cached) " >&6
28973 else
28974
28975              if test $ac_cv_header_sys_stat_h = yes; then
28976
28977
28978                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28979 /* end confdefs.h.  */
28980 #include <sys/stat.h>
28981
28982 _ACEOF
28983                                                                                                                         case "$host_os" in
28984                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
28985                  *)    gl_absname_cpp="$ac_cpp" ;;
28986                esac
28987
28988                case "$host_os" in
28989                  mingw*)
28990                                                                                                                                      gl_dirsep_regex='[/\\]'
28991                    ;;
28992                  *)
28993                    gl_dirsep_regex='\/'
28994                    ;;
28995                esac
28996                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28997
28998                gl_header_literal_regex=`echo 'sys/stat.h' \
28999                                         | sed -e "$gl_make_literal_regex_sed"`
29000                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29001                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29002                    s|^/[^/]|//&|
29003                    p
29004                    q
29005                  }'
29006                                                             gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29007                       sed -n "$gl_absolute_header_sed"`'"'
29008           else
29009                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
29010              fi
29011
29012
29013 fi
29014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
29015 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
29016      fi
29017      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
29018
29019      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29020        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29021        gl_next_as_first_directive='<'sys/stat.h'>'
29022      else
29023        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29024        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
29025      fi
29026      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
29027
29028
29029
29030
29031
29032
29033
29034
29035
29036
29037
29038   if test $WINDOWS_64_BIT_ST_SIZE = 1; then
29039
29040 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
29041
29042   fi
29043
29044       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
29045      #include <sys/stat.h>
29046 "
29047 if test "x$ac_cv_type_nlink_t" = xyes; then :
29048
29049 else
29050
29051 $as_echo "#define nlink_t int" >>confdefs.h
29052
29053 fi
29054
29055
29056
29057     for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
29058     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
29059     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
29060 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
29061 if eval \${$as_gl_Symbol+:} false; then :
29062   $as_echo_n "(cached) " >&6
29063 else
29064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29065 /* end confdefs.h.  */
29066 #include <sys/stat.h>
29067
29068 int
29069 main ()
29070 {
29071 #undef $gl_func
29072   (void) $gl_func;
29073   ;
29074   return 0;
29075 }
29076 _ACEOF
29077 if ac_fn_c_try_compile "$LINENO"; then :
29078   eval "$as_gl_Symbol=yes"
29079 else
29080   eval "$as_gl_Symbol=no"
29081 fi
29082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29083 fi
29084 eval ac_res=\$$as_gl_Symbol
29085                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29086 $as_echo "$ac_res" >&6; }
29087     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
29088   cat >>confdefs.h <<_ACEOF
29089 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
29090 _ACEOF
29091
29092                      eval ac_cv_have_decl_$gl_func=yes
29093 fi
29094       done
29095
29096
29097
29098
29099
29100
29101
29102
29103
29104
29105
29106
29107
29108
29109
29110
29111
29112
29113
29114
29115
29116
29117
29118
29119      if test $gl_cv_have_include_next = yes; then
29120        gl_cv_next_unistd_h='<'unistd.h'>'
29121      else
29122        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
29123 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
29124 if ${gl_cv_next_unistd_h+:} false; then :
29125   $as_echo_n "(cached) " >&6
29126 else
29127
29128              if test $ac_cv_header_unistd_h = yes; then
29129
29130
29131                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29132 /* end confdefs.h.  */
29133 #include <unistd.h>
29134
29135 _ACEOF
29136                                                                                                                         case "$host_os" in
29137                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
29138                  *)    gl_absname_cpp="$ac_cpp" ;;
29139                esac
29140
29141                case "$host_os" in
29142                  mingw*)
29143                                                                                                                                      gl_dirsep_regex='[/\\]'
29144                    ;;
29145                  *)
29146                    gl_dirsep_regex='\/'
29147                    ;;
29148                esac
29149                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29150
29151                gl_header_literal_regex=`echo 'unistd.h' \
29152                                         | sed -e "$gl_make_literal_regex_sed"`
29153                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29154                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29155                    s|^/[^/]|//&|
29156                    p
29157                    q
29158                  }'
29159                                                             gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29160                       sed -n "$gl_absolute_header_sed"`'"'
29161           else
29162                gl_cv_next_unistd_h='<'unistd.h'>'
29163              fi
29164
29165
29166 fi
29167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
29168 $as_echo "$gl_cv_next_unistd_h" >&6; }
29169      fi
29170      NEXT_UNISTD_H=$gl_cv_next_unistd_h
29171
29172      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29173        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29174        gl_next_as_first_directive='<'unistd.h'>'
29175      else
29176        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29177        gl_next_as_first_directive=$gl_cv_next_unistd_h
29178      fi
29179      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
29180
29181
29182
29183
29184   if test $ac_cv_header_unistd_h = yes; then
29185     HAVE_UNISTD_H=1
29186   else
29187     HAVE_UNISTD_H=0
29188   fi
29189
29190
29191
29192
29193
29194
29195
29196     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
29197     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
29198     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
29199 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
29200 if eval \${$as_gl_Symbol+:} false; then :
29201   $as_echo_n "(cached) " >&6
29202 else
29203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29204 /* end confdefs.h.  */
29205
29206 #if HAVE_UNISTD_H
29207 # include <unistd.h>
29208 #endif
29209 /* Some systems declare various items in the wrong headers.  */
29210 #if !(defined __GLIBC__ && !defined __UCLIBC__)
29211 # include <fcntl.h>
29212 # include <stdio.h>
29213 # include <stdlib.h>
29214 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
29215 #  include <io.h>
29216 # endif
29217 #endif
29218
29219 int
29220 main ()
29221 {
29222 #undef $gl_func
29223   (void) $gl_func;
29224   ;
29225   return 0;
29226 }
29227 _ACEOF
29228 if ac_fn_c_try_compile "$LINENO"; then :
29229   eval "$as_gl_Symbol=yes"
29230 else
29231   eval "$as_gl_Symbol=no"
29232 fi
29233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29234 fi
29235 eval ac_res=\$$as_gl_Symbol
29236                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29237 $as_echo "$ac_res" >&6; }
29238     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
29239   cat >>confdefs.h <<_ACEOF
29240 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
29241 _ACEOF
29242
29243                      eval ac_cv_have_decl_$gl_func=yes
29244 fi
29245       done
29246
29247
29248
29249
29250       if  { test "$HAVE_LIBUNISTRING" != yes \
29251     || {
29252
29253
29254
29255             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
29256             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
29257                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
29258                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
29259                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 2
29260                          }
29261                     }
29262                }
29263
29264
29265
29266
29267        }
29268   }; then
29269     LIBUNISTRING_UNISTR_H='unistr.h'
29270   else
29271     LIBUNISTRING_UNISTR_H=
29272   fi
29273
29274
29275
29276
29277 cat >>confdefs.h <<_ACEOF
29278 #define GNULIB_UNISTR_U8_MBTOUCR 1
29279 _ACEOF
29280
29281
29282
29283
29284        if  { test "$HAVE_LIBUNISTRING" != yes \
29285     || {
29286
29287
29288
29289             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
29290             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
29291                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
29292                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
29293                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
29294                          }
29295                     }
29296                }
29297
29298
29299
29300
29301        }
29302   }; then
29303   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE=
29304   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#'
29305 else
29306   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#'
29307   LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE=
29308 fi
29309
29310
29311
29312
29313 cat >>confdefs.h <<_ACEOF
29314 #define GNULIB_UNISTR_U8_UCTOMB 1
29315 _ACEOF
29316
29317
29318
29319
29320        if  { test "$HAVE_LIBUNISTRING" != yes \
29321     || {
29322
29323
29324
29325             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
29326             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
29327                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
29328                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
29329                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
29330                          }
29331                     }
29332                }
29333
29334
29335
29336
29337        }
29338   }; then
29339   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE=
29340   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#'
29341 else
29342   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#'
29343   LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE=
29344 fi
29345
29346
29347
29348
29349       if  { test "$HAVE_LIBUNISTRING" != yes \
29350     || {
29351
29352
29353
29354             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
29355             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
29356                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
29357                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
29358                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
29359                          }
29360                     }
29361                }
29362
29363
29364
29365
29366        }
29367   }; then
29368     LIBUNISTRING_UNITYPES_H='unitypes.h'
29369   else
29370     LIBUNISTRING_UNITYPES_H=
29371   fi
29372
29373
29374
29375
29376       if  { test "$HAVE_LIBUNISTRING" != yes \
29377     || {
29378
29379
29380
29381             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
29382             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
29383                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
29384                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
29385                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
29386                          }
29387                     }
29388                }
29389
29390
29391
29392
29393        }
29394   }; then
29395     LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
29396   else
29397     LIBUNISTRING_UNIWIDTH_H=
29398   fi
29399
29400
29401
29402
29403        if  { test "$HAVE_LIBUNISTRING" != yes \
29404     || {
29405
29406
29407
29408             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
29409             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
29410                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
29411                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
29412                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
29413                          }
29414                     }
29415                }
29416
29417
29418
29419
29420        }
29421   }; then
29422   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
29423   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
29424 else
29425   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
29426   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
29427 fi
29428
29429
29430
29431
29432 $as_echo "#define USE_UNLOCKED_IO 1" >>confdefs.h
29433
29434
29435
29436
29437
29438
29439
29440
29441
29442
29443
29444
29445
29446
29447
29448
29449
29450
29451
29452
29453
29454
29455
29456
29457
29458
29459
29460
29461
29462
29463      if test $gl_cv_have_include_next = yes; then
29464        gl_cv_next_wchar_h='<'wchar.h'>'
29465      else
29466        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
29467 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
29468 if ${gl_cv_next_wchar_h+:} false; then :
29469   $as_echo_n "(cached) " >&6
29470 else
29471
29472              if test $ac_cv_header_wchar_h = yes; then
29473
29474
29475                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29476 /* end confdefs.h.  */
29477 #include <wchar.h>
29478
29479 _ACEOF
29480                                                                                                                         case "$host_os" in
29481                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
29482                  *)    gl_absname_cpp="$ac_cpp" ;;
29483                esac
29484
29485                case "$host_os" in
29486                  mingw*)
29487                                                                                                                                      gl_dirsep_regex='[/\\]'
29488                    ;;
29489                  *)
29490                    gl_dirsep_regex='\/'
29491                    ;;
29492                esac
29493                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29494
29495                gl_header_literal_regex=`echo 'wchar.h' \
29496                                         | sed -e "$gl_make_literal_regex_sed"`
29497                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29498                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29499                    s|^/[^/]|//&|
29500                    p
29501                    q
29502                  }'
29503                                                             gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29504                       sed -n "$gl_absolute_header_sed"`'"'
29505           else
29506                gl_cv_next_wchar_h='<'wchar.h'>'
29507              fi
29508
29509
29510 fi
29511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
29512 $as_echo "$gl_cv_next_wchar_h" >&6; }
29513      fi
29514      NEXT_WCHAR_H=$gl_cv_next_wchar_h
29515
29516      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29517        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29518        gl_next_as_first_directive='<'wchar.h'>'
29519      else
29520        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29521        gl_next_as_first_directive=$gl_cv_next_wchar_h
29522      fi
29523      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
29524
29525
29526
29527
29528   if test $ac_cv_header_wchar_h = yes; then
29529     HAVE_WCHAR_H=1
29530   else
29531     HAVE_WCHAR_H=0
29532   fi
29533
29534
29535
29536
29537
29538   if test $gt_cv_c_wint_t = yes; then
29539     HAVE_WINT_T=1
29540   else
29541     HAVE_WINT_T=0
29542   fi
29543
29544
29545
29546     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
29547     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
29548     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
29549 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
29550 if eval \${$as_gl_Symbol+:} false; then :
29551   $as_echo_n "(cached) " >&6
29552 else
29553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29554 /* end confdefs.h.  */
29555
29556 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29557    <wchar.h>.
29558    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29559    included before <wchar.h>.  */
29560 #if !(defined __GLIBC__ && !defined __UCLIBC__)
29561 # include <stddef.h>
29562 # include <stdio.h>
29563 # include <time.h>
29564 #endif
29565 #include <wchar.h>
29566
29567 int
29568 main ()
29569 {
29570 #undef $gl_func
29571   (void) $gl_func;
29572   ;
29573   return 0;
29574 }
29575 _ACEOF
29576 if ac_fn_c_try_compile "$LINENO"; then :
29577   eval "$as_gl_Symbol=yes"
29578 else
29579   eval "$as_gl_Symbol=no"
29580 fi
29581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29582 fi
29583 eval ac_res=\$$as_gl_Symbol
29584                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29585 $as_echo "$ac_res" >&6; }
29586     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
29587   cat >>confdefs.h <<_ACEOF
29588 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
29589 _ACEOF
29590
29591                      eval ac_cv_have_decl_$gl_func=yes
29592 fi
29593       done
29594
29595
29596
29597
29598
29599
29600
29601   if test $ac_cv_func_iswcntrl = yes; then
29602     HAVE_ISWCNTRL=1
29603   else
29604     HAVE_ISWCNTRL=0
29605   fi
29606
29607
29608
29609   if test $gt_cv_c_wint_t = yes; then
29610     HAVE_WINT_T=1
29611   else
29612     HAVE_WINT_T=0
29613   fi
29614
29615
29616
29617
29618
29619
29620
29621
29622
29623
29624
29625      if test $gl_cv_have_include_next = yes; then
29626        gl_cv_next_wctype_h='<'wctype.h'>'
29627      else
29628        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
29629 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
29630 if ${gl_cv_next_wctype_h+:} false; then :
29631   $as_echo_n "(cached) " >&6
29632 else
29633
29634              if test $ac_cv_header_wctype_h = yes; then
29635
29636
29637                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29638 /* end confdefs.h.  */
29639 #include <wctype.h>
29640
29641 _ACEOF
29642                                                                                                                         case "$host_os" in
29643                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
29644                  *)    gl_absname_cpp="$ac_cpp" ;;
29645                esac
29646
29647                case "$host_os" in
29648                  mingw*)
29649                                                                                                                                      gl_dirsep_regex='[/\\]'
29650                    ;;
29651                  *)
29652                    gl_dirsep_regex='\/'
29653                    ;;
29654                esac
29655                                              gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29656
29657                gl_header_literal_regex=`echo 'wctype.h' \
29658                                         | sed -e "$gl_make_literal_regex_sed"`
29659                gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29660                    s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29661                    s|^/[^/]|//&|
29662                    p
29663                    q
29664                  }'
29665                                                             gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29666                       sed -n "$gl_absolute_header_sed"`'"'
29667           else
29668                gl_cv_next_wctype_h='<'wctype.h'>'
29669              fi
29670
29671
29672 fi
29673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
29674 $as_echo "$gl_cv_next_wctype_h" >&6; }
29675      fi
29676      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
29677
29678      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29679        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29680        gl_next_as_first_directive='<'wctype.h'>'
29681      else
29682        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29683        gl_next_as_first_directive=$gl_cv_next_wctype_h
29684      fi
29685      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
29686
29687
29688
29689
29690   if test $ac_cv_header_wctype_h = yes; then
29691     if test $ac_cv_func_iswcntrl = yes; then
29692                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
29693 $as_echo_n "checking whether iswcntrl works... " >&6; }
29694 if ${gl_cv_func_iswcntrl_works+:} false; then :
29695   $as_echo_n "(cached) " >&6
29696 else
29697
29698           if test "$cross_compiling" = yes; then :
29699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29700 /* end confdefs.h.  */
29701 #include <stdlib.h>
29702                           #if __GNU_LIBRARY__ == 1
29703                           Linux libc5 i18n is broken.
29704                           #endif
29705 int
29706 main ()
29707 {
29708
29709   ;
29710   return 0;
29711 }
29712 _ACEOF
29713 if ac_fn_c_try_compile "$LINENO"; then :
29714   gl_cv_func_iswcntrl_works="guessing yes"
29715 else
29716   gl_cv_func_iswcntrl_works="guessing no"
29717 fi
29718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29719
29720 else
29721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29722 /* end confdefs.h.  */
29723
29724                /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
29725                   included before <wchar.h>.
29726                   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
29727                   must be included before <wchar.h>.  */
29728                #include <stddef.h>
29729                #include <stdio.h>
29730                #include <time.h>
29731                #include <wchar.h>
29732                #include <wctype.h>
29733                int main () { return iswprint ('x') == 0; }
29734
29735 _ACEOF
29736 if ac_fn_c_try_run "$LINENO"; then :
29737   gl_cv_func_iswcntrl_works=yes
29738 else
29739   gl_cv_func_iswcntrl_works=no
29740 fi
29741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29742   conftest.$ac_objext conftest.beam conftest.$ac_ext
29743 fi
29744
29745
29746 fi
29747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
29748 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
29749     fi
29750     HAVE_WCTYPE_H=1
29751   else
29752     HAVE_WCTYPE_H=0
29753   fi
29754
29755
29756   case "$gl_cv_func_iswcntrl_works" in
29757     *yes) REPLACE_ISWCNTRL=0 ;;
29758     *)    REPLACE_ISWCNTRL=1 ;;
29759   esac
29760
29761
29762   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
29763         :
29764   fi
29765
29766   if test $REPLACE_ISWCNTRL = 1; then
29767     REPLACE_TOWLOWER=1
29768   else
29769     for ac_func in towlower
29770 do :
29771   ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
29772 if test "x$ac_cv_func_towlower" = xyes; then :
29773   cat >>confdefs.h <<_ACEOF
29774 #define HAVE_TOWLOWER 1
29775 _ACEOF
29776
29777 fi
29778 done
29779
29780     if test $ac_cv_func_towlower = yes; then
29781       REPLACE_TOWLOWER=0
29782     else
29783       ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
29784              included before <wchar.h>.
29785              BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
29786              must be included before <wchar.h>.  */
29787           #include <stddef.h>
29788           #include <stdio.h>
29789           #include <time.h>
29790           #include <wchar.h>
29791           #if HAVE_WCTYPE_H
29792           # include <wctype.h>
29793           #endif
29794
29795 "
29796 if test "x$ac_cv_have_decl_towlower" = xyes; then :
29797   ac_have_decl=1
29798 else
29799   ac_have_decl=0
29800 fi
29801
29802 cat >>confdefs.h <<_ACEOF
29803 #define HAVE_DECL_TOWLOWER $ac_have_decl
29804 _ACEOF
29805
29806       if test $ac_cv_have_decl_towlower = yes; then
29807                                 REPLACE_TOWLOWER=1
29808       else
29809         REPLACE_TOWLOWER=0
29810       fi
29811     fi
29812   fi
29813
29814
29815   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
29816         :
29817   fi
29818
29819           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
29820 $as_echo_n "checking for wctype_t... " >&6; }
29821 if ${gl_cv_type_wctype_t+:} false; then :
29822   $as_echo_n "(cached) " >&6
29823 else
29824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29825 /* end confdefs.h.  */
29826 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
29827                included before <wchar.h>.
29828                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
29829                must be included before <wchar.h>.  */
29830             #include <stddef.h>
29831             #include <stdio.h>
29832             #include <time.h>
29833             #include <wchar.h>
29834             #if HAVE_WCTYPE_H
29835             # include <wctype.h>
29836             #endif
29837             wctype_t a;
29838
29839 int
29840 main ()
29841 {
29842
29843   ;
29844   return 0;
29845 }
29846 _ACEOF
29847 if ac_fn_c_try_compile "$LINENO"; then :
29848   gl_cv_type_wctype_t=yes
29849 else
29850   gl_cv_type_wctype_t=no
29851 fi
29852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29853
29854 fi
29855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
29856 $as_echo "$gl_cv_type_wctype_t" >&6; }
29857   if test $gl_cv_type_wctype_t = no; then
29858     HAVE_WCTYPE_T=0
29859   fi
29860
29861       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
29862 $as_echo_n "checking for wctrans_t... " >&6; }
29863 if ${gl_cv_type_wctrans_t+:} false; then :
29864   $as_echo_n "(cached) " >&6
29865 else
29866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29867 /* end confdefs.h.  */
29868 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
29869                included before <wchar.h>.
29870                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
29871                must be included before <wchar.h>.  */
29872             #include <stddef.h>
29873             #include <stdio.h>
29874             #include <time.h>
29875             #include <wchar.h>
29876             #include <wctype.h>
29877             wctrans_t a;
29878
29879 int
29880 main ()
29881 {
29882
29883   ;
29884   return 0;
29885 }
29886 _ACEOF
29887 if ac_fn_c_try_compile "$LINENO"; then :
29888   gl_cv_type_wctrans_t=yes
29889 else
29890   gl_cv_type_wctrans_t=no
29891 fi
29892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29893
29894 fi
29895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
29896 $as_echo "$gl_cv_type_wctrans_t" >&6; }
29897   if test $gl_cv_type_wctrans_t = no; then
29898     HAVE_WCTRANS_T=0
29899   fi
29900
29901
29902     for gl_func in wctype iswctype wctrans towctrans     ; do
29903     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
29904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
29905 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
29906 if eval \${$as_gl_Symbol+:} false; then :
29907   $as_echo_n "(cached) " >&6
29908 else
29909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29910 /* end confdefs.h.  */
29911
29912 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29913    <wchar.h>.
29914    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29915    included before <wchar.h>.  */
29916 #if !(defined __GLIBC__ && !defined __UCLIBC__)
29917 # include <stddef.h>
29918 # include <stdio.h>
29919 # include <time.h>
29920 # include <wchar.h>
29921 #endif
29922 #include <wctype.h>
29923
29924 int
29925 main ()
29926 {
29927 #undef $gl_func
29928   (void) $gl_func;
29929   ;
29930   return 0;
29931 }
29932 _ACEOF
29933 if ac_fn_c_try_compile "$LINENO"; then :
29934   eval "$as_gl_Symbol=yes"
29935 else
29936   eval "$as_gl_Symbol=no"
29937 fi
29938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29939 fi
29940 eval ac_res=\$$as_gl_Symbol
29941                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29942 $as_echo "$ac_res" >&6; }
29943     if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then :
29944   cat >>confdefs.h <<_ACEOF
29945 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
29946 _ACEOF
29947
29948                      eval ac_cv_have_decl_$gl_func=yes
29949 fi
29950       done
29951
29952
29953
29954
29955
29956
29957
29958
29959
29960
29961
29962
29963
29964   ac_fn_c_check_decl "$LINENO" "wcwidth" "ac_cv_have_decl_wcwidth" "
29965 /* AIX 3.2.5 declares wcwidth in <string.h>. */
29966 #include <string.h>
29967 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
29968    <wchar.h>.
29969    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
29970    before <wchar.h>.  */
29971 #include <stddef.h>
29972 #include <stdio.h>
29973 #include <time.h>
29974 #include <wchar.h>
29975
29976 "
29977 if test "x$ac_cv_have_decl_wcwidth" = xyes; then :
29978   ac_have_decl=1
29979 else
29980   ac_have_decl=0
29981 fi
29982
29983 cat >>confdefs.h <<_ACEOF
29984 #define HAVE_DECL_WCWIDTH $ac_have_decl
29985 _ACEOF
29986
29987   if test $ac_cv_have_decl_wcwidth != yes; then
29988     HAVE_DECL_WCWIDTH=0
29989   fi
29990
29991   if test $ac_cv_func_wcwidth = yes; then
29992     HAVE_WCWIDTH=1
29993                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wcwidth works reasonably in UTF-8 locales" >&5
29994 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
29995 if ${gl_cv_func_wcwidth_works+:} false; then :
29996   $as_echo_n "(cached) " >&6
29997 else
29998
29999         if test "$cross_compiling" = yes; then :
30000
30001            case "$host_os" in
30002                      # Guess yes on glibc and AIX 7 systems.
30003              *-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
30004              *)                  gl_cv_func_wcwidth_works="guessing no";;
30005            esac
30006
30007 else
30008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30009 /* end confdefs.h.  */
30010
30011 #include <locale.h>
30012 /* AIX 3.2.5 declares wcwidth in <string.h>. */
30013 #include <string.h>
30014 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
30015    <wchar.h>.
30016    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
30017    before <wchar.h>.  */
30018 #include <stddef.h>
30019 #include <stdio.h>
30020 #include <time.h>
30021 #include <wchar.h>
30022 #if !HAVE_DECL_WCWIDTH
30023 extern
30024 # ifdef __cplusplus
30025 "C"
30026 # endif
30027 int wcwidth (int);
30028 #endif
30029 int main ()
30030 {
30031   int result = 0;
30032   if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
30033     {
30034       if (wcwidth (0x0301) > 0)
30035         result |= 1;
30036       if (wcwidth (0x05B0) > 0)
30037         result |= 2;
30038       if (wcwidth (0x200B) > 0)
30039         result |= 4;
30040     }
30041   return result;
30042 }
30043 _ACEOF
30044 if ac_fn_c_try_run "$LINENO"; then :
30045   gl_cv_func_wcwidth_works=yes
30046 else
30047   gl_cv_func_wcwidth_works=no
30048 fi
30049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30050   conftest.$ac_objext conftest.beam conftest.$ac_ext
30051 fi
30052
30053
30054 fi
30055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcwidth_works" >&5
30056 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
30057     case "$gl_cv_func_wcwidth_works" in
30058       *yes) ;;
30059       *no) REPLACE_WCWIDTH=1 ;;
30060     esac
30061   else
30062     HAVE_WCWIDTH=0
30063   fi
30064
30065   if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
30066
30067
30068
30069
30070
30071
30072
30073
30074   gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
30075
30076   fi
30077
30078
30079
30080
30081
30082           GNULIB_WCWIDTH=1
30083
30084
30085
30086
30087
30088 $as_echo "#define GNULIB_TEST_WCWIDTH 1" >>confdefs.h
30089
30090
30091
30092   # End of code from modules
30093
30094
30095
30096
30097
30098
30099
30100
30101
30102   gltests_libdeps=
30103   gltests_ltlibdeps=
30104
30105
30106
30107
30108
30109
30110
30111
30112
30113   gl_source_base='tests'
30114   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
30115
30116   gl_module_indicator_condition=$gltests_WITNESS
30117
30118
30119
30120
30121
30122
30123
30124
30125
30126   LIBGRT_LIBDEPS="$gl_libdeps"
30127
30128   LIBGRT_LTLIBDEPS="$gl_ltlibdeps"
30129
30130
30131 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
30132 if test "x$ac_cv_type_size_t" = xyes; then :
30133
30134 else
30135
30136 cat >>confdefs.h <<_ACEOF
30137 #define size_t unsigned int
30138 _ACEOF
30139
30140 fi
30141
30142 for ac_func in setlocale
30143 do :
30144   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
30145 if test "x$ac_cv_func_setlocale" = xyes; then :
30146   cat >>confdefs.h <<_ACEOF
30147 #define HAVE_SETLOCALE 1
30148 _ACEOF
30149
30150 fi
30151 done
30152
30153
30154
30155
30156 if test "$enable_shared" = yes; then
30157   case "$host_os" in
30158     mingw* | cygwin*) is_woe32dll=yes ;;
30159     *) is_woe32dll=no ;;
30160   esac
30161 else
30162   is_woe32dll=no
30163 fi
30164  if test $is_woe32dll = yes; then
30165   WOE32DLL_TRUE=
30166   WOE32DLL_FALSE='#'
30167 else
30168   WOE32DLL_TRUE='#'
30169   WOE32DLL_FALSE=
30170 fi
30171
30172 if test $is_woe32dll = yes; then
30173
30174 $as_echo "#define WOE32DLL 1" >>confdefs.h
30175
30176 fi
30177
30178 INTL_EXPORTS_FLAGS=
30179 if test "$USER_LABEL_PREFIX" = _; then
30180   INTL_EXPORTS_FLAGS="-DUSER_LABEL_PREFIX_UNDERSCORE $INTL_EXPORTS_FLAGS"
30181 fi
30182
30183
30184 ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
30185 # Extract the first word of "perl", so it can be a program name with args.
30186 set dummy perl; ac_word=$2
30187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30188 $as_echo_n "checking for $ac_word... " >&6; }
30189 if ${ac_cv_path_PERL+:} false; then :
30190   $as_echo_n "(cached) " >&6
30191 else
30192   case $PERL in
30193   [\\/]* | ?:[\\/]*)
30194   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
30195   ;;
30196   *)
30197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30198 for as_dir in $PATH
30199 do
30200   IFS=$as_save_IFS
30201   test -z "$as_dir" && as_dir=.
30202     for ac_exec_ext in '' $ac_executable_extensions; do
30203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30204     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
30205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30206     break 2
30207   fi
30208 done
30209   done
30210 IFS=$as_save_IFS
30211
30212   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
30213   ;;
30214 esac
30215 fi
30216 PERL=$ac_cv_path_PERL
30217 if test -n "$PERL"; then
30218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
30219 $as_echo "$PERL" >&6; }
30220 else
30221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30222 $as_echo "no" >&6; }
30223 fi
30224
30225
30226
30227 CROSS_COMPILING=$cross_compiling
30228
30229
30230
30231
30232
30233   if test "$CXX_CHOICE" = no; then
30234     CXX=no
30235   fi
30236   if test -z "$CXX"; then
30237     if test -n "$CCC"; then
30238       CXX="$CCC"
30239     else
30240       if test -n "$ac_tool_prefix"; then
30241   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
30242   do
30243     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30244 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30246 $as_echo_n "checking for $ac_word... " >&6; }
30247 if ${ac_cv_prog_CXX+:} false; then :
30248   $as_echo_n "(cached) " >&6
30249 else
30250   if test -n "$CXX"; then
30251   ac_cv_prog_CXX="$CXX" # Let the user override the test.
30252 else
30253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30254 for as_dir in $PATH
30255 do
30256   IFS=$as_save_IFS
30257   test -z "$as_dir" && as_dir=.
30258     for ac_exec_ext in '' $ac_executable_extensions; do
30259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30260     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
30261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30262     break 2
30263   fi
30264 done
30265   done
30266 IFS=$as_save_IFS
30267
30268 fi
30269 fi
30270 CXX=$ac_cv_prog_CXX
30271 if test -n "$CXX"; then
30272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
30273 $as_echo "$CXX" >&6; }
30274 else
30275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30276 $as_echo "no" >&6; }
30277 fi
30278
30279
30280     test -n "$CXX" && break
30281   done
30282 fi
30283 if test -z "$CXX"; then
30284   ac_ct_CXX=$CXX
30285   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
30286 do
30287   # Extract the first word of "$ac_prog", so it can be a program name with args.
30288 set dummy $ac_prog; ac_word=$2
30289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30290 $as_echo_n "checking for $ac_word... " >&6; }
30291 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
30292   $as_echo_n "(cached) " >&6
30293 else
30294   if test -n "$ac_ct_CXX"; then
30295   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
30296 else
30297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30298 for as_dir in $PATH
30299 do
30300   IFS=$as_save_IFS
30301   test -z "$as_dir" && as_dir=.
30302     for ac_exec_ext in '' $ac_executable_extensions; do
30303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30304     ac_cv_prog_ac_ct_CXX="$ac_prog"
30305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30306     break 2
30307   fi
30308 done
30309   done
30310 IFS=$as_save_IFS
30311
30312 fi
30313 fi
30314 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
30315 if test -n "$ac_ct_CXX"; then
30316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
30317 $as_echo "$ac_ct_CXX" >&6; }
30318 else
30319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30320 $as_echo "no" >&6; }
30321 fi
30322
30323
30324   test -n "$ac_ct_CXX" && break
30325 done
30326
30327   if test "x$ac_ct_CXX" = x; then
30328     CXX=":"
30329   else
30330     case $cross_compiling:$ac_tool_warned in
30331 yes:)
30332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30334 ac_tool_warned=yes ;;
30335 esac
30336     CXX=$ac_ct_CXX
30337   fi
30338 fi
30339
30340     fi
30341   fi
30342   if test "$CXX" != no; then
30343             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
30344 $as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; }
30345     ac_ext=cpp
30346 ac_cpp='$CXXCPP $CPPFLAGS'
30347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30350
30351
30352
30353     echo 'int main () { return 0; }' > conftest.$ac_ext
30354     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30355   (eval $ac_link) 2>&5
30356   ac_status=$?
30357   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30358   test $ac_status = 0; } && test -s conftest$ac_exeext; then
30359       gl_cv_prog_ansicxx_works=yes
30360       if (./conftest; exit) 2>/dev/null; then
30361         gl_cv_prog_ansicxx_cross=no
30362       else
30363         gl_cv_prog_ansicxx_cross=yes
30364       fi
30365     else
30366       gl_cv_prog_ansicxx_works=no
30367     fi
30368     rm -fr conftest*
30369     ac_ext=c
30370 ac_cpp='$CPP $CPPFLAGS'
30371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30374
30375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_works" >&5
30376 $as_echo "$gl_cv_prog_ansicxx_works" >&6; }
30377     if test $gl_cv_prog_ansicxx_works = no; then
30378       CXX=no
30379     else
30380                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports namespaces" >&5
30381 $as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; }
30382       ac_ext=cpp
30383 ac_cpp='$CXXCPP $CPPFLAGS'
30384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30387
30388       cat <<EOF > conftest.$ac_ext
30389 #include <iostream>
30390 namespace test { using namespace std; }
30391 std::ostream* ptr;
30392 int main () { return 0; }
30393 EOF
30394       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
30395   (eval $ac_link) 2>&5
30396   ac_status=$?
30397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30398   test $ac_status = 0; } && test -s conftest$ac_exeext; then
30399         gl_cv_prog_ansicxx_namespaces=yes
30400       else
30401         gl_cv_prog_ansicxx_namespaces=no
30402       fi
30403       rm -fr conftest*
30404       ac_ext=c
30405 ac_cpp='$CPP $CPPFLAGS'
30406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30409
30410       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_ansicxx_namespaces" >&5
30411 $as_echo "$gl_cv_prog_ansicxx_namespaces" >&6; }
30412       if test $gl_cv_prog_ansicxx_namespaces = no; then
30413         CXX=no
30414       fi
30415     fi
30416   fi
30417
30418
30419
30420    if test "$CXX" != no; then
30421   ANSICXX_TRUE=
30422   ANSICXX_FALSE='#'
30423 else
30424   ANSICXX_TRUE='#'
30425   ANSICXX_FALSE=
30426 fi
30427
30428
30429   if test "$CXX" != no; then
30430
30431 depcc="$CXX"  am_compiler_list=
30432
30433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
30434 $as_echo_n "checking dependency style of $depcc... " >&6; }
30435 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
30436   $as_echo_n "(cached) " >&6
30437 else
30438   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
30439   # We make a subdir and do the tests there.  Otherwise we can end up
30440   # making bogus files that we don't know about and never remove.  For
30441   # instance it was reported that on HP-UX the gcc test will end up
30442   # making a dummy file named 'D' -- because '-MD' means "put the output
30443   # in D".
30444   rm -rf conftest.dir
30445   mkdir conftest.dir
30446   # Copy depcomp to subdir because otherwise we won't find it if we're
30447   # using a relative directory.
30448   cp "$am_depcomp" conftest.dir
30449   cd conftest.dir
30450   # We will build objects and dependencies in a subdirectory because
30451   # it helps to detect inapplicable dependency modes.  For instance
30452   # both Tru64's cc and ICC support -MD to output dependencies as a
30453   # side effect of compilation, but ICC will put the dependencies in
30454   # the current directory while Tru64 will put them in the object
30455   # directory.
30456   mkdir sub
30457
30458   am_cv_CXX_dependencies_compiler_type=none
30459   if test "$am_compiler_list" = ""; then
30460      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
30461   fi
30462   am__universal=false
30463   case " $depcc " in #(
30464      *\ -arch\ *\ -arch\ *) am__universal=true ;;
30465      esac
30466
30467   for depmode in $am_compiler_list; do
30468     # Setup a source with many dependencies, because some compilers
30469     # like to wrap large dependency lists on column 80 (with \), and
30470     # we should not choose a depcomp mode which is confused by this.
30471     #
30472     # We need to recreate these files for each test, as the compiler may
30473     # overwrite some of them when testing with obscure command lines.
30474     # This happens at least with the AIX C compiler.
30475     : > sub/conftest.c
30476     for i in 1 2 3 4 5 6; do
30477       echo '#include "conftst'$i'.h"' >> sub/conftest.c
30478       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
30479       # Solaris 10 /bin/sh.
30480       echo '/* dummy */' > sub/conftst$i.h
30481     done
30482     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
30483
30484     # We check with '-c' and '-o' for the sake of the "dashmstdout"
30485     # mode.  It turns out that the SunPro C++ compiler does not properly
30486     # handle '-M -o', and we need to detect this.  Also, some Intel
30487     # versions had trouble with output in subdirs.
30488     am__obj=sub/conftest.${OBJEXT-o}
30489     am__minus_obj="-o $am__obj"
30490     case $depmode in
30491     gcc)
30492       # This depmode causes a compiler race in universal mode.
30493       test "$am__universal" = false || continue
30494       ;;
30495     nosideeffect)
30496       # After this tag, mechanisms are not by side-effect, so they'll
30497       # only be used when explicitly requested.
30498       if test "x$enable_dependency_tracking" = xyes; then
30499         continue
30500       else
30501         break
30502       fi
30503       ;;
30504     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
30505       # This compiler won't grok '-c -o', but also, the minuso test has
30506       # not run yet.  These depmodes are late enough in the game, and
30507       # so weak that their functioning should not be impacted.
30508       am__obj=conftest.${OBJEXT-o}
30509       am__minus_obj=
30510       ;;
30511     none) break ;;
30512     esac
30513     if depmode=$depmode \
30514        source=sub/conftest.c object=$am__obj \
30515        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
30516        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
30517          >/dev/null 2>conftest.err &&
30518        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
30519        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
30520        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
30521        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
30522       # icc doesn't choke on unknown options, it will just issue warnings
30523       # or remarks (even with -Werror).  So we grep stderr for any message
30524       # that says an option was ignored or not supported.
30525       # When given -MP, icc 7.0 and 7.1 complain thusly:
30526       #   icc: Command line warning: ignoring option '-M'; no argument required
30527       # The diagnosis changed in icc 8.0:
30528       #   icc: Command line remark: option '-MP' not supported
30529       if (grep 'ignoring option' conftest.err ||
30530           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
30531         am_cv_CXX_dependencies_compiler_type=$depmode
30532         break
30533       fi
30534     fi
30535   done
30536
30537   cd ..
30538   rm -rf conftest.dir
30539 else
30540   am_cv_CXX_dependencies_compiler_type=none
30541 fi
30542
30543 fi
30544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
30545 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
30546 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
30547
30548  if
30549   test "x$enable_dependency_tracking" != xno \
30550   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
30551   am__fastdepCXX_TRUE=
30552   am__fastdepCXX_FALSE='#'
30553 else
30554   am__fastdepCXX_TRUE='#'
30555   am__fastdepCXX_FALSE=
30556 fi
30557
30558
30559   else
30560      if false; then
30561   am__fastdepCXX_TRUE=
30562   am__fastdepCXX_FALSE='#'
30563 else
30564   am__fastdepCXX_TRUE='#'
30565   am__fastdepCXX_FALSE=
30566 fi
30567
30568   fi
30569
30570
30571 LIBSCHED=
30572 if test $gl_threads_api = posix; then
30573     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
30574 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
30575 if ${ac_cv_lib_rt_sched_yield+:} false; then :
30576   $as_echo_n "(cached) " >&6
30577 else
30578   ac_check_lib_save_LIBS=$LIBS
30579 LIBS="-lrt  $LIBS"
30580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30581 /* end confdefs.h.  */
30582
30583 /* Override any GCC internal prototype to avoid an error.
30584    Use char because int might match the return type of a GCC
30585    builtin and then its argument prototype would still apply.  */
30586 #ifdef __cplusplus
30587 extern "C"
30588 #endif
30589 char sched_yield ();
30590 int
30591 main ()
30592 {
30593 return sched_yield ();
30594   ;
30595   return 0;
30596 }
30597 _ACEOF
30598 if ac_fn_c_try_link "$LINENO"; then :
30599   ac_cv_lib_rt_sched_yield=yes
30600 else
30601   ac_cv_lib_rt_sched_yield=no
30602 fi
30603 rm -f core conftest.err conftest.$ac_objext \
30604     conftest$ac_exeext conftest.$ac_ext
30605 LIBS=$ac_check_lib_save_LIBS
30606 fi
30607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
30608 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
30609 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
30610   LIBSCHED=-lrt
30611 else
30612        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
30613 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
30614 if ${ac_cv_lib_posix4_sched_yield+:} false; then :
30615   $as_echo_n "(cached) " >&6
30616 else
30617   ac_check_lib_save_LIBS=$LIBS
30618 LIBS="-lposix4  $LIBS"
30619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30620 /* end confdefs.h.  */
30621
30622 /* Override any GCC internal prototype to avoid an error.
30623    Use char because int might match the return type of a GCC
30624    builtin and then its argument prototype would still apply.  */
30625 #ifdef __cplusplus
30626 extern "C"
30627 #endif
30628 char sched_yield ();
30629 int
30630 main ()
30631 {
30632 return sched_yield ();
30633   ;
30634   return 0;
30635 }
30636 _ACEOF
30637 if ac_fn_c_try_link "$LINENO"; then :
30638   ac_cv_lib_posix4_sched_yield=yes
30639 else
30640   ac_cv_lib_posix4_sched_yield=no
30641 fi
30642 rm -f core conftest.err conftest.$ac_objext \
30643     conftest$ac_exeext conftest.$ac_ext
30644 LIBS=$ac_check_lib_save_LIBS
30645 fi
30646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
30647 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
30648 if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
30649   LIBSCHED=-lposix4
30650 fi
30651
30652 fi
30653
30654 fi
30655
30656
30657 # Check whether --enable-libasprintf was given.
30658 if test "${enable_libasprintf+set}" = set; then :
30659   enableval=$enable_libasprintf; if test "$enableval" != no; then
30660      SUBDIR_libasprintf=libasprintf
30661    else
30662      SUBDIR_libasprintf=
30663    fi
30664
30665 else
30666   SUBDIR_libasprintf=libasprintf
30667 fi
30668
30669 if test "$CXX" = ":"; then
30670   SUBDIR_libasprintf=
30671 fi
30672  if test -n "$SUBDIR_libasprintf"; then
30673   ENABLE_LIBASPRINTF_TRUE=
30674   ENABLE_LIBASPRINTF_FALSE='#'
30675 else
30676   ENABLE_LIBASPRINTF_TRUE='#'
30677   ENABLE_LIBASPRINTF_FALSE=
30678 fi
30679
30680
30681
30682
30683 subdirs="$subdirs libasprintf"
30684
30685
30686 ac_config_files="$ac_config_files Makefile"
30687
30688
30689 ac_config_files="$ac_config_files doc/Makefile"
30690
30691
30692 ac_config_files="$ac_config_files intl/Makefile"
30693
30694
30695 ac_config_files="$ac_config_files intl-java/Makefile"
30696
30697
30698 ac_config_files="$ac_config_files intl-csharp/Makefile"
30699
30700
30701 ac_config_files="$ac_config_files gnulib-lib/Makefile"
30702
30703
30704 ac_config_files="$ac_config_files src/Makefile"
30705
30706 ac_config_files="$ac_config_files src/gettext.sh"
30707
30708
30709 ac_config_files="$ac_config_files po/Makefile.in"
30710
30711
30712 ac_config_files="$ac_config_files man/Makefile"
30713
30714 ac_config_files="$ac_config_files man/x-to-1"
30715
30716
30717 ac_config_files="$ac_config_files m4/Makefile"
30718
30719
30720 ac_config_files="$ac_config_files tests/Makefile"
30721
30722
30723 cat >confcache <<\_ACEOF
30724 # This file is a shell script that caches the results of configure
30725 # tests run on this system so they can be shared between configure
30726 # scripts and configure runs, see configure's option --config-cache.
30727 # It is not useful on other systems.  If it contains results you don't
30728 # want to keep, you may remove or edit it.
30729 #
30730 # config.status only pays attention to the cache file if you give it
30731 # the --recheck option to rerun configure.
30732 #
30733 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30734 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30735 # following values.
30736
30737 _ACEOF
30738
30739 # The following way of writing the cache mishandles newlines in values,
30740 # but we know of no workaround that is simple, portable, and efficient.
30741 # So, we kill variables containing newlines.
30742 # Ultrix sh set writes to stderr and can't be redirected directly,
30743 # and sets the high bit in the cache file unless we assign to the vars.
30744 (
30745   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30746     eval ac_val=\$$ac_var
30747     case $ac_val in #(
30748     *${as_nl}*)
30749       case $ac_var in #(
30750       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30751 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30752       esac
30753       case $ac_var in #(
30754       _ | IFS | as_nl) ;; #(
30755       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30756       *) { eval $ac_var=; unset $ac_var;} ;;
30757       esac ;;
30758     esac
30759   done
30760
30761   (set) 2>&1 |
30762     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30763     *${as_nl}ac_space=\ *)
30764       # `set' does not quote correctly, so add quotes: double-quote
30765       # substitution turns \\\\ into \\, and sed turns \\ into \.
30766       sed -n \
30767         "s/'/'\\\\''/g;
30768           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30769       ;; #(
30770     *)
30771       # `set' quotes correctly as required by POSIX, so do not add quotes.
30772       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30773       ;;
30774     esac |
30775     sort
30776 ) |
30777   sed '
30778      /^ac_cv_env_/b end
30779      t clear
30780      :clear
30781      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30782      t end
30783      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30784      :end' >>confcache
30785 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30786   if test -w "$cache_file"; then
30787     if test "x$cache_file" != "x/dev/null"; then
30788       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30789 $as_echo "$as_me: updating cache $cache_file" >&6;}
30790       if test ! -f "$cache_file" || test -h "$cache_file"; then
30791         cat confcache >"$cache_file"
30792       else
30793         case $cache_file in #(
30794         */* | ?:*)
30795           mv -f confcache "$cache_file"$$ &&
30796           mv -f "$cache_file"$$ "$cache_file" ;; #(
30797         *)
30798           mv -f confcache "$cache_file" ;;
30799         esac
30800       fi
30801     fi
30802   else
30803     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30804 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30805   fi
30806 fi
30807 rm -f confcache
30808
30809 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30810 # Let make expand exec_prefix.
30811 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30812
30813 DEFS=-DHAVE_CONFIG_H
30814
30815 ac_libobjs=
30816 ac_ltlibobjs=
30817 U=
30818 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30819   # 1. Remove the extension, and $U if already installed.
30820   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30821   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30822   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30823   #    will be set to the directory where LIBOBJS objects are built.
30824   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30825   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30826 done
30827 LIBOBJS=$ac_libobjs
30828
30829 LTLIBOBJS=$ac_ltlibobjs
30830
30831
30832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
30833 $as_echo_n "checking that generated files are newer than configure... " >&6; }
30834    if test -n "$am_sleep_pid"; then
30835      # Hide warnings about reused PIDs.
30836      wait $am_sleep_pid 2>/dev/null
30837    fi
30838    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
30839 $as_echo "done" >&6; }
30840  if test -n "$EXEEXT"; then
30841   am__EXEEXT_TRUE=
30842   am__EXEEXT_FALSE='#'
30843 else
30844   am__EXEEXT_TRUE='#'
30845   am__EXEEXT_FALSE=
30846 fi
30847
30848 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30849   as_fn_error $? "conditional \"AMDEP\" was never defined.
30850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30851 fi
30852 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30853   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
30854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30855 fi
30856 if test -z "${WOE32_TRUE}" && test -z "${WOE32_FALSE}"; then
30857   as_fn_error $? "conditional \"WOE32\" was never defined.
30858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30859 fi
30860 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
30861   as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
30862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30863 fi
30864 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
30865   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
30866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30867 fi
30868 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
30869   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
30870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30871 fi
30872 if test -z "${ANSICXX_TRUE}" && test -z "${ANSICXX_FALSE}"; then
30873   as_fn_error $? "conditional \"ANSICXX\" was never defined.
30874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30875 fi
30876 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30877   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
30878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30879 fi
30880 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30881   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
30882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30883 fi
30884 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
30885   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
30886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30887 fi
30888 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
30889   as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
30890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30891 fi
30892 if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then
30893   as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined.
30894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30895 fi
30896 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
30897   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
30898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30899 fi
30900 if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
30901   as_fn_error $? "conditional \"RELOCATABLE_VIA_LD\" was never defined.
30902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30903 fi
30904 if test -z "${RELOCATABLE_VIA_WRAPPER_TRUE}" && test -z "${RELOCATABLE_VIA_WRAPPER_FALSE}"; then
30905   as_fn_error $? "conditional \"RELOCATABLE_VIA_WRAPPER\" was never defined.
30906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30907 fi
30908 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
30909   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
30910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30911 fi
30912 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
30913   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
30914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30915 fi
30916 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
30917   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
30918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30919 fi
30920 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then
30921   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined.
30922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30923 fi
30924 if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then
30925   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined.
30926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30927 fi
30928 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
30929   as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
30930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30931 fi
30932
30933     gl_libobjs=
30934     gl_ltlibobjs=
30935     if test -n "$gl_LIBOBJS"; then
30936       # Remove the extension.
30937       sed_drop_objext='s/\.o$//;s/\.obj$//'
30938       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
30939         gl_libobjs="$gl_libobjs $i.$ac_objext"
30940         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
30941       done
30942     fi
30943     gl_LIBOBJS=$gl_libobjs
30944
30945     gl_LTLIBOBJS=$gl_ltlibobjs
30946
30947
30948
30949     gltests_libobjs=
30950     gltests_ltlibobjs=
30951     if test -n "$gltests_LIBOBJS"; then
30952       # Remove the extension.
30953       sed_drop_objext='s/\.o$//;s/\.obj$//'
30954       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
30955         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
30956         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
30957       done
30958     fi
30959     gltests_LIBOBJS=$gltests_libobjs
30960
30961     gltests_LTLIBOBJS=$gltests_ltlibobjs
30962
30963
30964 if test -z "${WOE32DLL_TRUE}" && test -z "${WOE32DLL_FALSE}"; then
30965   as_fn_error $? "conditional \"WOE32DLL\" was never defined.
30966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30967 fi
30968 if test -z "${ANSICXX_TRUE}" && test -z "${ANSICXX_FALSE}"; then
30969   as_fn_error $? "conditional \"ANSICXX\" was never defined.
30970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30971 fi
30972 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30973   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
30974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30975 fi
30976 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30977   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
30978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30979 fi
30980 if test -z "${ENABLE_LIBASPRINTF_TRUE}" && test -z "${ENABLE_LIBASPRINTF_FALSE}"; then
30981   as_fn_error $? "conditional \"ENABLE_LIBASPRINTF\" was never defined.
30982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30983 fi
30984
30985 : "${CONFIG_STATUS=./config.status}"
30986 ac_write_fail=0
30987 ac_clean_files_save=$ac_clean_files
30988 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30989 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30990 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30991 as_write_fail=0
30992 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30993 #! $SHELL
30994 # Generated by $as_me.
30995 # Run this file to recreate the current configuration.
30996 # Compiler output produced by configure, useful for debugging
30997 # configure, is in config.log if it exists.
30998
30999 debug=false
31000 ac_cs_recheck=false
31001 ac_cs_silent=false
31002
31003 SHELL=\${CONFIG_SHELL-$SHELL}
31004 export SHELL
31005 _ASEOF
31006 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31007 ## -------------------- ##
31008 ## M4sh Initialization. ##
31009 ## -------------------- ##
31010
31011 # Be more Bourne compatible
31012 DUALCASE=1; export DUALCASE # for MKS sh
31013 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31014   emulate sh
31015   NULLCMD=:
31016   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31017   # is contrary to our usage.  Disable this feature.
31018   alias -g '${1+"$@"}'='"$@"'
31019   setopt NO_GLOB_SUBST
31020 else
31021   case `(set -o) 2>/dev/null` in #(
31022   *posix*) :
31023     set -o posix ;; #(
31024   *) :
31025      ;;
31026 esac
31027 fi
31028
31029
31030 as_nl='
31031 '
31032 export as_nl
31033 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31034 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31035 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31036 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31037 # Prefer a ksh shell builtin over an external printf program on Solaris,
31038 # but without wasting forks for bash or zsh.
31039 if test -z "$BASH_VERSION$ZSH_VERSION" \
31040     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31041   as_echo='print -r --'
31042   as_echo_n='print -rn --'
31043 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31044   as_echo='printf %s\n'
31045   as_echo_n='printf %s'
31046 else
31047   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31048     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31049     as_echo_n='/usr/ucb/echo -n'
31050   else
31051     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31052     as_echo_n_body='eval
31053       arg=$1;
31054       case $arg in #(
31055       *"$as_nl"*)
31056         expr "X$arg" : "X\\(.*\\)$as_nl";
31057         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31058       esac;
31059       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31060     '
31061     export as_echo_n_body
31062     as_echo_n='sh -c $as_echo_n_body as_echo'
31063   fi
31064   export as_echo_body
31065   as_echo='sh -c $as_echo_body as_echo'
31066 fi
31067
31068 # The user is always right.
31069 if test "${PATH_SEPARATOR+set}" != set; then
31070   PATH_SEPARATOR=:
31071   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31072     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31073       PATH_SEPARATOR=';'
31074   }
31075 fi
31076
31077
31078 # IFS
31079 # We need space, tab and new line, in precisely that order.  Quoting is
31080 # there to prevent editors from complaining about space-tab.
31081 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31082 # splitting by setting IFS to empty value.)
31083 IFS=" ""        $as_nl"
31084
31085 # Find who we are.  Look in the path if we contain no directory separator.
31086 as_myself=
31087 case $0 in #((
31088   *[\\/]* ) as_myself=$0 ;;
31089   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31090 for as_dir in $PATH
31091 do
31092   IFS=$as_save_IFS
31093   test -z "$as_dir" && as_dir=.
31094     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31095   done
31096 IFS=$as_save_IFS
31097
31098      ;;
31099 esac
31100 # We did not find ourselves, most probably we were run as `sh COMMAND'
31101 # in which case we are not to be found in the path.
31102 if test "x$as_myself" = x; then
31103   as_myself=$0
31104 fi
31105 if test ! -f "$as_myself"; then
31106   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31107   exit 1
31108 fi
31109
31110 # Unset variables that we do not need and which cause bugs (e.g. in
31111 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31112 # suppresses any "Segmentation fault" message there.  '((' could
31113 # trigger a bug in pdksh 5.2.14.
31114 for as_var in BASH_ENV ENV MAIL MAILPATH
31115 do eval test x\${$as_var+set} = xset \
31116   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31117 done
31118 PS1='$ '
31119 PS2='> '
31120 PS4='+ '
31121
31122 # NLS nuisances.
31123 LC_ALL=C
31124 export LC_ALL
31125 LANGUAGE=C
31126 export LANGUAGE
31127
31128 # CDPATH.
31129 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31130
31131
31132 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31133 # ----------------------------------------
31134 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31135 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31136 # script with STATUS, using 1 if that was 0.
31137 as_fn_error ()
31138 {
31139   as_status=$1; test $as_status -eq 0 && as_status=1
31140   if test "$4"; then
31141     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31142     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31143   fi
31144   $as_echo "$as_me: error: $2" >&2
31145   as_fn_exit $as_status
31146 } # as_fn_error
31147
31148
31149 # as_fn_set_status STATUS
31150 # -----------------------
31151 # Set $? to STATUS, without forking.
31152 as_fn_set_status ()
31153 {
31154   return $1
31155 } # as_fn_set_status
31156
31157 # as_fn_exit STATUS
31158 # -----------------
31159 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31160 as_fn_exit ()
31161 {
31162   set +e
31163   as_fn_set_status $1
31164   exit $1
31165 } # as_fn_exit
31166
31167 # as_fn_unset VAR
31168 # ---------------
31169 # Portably unset VAR.
31170 as_fn_unset ()
31171 {
31172   { eval $1=; unset $1;}
31173 }
31174 as_unset=as_fn_unset
31175 # as_fn_append VAR VALUE
31176 # ----------------------
31177 # Append the text in VALUE to the end of the definition contained in VAR. Take
31178 # advantage of any shell optimizations that allow amortized linear growth over
31179 # repeated appends, instead of the typical quadratic growth present in naive
31180 # implementations.
31181 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31182   eval 'as_fn_append ()
31183   {
31184     eval $1+=\$2
31185   }'
31186 else
31187   as_fn_append ()
31188   {
31189     eval $1=\$$1\$2
31190   }
31191 fi # as_fn_append
31192
31193 # as_fn_arith ARG...
31194 # ------------------
31195 # Perform arithmetic evaluation on the ARGs, and store the result in the
31196 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31197 # must be portable across $(()) and expr.
31198 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31199   eval 'as_fn_arith ()
31200   {
31201     as_val=$(( $* ))
31202   }'
31203 else
31204   as_fn_arith ()
31205   {
31206     as_val=`expr "$@" || test $? -eq 1`
31207   }
31208 fi # as_fn_arith
31209
31210
31211 if expr a : '\(a\)' >/dev/null 2>&1 &&
31212    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31213   as_expr=expr
31214 else
31215   as_expr=false
31216 fi
31217
31218 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31219   as_basename=basename
31220 else
31221   as_basename=false
31222 fi
31223
31224 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31225   as_dirname=dirname
31226 else
31227   as_dirname=false
31228 fi
31229
31230 as_me=`$as_basename -- "$0" ||
31231 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31232          X"$0" : 'X\(//\)$' \| \
31233          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31234 $as_echo X/"$0" |
31235     sed '/^.*\/\([^/][^/]*\)\/*$/{
31236             s//\1/
31237             q
31238           }
31239           /^X\/\(\/\/\)$/{
31240             s//\1/
31241             q
31242           }
31243           /^X\/\(\/\).*/{
31244             s//\1/
31245             q
31246           }
31247           s/.*/./; q'`
31248
31249 # Avoid depending upon Character Ranges.
31250 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31251 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31252 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31253 as_cr_digits='0123456789'
31254 as_cr_alnum=$as_cr_Letters$as_cr_digits
31255
31256 ECHO_C= ECHO_N= ECHO_T=
31257 case `echo -n x` in #(((((
31258 -n*)
31259   case `echo 'xy\c'` in
31260   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31261   xy)  ECHO_C='\c';;
31262   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31263        ECHO_T=' ';;
31264   esac;;
31265 *)
31266   ECHO_N='-n';;
31267 esac
31268
31269 rm -f conf$$ conf$$.exe conf$$.file
31270 if test -d conf$$.dir; then
31271   rm -f conf$$.dir/conf$$.file
31272 else
31273   rm -f conf$$.dir
31274   mkdir conf$$.dir 2>/dev/null
31275 fi
31276 if (echo >conf$$.file) 2>/dev/null; then
31277   if ln -s conf$$.file conf$$ 2>/dev/null; then
31278     as_ln_s='ln -s'
31279     # ... but there are two gotchas:
31280     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31281     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31282     # In both cases, we have to default to `cp -pR'.
31283     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31284       as_ln_s='cp -pR'
31285   elif ln conf$$.file conf$$ 2>/dev/null; then
31286     as_ln_s=ln
31287   else
31288     as_ln_s='cp -pR'
31289   fi
31290 else
31291   as_ln_s='cp -pR'
31292 fi
31293 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31294 rmdir conf$$.dir 2>/dev/null
31295
31296
31297 # as_fn_mkdir_p
31298 # -------------
31299 # Create "$as_dir" as a directory, including parents if necessary.
31300 as_fn_mkdir_p ()
31301 {
31302
31303   case $as_dir in #(
31304   -*) as_dir=./$as_dir;;
31305   esac
31306   test -d "$as_dir" || eval $as_mkdir_p || {
31307     as_dirs=
31308     while :; do
31309       case $as_dir in #(
31310       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31311       *) as_qdir=$as_dir;;
31312       esac
31313       as_dirs="'$as_qdir' $as_dirs"
31314       as_dir=`$as_dirname -- "$as_dir" ||
31315 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31316          X"$as_dir" : 'X\(//\)[^/]' \| \
31317          X"$as_dir" : 'X\(//\)$' \| \
31318          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31319 $as_echo X"$as_dir" |
31320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31321             s//\1/
31322             q
31323           }
31324           /^X\(\/\/\)[^/].*/{
31325             s//\1/
31326             q
31327           }
31328           /^X\(\/\/\)$/{
31329             s//\1/
31330             q
31331           }
31332           /^X\(\/\).*/{
31333             s//\1/
31334             q
31335           }
31336           s/.*/./; q'`
31337       test -d "$as_dir" && break
31338     done
31339     test -z "$as_dirs" || eval "mkdir $as_dirs"
31340   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31341
31342
31343 } # as_fn_mkdir_p
31344 if mkdir -p . 2>/dev/null; then
31345   as_mkdir_p='mkdir -p "$as_dir"'
31346 else
31347   test -d ./-p && rmdir ./-p
31348   as_mkdir_p=false
31349 fi
31350
31351
31352 # as_fn_executable_p FILE
31353 # -----------------------
31354 # Test if FILE is an executable regular file.
31355 as_fn_executable_p ()
31356 {
31357   test -f "$1" && test -x "$1"
31358 } # as_fn_executable_p
31359 as_test_x='test -x'
31360 as_executable_p=as_fn_executable_p
31361
31362 # Sed expression to map a string onto a valid CPP name.
31363 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31364
31365 # Sed expression to map a string onto a valid variable name.
31366 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31367
31368
31369 exec 6>&1
31370 ## ----------------------------------- ##
31371 ## Main body of $CONFIG_STATUS script. ##
31372 ## ----------------------------------- ##
31373 _ASEOF
31374 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31375
31376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31377 # Save the log message, to keep $0 and so on meaningful, and to
31378 # report actual input values of CONFIG_FILES etc. instead of their
31379 # values after options handling.
31380 ac_log="
31381 This file was extended by gettext-runtime $as_me, which was
31382 generated by GNU Autoconf 2.69.  Invocation command line was
31383
31384   CONFIG_FILES    = $CONFIG_FILES
31385   CONFIG_HEADERS  = $CONFIG_HEADERS
31386   CONFIG_LINKS    = $CONFIG_LINKS
31387   CONFIG_COMMANDS = $CONFIG_COMMANDS
31388   $ $0 $@
31389
31390 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31391 "
31392
31393 _ACEOF
31394
31395 case $ac_config_files in *"
31396 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31397 esac
31398
31399 case $ac_config_headers in *"
31400 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31401 esac
31402
31403
31404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31405 # Files that config.status was made for.
31406 config_files="$ac_config_files"
31407 config_headers="$ac_config_headers"
31408 config_commands="$ac_config_commands"
31409
31410 _ACEOF
31411
31412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31413 ac_cs_usage="\
31414 \`$as_me' instantiates files and other configuration actions
31415 from templates according to the current configuration.  Unless the files
31416 and actions are specified as TAGs, all are instantiated by default.
31417
31418 Usage: $0 [OPTION]... [TAG]...
31419
31420   -h, --help       print this help, then exit
31421   -V, --version    print version number and configuration settings, then exit
31422       --config     print configuration, then exit
31423   -q, --quiet, --silent
31424                    do not print progress messages
31425   -d, --debug      don't remove temporary files
31426       --recheck    update $as_me by reconfiguring in the same conditions
31427       --file=FILE[:TEMPLATE]
31428                    instantiate the configuration file FILE
31429       --header=FILE[:TEMPLATE]
31430                    instantiate the configuration header FILE
31431
31432 Configuration files:
31433 $config_files
31434
31435 Configuration headers:
31436 $config_headers
31437
31438 Configuration commands:
31439 $config_commands
31440
31441 Report bugs to the package provider."
31442
31443 _ACEOF
31444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31445 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31446 ac_cs_version="\\
31447 gettext-runtime config.status
31448 configured by $0, generated by GNU Autoconf 2.69,
31449   with options \\"\$ac_cs_config\\"
31450
31451 Copyright (C) 2012 Free Software Foundation, Inc.
31452 This config.status script is free software; the Free Software Foundation
31453 gives unlimited permission to copy, distribute and modify it."
31454
31455 ac_pwd='$ac_pwd'
31456 srcdir='$srcdir'
31457 INSTALL='$INSTALL'
31458 MKDIR_P='$MKDIR_P'
31459 AWK='$AWK'
31460 test -n "\$AWK" || AWK=awk
31461 _ACEOF
31462
31463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31464 # The default lists apply if the user does not specify any file.
31465 ac_need_defaults=:
31466 while test $# != 0
31467 do
31468   case $1 in
31469   --*=?*)
31470     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31471     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31472     ac_shift=:
31473     ;;
31474   --*=)
31475     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31476     ac_optarg=
31477     ac_shift=:
31478     ;;
31479   *)
31480     ac_option=$1
31481     ac_optarg=$2
31482     ac_shift=shift
31483     ;;
31484   esac
31485
31486   case $ac_option in
31487   # Handling of the options.
31488   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31489     ac_cs_recheck=: ;;
31490   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31491     $as_echo "$ac_cs_version"; exit ;;
31492   --config | --confi | --conf | --con | --co | --c )
31493     $as_echo "$ac_cs_config"; exit ;;
31494   --debug | --debu | --deb | --de | --d | -d )
31495     debug=: ;;
31496   --file | --fil | --fi | --f )
31497     $ac_shift
31498     case $ac_optarg in
31499     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31500     '') as_fn_error $? "missing file argument" ;;
31501     esac
31502     as_fn_append CONFIG_FILES " '$ac_optarg'"
31503     ac_need_defaults=false;;
31504   --header | --heade | --head | --hea )
31505     $ac_shift
31506     case $ac_optarg in
31507     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31508     esac
31509     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31510     ac_need_defaults=false;;
31511   --he | --h)
31512     # Conflict between --help and --header
31513     as_fn_error $? "ambiguous option: \`$1'
31514 Try \`$0 --help' for more information.";;
31515   --help | --hel | -h )
31516     $as_echo "$ac_cs_usage"; exit ;;
31517   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31518   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31519     ac_cs_silent=: ;;
31520
31521   # This is an error.
31522   -*) as_fn_error $? "unrecognized option: \`$1'
31523 Try \`$0 --help' for more information." ;;
31524
31525   *) as_fn_append ac_config_targets " $1"
31526      ac_need_defaults=false ;;
31527
31528   esac
31529   shift
31530 done
31531
31532 ac_configure_extra_args=
31533
31534 if $ac_cs_silent; then
31535   exec 6>/dev/null
31536   ac_configure_extra_args="$ac_configure_extra_args --silent"
31537 fi
31538
31539 _ACEOF
31540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31541 if \$ac_cs_recheck; then
31542   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31543   shift
31544   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31545   CONFIG_SHELL='$SHELL'
31546   export CONFIG_SHELL
31547   exec "\$@"
31548 fi
31549
31550 _ACEOF
31551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31552 exec 5>>config.log
31553 {
31554   echo
31555   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31556 ## Running $as_me. ##
31557 _ASBOX
31558   $as_echo "$ac_log"
31559 } >&5
31560
31561 _ACEOF
31562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31563 #
31564 # INIT-COMMANDS
31565 #
31566 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31567
31568
31569 # The HP-UX ksh and POSIX shell print the target directory to stdout
31570 # if CDPATH is set.
31571 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31572
31573 sed_quote_subst='$sed_quote_subst'
31574 double_quote_subst='$double_quote_subst'
31575 delay_variable_subst='$delay_variable_subst'
31576 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31577 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31578 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
31579 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31580 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31581 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31582 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31583 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31584 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31585 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31586 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31587 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31588 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31589 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31590 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31591 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31592 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31593 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31594 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31595 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31596 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31597 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31598 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31599 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31600 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31601 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31602 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31603 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31604 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31605 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31606 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31607 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31608 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31609 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31610 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31611 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31612 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31613 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31614 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31615 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31616 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31617 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31618 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31619 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31620 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31621 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31622 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31623 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31624 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31625 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31626 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31627 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31628 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31629 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31630 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31631 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31632 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31633 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"`'
31634 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31635 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31636 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31637 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31638 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31639 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31640 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31641 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31642 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31643 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31644 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31645 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31646 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31647 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31648 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31649 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31650 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31651 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31652 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31653 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31654 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31655 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31656 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31657 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31658 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31659 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31660 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31661 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31662 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31663 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31664 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31665 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31666 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31667 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31668 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31669 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31670 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31671 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31672 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31673 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31674 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31675 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31676 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31677 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31678 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31679 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31680 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31681 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31682 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31683 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31684 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31685 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31686 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31687 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31688 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31689 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31690 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31691 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31692 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31693 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31694 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31695 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31696 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31697 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31698 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31699 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31700 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31701 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31702 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31703 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31704 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31705 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31706 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31707 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
31708 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
31709 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
31710 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
31711 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
31712 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
31713 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
31714 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
31715 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
31716 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
31717 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
31718 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
31719 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
31720 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
31721 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
31722 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
31723 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
31724 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
31725 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
31726 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
31727 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
31728 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
31729 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
31730 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
31731 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
31732 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
31733 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
31734 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
31735 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
31736 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
31737 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
31738 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
31739 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
31740 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
31741 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
31742 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
31743 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
31744 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
31745 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
31746 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
31747 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
31748 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
31749
31750 LTCC='$LTCC'
31751 LTCFLAGS='$LTCFLAGS'
31752 compiler='$compiler_DEFAULT'
31753
31754 # A function that is used when there is no print builtin or printf.
31755 func_fallback_echo ()
31756 {
31757   eval 'cat <<_LTECHO_EOF
31758 \$1
31759 _LTECHO_EOF'
31760 }
31761
31762 # Quote evaled strings.
31763 for var in AS \
31764 DLLTOOL \
31765 OBJDUMP \
31766 SHELL \
31767 ECHO \
31768 PATH_SEPARATOR \
31769 SED \
31770 GREP \
31771 EGREP \
31772 FGREP \
31773 LD \
31774 NM \
31775 LN_S \
31776 lt_SP2NL \
31777 lt_NL2SP \
31778 reload_flag \
31779 deplibs_check_method \
31780 file_magic_cmd \
31781 file_magic_glob \
31782 want_nocaseglob \
31783 sharedlib_from_linklib_cmd \
31784 AR \
31785 AR_FLAGS \
31786 archiver_list_spec \
31787 STRIP \
31788 RANLIB \
31789 CC \
31790 CFLAGS \
31791 compiler \
31792 lt_cv_sys_global_symbol_pipe \
31793 lt_cv_sys_global_symbol_to_cdecl \
31794 lt_cv_sys_global_symbol_to_c_name_address \
31795 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31796 nm_file_list_spec \
31797 lt_prog_compiler_no_builtin_flag \
31798 lt_prog_compiler_pic \
31799 lt_prog_compiler_wl \
31800 lt_prog_compiler_static \
31801 lt_cv_prog_compiler_c_o \
31802 need_locks \
31803 MANIFEST_TOOL \
31804 DSYMUTIL \
31805 NMEDIT \
31806 LIPO \
31807 OTOOL \
31808 OTOOL64 \
31809 shrext_cmds \
31810 export_dynamic_flag_spec \
31811 whole_archive_flag_spec \
31812 compiler_needs_object \
31813 with_gnu_ld \
31814 allow_undefined_flag \
31815 no_undefined_flag \
31816 hardcode_libdir_flag_spec \
31817 hardcode_libdir_separator \
31818 exclude_expsyms \
31819 include_expsyms \
31820 file_list_spec \
31821 variables_saved_for_relink \
31822 libname_spec \
31823 library_names_spec \
31824 soname_spec \
31825 install_override_mode \
31826 finish_eval \
31827 old_striplib \
31828 striplib \
31829 LD_RC \
31830 reload_flag_RC \
31831 compiler_RC \
31832 lt_prog_compiler_no_builtin_flag_RC \
31833 lt_prog_compiler_pic_RC \
31834 lt_prog_compiler_wl_RC \
31835 lt_prog_compiler_static_RC \
31836 lt_cv_prog_compiler_c_o_RC \
31837 export_dynamic_flag_spec_RC \
31838 whole_archive_flag_spec_RC \
31839 compiler_needs_object_RC \
31840 with_gnu_ld_RC \
31841 allow_undefined_flag_RC \
31842 no_undefined_flag_RC \
31843 hardcode_libdir_flag_spec_RC \
31844 hardcode_libdir_separator_RC \
31845 exclude_expsyms_RC \
31846 include_expsyms_RC \
31847 file_list_spec_RC; do
31848     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31849     *[\\\\\\\`\\"\\\$]*)
31850       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31851       ;;
31852     *)
31853       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31854       ;;
31855     esac
31856 done
31857
31858 # Double-quote double-evaled strings.
31859 for var in reload_cmds \
31860 old_postinstall_cmds \
31861 old_postuninstall_cmds \
31862 old_archive_cmds \
31863 extract_expsyms_cmds \
31864 old_archive_from_new_cmds \
31865 old_archive_from_expsyms_cmds \
31866 archive_cmds \
31867 archive_expsym_cmds \
31868 module_cmds \
31869 module_expsym_cmds \
31870 export_symbols_cmds \
31871 prelink_cmds \
31872 postlink_cmds \
31873 postinstall_cmds \
31874 postuninstall_cmds \
31875 finish_cmds \
31876 sys_lib_search_path_spec \
31877 sys_lib_dlsearch_path_spec \
31878 reload_cmds_RC \
31879 old_archive_cmds_RC \
31880 old_archive_from_new_cmds_RC \
31881 old_archive_from_expsyms_cmds_RC \
31882 archive_cmds_RC \
31883 archive_expsym_cmds_RC \
31884 module_cmds_RC \
31885 module_expsym_cmds_RC \
31886 export_symbols_cmds_RC \
31887 prelink_cmds_RC \
31888 postlink_cmds_RC; do
31889     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31890     *[\\\\\\\`\\"\\\$]*)
31891       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31892       ;;
31893     *)
31894       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31895       ;;
31896     esac
31897 done
31898
31899 ac_aux_dir='$ac_aux_dir'
31900 xsi_shell='$xsi_shell'
31901 lt_shell_append='$lt_shell_append'
31902
31903 # See if we are running on zsh, and set the options which allow our
31904 # commands through without removal of \ escapes INIT.
31905 if test -n "\${ZSH_VERSION+set}" ; then
31906    setopt NO_GLOB_SUBST
31907 fi
31908
31909
31910     PACKAGE='$PACKAGE'
31911     VERSION='$VERSION'
31912     TIMESTAMP='$TIMESTAMP'
31913     RM='$RM'
31914     ofile='$ofile'
31915
31916
31917
31918
31919
31920 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31921     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31922     # from automake < 1.5.
31923     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31924     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31925     LINGUAS="${LINGUAS-%UNSET%}"
31926
31927
31928 _ACEOF
31929
31930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31931
31932 # Handling of arguments.
31933 for ac_config_target in $ac_config_targets
31934 do
31935   case $ac_config_target in
31936     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
31937     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31938     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31939     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
31940     "csharpcomp.sh") CONFIG_FILES="$CONFIG_FILES csharpcomp.sh:../build-aux/csharpcomp.sh.in" ;;
31941     "javacomp.sh") CONFIG_FILES="$CONFIG_FILES javacomp.sh:../build-aux/javacomp.sh.in" ;;
31942     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31943     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
31944     "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
31945     "intl-java/Makefile") CONFIG_FILES="$CONFIG_FILES intl-java/Makefile" ;;
31946     "intl-csharp/Makefile") CONFIG_FILES="$CONFIG_FILES intl-csharp/Makefile" ;;
31947     "gnulib-lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-lib/Makefile" ;;
31948     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31949     "src/gettext.sh") CONFIG_FILES="$CONFIG_FILES src/gettext.sh" ;;
31950     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31951     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
31952     "man/x-to-1") CONFIG_FILES="$CONFIG_FILES man/x-to-1" ;;
31953     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
31954     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
31955
31956   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31957   esac
31958 done
31959
31960
31961 # If the user did not use the arguments to specify the items to instantiate,
31962 # then the envvar interface is used.  Set only those that are not.
31963 # We use the long form for the default assignment because of an extremely
31964 # bizarre bug on SunOS 4.1.3.
31965 if $ac_need_defaults; then
31966   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31967   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31968   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31969 fi
31970
31971 # Have a temporary directory for convenience.  Make it in the build tree
31972 # simply because there is no reason against having it here, and in addition,
31973 # creating and moving files from /tmp can sometimes cause problems.
31974 # Hook for its removal unless debugging.
31975 # Note that there is a small window in which the directory will not be cleaned:
31976 # after its creation but before its name has been assigned to `$tmp'.
31977 $debug ||
31978 {
31979   tmp= ac_tmp=
31980   trap 'exit_status=$?
31981   : "${ac_tmp:=$tmp}"
31982   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31983 ' 0
31984   trap 'as_fn_exit 1' 1 2 13 15
31985 }
31986 # Create a (secure) tmp directory for tmp files.
31987
31988 {
31989   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31990   test -d "$tmp"
31991 }  ||
31992 {
31993   tmp=./conf$$-$RANDOM
31994   (umask 077 && mkdir "$tmp")
31995 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31996 ac_tmp=$tmp
31997
31998 # Set up the scripts for CONFIG_FILES section.
31999 # No need to generate them if there are no CONFIG_FILES.
32000 # This happens for instance with `./config.status config.h'.
32001 if test -n "$CONFIG_FILES"; then
32002
32003
32004 ac_cr=`echo X | tr X '\015'`
32005 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32006 # But we know of no other shell where ac_cr would be empty at this
32007 # point, so we can use a bashism as a fallback.
32008 if test "x$ac_cr" = x; then
32009   eval ac_cr=\$\'\\r\'
32010 fi
32011 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32012 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32013   ac_cs_awk_cr='\\r'
32014 else
32015   ac_cs_awk_cr=$ac_cr
32016 fi
32017
32018 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32019 _ACEOF
32020
32021
32022 {
32023   echo "cat >conf$$subs.awk <<_ACEOF" &&
32024   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32025   echo "_ACEOF"
32026 } >conf$$subs.sh ||
32027   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32028 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32029 ac_delim='%!_!# '
32030 for ac_last_try in false false false false false :; do
32031   . ./conf$$subs.sh ||
32032     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32033
32034   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32035   if test $ac_delim_n = $ac_delim_num; then
32036     break
32037   elif $ac_last_try; then
32038     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32039   else
32040     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32041   fi
32042 done
32043 rm -f conf$$subs.sh
32044
32045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32046 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32047 _ACEOF
32048 sed -n '
32049 h
32050 s/^/S["/; s/!.*/"]=/
32051 p
32052 g
32053 s/^[^!]*!//
32054 :repl
32055 t repl
32056 s/'"$ac_delim"'$//
32057 t delim
32058 :nl
32059 h
32060 s/\(.\{148\}\)..*/\1/
32061 t more1
32062 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32063 p
32064 n
32065 b repl
32066 :more1
32067 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32068 p
32069 g
32070 s/.\{148\}//
32071 t nl
32072 :delim
32073 h
32074 s/\(.\{148\}\)..*/\1/
32075 t more2
32076 s/["\\]/\\&/g; s/^/"/; s/$/"/
32077 p
32078 b
32079 :more2
32080 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32081 p
32082 g
32083 s/.\{148\}//
32084 t delim
32085 ' <conf$$subs.awk | sed '
32086 /^[^""]/{
32087   N
32088   s/\n//
32089 }
32090 ' >>$CONFIG_STATUS || ac_write_fail=1
32091 rm -f conf$$subs.awk
32092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32093 _ACAWK
32094 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32095   for (key in S) S_is_set[key] = 1
32096   FS = "\a"
32097
32098 }
32099 {
32100   line = $ 0
32101   nfields = split(line, field, "@")
32102   substed = 0
32103   len = length(field[1])
32104   for (i = 2; i < nfields; i++) {
32105     key = field[i]
32106     keylen = length(key)
32107     if (S_is_set[key]) {
32108       value = S[key]
32109       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32110       len += length(value) + length(field[++i])
32111       substed = 1
32112     } else
32113       len += 1 + keylen
32114   }
32115
32116   print line
32117 }
32118
32119 _ACAWK
32120 _ACEOF
32121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32122 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32123   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32124 else
32125   cat
32126 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32127   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32128 _ACEOF
32129
32130 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32131 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32132 # trailing colons and then remove the whole line if VPATH becomes empty
32133 # (actually we leave an empty line to preserve line numbers).
32134 if test "x$srcdir" = x.; then
32135   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
32136 h
32137 s///
32138 s/^/:/
32139 s/[      ]*$/:/
32140 s/:\$(srcdir):/:/g
32141 s/:\${srcdir}:/:/g
32142 s/:@srcdir@:/:/g
32143 s/^:*//
32144 s/:*$//
32145 x
32146 s/\(=[   ]*\).*/\1/
32147 G
32148 s/\n//
32149 s/^[^=]*=[       ]*$//
32150 }'
32151 fi
32152
32153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32154 fi # test -n "$CONFIG_FILES"
32155
32156 # Set up the scripts for CONFIG_HEADERS section.
32157 # No need to generate them if there are no CONFIG_HEADERS.
32158 # This happens for instance with `./config.status Makefile'.
32159 if test -n "$CONFIG_HEADERS"; then
32160 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32161 BEGIN {
32162 _ACEOF
32163
32164 # Transform confdefs.h into an awk script `defines.awk', embedded as
32165 # here-document in config.status, that substitutes the proper values into
32166 # config.h.in to produce config.h.
32167
32168 # Create a delimiter string that does not exist in confdefs.h, to ease
32169 # handling of long lines.
32170 ac_delim='%!_!# '
32171 for ac_last_try in false false :; do
32172   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32173   if test -z "$ac_tt"; then
32174     break
32175   elif $ac_last_try; then
32176     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32177   else
32178     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32179   fi
32180 done
32181
32182 # For the awk script, D is an array of macro values keyed by name,
32183 # likewise P contains macro parameters if any.  Preserve backslash
32184 # newline sequences.
32185
32186 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32187 sed -n '
32188 s/.\{148\}/&'"$ac_delim"'/g
32189 t rset
32190 :rset
32191 s/^[     ]*#[    ]*define[       ][      ]*/ /
32192 t def
32193 d
32194 :def
32195 s/\\$//
32196 t bsnl
32197 s/["\\]/\\&/g
32198 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32199 D["\1"]=" \3"/p
32200 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32201 d
32202 :bsnl
32203 s/["\\]/\\&/g
32204 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32205 D["\1"]=" \3\\\\\\n"\\/p
32206 t cont
32207 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32208 t cont
32209 d
32210 :cont
32211 n
32212 s/.\{148\}/&'"$ac_delim"'/g
32213 t clear
32214 :clear
32215 s/\\$//
32216 t bsnlc
32217 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32218 d
32219 :bsnlc
32220 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32221 b cont
32222 ' <confdefs.h | sed '
32223 s/'"$ac_delim"'/"\\\
32224 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32225
32226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32227   for (key in D) D_is_set[key] = 1
32228   FS = "\a"
32229 }
32230 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32231   line = \$ 0
32232   split(line, arg, " ")
32233   if (arg[1] == "#") {
32234     defundef = arg[2]
32235     mac1 = arg[3]
32236   } else {
32237     defundef = substr(arg[1], 2)
32238     mac1 = arg[2]
32239   }
32240   split(mac1, mac2, "(") #)
32241   macro = mac2[1]
32242   prefix = substr(line, 1, index(line, defundef) - 1)
32243   if (D_is_set[macro]) {
32244     # Preserve the white space surrounding the "#".
32245     print prefix "define", macro P[macro] D[macro]
32246     next
32247   } else {
32248     # Replace #undef with comments.  This is necessary, for example,
32249     # in the case of _POSIX_SOURCE, which is predefined and required
32250     # on some systems where configure will not decide to define it.
32251     if (defundef == "undef") {
32252       print "/*", prefix defundef, macro, "*/"
32253       next
32254     }
32255   }
32256 }
32257 { print }
32258 _ACAWK
32259 _ACEOF
32260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32261   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32262 fi # test -n "$CONFIG_HEADERS"
32263
32264
32265 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32266 shift
32267 for ac_tag
32268 do
32269   case $ac_tag in
32270   :[FHLC]) ac_mode=$ac_tag; continue;;
32271   esac
32272   case $ac_mode$ac_tag in
32273   :[FHL]*:*);;
32274   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32275   :[FH]-) ac_tag=-:-;;
32276   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32277   esac
32278   ac_save_IFS=$IFS
32279   IFS=:
32280   set x $ac_tag
32281   IFS=$ac_save_IFS
32282   shift
32283   ac_file=$1
32284   shift
32285
32286   case $ac_mode in
32287   :L) ac_source=$1;;
32288   :[FH])
32289     ac_file_inputs=
32290     for ac_f
32291     do
32292       case $ac_f in
32293       -) ac_f="$ac_tmp/stdin";;
32294       *) # Look for the file first in the build tree, then in the source tree
32295          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32296          # because $ac_f cannot contain `:'.
32297          test -f "$ac_f" ||
32298            case $ac_f in
32299            [\\/$]*) false;;
32300            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32301            esac ||
32302            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32303       esac
32304       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32305       as_fn_append ac_file_inputs " '$ac_f'"
32306     done
32307
32308     # Let's still pretend it is `configure' which instantiates (i.e., don't
32309     # use $as_me), people would be surprised to read:
32310     #    /* config.h.  Generated by config.status.  */
32311     configure_input='Generated from '`
32312           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32313         `' by configure.'
32314     if test x"$ac_file" != x-; then
32315       configure_input="$ac_file.  $configure_input"
32316       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32317 $as_echo "$as_me: creating $ac_file" >&6;}
32318     fi
32319     # Neutralize special characters interpreted by sed in replacement strings.
32320     case $configure_input in #(
32321     *\&* | *\|* | *\\* )
32322        ac_sed_conf_input=`$as_echo "$configure_input" |
32323        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32324     *) ac_sed_conf_input=$configure_input;;
32325     esac
32326
32327     case $ac_tag in
32328     *:-:* | *:-) cat >"$ac_tmp/stdin" \
32329       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32330     esac
32331     ;;
32332   esac
32333
32334   ac_dir=`$as_dirname -- "$ac_file" ||
32335 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32336          X"$ac_file" : 'X\(//\)[^/]' \| \
32337          X"$ac_file" : 'X\(//\)$' \| \
32338          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32339 $as_echo X"$ac_file" |
32340     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32341             s//\1/
32342             q
32343           }
32344           /^X\(\/\/\)[^/].*/{
32345             s//\1/
32346             q
32347           }
32348           /^X\(\/\/\)$/{
32349             s//\1/
32350             q
32351           }
32352           /^X\(\/\).*/{
32353             s//\1/
32354             q
32355           }
32356           s/.*/./; q'`
32357   as_dir="$ac_dir"; as_fn_mkdir_p
32358   ac_builddir=.
32359
32360 case "$ac_dir" in
32361 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32362 *)
32363   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32364   # A ".." for each directory in $ac_dir_suffix.
32365   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32366   case $ac_top_builddir_sub in
32367   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32368   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32369   esac ;;
32370 esac
32371 ac_abs_top_builddir=$ac_pwd
32372 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32373 # for backward compatibility:
32374 ac_top_builddir=$ac_top_build_prefix
32375
32376 case $srcdir in
32377   .)  # We are building in place.
32378     ac_srcdir=.
32379     ac_top_srcdir=$ac_top_builddir_sub
32380     ac_abs_top_srcdir=$ac_pwd ;;
32381   [\\/]* | ?:[\\/]* )  # Absolute name.
32382     ac_srcdir=$srcdir$ac_dir_suffix;
32383     ac_top_srcdir=$srcdir
32384     ac_abs_top_srcdir=$srcdir ;;
32385   *) # Relative name.
32386     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32387     ac_top_srcdir=$ac_top_build_prefix$srcdir
32388     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32389 esac
32390 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32391
32392
32393   case $ac_mode in
32394   :F)
32395   #
32396   # CONFIG_FILE
32397   #
32398
32399   case $INSTALL in
32400   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32401   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32402   esac
32403   ac_MKDIR_P=$MKDIR_P
32404   case $MKDIR_P in
32405   [\\/$]* | ?:[\\/]* ) ;;
32406   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32407   esac
32408 _ACEOF
32409
32410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32411 # If the template does not know about datarootdir, expand it.
32412 # FIXME: This hack should be removed a few years after 2.60.
32413 ac_datarootdir_hack=; ac_datarootdir_seen=
32414 ac_sed_dataroot='
32415 /datarootdir/ {
32416   p
32417   q
32418 }
32419 /@datadir@/p
32420 /@docdir@/p
32421 /@infodir@/p
32422 /@localedir@/p
32423 /@mandir@/p'
32424 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32425 *datarootdir*) ac_datarootdir_seen=yes;;
32426 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32427   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32428 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32429 _ACEOF
32430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32431   ac_datarootdir_hack='
32432   s&@datadir@&$datadir&g
32433   s&@docdir@&$docdir&g
32434   s&@infodir@&$infodir&g
32435   s&@localedir@&$localedir&g
32436   s&@mandir@&$mandir&g
32437   s&\\\${datarootdir}&$datarootdir&g' ;;
32438 esac
32439 _ACEOF
32440
32441 # Neutralize VPATH when `$srcdir' = `.'.
32442 # Shell code in configure.ac might set extrasub.
32443 # FIXME: do we really want to maintain this feature?
32444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32445 ac_sed_extra="$ac_vpsub
32446 $extrasub
32447 _ACEOF
32448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32449 :t
32450 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32451 s|@configure_input@|$ac_sed_conf_input|;t t
32452 s&@top_builddir@&$ac_top_builddir_sub&;t t
32453 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32454 s&@srcdir@&$ac_srcdir&;t t
32455 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32456 s&@top_srcdir@&$ac_top_srcdir&;t t
32457 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32458 s&@builddir@&$ac_builddir&;t t
32459 s&@abs_builddir@&$ac_abs_builddir&;t t
32460 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32461 s&@INSTALL@&$ac_INSTALL&;t t
32462 s&@MKDIR_P@&$ac_MKDIR_P&;t t
32463 $ac_datarootdir_hack
32464 "
32465 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
32466   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32467
32468 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32469   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32470   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32471       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32472   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32473 which seems to be undefined.  Please make sure it is defined" >&5
32474 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32475 which seems to be undefined.  Please make sure it is defined" >&2;}
32476
32477   rm -f "$ac_tmp/stdin"
32478   case $ac_file in
32479   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32480   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32481   esac \
32482   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32483  ;;
32484   :H)
32485   #
32486   # CONFIG_HEADER
32487   #
32488   if test x"$ac_file" != x-; then
32489     {
32490       $as_echo "/* $configure_input  */" \
32491       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32492     } >"$ac_tmp/config.h" \
32493       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32494     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32495       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32496 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32497     else
32498       rm -f "$ac_file"
32499       mv "$ac_tmp/config.h" "$ac_file" \
32500         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32501     fi
32502   else
32503     $as_echo "/* $configure_input  */" \
32504       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32505       || as_fn_error $? "could not create -" "$LINENO" 5
32506   fi
32507 # Compute "$ac_file"'s index in $config_headers.
32508 _am_arg="$ac_file"
32509 _am_stamp_count=1
32510 for _am_header in $config_headers :; do
32511   case $_am_header in
32512     $_am_arg | $_am_arg:* )
32513       break ;;
32514     * )
32515       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32516   esac
32517 done
32518 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32519 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32520          X"$_am_arg" : 'X\(//\)[^/]' \| \
32521          X"$_am_arg" : 'X\(//\)$' \| \
32522          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32523 $as_echo X"$_am_arg" |
32524     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32525             s//\1/
32526             q
32527           }
32528           /^X\(\/\/\)[^/].*/{
32529             s//\1/
32530             q
32531           }
32532           /^X\(\/\/\)$/{
32533             s//\1/
32534             q
32535           }
32536           /^X\(\/\).*/{
32537             s//\1/
32538             q
32539           }
32540           s/.*/./; q'`/stamp-h$_am_stamp_count
32541  ;;
32542
32543   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32544 $as_echo "$as_me: executing $ac_file commands" >&6;}
32545  ;;
32546   esac
32547
32548
32549   case $ac_file$ac_mode in
32550     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32551   # Older Autoconf quotes --file arguments for eval, but not when files
32552   # are listed without --file.  Let's play safe and only enable the eval
32553   # if we detect the quoting.
32554   case $CONFIG_FILES in
32555   *\'*) eval set x "$CONFIG_FILES" ;;
32556   *)   set x $CONFIG_FILES ;;
32557   esac
32558   shift
32559   for mf
32560   do
32561     # Strip MF so we end up with the name of the file.
32562     mf=`echo "$mf" | sed -e 's/:.*$//'`
32563     # Check whether this is an Automake generated Makefile or not.
32564     # We used to match only the files named 'Makefile.in', but
32565     # some people rename them; so instead we look at the file content.
32566     # Grep'ing the first line is not enough: some people post-process
32567     # each Makefile.in and add a new line on top of each file to say so.
32568     # Grep'ing the whole file is not good either: AIX grep has a line
32569     # limit of 2048, but all sed's we know have understand at least 4000.
32570     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
32571       dirpart=`$as_dirname -- "$mf" ||
32572 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32573          X"$mf" : 'X\(//\)[^/]' \| \
32574          X"$mf" : 'X\(//\)$' \| \
32575          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32576 $as_echo X"$mf" |
32577     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32578             s//\1/
32579             q
32580           }
32581           /^X\(\/\/\)[^/].*/{
32582             s//\1/
32583             q
32584           }
32585           /^X\(\/\/\)$/{
32586             s//\1/
32587             q
32588           }
32589           /^X\(\/\).*/{
32590             s//\1/
32591             q
32592           }
32593           s/.*/./; q'`
32594     else
32595       continue
32596     fi
32597     # Extract the definition of DEPDIR, am__include, and am__quote
32598     # from the Makefile without running 'make'.
32599     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32600     test -z "$DEPDIR" && continue
32601     am__include=`sed -n 's/^am__include = //p' < "$mf"`
32602     test -z "$am__include" && continue
32603     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32604     # Find all dependency output files, they are included files with
32605     # $(DEPDIR) in their names.  We invoke sed twice because it is the
32606     # simplest approach to changing $(DEPDIR) to its actual value in the
32607     # expansion.
32608     for file in `sed -n "
32609       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32610          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
32611       # Make sure the directory exists.
32612       test -f "$dirpart/$file" && continue
32613       fdir=`$as_dirname -- "$file" ||
32614 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32615          X"$file" : 'X\(//\)[^/]' \| \
32616          X"$file" : 'X\(//\)$' \| \
32617          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32618 $as_echo X"$file" |
32619     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32620             s//\1/
32621             q
32622           }
32623           /^X\(\/\/\)[^/].*/{
32624             s//\1/
32625             q
32626           }
32627           /^X\(\/\/\)$/{
32628             s//\1/
32629             q
32630           }
32631           /^X\(\/\).*/{
32632             s//\1/
32633             q
32634           }
32635           s/.*/./; q'`
32636       as_dir=$dirpart/$fdir; as_fn_mkdir_p
32637       # echo "creating $dirpart/$file"
32638       echo '# dummy' > "$dirpart/$file"
32639     done
32640   done
32641 }
32642  ;;
32643     "libtool":C)
32644
32645     # See if we are running on zsh, and set the options which allow our
32646     # commands through without removal of \ escapes.
32647     if test -n "${ZSH_VERSION+set}" ; then
32648       setopt NO_GLOB_SUBST
32649     fi
32650
32651     cfgfile="${ofile}T"
32652     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32653     $RM "$cfgfile"
32654
32655     cat <<_LT_EOF >> "$cfgfile"
32656 #! $SHELL
32657
32658 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32659 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32660 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32661 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32662 #
32663 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32664 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32665 #                 Foundation, Inc.
32666 #   Written by Gordon Matzigkeit, 1996
32667 #
32668 #   This file is part of GNU Libtool.
32669 #
32670 # GNU Libtool is free software; you can redistribute it and/or
32671 # modify it under the terms of the GNU General Public License as
32672 # published by the Free Software Foundation; either version 2 of
32673 # the License, or (at your option) any later version.
32674 #
32675 # As a special exception to the GNU General Public License,
32676 # if you distribute this file as part of a program or library that
32677 # is built using GNU Libtool, you may include this file under the
32678 # same distribution terms that you use for the rest of that program.
32679 #
32680 # GNU Libtool is distributed in the hope that it will be useful,
32681 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32682 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32683 # GNU General Public License for more details.
32684 #
32685 # You should have received a copy of the GNU General Public License
32686 # along with GNU Libtool; see the file COPYING.  If not, a copy
32687 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32688 # obtained by writing to the Free Software Foundation, Inc.,
32689 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32690
32691
32692 # The names of the tagged configurations supported by this script.
32693 available_tags="RC "
32694
32695 # ### BEGIN LIBTOOL CONFIG
32696
32697 # Which release of libtool.m4 was used?
32698 macro_version=$macro_version
32699 macro_revision=$macro_revision
32700
32701 # Assembler program.
32702 AS=$lt_AS
32703
32704 # DLL creation program.
32705 DLLTOOL=$lt_DLLTOOL
32706
32707 # Object dumper program.
32708 OBJDUMP=$lt_OBJDUMP
32709
32710 # Whether or not to build shared libraries.
32711 build_libtool_libs=$enable_shared
32712
32713 # Whether or not to build static libraries.
32714 build_old_libs=$enable_static
32715
32716 # What type of objects to build.
32717 pic_mode=$pic_mode
32718
32719 # Whether or not to optimize for fast installation.
32720 fast_install=$enable_fast_install
32721
32722 # Shell to use when invoking shell scripts.
32723 SHELL=$lt_SHELL
32724
32725 # An echo program that protects backslashes.
32726 ECHO=$lt_ECHO
32727
32728 # The PATH separator for the build system.
32729 PATH_SEPARATOR=$lt_PATH_SEPARATOR
32730
32731 # The host system.
32732 host_alias=$host_alias
32733 host=$host
32734 host_os=$host_os
32735
32736 # The build system.
32737 build_alias=$build_alias
32738 build=$build
32739 build_os=$build_os
32740
32741 # A sed program that does not truncate output.
32742 SED=$lt_SED
32743
32744 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32745 Xsed="\$SED -e 1s/^X//"
32746
32747 # A grep program that handles long lines.
32748 GREP=$lt_GREP
32749
32750 # An ERE matcher.
32751 EGREP=$lt_EGREP
32752
32753 # A literal string matcher.
32754 FGREP=$lt_FGREP
32755
32756 # A BSD- or MS-compatible name lister.
32757 NM=$lt_NM
32758
32759 # Whether we need soft or hard links.
32760 LN_S=$lt_LN_S
32761
32762 # What is the maximum length of a command?
32763 max_cmd_len=$max_cmd_len
32764
32765 # Object file suffix (normally "o").
32766 objext=$ac_objext
32767
32768 # Executable file suffix (normally "").
32769 exeext=$exeext
32770
32771 # whether the shell understands "unset".
32772 lt_unset=$lt_unset
32773
32774 # turn spaces into newlines.
32775 SP2NL=$lt_lt_SP2NL
32776
32777 # turn newlines into spaces.
32778 NL2SP=$lt_lt_NL2SP
32779
32780 # convert \$build file names to \$host format.
32781 to_host_file_cmd=$lt_cv_to_host_file_cmd
32782
32783 # convert \$build files to toolchain format.
32784 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32785
32786 # Method to check whether dependent libraries are shared objects.
32787 deplibs_check_method=$lt_deplibs_check_method
32788
32789 # Command to use when deplibs_check_method = "file_magic".
32790 file_magic_cmd=$lt_file_magic_cmd
32791
32792 # How to find potential files when deplibs_check_method = "file_magic".
32793 file_magic_glob=$lt_file_magic_glob
32794
32795 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32796 want_nocaseglob=$lt_want_nocaseglob
32797
32798 # Command to associate shared and link libraries.
32799 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32800
32801 # The archiver.
32802 AR=$lt_AR
32803
32804 # Flags to create an archive.
32805 AR_FLAGS=$lt_AR_FLAGS
32806
32807 # How to feed a file listing to the archiver.
32808 archiver_list_spec=$lt_archiver_list_spec
32809
32810 # A symbol stripping program.
32811 STRIP=$lt_STRIP
32812
32813 # Commands used to install an old-style archive.
32814 RANLIB=$lt_RANLIB
32815 old_postinstall_cmds=$lt_old_postinstall_cmds
32816 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32817
32818 # Whether to use a lock for old archive extraction.
32819 lock_old_archive_extraction=$lock_old_archive_extraction
32820
32821 # A C compiler.
32822 LTCC=$lt_CC
32823
32824 # LTCC compiler flags.
32825 LTCFLAGS=$lt_CFLAGS
32826
32827 # Take the output of nm and produce a listing of raw symbols and C names.
32828 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32829
32830 # Transform the output of nm in a proper C declaration.
32831 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32832
32833 # Transform the output of nm in a C name address pair.
32834 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32835
32836 # Transform the output of nm in a C name address pair when lib prefix is needed.
32837 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32838
32839 # Specify filename containing input files for \$NM.
32840 nm_file_list_spec=$lt_nm_file_list_spec
32841
32842 # The root where to search for dependent libraries,and in which our libraries should be installed.
32843 lt_sysroot=$lt_sysroot
32844
32845 # The name of the directory that contains temporary libtool files.
32846 objdir=$objdir
32847
32848 # Used to examine libraries when file_magic_cmd begins with "file".
32849 MAGIC_CMD=$MAGIC_CMD
32850
32851 # Must we lock files when doing compilation?
32852 need_locks=$lt_need_locks
32853
32854 # Manifest tool.
32855 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32856
32857 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32858 DSYMUTIL=$lt_DSYMUTIL
32859
32860 # Tool to change global to local symbols on Mac OS X.
32861 NMEDIT=$lt_NMEDIT
32862
32863 # Tool to manipulate fat objects and archives on Mac OS X.
32864 LIPO=$lt_LIPO
32865
32866 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32867 OTOOL=$lt_OTOOL
32868
32869 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32870 OTOOL64=$lt_OTOOL64
32871
32872 # Old archive suffix (normally "a").
32873 libext=$libext
32874
32875 # Shared library suffix (normally ".so").
32876 shrext_cmds=$lt_shrext_cmds
32877
32878 # The commands to extract the exported symbol list from a shared archive.
32879 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32880
32881 # Variables whose values should be saved in libtool wrapper scripts and
32882 # restored at link time.
32883 variables_saved_for_relink=$lt_variables_saved_for_relink
32884
32885 # Do we need the "lib" prefix for modules?
32886 need_lib_prefix=$need_lib_prefix
32887
32888 # Do we need a version for libraries?
32889 need_version=$need_version
32890
32891 # Library versioning type.
32892 version_type=$version_type
32893
32894 # Shared library runtime path variable.
32895 runpath_var=$runpath_var
32896
32897 # Shared library path variable.
32898 shlibpath_var=$shlibpath_var
32899
32900 # Is shlibpath searched before the hard-coded library search path?
32901 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32902
32903 # Format of library name prefix.
32904 libname_spec=$lt_libname_spec
32905
32906 # List of archive names.  First name is the real one, the rest are links.
32907 # The last name is the one that the linker finds with -lNAME
32908 library_names_spec=$lt_library_names_spec
32909
32910 # The coded name of the library, if different from the real name.
32911 soname_spec=$lt_soname_spec
32912
32913 # Permission mode override for installation of shared libraries.
32914 install_override_mode=$lt_install_override_mode
32915
32916 # Command to use after installation of a shared archive.
32917 postinstall_cmds=$lt_postinstall_cmds
32918
32919 # Command to use after uninstallation of a shared archive.
32920 postuninstall_cmds=$lt_postuninstall_cmds
32921
32922 # Commands used to finish a libtool library installation in a directory.
32923 finish_cmds=$lt_finish_cmds
32924
32925 # As "finish_cmds", except a single script fragment to be evaled but
32926 # not shown.
32927 finish_eval=$lt_finish_eval
32928
32929 # Whether we should hardcode library paths into libraries.
32930 hardcode_into_libs=$hardcode_into_libs
32931
32932 # Compile-time system search path for libraries.
32933 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32934
32935 # Run-time system search path for libraries.
32936 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32937
32938 # Whether dlopen is supported.
32939 dlopen_support=$enable_dlopen
32940
32941 # Whether dlopen of programs is supported.
32942 dlopen_self=$enable_dlopen_self
32943
32944 # Whether dlopen of statically linked programs is supported.
32945 dlopen_self_static=$enable_dlopen_self_static
32946
32947 # Commands to strip libraries.
32948 old_striplib=$lt_old_striplib
32949 striplib=$lt_striplib
32950
32951
32952 # The linker used to build libraries.
32953 LD=$lt_LD
32954
32955 # How to create reloadable object files.
32956 reload_flag=$lt_reload_flag
32957 reload_cmds=$lt_reload_cmds
32958
32959 # Commands used to build an old-style archive.
32960 old_archive_cmds=$lt_old_archive_cmds
32961
32962 # A language specific compiler.
32963 CC=$lt_compiler
32964
32965 # Is the compiler the GNU compiler?
32966 with_gcc=$GCC
32967
32968 # Compiler flag to turn off builtin functions.
32969 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32970
32971 # Additional compiler flags for building library objects.
32972 pic_flag=$lt_lt_prog_compiler_pic
32973
32974 # How to pass a linker flag through the compiler.
32975 wl=$lt_lt_prog_compiler_wl
32976
32977 # Compiler flag to prevent dynamic linking.
32978 link_static_flag=$lt_lt_prog_compiler_static
32979
32980 # Does compiler simultaneously support -c and -o options?
32981 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32982
32983 # Whether or not to add -lc for building shared libraries.
32984 build_libtool_need_lc=$archive_cmds_need_lc
32985
32986 # Whether or not to disallow shared libs when runtime libs are static.
32987 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32988
32989 # Compiler flag to allow reflexive dlopens.
32990 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32991
32992 # Compiler flag to generate shared objects directly from archives.
32993 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32994
32995 # Whether the compiler copes with passing no objects directly.
32996 compiler_needs_object=$lt_compiler_needs_object
32997
32998 # Create an old-style archive from a shared archive.
32999 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33000
33001 # Create a temporary old-style archive to link instead of a shared archive.
33002 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33003
33004 # Commands used to build a shared archive.
33005 archive_cmds=$lt_archive_cmds
33006 archive_expsym_cmds=$lt_archive_expsym_cmds
33007
33008 # Commands used to build a loadable module if different from building
33009 # a shared archive.
33010 module_cmds=$lt_module_cmds
33011 module_expsym_cmds=$lt_module_expsym_cmds
33012
33013 # Whether we are building with GNU ld or not.
33014 with_gnu_ld=$lt_with_gnu_ld
33015
33016 # Flag that allows shared libraries with undefined symbols to be built.
33017 allow_undefined_flag=$lt_allow_undefined_flag
33018
33019 # Flag that enforces no undefined symbols.
33020 no_undefined_flag=$lt_no_undefined_flag
33021
33022 # Flag to hardcode \$libdir into a binary during linking.
33023 # This must work even if \$libdir does not exist
33024 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33025
33026 # Whether we need a single "-rpath" flag with a separated argument.
33027 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33028
33029 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33030 # DIR into the resulting binary.
33031 hardcode_direct=$hardcode_direct
33032
33033 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33034 # DIR into the resulting binary and the resulting library dependency is
33035 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33036 # library is relocated.
33037 hardcode_direct_absolute=$hardcode_direct_absolute
33038
33039 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33040 # into the resulting binary.
33041 hardcode_minus_L=$hardcode_minus_L
33042
33043 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33044 # into the resulting binary.
33045 hardcode_shlibpath_var=$hardcode_shlibpath_var
33046
33047 # Set to "yes" if building a shared library automatically hardcodes DIR
33048 # into the library and all subsequent libraries and executables linked
33049 # against it.
33050 hardcode_automatic=$hardcode_automatic
33051
33052 # Set to yes if linker adds runtime paths of dependent libraries
33053 # to runtime path list.
33054 inherit_rpath=$inherit_rpath
33055
33056 # Whether libtool must link a program against all its dependency libraries.
33057 link_all_deplibs=$link_all_deplibs
33058
33059 # Set to "yes" if exported symbols are required.
33060 always_export_symbols=$always_export_symbols
33061
33062 # The commands to list exported symbols.
33063 export_symbols_cmds=$lt_export_symbols_cmds
33064
33065 # Symbols that should not be listed in the preloaded symbols.
33066 exclude_expsyms=$lt_exclude_expsyms
33067
33068 # Symbols that must always be exported.
33069 include_expsyms=$lt_include_expsyms
33070
33071 # Commands necessary for linking programs (against libraries) with templates.
33072 prelink_cmds=$lt_prelink_cmds
33073
33074 # Commands necessary for finishing linking programs.
33075 postlink_cmds=$lt_postlink_cmds
33076
33077 # Specify filename containing input files.
33078 file_list_spec=$lt_file_list_spec
33079
33080 # How to hardcode a shared library path into an executable.
33081 hardcode_action=$hardcode_action
33082
33083 # ### END LIBTOOL CONFIG
33084
33085 _LT_EOF
33086
33087   case $host_os in
33088   aix3*)
33089     cat <<\_LT_EOF >> "$cfgfile"
33090 # AIX sometimes has problems with the GCC collect2 program.  For some
33091 # reason, if we set the COLLECT_NAMES environment variable, the problems
33092 # vanish in a puff of smoke.
33093 if test "X${COLLECT_NAMES+set}" != Xset; then
33094   COLLECT_NAMES=
33095   export COLLECT_NAMES
33096 fi
33097 _LT_EOF
33098     ;;
33099   esac
33100
33101
33102 ltmain="$ac_aux_dir/ltmain.sh"
33103
33104
33105   # We use sed instead of cat because bash on DJGPP gets confused if
33106   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33107   # text mode, it properly converts lines to CR/LF.  This bash problem
33108   # is reportedly fixed, but why not run on old versions too?
33109   sed '$q' "$ltmain" >> "$cfgfile" \
33110      || (rm -f "$cfgfile"; exit 1)
33111
33112   if test x"$xsi_shell" = xyes; then
33113   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33114 func_dirname ()\
33115 {\
33116 \    case ${1} in\
33117 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33118 \      *  ) func_dirname_result="${3}" ;;\
33119 \    esac\
33120 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33121   && mv -f "$cfgfile.tmp" "$cfgfile" \
33122     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33123 test 0 -eq $? || _lt_function_replace_fail=:
33124
33125
33126   sed -e '/^func_basename ()$/,/^} # func_basename /c\
33127 func_basename ()\
33128 {\
33129 \    func_basename_result="${1##*/}"\
33130 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33131   && mv -f "$cfgfile.tmp" "$cfgfile" \
33132     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33133 test 0 -eq $? || _lt_function_replace_fail=:
33134
33135
33136   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33137 func_dirname_and_basename ()\
33138 {\
33139 \    case ${1} in\
33140 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33141 \      *  ) func_dirname_result="${3}" ;;\
33142 \    esac\
33143 \    func_basename_result="${1##*/}"\
33144 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33145   && mv -f "$cfgfile.tmp" "$cfgfile" \
33146     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33147 test 0 -eq $? || _lt_function_replace_fail=:
33148
33149
33150   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33151 func_stripname ()\
33152 {\
33153 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33154 \    # positional parameters, so assign one to ordinary parameter first.\
33155 \    func_stripname_result=${3}\
33156 \    func_stripname_result=${func_stripname_result#"${1}"}\
33157 \    func_stripname_result=${func_stripname_result%"${2}"}\
33158 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33159   && mv -f "$cfgfile.tmp" "$cfgfile" \
33160     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33161 test 0 -eq $? || _lt_function_replace_fail=:
33162
33163
33164   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33165 func_split_long_opt ()\
33166 {\
33167 \    func_split_long_opt_name=${1%%=*}\
33168 \    func_split_long_opt_arg=${1#*=}\
33169 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33170   && mv -f "$cfgfile.tmp" "$cfgfile" \
33171     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33172 test 0 -eq $? || _lt_function_replace_fail=:
33173
33174
33175   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33176 func_split_short_opt ()\
33177 {\
33178 \    func_split_short_opt_arg=${1#??}\
33179 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33180 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33181   && mv -f "$cfgfile.tmp" "$cfgfile" \
33182     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33183 test 0 -eq $? || _lt_function_replace_fail=:
33184
33185
33186   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33187 func_lo2o ()\
33188 {\
33189 \    case ${1} in\
33190 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33191 \      *)    func_lo2o_result=${1} ;;\
33192 \    esac\
33193 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33194   && mv -f "$cfgfile.tmp" "$cfgfile" \
33195     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33196 test 0 -eq $? || _lt_function_replace_fail=:
33197
33198
33199   sed -e '/^func_xform ()$/,/^} # func_xform /c\
33200 func_xform ()\
33201 {\
33202     func_xform_result=${1%.*}.lo\
33203 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33204   && mv -f "$cfgfile.tmp" "$cfgfile" \
33205     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33206 test 0 -eq $? || _lt_function_replace_fail=:
33207
33208
33209   sed -e '/^func_arith ()$/,/^} # func_arith /c\
33210 func_arith ()\
33211 {\
33212     func_arith_result=$(( $* ))\
33213 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33214   && mv -f "$cfgfile.tmp" "$cfgfile" \
33215     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33216 test 0 -eq $? || _lt_function_replace_fail=:
33217
33218
33219   sed -e '/^func_len ()$/,/^} # func_len /c\
33220 func_len ()\
33221 {\
33222     func_len_result=${#1}\
33223 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33224   && mv -f "$cfgfile.tmp" "$cfgfile" \
33225     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33226 test 0 -eq $? || _lt_function_replace_fail=:
33227
33228 fi
33229
33230 if test x"$lt_shell_append" = xyes; then
33231   sed -e '/^func_append ()$/,/^} # func_append /c\
33232 func_append ()\
33233 {\
33234     eval "${1}+=\\${2}"\
33235 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33236   && mv -f "$cfgfile.tmp" "$cfgfile" \
33237     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33238 test 0 -eq $? || _lt_function_replace_fail=:
33239
33240
33241   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33242 func_append_quoted ()\
33243 {\
33244 \    func_quote_for_eval "${2}"\
33245 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33246 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33247   && mv -f "$cfgfile.tmp" "$cfgfile" \
33248     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33249 test 0 -eq $? || _lt_function_replace_fail=:
33250
33251
33252   # Save a `func_append' function call where possible by direct use of '+='
33253   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33254     && mv -f "$cfgfile.tmp" "$cfgfile" \
33255       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33256   test 0 -eq $? || _lt_function_replace_fail=:
33257 else
33258   # Save a `func_append' function call even when '+=' is not available
33259   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33260     && mv -f "$cfgfile.tmp" "$cfgfile" \
33261       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33262   test 0 -eq $? || _lt_function_replace_fail=:
33263 fi
33264
33265 if test x"$_lt_function_replace_fail" = x":"; then
33266   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33267 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33268 fi
33269
33270
33271    mv -f "$cfgfile" "$ofile" ||
33272     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33273   chmod +x "$ofile"
33274
33275
33276     cat <<_LT_EOF >> "$ofile"
33277
33278 # ### BEGIN LIBTOOL TAG CONFIG: RC
33279
33280 # The linker used to build libraries.
33281 LD=$lt_LD_RC
33282
33283 # How to create reloadable object files.
33284 reload_flag=$lt_reload_flag_RC
33285 reload_cmds=$lt_reload_cmds_RC
33286
33287 # Commands used to build an old-style archive.
33288 old_archive_cmds=$lt_old_archive_cmds_RC
33289
33290 # A language specific compiler.
33291 CC=$lt_compiler_RC
33292
33293 # Is the compiler the GNU compiler?
33294 with_gcc=$GCC_RC
33295
33296 # Compiler flag to turn off builtin functions.
33297 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
33298
33299 # Additional compiler flags for building library objects.
33300 pic_flag=$lt_lt_prog_compiler_pic_RC
33301
33302 # How to pass a linker flag through the compiler.
33303 wl=$lt_lt_prog_compiler_wl_RC
33304
33305 # Compiler flag to prevent dynamic linking.
33306 link_static_flag=$lt_lt_prog_compiler_static_RC
33307
33308 # Does compiler simultaneously support -c and -o options?
33309 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
33310
33311 # Whether or not to add -lc for building shared libraries.
33312 build_libtool_need_lc=$archive_cmds_need_lc_RC
33313
33314 # Whether or not to disallow shared libs when runtime libs are static.
33315 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
33316
33317 # Compiler flag to allow reflexive dlopens.
33318 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
33319
33320 # Compiler flag to generate shared objects directly from archives.
33321 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
33322
33323 # Whether the compiler copes with passing no objects directly.
33324 compiler_needs_object=$lt_compiler_needs_object_RC
33325
33326 # Create an old-style archive from a shared archive.
33327 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
33328
33329 # Create a temporary old-style archive to link instead of a shared archive.
33330 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
33331
33332 # Commands used to build a shared archive.
33333 archive_cmds=$lt_archive_cmds_RC
33334 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
33335
33336 # Commands used to build a loadable module if different from building
33337 # a shared archive.
33338 module_cmds=$lt_module_cmds_RC
33339 module_expsym_cmds=$lt_module_expsym_cmds_RC
33340
33341 # Whether we are building with GNU ld or not.
33342 with_gnu_ld=$lt_with_gnu_ld_RC
33343
33344 # Flag that allows shared libraries with undefined symbols to be built.
33345 allow_undefined_flag=$lt_allow_undefined_flag_RC
33346
33347 # Flag that enforces no undefined symbols.
33348 no_undefined_flag=$lt_no_undefined_flag_RC
33349
33350 # Flag to hardcode \$libdir into a binary during linking.
33351 # This must work even if \$libdir does not exist
33352 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
33353
33354 # Whether we need a single "-rpath" flag with a separated argument.
33355 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
33356
33357 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33358 # DIR into the resulting binary.
33359 hardcode_direct=$hardcode_direct_RC
33360
33361 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33362 # DIR into the resulting binary and the resulting library dependency is
33363 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33364 # library is relocated.
33365 hardcode_direct_absolute=$hardcode_direct_absolute_RC
33366
33367 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33368 # into the resulting binary.
33369 hardcode_minus_L=$hardcode_minus_L_RC
33370
33371 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33372 # into the resulting binary.
33373 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
33374
33375 # Set to "yes" if building a shared library automatically hardcodes DIR
33376 # into the library and all subsequent libraries and executables linked
33377 # against it.
33378 hardcode_automatic=$hardcode_automatic_RC
33379
33380 # Set to yes if linker adds runtime paths of dependent libraries
33381 # to runtime path list.
33382 inherit_rpath=$inherit_rpath_RC
33383
33384 # Whether libtool must link a program against all its dependency libraries.
33385 link_all_deplibs=$link_all_deplibs_RC
33386
33387 # Set to "yes" if exported symbols are required.
33388 always_export_symbols=$always_export_symbols_RC
33389
33390 # The commands to list exported symbols.
33391 export_symbols_cmds=$lt_export_symbols_cmds_RC
33392
33393 # Symbols that should not be listed in the preloaded symbols.
33394 exclude_expsyms=$lt_exclude_expsyms_RC
33395
33396 # Symbols that must always be exported.
33397 include_expsyms=$lt_include_expsyms_RC
33398
33399 # Commands necessary for linking programs (against libraries) with templates.
33400 prelink_cmds=$lt_prelink_cmds_RC
33401
33402 # Commands necessary for finishing linking programs.
33403 postlink_cmds=$lt_postlink_cmds_RC
33404
33405 # Specify filename containing input files.
33406 file_list_spec=$lt_file_list_spec_RC
33407
33408 # How to hardcode a shared library path into an executable.
33409 hardcode_action=$hardcode_action_RC
33410
33411 # ### END LIBTOOL TAG CONFIG: RC
33412 _LT_EOF
33413
33414  ;;
33415     "po-directories":C)
33416     for ac_file in $CONFIG_FILES; do
33417       # Support "outfile[:infile[:infile...]]"
33418       case "$ac_file" in
33419         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33420       esac
33421       # PO directories have a Makefile.in generated from Makefile.in.in.
33422       case "$ac_file" in */Makefile.in)
33423         # Adjust a relative srcdir.
33424         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33425         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
33426         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33427         # In autoconf-2.13 it is called $ac_given_srcdir.
33428         # In autoconf-2.50 it is called $srcdir.
33429         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33430         case "$ac_given_srcdir" in
33431           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33432           /*) top_srcdir="$ac_given_srcdir" ;;
33433           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33434         esac
33435         # Treat a directory as a PO directory if and only if it has a
33436         # POTFILES.in file. This allows packages to have multiple PO
33437         # directories under different names or in different locations.
33438         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33439           rm -f "$ac_dir/POTFILES"
33440           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33441           gt_tab=`printf '\t'`
33442           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"
33443           POMAKEFILEDEPS="POTFILES.in"
33444           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33445           # on $ac_dir but don't depend on user-specified configuration
33446           # parameters.
33447           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33448             # The LINGUAS file contains the set of available languages.
33449             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33450               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33451             fi
33452             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33453             # Hide the ALL_LINGUAS assignment from automake < 1.5.
33454             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33455             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33456           else
33457             # The set of available languages was given in configure.in.
33458             # Hide the ALL_LINGUAS assignment from automake < 1.5.
33459             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33460           fi
33461           # Compute POFILES
33462           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33463           # Compute UPDATEPOFILES
33464           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33465           # Compute DUMMYPOFILES
33466           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33467           # Compute GMOFILES
33468           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33469           case "$ac_given_srcdir" in
33470             .) srcdirpre= ;;
33471             *) srcdirpre='$(srcdir)/' ;;
33472           esac
33473           POFILES=
33474           UPDATEPOFILES=
33475           DUMMYPOFILES=
33476           GMOFILES=
33477           for lang in $ALL_LINGUAS; do
33478             POFILES="$POFILES $srcdirpre$lang.po"
33479             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33480             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33481             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33482           done
33483           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33484           # environment variable.
33485           INST_LINGUAS=
33486           if test -n "$ALL_LINGUAS"; then
33487             for presentlang in $ALL_LINGUAS; do
33488               useit=no
33489               if test "%UNSET%" != "$LINGUAS"; then
33490                 desiredlanguages="$LINGUAS"
33491               else
33492                 desiredlanguages="$ALL_LINGUAS"
33493               fi
33494               for desiredlang in $desiredlanguages; do
33495                 # Use the presentlang catalog if desiredlang is
33496                 #   a. equal to presentlang, or
33497                 #   b. a variant of presentlang (because in this case,
33498                 #      presentlang can be used as a fallback for messages
33499                 #      which are not translated in the desiredlang catalog).
33500                 case "$desiredlang" in
33501                   "$presentlang"*) useit=yes;;
33502                 esac
33503               done
33504               if test $useit = yes; then
33505                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33506               fi
33507             done
33508           fi
33509           CATALOGS=
33510           if test -n "$INST_LINGUAS"; then
33511             for lang in $INST_LINGUAS; do
33512               CATALOGS="$CATALOGS $lang.gmo"
33513             done
33514           fi
33515           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33516           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"
33517           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33518             if test -f "$f"; then
33519               case "$f" in
33520                 *.orig | *.bak | *~) ;;
33521                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33522               esac
33523             fi
33524           done
33525         fi
33526         ;;
33527       esac
33528     done ;;
33529     "src/gettext.sh":F) chmod a+x src/gettext.sh ;;
33530     "man/Makefile":F)
33531   sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
33532   mv $ac_file.tmp $ac_file
33533  ;;
33534
33535   esac
33536 done # for ac_tag
33537
33538
33539 as_fn_exit 0
33540 _ACEOF
33541 ac_clean_files=$ac_clean_files_save
33542
33543 test $ac_write_fail = 0 ||
33544   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33545
33546
33547 # configure is writing to config.log, and then calls config.status.
33548 # config.status does its own redirection, appending to config.log.
33549 # Unfortunately, on DOS this fails, as config.log is still kept open
33550 # by configure, so config.status won't be able to write to it; its
33551 # output is simply discarded.  So we exec the FD to /dev/null,
33552 # effectively closing config.log, so it can be properly (re)opened and
33553 # appended to by config.status.  When coming back to configure, we
33554 # need to make the FD available again.
33555 if test "$no_create" != yes; then
33556   ac_cs_success=:
33557   ac_config_status_args=
33558   test "$silent" = yes &&
33559     ac_config_status_args="$ac_config_status_args --quiet"
33560   exec 5>/dev/null
33561   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33562   exec 5>>config.log
33563   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33564   # would make configure fail if this is the last instruction.
33565   $ac_cs_success || as_fn_exit 1
33566 fi
33567
33568 #
33569 # CONFIG_SUBDIRS section.
33570 #
33571 if test "$no_recursion" != yes; then
33572
33573   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
33574   # so they do not pile up.
33575   ac_sub_configure_args=
33576   ac_prev=
33577   eval "set x $ac_configure_args"
33578   shift
33579   for ac_arg
33580   do
33581     if test -n "$ac_prev"; then
33582       ac_prev=
33583       continue
33584     fi
33585     case $ac_arg in
33586     -cache-file | --cache-file | --cache-fil | --cache-fi \
33587     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33588       ac_prev=cache_file ;;
33589     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33590     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33591     | --c=*)
33592       ;;
33593     --config-cache | -C)
33594       ;;
33595     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33596       ac_prev=srcdir ;;
33597     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33598       ;;
33599     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33600       ac_prev=prefix ;;
33601     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33602       ;;
33603     --disable-option-checking)
33604       ;;
33605     *)
33606       case $ac_arg in
33607       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33608       esac
33609       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
33610     esac
33611   done
33612
33613   # Always prepend --prefix to ensure using the same prefix
33614   # in subdir configurations.
33615   ac_arg="--prefix=$prefix"
33616   case $ac_arg in
33617   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33618   esac
33619   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33620
33621   # Pass --silent
33622   if test "$silent" = yes; then
33623     ac_sub_configure_args="--silent $ac_sub_configure_args"
33624   fi
33625
33626   # Always prepend --disable-option-checking to silence warnings, since
33627   # different subdirs can have different --enable and --with options.
33628   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
33629
33630   ac_popdir=`pwd`
33631   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33632
33633     # Do not complain, so a configure script can configure whichever
33634     # parts of a large source tree are present.
33635     test -d "$srcdir/$ac_dir" || continue
33636
33637     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33638     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
33639     $as_echo "$ac_msg" >&6
33640     as_dir="$ac_dir"; as_fn_mkdir_p
33641     ac_builddir=.
33642
33643 case "$ac_dir" in
33644 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33645 *)
33646   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33647   # A ".." for each directory in $ac_dir_suffix.
33648   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33649   case $ac_top_builddir_sub in
33650   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33651   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33652   esac ;;
33653 esac
33654 ac_abs_top_builddir=$ac_pwd
33655 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33656 # for backward compatibility:
33657 ac_top_builddir=$ac_top_build_prefix
33658
33659 case $srcdir in
33660   .)  # We are building in place.
33661     ac_srcdir=.
33662     ac_top_srcdir=$ac_top_builddir_sub
33663     ac_abs_top_srcdir=$ac_pwd ;;
33664   [\\/]* | ?:[\\/]* )  # Absolute name.
33665     ac_srcdir=$srcdir$ac_dir_suffix;
33666     ac_top_srcdir=$srcdir
33667     ac_abs_top_srcdir=$srcdir ;;
33668   *) # Relative name.
33669     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33670     ac_top_srcdir=$ac_top_build_prefix$srcdir
33671     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33672 esac
33673 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33674
33675
33676     cd "$ac_dir"
33677
33678     # Check for guested configure; otherwise get Cygnus style configure.
33679     if test -f "$ac_srcdir/configure.gnu"; then
33680       ac_sub_configure=$ac_srcdir/configure.gnu
33681     elif test -f "$ac_srcdir/configure"; then
33682       ac_sub_configure=$ac_srcdir/configure
33683     elif test -f "$ac_srcdir/configure.in"; then
33684       # This should be Cygnus configure.
33685       ac_sub_configure=$ac_aux_dir/configure
33686     else
33687       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
33688 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33689       ac_sub_configure=
33690     fi
33691
33692     # The recursion is here.
33693     if test -n "$ac_sub_configure"; then
33694       # Make the cache file name correct relative to the subdirectory.
33695       case $cache_file in
33696       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33697       *) # Relative name.
33698         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
33699       esac
33700
33701       { $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
33702 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33703       # The eval makes quoting arguments work.
33704       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33705            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33706         as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
33707     fi
33708
33709     cd "$ac_popdir"
33710   done
33711 fi
33712 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33713   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33714 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33715 fi
33716